Formats conversion in kernel at DMA level would prevent loading CPU so heavilyĮven in case that kernel cannot process conversion, then libv4lconvert should be able to adjust and report synthetics BGR24, RGB24, YUV420 and YVU420 formats in user-space. But I have only old IMX8M manual which is not clear and actual seems to require agreement with restrictions. They should be listed probably on the pad level but attempt to list formats for given (0, CSI) pad seems to fail.Īs for the conversion, I would expect that there is some option in CSI or VPU module to do GRBG to RGB or YUV conversion in kernel directly in DMA streams. I have not found how to list controls for gain, exposure and balance as well even that I see them in the driver s5k3l6xx.c. V4l2-ctl -set-fmt-video=width=1052,height=780,pixelformat=GRBG -stream-mmap -stream-count=1 -d /dev/video2 -stream-to=raw.imgīut I miss a way how to enumerate real supported formats on global and or subdev/pad level… Attempt with simple example how to grab single frame of V4L2 video seems to work and stores 820560 bytes which matches raw format. I get reasonable output for command retrieving actual setting v4l2-ctl -d /dev/video2 -get-fmt-video. If I try v4l2-ctl -d /dev/video0 -get-subdev-fmt 0, I receive error. But my attempts to get list of resolutions even for supported format seems strange v4l2-ctl -d /dev/video2 -list-framesizes 'GRBG' -> Size: Continuous 1x1 - 65535圆5535, may it be limit of i.MX8M CSI input. I have tried v4l2-ctl -d /dev/video2 -get-fmt-video which seems to report all formats, not only expected : 'GBRG' (8-bit Bayer GBGB/RGRG), but i.MX8m CSI interface can probably support all reported. I have only little experience with V4L2 (I have implemented drivers for FLIR infrared cameras for i.m圆 in grey scale formats MEDIA_BUS_FMT_Y12_1X12 for 3.x and 4.x kernels).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |