fix[jpegd_rkv]: New JPEG IP supports tile 4x4 output by default.

Platform: RV1126B
Spec: jpegd

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I0c7c570d504808081ea894b62e04ae7bc562348a
This commit is contained in:
Hongjin Li 2025-03-26 11:39:56 +08:00
parent 648dd1befb
commit d57658ff6d

View file

@ -453,7 +453,8 @@ static MPP_RET jpegd_gen_regs(JpegdHalCtx *ctx, JpegdSyntax *syntax)
y_virstride = y_hor_stride * out_height;
if (regs->reg2_sys.dec_out_sequence == OUTPUT_TILE) {
if (mpp_get_soc_type() == ROCKCHIP_SOC_RK3576) {
// The new JPEG decoder supports tile 4x4 output by default.
if (mpp_get_soc_type() >= ROCKCHIP_SOC_RK3576) {
switch (regs->reg2_sys.yuv_out_format) {
case YUV_OUT_FMT_2_YUYV:
y_hor_stride = y_hor_stride * 4 * 2;