mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-16 22:06:46 +07:00
Decoder: Add support for returning reorder_depth and display index
am: c7bf85f8ae
Change-Id: Idc4cf03240921d539946863e0395ed7e6cf27a59
This commit is contained in:
commit
c9634afbf8
2 changed files with 16 additions and 1 deletions
11
common/ivd.h
11
common/ivd.h
|
|
@ -484,6 +484,17 @@ typedef struct {
|
|||
* disp_buf_id
|
||||
*/
|
||||
UWORD32 u4_disp_buf_id;
|
||||
|
||||
/**
|
||||
* reorder_depth
|
||||
*/
|
||||
WORD32 i4_reorder_depth;
|
||||
|
||||
/**
|
||||
* display index
|
||||
*/
|
||||
WORD32 i4_display_index;
|
||||
|
||||
}ivd_video_decode_op_t;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -207,6 +207,8 @@ static void ihevcd_fill_outargs(codec_t *ps_codec,
|
|||
|
||||
ps_dec_op->u4_output_present = 0;
|
||||
ps_dec_op->u4_progressive_frame_flag = 1;
|
||||
ps_dec_op->i4_display_index = -1;
|
||||
ps_dec_op->i4_reorder_depth = -1;
|
||||
if(ps_codec->i4_sps_done)
|
||||
{
|
||||
sps_t *ps_sps = (ps_codec->s_parse.ps_sps_base + ps_codec->i4_sps_id);
|
||||
|
|
@ -217,6 +219,8 @@ static void ihevcd_fill_outargs(codec_t *ps_codec,
|
|||
{
|
||||
ps_dec_op->u4_progressive_frame_flag = 0;
|
||||
}
|
||||
ps_dec_op->i4_reorder_depth =
|
||||
ps_sps->ai1_sps_max_num_reorder_pics[ps_sps->i1_sps_max_sub_layers - 1];
|
||||
}
|
||||
|
||||
ps_dec_op->u4_is_ref_flag = 1;
|
||||
|
|
@ -224,7 +228,6 @@ static void ihevcd_fill_outargs(codec_t *ps_codec,
|
|||
ps_dec_op->u4_is_ref_flag = 1;
|
||||
|
||||
ps_dec_op->e4_fld_type = IV_FLD_TYPE_DEFAULT;
|
||||
|
||||
ps_dec_op->u4_ts = (UWORD32)(-1);
|
||||
ps_dec_op->u4_disp_buf_id = ps_codec->i4_disp_buf_id;
|
||||
if(ps_codec->i4_flush_mode)
|
||||
|
|
@ -264,6 +267,7 @@ static void ihevcd_fill_outargs(codec_t *ps_codec,
|
|||
break;
|
||||
}
|
||||
}
|
||||
ps_dec_op->i4_display_index = ps_disp_buf->i4_abs_poc;
|
||||
ps_dec_op->u4_output_present = 1;
|
||||
ps_dec_op->u4_ts = ps_disp_buf->u4_ts;
|
||||
if((ps_codec->i4_flush_mode == 0) && (ps_codec->s_parse.i4_end_of_frame == 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue