mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: hantro/rkvdec handle unsupported H.264 bitstreams
@ 2020-07-09 16:36 Ezequiel Garcia
  2020-07-09 16:36 ` [PATCH v2 1/2] rkvdec: h264: Refuse to decode unsupported bitstream Ezequiel Garcia
  2020-07-09 16:36 ` [PATCH v2 2/2] hantro: " Ezequiel Garcia
  0 siblings, 2 replies; 3+ messages in thread
From: Ezequiel Garcia @ 2020-07-09 16:36 UTC (permalink / raw)
  To: linux-media, linux-kernel, linux-rockchip
  Cc: Hans Verkuil, Philipp Zabel, Jonas Karlman, Nicolas Dufresne,
	Ezequiel Garcia, kernel

Hi all,

Small patchset to add a check at TRY_EXT_CTRLS time,
via the H264 SPS control and reject unsupported bitstreams.

Properly refusing to decode unsupported bitstreams
allows applications to cleanly fallback to software
decoding.

Note that Rockchip VDEC hardware is capable of decoding High-10
and High-422 bitstreams. This needs more work, so for now
they are refused.

The same approach can be use on Cedrus, but since I'm not
very familiar there, I'll leave that to others.

Applies on top of media master.

v2:
* Use p_new instead of p_cur.
* s/PPS/SPS in commit log.

Ezequiel Garcia (2):
  rkvdec: h264: Refuse to decode unsupported bitstream
  hantro: h264: Refuse to decode unsupported bitstream

 drivers/staging/media/hantro/hantro_drv.c | 29 ++++++++++++++++++++---
 drivers/staging/media/rkvdec/rkvdec.c     | 27 +++++++++++++++++++++
 2 files changed, 53 insertions(+), 3 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2020-07-09 16:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 16:36 [PATCH v2 0/2] media: hantro/rkvdec handle unsupported H.264 bitstreams Ezequiel Garcia
2020-07-09 16:36 ` [PATCH v2 1/2] rkvdec: h264: Refuse to decode unsupported bitstream Ezequiel Garcia
2020-07-09 16:36 ` [PATCH v2 2/2] hantro: " Ezequiel Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome