media: vicodec: keep the ref frame according to the format in decoder
authorDafna Hirschfeld <dafna3@gmail.com>
Wed, 6 Mar 2019 21:13:32 +0000 (16:13 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 25 Mar 2019 17:46:18 +0000 (13:46 -0400)
commit86764b88c447f9690765db59189ecbeb72325e4c
tree065a9b16e5c5ef7e0c806b50e89b41c631bf9ce4
parentbdbfd992bb9f19817911205cb7173cc6328de2a3
media: vicodec: keep the ref frame according to the format in decoder

In the decoder, save the inner reference frame in the same
format as the capture buffer.
The decoder writes directly to the capture buffer and then
the capture buffer is copied to the reference buffer.
This will simplify the stateless decoder.

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/codec-fwht.c
drivers/media/platform/vicodec/codec-fwht.h
drivers/media/platform/vicodec/codec-v4l2-fwht.c
drivers/media/platform/vicodec/codec-v4l2-fwht.h
drivers/media/platform/vicodec/vicodec-core.c