summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2017-09-11 13:37:57 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-09-27 12:49:34 +0800
commitf4f44df92b8307a617c7dbc867c827339a7e5404 (patch)
treeb4af3b738b5d5621aa3fe9482a515105f6db4731
parentaa51288fefba208cb586d3433a604992cf807e0e (diff)
downloadlibva-f4f44df92b8307a617c7dbc867c827339a7e5404.tar.gz
Add or update the comment for num_ref_idx_{l0,l1}_default_active_minus1
Both AVC and HEVC APIs requires application set the right value for num_ref_idx_{l0,l1}_active_minus1 when num_ref_idx_active_override_flag is 0. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--va/va.h12
-rw-r--r--va/va_dec_hevc.h4
2 files changed, 14 insertions, 2 deletions
diff --git a/va/va.h b/va/va.h
index 9e56d07..13689ed 100644
--- a/va/va.h
+++ b/va/va.h
@@ -2132,7 +2132,19 @@ typedef struct _VASliceParameterBufferH264
uint16_t first_mb_in_slice;
uint8_t slice_type;
uint8_t direct_spatial_mv_pred_flag;
+ /**
+ * H264/AVC syntax element
+ *
+ * if num_ref_idx_active_override_flag equals 0, host decoder should
+ * set its value to num_ref_idx_l0_default_active_minus1.
+ */
uint8_t num_ref_idx_l0_active_minus1;
+ /**
+ * H264/AVC syntax element
+ *
+ * if num_ref_idx_active_override_flag equals 0, host decoder should
+ * set its value to num_ref_idx_l1_default_active_minus1.
+ */
uint8_t num_ref_idx_l1_active_minus1;
uint8_t cabac_init_idc;
int8_t slice_qp_delta;
diff --git a/va/va_dec_hevc.h b/va/va_dec_hevc.h
index a5ef8a3..3c10121 100644
--- a/va/va_dec_hevc.h
+++ b/va/va_dec_hevc.h
@@ -279,12 +279,12 @@ typedef struct _VASliceParameterBufferHEVC
uint8_t collocated_ref_idx;
/** HEVC syntax element.
* if num_ref_idx_active_override_flag equals 0, host decoder should
- * set its value to num_ref_idx_l0_default_minus1.
+ * set its value to num_ref_idx_l0_default_active_minus1.
*/
uint8_t num_ref_idx_l0_active_minus1;
/** HEVC syntax element.
* if num_ref_idx_active_override_flag equals 0, host decoder should
- * set its value to num_ref_idx_l1_default_minus1.
+ * set its value to num_ref_idx_l1_default_active_minus1.
*/
uint8_t num_ref_idx_l1_active_minus1;
/** HEVC syntax element. */