All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] media: verisilicon: HEVC: fix 10bits handling
@ 2023-01-27  9:21 ` Benjamin Gaignard
  0 siblings, 0 replies; 18+ messages in thread
From: Benjamin Gaignard @ 2023-01-27  9:21 UTC (permalink / raw)
  To: ezequiel, p.zabel, mchehab, shawnguo, s.hauer, kernel, festevam,
	linux-imx, hverkuil-cisco, nicolas.dufresne
  Cc: linux-media, linux-rockchip, linux-kernel, linux-arm-kernel,
	kernel, Benjamin Gaignard

When decoding a 10bits bitstreams HEVC driver should only expose 10bits pixel formats.
To fulfill this requirement it is needed to call hantro_reset_raw_fmt()
and to only change driver internal state in case of success.

Fluster score (140/147) doesn't change after this series.

version 5:
- Add Nicolas's review tags
- Add Fixes tags

version 4:
- Split the change in 2 patches.
- Change hantro_check_depth_match() prototype to avoid using
  ctx->bit_depth
- Return the result of hantro_reset_raw_fmt() to the caller.
- Only set ctx->bit_depth when hantro_reset_raw_fmt() returns is ok.

 
Benjamin Gaignard (2):
  media: verisilicon: Do not change context bit depth before validating
    the format
  media: verisilicon: HEVC: Only propose 10 bits compatible pixels
    formats

 .../media/platform/verisilicon/hantro_drv.c   | 44 ++++++++++++---
 .../platform/verisilicon/hantro_postproc.c    |  2 +-
 .../media/platform/verisilicon/hantro_v4l2.c  | 53 +++++++++----------
 .../media/platform/verisilicon/hantro_v4l2.h  |  3 +-
 .../media/platform/verisilicon/imx8m_vpu_hw.c |  2 +
 5 files changed, 66 insertions(+), 38 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-01-30  3:16 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27  9:21 [PATCH v5 0/2] media: verisilicon: HEVC: fix 10bits handling Benjamin Gaignard
2023-01-27  9:21 ` Benjamin Gaignard
2023-01-27  9:21 ` Benjamin Gaignard
2023-01-27  9:21 ` [PATCH v5 1/2] media: verisilicon: Do not change context bit depth before validating the format Benjamin Gaignard
2023-01-27  9:21   ` Benjamin Gaignard
2023-01-27  9:21   ` Benjamin Gaignard
2023-01-30  2:55   ` Ezequiel Garcia
2023-01-30  2:55     ` Ezequiel Garcia
2023-01-30  2:55     ` Ezequiel Garcia
2023-01-30  3:07   ` Ezequiel Garcia
2023-01-30  3:07     ` Ezequiel Garcia
2023-01-30  3:07     ` Ezequiel Garcia
2023-01-27  9:21 ` [PATCH v5 2/2] media: verisilicon: HEVC: Only propose 10 bits compatible pixels formats Benjamin Gaignard
2023-01-27  9:21   ` Benjamin Gaignard
2023-01-27  9:21   ` Benjamin Gaignard
2023-01-30  3:13   ` Ezequiel Garcia
2023-01-30  3:13     ` Ezequiel Garcia
2023-01-30  3:13     ` Ezequiel Garcia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.