Datatype of metadata is the same with it of rawdata

My sensor can output 640480 rawdata, and 2480 metadata with data types 0x2c and 0x12, respectively.
image
I change the datatype of metadata from 0x12 to 0x2c through serdes and deserdes.
And I also change the device tree.
image
Is this approach feasible?

when I test it with v4l2 command

v4l2-ctl --set-fmt-video=width=640,height=482,pixelformat=RG12 --stream-mmap --set-ctrl=sensor_mode=0  -d /dev/video0

the dmesg shows below:


trace log:
trace.log (22.0 MB)
If this is feasible, please help to see what went wrong.Thanks!

The log tell short frame.
Check the size is modify correct by below command.

v4l2-ctl --list-formats-ext

Thanks for your quick reply.

pcai@pcai-desktop:~$ v4l2-ctl --list-formats-ext

ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'RG12' (12-bit Bayer RGRG/GBGB)
                Size: Discrete 640x482
                        Interval: Discrete 0.017s (60.000 fps)

The size is correct. Could you try report 640x480?

sorry, I can’t understand what you mean.

The trace log tells the receive less line than report.
Check the log by report the less height.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.