I am capturing image with thei v4l2-ctl tool from an imx678.
v4l2-ctl --device /dev/video0 --set-fmt-video=width=3856,height=2180,pixelformat=RG10 --stream-mmap --stream-to=frame-rg10.raw --stream-count=1 --set-ctrl=bypass_mode=0
When I analyse the saved raw image the pixe lvalues are not 10 bit as they should be. Does v4l2-ctrl automatically normalize raw bayer image data? If yes, does anybody know how to prevent?
T_R16 as raw memory format, there’re MSBs replicated.
you may download Jetson Orin Series SoC Technical Reference Manual, and refer to [2.4.5 RAW Memory Formats] for more details.
Thanks a lot! That’s the solution! This helped me so much.
But it seems to be the T_R16, not the _I, when I select RG10, I have to shift 6 bits right, in case of RG12 I have to shift 4 bits.
ya… you’re right, Xavier and Orin series using
T_R16 to handle Raw10.
let me have correction.