OSDN Git Service

media: cedrus: Allow using the current dst buffer as reference
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Wed, 9 Jan 2019 14:19:20 +0000 (12:19 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 21 Jan 2019 17:43:42 +0000 (15:43 -0200)
commitcf20ae1535eb690a87c29b9cc7af51881384e967
tree828a03870574cd050371f0464402de66402863c6
parent6f4b9d9a6c08f692f627700c2d0e250e406ac81f
media: cedrus: Allow using the current dst buffer as reference

It was reported that some cases of interleaved video decoding require
using the current destination buffer as a reference. However, this is
no longer possible after the move to vb2_find_timestamp because only
dequeued and done buffers are considered.

Add a helper in our driver that also considers the current destination
buffer before resorting to vb2_find_timestamp and use it in MPEG-2.

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