mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
media: verisilicon: Fix IMX8 native pixel-format step values
The Hantro decoder non post-processed pixel-format steps are different from the post-processed ones. Fix the steps according to the hardware limitations. Since reference frame pixel-format issues have been fixed, it is possible to use V4L2_PIX_FMT_NV15_4L4 rather V4L2_PIX_FMT_P010_4L4 for 10bit streams. Fluster VP9 score goes up to 207/305. HEVC score is still 141/147. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
db300ab0e9
commit
e5453f2a94
|
|
@ -187,23 +187,23 @@ static const struct hantro_fmt imx8m_vpu_g2_dec_fmts[] = {
|
|||
.frmsize = {
|
||||
.min_width = FMT_MIN_WIDTH,
|
||||
.max_width = FMT_UHD_WIDTH,
|
||||
.step_width = TILE_MB_DIM,
|
||||
.step_width = 8,
|
||||
.min_height = FMT_MIN_HEIGHT,
|
||||
.max_height = FMT_UHD_HEIGHT,
|
||||
.step_height = TILE_MB_DIM,
|
||||
.step_height = 32,
|
||||
},
|
||||
},
|
||||
{
|
||||
.fourcc = V4L2_PIX_FMT_P010_4L4,
|
||||
.fourcc = V4L2_PIX_FMT_NV15_4L4,
|
||||
.codec_mode = HANTRO_MODE_NONE,
|
||||
.match_depth = true,
|
||||
.frmsize = {
|
||||
.min_width = FMT_MIN_WIDTH,
|
||||
.max_width = FMT_UHD_WIDTH,
|
||||
.step_width = TILE_MB_DIM,
|
||||
.step_width = 8,
|
||||
.min_height = FMT_MIN_HEIGHT,
|
||||
.max_height = FMT_UHD_HEIGHT,
|
||||
.step_height = TILE_MB_DIM,
|
||||
.step_height = 32,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user