public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* User data propagation for video codecs
@ 2013-09-13 21:54 vkalia
  2013-09-14  3:22 ` Hans Verkuil
  0 siblings, 1 reply; 2+ messages in thread
From: vkalia @ 2013-09-13 21:54 UTC (permalink / raw)
  To: linux-media

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 specific data" from compressed
buffer to uncompressed buffer. We are not able to find any field in
"struct v4l2_buffer" which can be used for this purpose. Please suggest if
this can be achieved with current V4L2 framework.


Thanks
Vinay


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: User data propagation for video codecs
  2013-09-13 21:54 User data propagation for video codecs vkalia
@ 2013-09-14  3:22 ` Hans Verkuil
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2013-09-14  3:22 UTC (permalink / raw)
  To: vkalia; +Cc: linux-media

On 09/13/2013 11:54 PM, vkalia@codeaurora.org wrote:
> 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 specific data" from compressed
> buffer to uncompressed buffer. We are not able to find any field in
> "struct v4l2_buffer" which can be used for this purpose. Please suggest if
> this can be achieved with current V4L2 framework.

It depends how the user data is organized. If it is situated right
before the actual data, then the data_offset field of v4l2_plane can be
used. If it is an independent piece of data, then you can pass it on in
an additional plane.

Regards,

    Hans

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-14  3:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 21:54 User data propagation for video codecs vkalia
2013-09-14  3:22 ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox