linux-stable/drivers/staging
Benjamin Gaignard 135ad96cb4 media: hantro: Be more accurate on pixel formats step_width constraints
On Hantro G2 decoder on IMX8MQ strides requirements aren't the same
for NV12_4L4 and NV12 pixel formats. The first one use a 4 bytes padding
while the last one needs 16 bytes.
To be sure to provide the correct stride in all cases we need:
- to relax the constraints on codec formats so set step_width to 4
- use capture queue format and not the output queue format when applying
  the pixel format constraints.
- put the correct step_width constraints on each pixel format.

Move HEVC SPS validation in hantro_hevc.c to be able to perform it
when setting sps control and when starting to decode the bitstream.
Add a new test in HEVC SPS validation function to check if resolution
is still matching the hardware constraints.

With this SAODBLK_A_MainConcept_4 and SAODBLK_B_MainConcept_4 conformance
tests files are correctly decoded with both NV12 and NV12_4L4 pixel
formats. These two files have a resolution of 1016x760.

Add defines for the various used resolutions.
For other variants than Hantro G2 on IMX8M keep the same step_width to
avoid regressions.

Fluster HEVC test score is now 128/147 vs 126/147 with the both pixel
formats as decoder output.
Fluster VP9 test score stay at 147/303.

[hverkuil: fix trivial checkpatch warnings]

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-06-20 10:30:34 +01:00
..
axis-fifo
board
clocking-wizard
emxx_udc
fbtft
fieldbus
fwserial
gdm724x
greybus Staging driver updates for 5.19-rc1 2022-06-03 10:44:43 -07:00
iio
ks7010
media media: hantro: Be more accurate on pixel formats step_width constraints 2022-06-20 10:30:34 +01:00
most
nvec
octeon
octeon-usb
olpc_dcon staging: olpc_dcon: mark driver as broken 2022-06-10 09:09:47 +02:00
pi433
qlge
r8188eu staging: r8188eu: Fix warning of array overflow in ioctl_linux.c 2022-06-06 08:10:14 +02:00
rtl8192e
rtl8192u
rtl8712
rtl8723bs staging: rtl8723bs: Allocate full pwep structure 2022-06-10 09:10:16 +02:00
rts5208
sm750fb
vc04_services
vme_user
vt6655
vt6656
wlan-ng
Kconfig
Makefile