mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-07 02:51:33 +07:00
Fix the frame size alignments
am:50ad42cf93* commit '50ad42cf93': Fix the frame size alignments
This commit is contained in:
commit
4917993a7e
1 changed files with 4 additions and 4 deletions
|
|
@ -551,8 +551,8 @@ IHEVCD_ERROR_T ihevcd_pic_buf_mgr_add_bufs(codec_t *ps_codec)
|
|||
/* Initialize MV Bank buffer manager */
|
||||
ps_sps = ps_codec->s_parse.ps_sps;
|
||||
|
||||
pic_size = ps_sps->i2_pic_width_in_luma_samples *
|
||||
ps_sps->i2_pic_height_in_luma_samples;
|
||||
pic_size = ALIGN64(ps_sps->i2_pic_width_in_luma_samples) *
|
||||
ALIGN64(ps_sps->i2_pic_height_in_luma_samples);
|
||||
|
||||
|
||||
/* Compute the number of MB Bank buffers needed */
|
||||
|
|
@ -673,8 +673,8 @@ IHEVCD_ERROR_T ihevcd_mv_buf_mgr_add_bufs(codec_t *ps_codec)
|
|||
/* Compute the number of MB Bank buffers needed */
|
||||
level = ps_codec->i4_init_level;
|
||||
max_dpb_size = ihevcd_get_dpb_size(level,
|
||||
ps_sps->i2_pic_width_in_luma_samples *
|
||||
ps_sps->i2_pic_height_in_luma_samples);
|
||||
ALIGN64(ps_sps->i2_pic_width_in_luma_samples) *
|
||||
ALIGN64(ps_sps->i2_pic_height_in_luma_samples));
|
||||
|
||||
/* Allocate one extra MV Bank to handle current frame
|
||||
* In case of asynchronous parsing and processing, number of buffers should increase here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue