Re: V4L2_MEMORY_DMABUF for video decoders

2014-12-11 Thread vkalia
Hi Hans/Community Can you please help us with this query. Thanks Vinay > Hi > > I am facing an issue while using videobuf2-dma-contig.c mem_ops. Following > is brief description of the driver architecture and the limitation. Any > pointers/hints are appreciated. > > Driver architecture: > It is

V4L2_MEMORY_DMABUF for video decoders

2014-12-01 Thread vkalia
Hi I am facing an issue while using videobuf2-dma-contig.c mem_ops. Following is brief description of the driver architecture and the limitation. Any pointers/hints are appreciated. Driver architecture: It is a video codec driver for video decoding. It exposes two ports - CAPTURE and OUTPUT. Raw

Query: Reqbufs returning without calling queue_setup.

2014-03-13 Thread vkalia
Hi There is a check in __reqbufs in videobuf2-core.c in which if the count is same then the function returns immediately. __reqbufs also calls queue_setup callback into driver which updates the plane counts and sizes of vb2 queue. The count and size can be affected/changed by S_FMT and G_FMT ioct

Re: Query: Mutiple CAPTURE ports on a single device

2014-03-13 Thread vkalia
Thanks Hans for the pointers! Unfortunately, my driver is implemented M2M way. Thanks Vinay > Hi Vinay! > > On 03/12/14 18:58, vka...@codeaurora.org wrote: >> Hi >> >> I have a v4l2 driver for a hardware which is capable of taking one input >> and producing two outputs. Eg: Downscaler which takes

Query: Mutiple CAPTURE ports on a single device

2014-03-12 Thread vkalia
Hi I have a v4l2 driver for a hardware which is capable of taking one input and producing two outputs. Eg: Downscaler which takes one input @ 1080p and two outputs - one @ 720p and other at VGA. My driver is currently implemented as having two capabilities - 1. V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE 2

User data propagation for video codecs

2013-09-13 Thread vkalia
Hi For video decoder, our video driver, which is V4l2 based, exposes two capabilities: 1. V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE for transaction of compressed buffers. 2. V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE for transaction of decoded/uncompressed buffers. We have a requirement to propagate "user speci

Re: Custom device names for v4l2 devices

2013-03-11 Thread vkalia
Please suggest. Thanks Vinay > Hi > > Names of V4L2 device nodes keep on varying depending on target, on some > targets, the device node assigned to my device is /dev/video21 and on some > it is /dev/video15. In order to determine my device, i am opening it, > reading the capabilities, enumeratin

Custom device names for v4l2 devices

2013-03-07 Thread vkalia
Hi Names of V4L2 device nodes keep on varying depending on target, on some targets, the device node assigned to my device is /dev/video21 and on some it is /dev/video15. In order to determine my device, i am opening it, reading the capabilities, enumerating its formats and then chose the one match

Re: Pause/Resume and flush for V4L2 codec drivers.

2012-01-06 Thread vkalia
Thanks Hans. Yes it does solve a part of my problem - Pause/Resume. But I dont see any command defined for Flush yet. Do you think we should add one more command to Flush. Also, I see two more commands #define V4L2_DEC_CMD_START (0) #define V4L2_DEC_CMD_STOP(1) How should I use the

Pause/Resume and flush for V4L2 codec drivers.

2012-01-05 Thread vkalia
Hi I am trying to implement v4l2 driver for video decoders. The problem I am facing is how to send pause/resume and flush commands from user-space to v4l2 driver. I am thinking of using controls for this. Has anyone done this before or if anyone has any ideas please let me know. Appreciate your he

V4L2 subdevice query

2011-12-19 Thread vkalia
Hi I am trying to implement a video encoder v4l2 device and need your help to find answers to some of the questions. There is one hardware core which can do multiple sessions (multiple file handles) of encode simultaneously. The encode functionalty needs to be exposed to userspace as well as kerne