Parameters
- lineCount
The number of lines to encode.
- buffer
- A data buffer containing the pixels to copy from.
- rowStride
- The stride of one row.
- totalSizeInBytes
- Total size in bytes of pixels to write. If == 0, size is calculated with lineCount * rowStride.