linux/drivers/media
Hans Verkuil f1343281d8 [media] vb2: fix timecode and flags handling for output buffers
When sending a buffer to a video output device some of the fields need
to be copied so they arrive in the driver. These are the KEY/P/BFRAME
flags and the TIMECODE flag, and, if that flag is set, the timecode field
itself.

There are a number of functions involved in this: the __fill_vb2_buffer()
is called while preparing a buffer. For output buffers the buffer contains
the video data, so any meta data associated with that (KEY/P/BFRAME and
the field information) should be stored at that point.

The timecode, timecode flag and timestamp information is not part of that,
that information will have to be set when vb2_internal_qbuf() is called to
actually queue the buffer to the driver. Usually VIDIOC_QBUF will do the
prepare as well, but you can call PREPARE_BUF first and only later VIDIOC_QBUF.
You most likely will want to set the timestamp and timecode when you actually
queue the buffer, not when you prepare it.

Finally, in buf_prepare() make sure the timestamp and sequence fields are
actually cleared so that when you do a QUERYBUF of a prepared-but-not-yet-queued
buffer you will not see stale timestamp/sequence data.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-03-05 16:18:59 -03:00
..
common [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
dvb-core [media] dvb_frontend: better handle lna set errors 2014-03-04 14:19:34 -03:00
dvb-frontends [media] rtl2832: implement delayed I2C gate close 2014-03-05 15:41:18 -03:00
firewire firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
i2c [media] ths8200: Format adjustment 2014-02-28 14:29:05 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] cx23885: Fix tuning regression for TeVii S471 2014-02-04 17:45:37 -02:00
platform [media] s5p-mfc: Add Horizontal and Vertical MV Search Range 2014-02-28 15:18:00 -03:00
radio [media] radio-cadet: avoid interruptible_sleep_on race 2014-02-28 14:30:30 -03:00
rc [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
tuners [media] xc2028: silence compiler warnings 2014-03-05 15:35:25 -03:00
usb [media] rtl2832: remove unused if_dvbt config parameter 2014-03-05 15:36:59 -03:00
v4l2-core [media] vb2: fix timecode and flags handling for output buffers 2014-03-05 16:18:59 -03:00
Kconfig [media] subdev autoselect only works if I2C and I2C_MUX is selected 2013-12-21 06:03:06 -02:00
Makefile
media-device.c [media] media: info leak in __media_device_enum_links() 2013-06-12 18:52:45 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Check for active links on pads with MEDIA_PAD_FL_MUST_CONNECT flag 2013-12-04 15:03:45 -02:00