aboutsummaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2019-08-14 16:39:22 -0700
committerWonsik Kim <wonsik@google.com>2019-09-11 00:25:25 -0700
commitc7bf85f8ae51e3a4e9ec0278d5ba8705d1be7bfe (patch)
tree956ae499f05ae09f6bfeb0e9ae3b87ce051d423e /decoder
parentb94861ee64d51ed90ae7d1ab7a4768cdfd69a86d (diff)
downloadlibhevc-c7bf85f8ae51e3a4e9ec0278d5ba8705d1be7bfe.tar.gz
Decoder: Add support for returning reorder_depth and display index
Bug: 138627015 Test: Verify reorder depth for few clips Change-Id: Idea3ae794e1a54e630e6ee1ca8a4594978a3c8a2
Diffstat (limited to 'decoder')
-rw-r--r--decoder/ihevcd_decode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/decoder/ihevcd_decode.c b/decoder/ihevcd_decode.c
index 1295687..16ed36b 100644
--- a/decoder/ihevcd_decode.c
+++ b/decoder/ihevcd_decode.c
@@ -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))