mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
fix[avs2d]: fix vertical stride config
Platform: Chips designed before RK3576
Spec: avs2
Error case:
For RK3588 FBC, vertical pixels equals to height of image aligned with
CTU size and then plus 16.
Issue reported at redmine #550260, caused by this commit:
adf21e18ba
"Align to CTU64 to avoid info change"
Change-Id: I52ab1ff4437431666b1e6fc1e458b6981f53c821
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
parent
be7f3bb870
commit
aef67cc0ce
1 changed files with 7 additions and 2 deletions
|
|
@ -507,8 +507,13 @@ static Avs2dFrame_t *dpb_alloc_frame(Avs2dCtx_t *p_dec, HalDecTask *task)
|
|||
fbc_hdr_stride = MPP_ALIGN(vsh->horizontal_size, 256) | 256;
|
||||
|
||||
mpp_frame_set_fbc_hdr_stride(mframe, fbc_hdr_stride);
|
||||
// fbc output frame update
|
||||
mpp_frame_set_offset_y(mframe, 8);
|
||||
|
||||
if (mpp_get_soc_type() < ROCKCHIP_SOC_RK3576) {
|
||||
RK_U32 ctu_size = 1 << (p_dec->vsh.lcu_size);
|
||||
// fbc output frame update
|
||||
mpp_frame_set_offset_y(mframe, 8);
|
||||
mpp_frame_set_ver_stride(mframe, MPP_ALIGN(vsh->vertical_size, ctu_size) + 16);
|
||||
}
|
||||
} else if (MPP_FRAME_FMT_IS_TILE(p_dec->init.cfg->base.out_fmt))
|
||||
mpp_frame_set_fmt(mframe, mpp_frame_get_fmt(mframe) | (p_dec->init.cfg->base.out_fmt & (MPP_FRAME_TILE_FLAG)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue