[mpp_dec] Calc FBC buffer size on SET_FRAME_INFO

Determine FBC alignment when set frame info control

Change-Id: Ibc0c6c455029a58875b820c17b7d94cc4e64cdda
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
This commit is contained in:
Rimon Xu
2022-07-07 14:35:37 +08:00
committed by Herman Chen
parent d0a89e5c75
commit 25cbe2ce2e
7 changed files with 51 additions and 6 deletions

View File

@@ -106,3 +106,13 @@ RK_S32 axb_div_c(RK_S32 a, RK_S32 b, RK_S32 c)
(RK_U32)c * (RK_U32)b) >> shift) * sign;
}
}
RK_U32 mpp_align_16(RK_U32 val)
{
return MPP_ALIGN(val, 16);
}
RK_U32 mpp_align_64(RK_U32 val)
{
return MPP_ALIGN(val, 64);
}