linux-sg2042/drivers/media/platform
Laurent Pinchart d52e238136 [media] v4l: Support extending the v4l2_pix_format structure
The v4l2_pix_format structure has no reserved field. It is embedded in
the v4l2_framebuffer structure which has no reserved fields either, and
in the v4l2_format structure which has reserved fields that were not
previously required to be zeroed out by applications.

To allow extending v4l2_pix_format, inline it in the v4l2_framebuffer
structure, and use the priv field as a magic value to indicate that the
application has set all v4l2_pix_format extended fields and zeroed all
reserved fields following the v4l2_pix_format field in the v4l2_format
structure.

The availability of this API extension is reported to userspace through
the new V4L2_CAP_EXT_PIX_FORMAT capability flag. Just checking that the
priv field is still set to the magic value at [GS]_FMT return wouldn't
be enough, as older kernels don't zero the priv field on return.

To simplify the internal API towards drivers zero the extended fields
and set the priv field to the magic value for applications not aware of
the extensions.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-17 12:44:47 -03:00
..
blackfin [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
davinci [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
exynos-gsc [media] vb2: stop_streaming should return void 2014-04-23 10:12:51 -03:00
exynos4-is [media] exynos4-is: Remove support for non-dt platforms 2014-05-23 18:52:54 -03:00
marvell-ccic [media] vb2: stop_streaming should return void 2014-04-23 10:12:51 -03:00
omap [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
omap3isp [media] omap3isp: Rename isp_buffer isp_addr field to dma 2014-05-25 11:40:09 -03:00
s3c-camif [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
s5p-g2d [media] v4l: Copy timestamp source flags to destination on m2m devices 2014-03-05 16:47:15 -03:00
s5p-jpeg [media] s5p-jpeg: Fix NV12 format entry related to S5C2120 SoC 2014-05-13 20:23:03 -03:00
s5p-mfc [media] s5p-mfc: Add support for resolution change event 2014-05-23 19:51:10 -03:00
s5p-tv [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
soc_camera [media] V4L2: soc_camera: Add run-time dependencies to sh_mobile drivers 2014-06-17 12:04:54 -03:00
ti-vpe [media] v4l: ti-vpe: Rename csc memory resource name 2014-05-23 14:33:17 -03:00
vsp1 [media] v4l: vsp1: Remove the unneeded vsp1_video_buffer video field 2014-06-17 12:04:05 -03:00
Kconfig [media] omap3isp: Use the ARM DMA IOMMU-aware operations 2014-05-25 11:18:42 -03:00
Makefile [media] omap24xx/tcm825x: move to staging for future removal 2013-12-20 13:45:22 -02:00
arv.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
coda.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
coda.h [media] coda: add CODA7541 decoding support 2013-07-31 15:56:44 -03:00
fsl-viu.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
indycam.c [media] indycam: remove g_chip_ident op 2013-06-17 08:49:47 -03:00
indycam.h
m2m-deinterlace.c [media] m2m-deinterlace: Convert to devm* API 2014-06-17 12:04:46 -03:00
mem2mem_testdev.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
mx2_emmaprp.c [media] media: mx2-emmaprp: Add missing mutex_destroy() 2014-05-23 14:57:35 -03:00
sh_veu.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
sh_vou.c [media] sh_vou: comment unused vars 2014-01-13 11:30:26 -02:00
timblogiw.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
via-camera.c [media] via-camera: replace current_norm by g_std 2013-06-17 09:33:49 -03:00
via-camera.h
vino.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00
vino.h
vivi.c [media] v4l: Support extending the v4l2_pix_format structure 2014-07-17 12:44:47 -03:00