...
The end of each image row is padded up to the next byte boundary if needed.
Note: to record without compression, on Sensor Control -> Video Record, unselect "Packed".
If the sensor supports Companding, use Sensor Control → Video Record "Decompand" to enable/disable it.
How to record Recording high resolution video without dropping frames
...