From 37dea0952a07fa90de293e6e52615d339440f03d Mon Sep 17 00:00:00 2001 From: Chandler Chen Date: Fri, 8 Mar 2024 14:54:39 +0800 Subject: [PATCH] feat[av1d]: Add tile4x4 frame format support Signed-off-by: Chandler Chen Change-Id: Icbd72c1447edcaa1d537801c18eb65c129db90c0 --- mpp/codec/dec/av1/av1d_parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mpp/codec/dec/av1/av1d_parser.c b/mpp/codec/dec/av1/av1d_parser.c index d64ac139..912a4e47 100644 --- a/mpp/codec/dec/av1/av1d_parser.c +++ b/mpp/codec/dec/av1/av1d_parser.c @@ -796,6 +796,8 @@ static MPP_RET get_current_frame(Av1CodecContext *ctx) mpp_frame_set_offset_x(frame->f, 0); mpp_frame_set_offset_y(frame->f, 0); mpp_frame_set_ver_stride(frame->f, MPP_ALIGN(ctx->height, 8) + 28); + } else if (MPP_FRAME_FMT_IS_TILE(s->cfg->base.out_fmt)) { + mpp_frame_set_fmt(frame->f, ctx->pix_fmt | ((s->cfg->base.out_fmt & (MPP_FRAME_TILE_FLAG)))); } else mpp_frame_set_fmt(frame->f, ctx->pix_fmt);