[PATCH v2 0/4] venus: add support for 10 bit decoding

From: Dikshita Agarwal
Date: Mon May 22 2023 - 02:52:55 EST


This series includes the changes to
- add V4L2_PIX_FMT_P010 as supported decoder format.
- consider dpb color format while calculating buffer
size for dpb buffers.
- update dpb and opb color format when bit depth
changes is detected, also update preferred color
format to P010 in this case.

With this series, divided the previous version [1] into
multiple patches as suggested in review comments.

This series depends on [2] which replaces the array index with enums.

changes since v1:
use enums to assign formats in place of array index (konrad)

[1] https://patchwork.linuxtv.org/project/linux-media/list/?series=10376
[2] https://patchwork.linuxtv.org/project/linux-media/list/?series=10502

Dikshita Agarwal (4):
venus: add support for V4L2_PIX_FMT_P010 color format
venus: update calculation for dpb buffers
venus: add handling of bit depth change from firmwar
venus: return P010 as preferred format for 10 bit decode

drivers/media/platform/qcom/venus/core.h | 21 +++++++++++----------
drivers/media/platform/qcom/venus/helpers.c | 22 ++++++++++++++++++++++
drivers/media/platform/qcom/venus/hfi_plat_bufs.h | 3 +++
.../media/platform/qcom/venus/hfi_plat_bufs_v6.c | 11 ++++++++---
drivers/media/platform/qcom/venus/vdec.c | 17 +++++++++++++++--
5 files changed, 59 insertions(+), 15 deletions(-)

--
2.7.4