mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 23:32:35 +07:00
Merge "Fix tile index buf alloc size" into lmp-dev
am: 4b9053c15c
Change-Id: If94227bf83556964569337503bae0b75feca7991
This commit is contained in:
commit
b1d1fad9f6
1 changed files with 4 additions and 3 deletions
|
|
@ -2283,10 +2283,11 @@ WORD32 ihevcd_fill_num_mem_rec(void *pv_api_ip, void *pv_api_op)
|
|||
{
|
||||
WORD32 size = 0;
|
||||
/* Max CTBs in a row */
|
||||
size = max_wd_luma / MIN_CTB_SIZE + 2 /* Top row and bottom row extra. This ensures accessing left,top in first row
|
||||
and right in last row will not result in invalid access*/;
|
||||
size = max_wd_luma / MIN_CTB_SIZE;
|
||||
|
||||
/* Max CTBs in a column */
|
||||
size *= max_ht_luma / MIN_CTB_SIZE;
|
||||
size *= (max_ht_luma / MIN_CTB_SIZE + 2) /* Top row and bottom row extra. This ensures accessing left,top in first row
|
||||
and right in last row will not result in invalid access*/;
|
||||
|
||||
size *= sizeof(UWORD16);
|
||||
ps_mem_rec->u4_mem_size = size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue