Hi, I have a question when I dump with v4l2.
First of all, I’ll explain the environment.
My camera info is
Priority: 2
Video input : 0 (Camera 0: ok)
Format Video Capture:
Width/Height : 3840/1920
Pixel Format : ‘RG12’ (12-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 7680
Size Image : 14745600
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
and, I try to camera dump using below command.
v4l2-ctl --set-fmt-video=width=3840,height=1920,pixelformat=RG12 --stream-mmap -d /dev/video0 --set-ctrl bypass_mode=0
Of course, dump data can be obtained.
but When I read it using some hex edit program, it’s 16bit full, not 12bit.
like this :
12 EC AD DC 4E EC DE E4 DE EB FE E4 0E EC 3E E0 …
I think it should come out as below.
97 03 FA 01 84 03 E3 01 A9 03 E1 01 9B 03 E7 01 …
Can anyone tell me why?
thank you.
