Message ID | 01020192f83fdef5-358ea072-9630-473f-9407-53be13d85864-000000@eu-west-1.amazonses.com |
---|---|
State | Superseded |
Headers | show |
Series | [1/2] media: verisilicon: Store reference frames pixels format | expand |
Le lundi 04 novembre 2024 à 17:36 +0000, Benjamin Gaignard a écrit : > Hantro decoder non post-processed pixels formats steps are different > from post-processed ones. > Fix the steps according to hardware limitation. > Since reference frame pixels format issue has been fix, it is possible > to use V4L2_PIX_FMT_NV15_4L4 rather V4L2_PIX_FMT_P010_4L4 for 10bits > 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> > --- > drivers/media/platform/verisilicon/imx8m_vpu_hw.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c b/drivers/media/platform/verisilicon/imx8m_vpu_hw.c > index f850d8bddef6..35799da534ed 100644 > --- a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c > +++ b/drivers/media/platform/verisilicon/imx8m_vpu_hw.c > @@ -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, > }, > }, > {
diff --git a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c b/drivers/media/platform/verisilicon/imx8m_vpu_hw.c index f850d8bddef6..35799da534ed 100644 --- a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c +++ b/drivers/media/platform/verisilicon/imx8m_vpu_hw.c @@ -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, }, }, {
Hantro decoder non post-processed pixels formats steps are different from post-processed ones. Fix the steps according to hardware limitation. Since reference frame pixels format issue has been fix, it is possible to use V4L2_PIX_FMT_NV15_4L4 rather V4L2_PIX_FMT_P010_4L4 for 10bits streams. Fluster VP9 score goes up to 207/305. HEVC score is still 141/147. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> --- drivers/media/platform/verisilicon/imx8m_vpu_hw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)