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。