fix[vp9d]: Fix AFBC to non-FBC mode switch issue

When vp9 decoder switches from FBC mode to non-FBC mode it requires
resetting the alignment function in buf_slot.

Change-Id: I0c3e35e2c573d003192a2a82d9bdd9c30f42088c
Signed-off-by: Hery Xu <hery.xu@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Hery Xu
2023-10-09 10:09:43 +08:00
committed by Herman Chen
parent 45fff92423
commit f377c2ae70
3 changed files with 19 additions and 9 deletions

View File

@@ -116,3 +116,13 @@ RK_U32 mpp_align_64(RK_U32 val)
{
return MPP_ALIGN(val, 64);
}
RK_U32 mpp_align_128(RK_U32 val)
{
return MPP_ALIGN(val, 128);
}
RK_U32 mpp_align_256_odd(RK_U32 val)
{
return MPP_ALIGN(val, 256) | 256;
}