media: venus: vdec: handle 10bit bitstreams
authorAniket Masule <amasule@codeaurora.org>
Wed, 4 Dec 2019 10:18:40 +0000 (11:18 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 27 Feb 2020 15:49:02 +0000 (16:49 +0100)
commitab1eda449c6eef5067538b034c7561eb9e053362
tree5933f3007ab0cbd1341481f79d3084b08c2116ff
parent4ebf969375bca2cef03573d23416423cec1af814
media: venus: vdec: handle 10bit bitstreams

Handle 10bit video streams in the decoder by using dithering, i.e
the decoder output buffers will be in 8bit format.

The runtime handling is implemented by sending v4l2 event to
userspace application, then the application should stop the
streaming on capture queue and initiate format negotiation, and
start streaming again.

Signed-off-by: Aniket Masule <amasule@codeaurora.org>
Co-developed-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/core.h
drivers/media/platform/qcom/venus/helpers.c
drivers/media/platform/qcom/venus/hfi_helper.h
drivers/media/platform/qcom/venus/vdec.c