Move slice increments after completing header parsing am: dc110841d6 am: 9ab629f2b2 am: 2a1fd9a360 am: d2fa8b5c63
Original change: 16407185
Change-Id: Ie41c10625378079aea94bd63438150a848d50943
This commit is contained in:
commit
eff1d4e7cb
1 changed files with 16 additions and 17 deletions
|
|
@ -1435,23 +1435,6 @@ WORD32 ih264d_parse_decode_slice(UWORD8 u1_is_idr_slice,
|
|||
i1_is_end_of_poc = 0;
|
||||
}
|
||||
|
||||
/* Increment only if the current slice has atleast 1 more MB */
|
||||
if (ps_dec->u4_first_slice_in_pic == 0 &&
|
||||
(ps_dec->ps_parse_cur_slice->u4_first_mb_in_slice <
|
||||
(UWORD32)(ps_dec->u2_total_mbs_coded >> ps_dec->ps_cur_slice->u1_mbaff_frame_flag)))
|
||||
{
|
||||
ps_dec->ps_parse_cur_slice++;
|
||||
ps_dec->u2_cur_slice_num++;
|
||||
// in the case of single core increment ps_decode_cur_slice
|
||||
if(ps_dec->u1_separate_parse == 0)
|
||||
{
|
||||
ps_dec->ps_decode_cur_slice++;
|
||||
}
|
||||
}
|
||||
|
||||
ps_dec->u1_slice_header_done = 0;
|
||||
|
||||
|
||||
if(u1_field_pic_flag)
|
||||
{
|
||||
ps_dec->u2_prv_frame_num = u2_frame_num;
|
||||
|
|
@ -1509,6 +1492,22 @@ WORD32 ih264d_parse_decode_slice(UWORD8 u1_is_idr_slice,
|
|||
}
|
||||
}
|
||||
|
||||
/* Increment only if the current slice has atleast 1 more MB */
|
||||
if (ps_dec->u4_first_slice_in_pic == 0 &&
|
||||
(ps_dec->ps_parse_cur_slice->u4_first_mb_in_slice <
|
||||
(UWORD32)(ps_dec->u2_total_mbs_coded >> ps_dec->ps_cur_slice->u1_mbaff_frame_flag)))
|
||||
{
|
||||
ps_dec->ps_parse_cur_slice++;
|
||||
ps_dec->u2_cur_slice_num++;
|
||||
// in the case of single core increment ps_decode_cur_slice
|
||||
if(ps_dec->u1_separate_parse == 0)
|
||||
{
|
||||
ps_dec->ps_decode_cur_slice++;
|
||||
}
|
||||
}
|
||||
|
||||
ps_dec->u1_slice_header_done = 0;
|
||||
|
||||
/*--------------------------------------------------------------------*/
|
||||
/* Copy the values read from the bitstream to the slice header and then*/
|
||||
/* If the slice is first slice in picture, then do Start of Picture */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue