https://www.kernel.org/doc/html/v4.10/media/uapi/v4l/pixfmt-srggb10.html
假设一张照片的大小为4x4像素,那么:
Byte Order. Each cell is one byte, the 6 most significant bits in the high bytes are 0.
start + 0: B00low B00high G01low G01high B02low B02high G03low G03high
start + 8: G10low G10high R11low R11high G12low G12high R13low R13high
start + 16: B20low B20high G21low G21high B22low B22high G23low G23high
start + 24: G30low G30high R31low R31high G32low G32high R33low R33high
第0,1个字节存储(0,0)坐标处的像素的蓝色亮度。
第2,3个字节存储(0,1)坐标处的像素的绿色亮度。
第4,5个字节存储(0,2)坐标处的像素的蓝色亮度。
第6,7个字节存储(0,3)坐标处的像素的绿色亮度。
第8,9个字节存储(1,0)坐标处的像素的绿色亮度。
第10,11个字节存储(1,1)坐标处的像素的红色亮度。
第12,13个字节存储(1,2)坐标处的像素的绿色亮度。
第14,15个字节存储(1,3)坐标处的像素的红色亮度。
每个像素点都只存一种基本颜色的亮度信息,亮度值的范围为0~1023。