mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 11:43:40 +00:00
media: venus: helpers: update NUM_MBS macro calculation
Consider alignment while calculating NUM_MBS. Co-developed-by: Mansur Alisha Shaik <mansur@codeaurora.org> Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org> Signed-off-by: Dikshita Agarwal <dikshita@codeaurora.org> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
6483a8cbea
commit
fa622c3df4
@ -18,8 +18,8 @@
|
||||
#include "hfi_platform.h"
|
||||
#include "hfi_parser.h"
|
||||
|
||||
#define NUM_MBS_720P (((1280 + 15) >> 4) * ((720 + 15) >> 4))
|
||||
#define NUM_MBS_4K (((4096 + 15) >> 4) * ((2304 + 15) >> 4))
|
||||
#define NUM_MBS_720P (((ALIGN(1280, 16)) >> 4) * ((ALIGN(736, 16)) >> 4))
|
||||
#define NUM_MBS_4K (((ALIGN(4096, 16)) >> 4) * ((ALIGN(2304, 16)) >> 4))
|
||||
|
||||
struct intbuf {
|
||||
struct list_head list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user