]> git.baikalelectronics.ru Git - kernel.git/commit
media: cedrus: identify buffers by timestamp
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 9 Nov 2018 09:16:21 +0000 (04:16 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 7 Jan 2019 18:20:54 +0000 (13:20 -0500)
commitf0e785b847fc8bd963a08adf5a1b1ba0279468a4
tree2ec9c3d153cb7fac261748711b8b82d27f940363
parent9e53c796f2d8647caf24ed09a459e2d8a7d71ee0
media: cedrus: identify buffers by timestamp

Use the new v4l2_m2m_buf_copy_data helper function and use
timestamps to refer to reference frames instead of using
buffer indices.

Also remove the padding fields in the structs, that's a bad
idea. Just use the right types to keep everything aligned.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c
drivers/staging/media/sunxi/cedrus/cedrus.h
drivers/staging/media/sunxi/cedrus/cedrus_dec.c
drivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c
include/media/mpeg2-ctrls.h