[hal_jpegd]: Correct output format when PP not used

Otherwise the output format would always be the initial value(YUV420SP).

Change-Id: I6b792cb1010b96e136ce008250b2e1a4f90635e5
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen
2022-01-17 18:23:22 +08:00
parent d6c338d009
commit 0e15e96c9f

View File

@@ -357,6 +357,7 @@ static MPP_RET setup_output_fmt(JpegdHalCtx *ctx, JpegdSyntax *syntax, RK_S32 ou
}
} else { //keep original format
regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_NO_TRANS;
ctx->output_fmt = s->output_fmt;
}
jpegd_dbg_hal("convert format %d to format %d\n", s->output_fmt, ctx->output_fmt);