]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: Do not reorder H264 scaling list
authorJonas Karlman <jonas@kwiboo.se>
Tue, 29 Oct 2019 00:00:53 +0000 (01:00 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 9 Nov 2019 07:47:33 +0000 (08:47 +0100)
commit597fa6514f7a43da4c050a9b8bbc853b5dc001bc
tree437441d783797aea88d5e78e86b5f290fbb6e709
parentaf72485afe03121b1248e714ffeb91c906322a47
media: hantro: Do not reorder H264 scaling list

Scaling list supplied from userspace should be in matrix order
and can be used without applying the inverse scanning process.

The HW also only support 8x8 scaling list for the Y component, indices 0
and 1 in the scaling list supplied from userspace.

Remove reordering and write the scaling matrix in an order expected by
the VPU, also only allocate memory for the two 8x8 lists supported.

Fixes: 43413bbcbd22 ("media: hantro: Add core bits to support H264 decoding")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/hantro_h264.c