↑back Search ←Prev date Next date→ Show only urls | (Click on time to select a line by its url) |
Who | What | When |
---|---|---|
*** | faction_ has quit IRC (Quit: Bye) | [01:12] |
........................................................................................ (idle for 7h15mn) | ||
hvv | Does anyone know a good example how to use V4L2_CTRL_FLAG_HAS_PAYLOAD? Backgroud: I'm looking for a way to pass a custom structure to a V4L subdevice by using VIDIOC_S/G_EXT_CTRLS | [08:27] |
.......... (idle for 45mn) | ||
hverkuil | hvv: I'm not sure what you are looking for. Do you want to know how to set a custom structure using VIDIOC_S_EXT_CTRLS? Or how to define one in a driver?
A simple example to set it is here: https://git.linuxtv.org/v4l-utils.git/tree/utils/v4l2-ctl/v4l2-ctl-streaming.cpp, search for set_fwht_ext_ctrl(). Given your use-case you would set the which field to 0, not to V4L2_CTRL_WHICH_REQUEST_VAL. Otherwise the code would be the same as that function. | [09:12] |
....... (idle for 32mn) | ||
*** | sic- has left | [09:46] |
......... (idle for 44mn) | ||
hvv | hverkuil: Thanks for your help. The user space part looks almost like this. My problem is the kernel part. I couldn't find the MPEG CID in the vanilla kernel, incl. v5.1. Do you know were I find the kernel part od this CID? | [10:30] |
hverkuil | That control is brand new and scheduled for 5.2, but you can also look at V4L2_CID_MPEG_VIDEO_MPEG2_SLICE_PARAMS, which is in the mainline kernel. | [10:33] |
........................................................ (idle for 4h39mn) | ||
hvv | hverkuil: With V4L2_CID_MPEG_VIDEO_MPEG2_SLICE_PARAMS there is a new ctrl type. But how to make use of the "pointer to a compound type" of v4l2_ext_control? V4L2_CTRL_FLAG_HAS_PAYLOAD is set in my case. But on a VIDIOC_S_EXT_CTRLS I never receive the buffer on my driver. I use 4.14.x and I couldn't find an example for this... | [15:12] |
hverkuil | When you make your control, what type do you give it?
You must make a control type for your compound control. Unless you pass it as an array of V4L2_CTRL_TYPE_U8, that's always an option. got to go, sorry. | [15:15] |
........ (idle for 37mn) | ||
*** | benjiG has left | [15:55] |
................. (idle for 1h21mn) | ||
bbrezillon | hverkuil, pinchartl: I guess it's not a good idea to map the several times the same dmabuf if all planes are pointing to the same instance
I tried to address that at the videobuf2-core.c level by attaching dmabufs only one when they appear in several planes, but I'm not entirely happy with the solution | [17:16] |
and I now I have a dmabuf offset, which means drivers can't use the sg table returned by vb2_dma_sg_plane_desc() directly | [17:27] |
↑back Search ←Prev date Next date→ Show only urls | (Click on time to select a line by its url) |