mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 10:00:55 +08:00
fix[mpp_common]: fix 128 odd plus 64 alignment
former commit:https://10.10.10.29/c/rk/mpp/+/213571 Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com> Change-Id: If09095891c1dfaa0663c01776ca4cb046ed4b24a
This commit is contained in:

committed by
Herman Chen

parent
22c3ff9b94
commit
2c2c3c4d53
@@ -129,5 +129,8 @@ RK_U32 mpp_align_256_odd(RK_U32 val)
|
||||
|
||||
RK_U32 mpp_align_128_odd_plus_64(RK_U32 val)
|
||||
{
|
||||
return ((MPP_ALIGN(val, 128) | 128) + 64);
|
||||
if (((val - 64) % 256 == 128))
|
||||
return val;
|
||||
else
|
||||
return ((MPP_ALIGN(val, 128) | 128) + 64);
|
||||
}
|
||||
|
Reference in New Issue
Block a user