how can deal with the stream in only on-the-fly-output available HW block??
Hi all,
What if some SoC's specific HW block supports only on-the-fly mode for stream output??
In this case, what is the suitable buf_type??
I'm faced with such problem.
As explanation for my situation briefly, the processor I deal with now has 3 Multimedia H/W blocks, and the problem-one in the 3 blocks do the work for sensor-interfacing and pre-processing.
It supports CCD or CMOS for input, and DMA or On-The-Fly for output. Exactly, it has two cases - DMA mode using memory bus & On-The-Fly mode connected with any other multimedia blocks.
Also, it use only one format "Bayer RGB" in case of mode the DMA and On-The-Fly mode both.
So, when the device operates in the On-The-Fly mode, is it alright the driver's current type is V4L2_BUF_TYPE_VIDEO_CAPTURE? or something else? or if setting buf_type is wrong itself, what v4l2 API flow is right for driver or userspace??
the v4l2 buf_type enumeratinos is defined here, but I have no idea about suitable enum value in this case, also except for any other under enums too.
V4L2_BUF_TYPE_VIDEO_CAPTURE = 1, V4L2_BUF_TYPE_VIDEO_OUTPUT = 2, V4L2_BUF_TYPE_VIDEO_OVERLAY = 3, V4L2_BUF_TYPE_VBI_CAPTURE = 4, V4L2_BUF_TYPE_VBI_OUTPUT = 5, V4L2_BUF_TYPE_SLICED_VBI_CAPTURE = 6, V4L2_BUF_TYPE_SLICED_VBI_OUTPUT = 7,
V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY = 8,V4L2_BUF_TYPE_PRIVATE = 0x80,
I'll thanks for any idea or answer.
Regards,
HeungJun, Kim