summaryrefslogtreecommitdiff
path: root/va
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-04-26 20:24:26 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2018-05-14 11:19:16 +0800
commite67bb436ab035f6f0c8019c2760d53b3ce3c526c (patch)
treee338140dddc6e103a80b167d9190805887852f72 /va
parent483bdcc82394943c16a54d2730f17c0c6577fa9b (diff)
downloadlibva-e67bb436ab035f6f0c8019c2760d53b3ce3c526c.tar.gz
Improve documentation for encode HRD parameters
Signed-off-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'va')
-rw-r--r--va/va.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/va/va.h b/va/va.h
index b898d9d..4b75942 100644
--- a/va/va.h
+++ b/va/va.h
@@ -2028,10 +2028,33 @@ typedef struct _VAEncMiscParameterRIR
uint32_t va_reserved[VA_PADDING_LOW];
} VAEncMiscParameterRIR;
+/** HRD / VBV buffering parameters for encoding.
+ *
+ * This sets the HRD / VBV parameters which will be used by the rate
+ * controller for encoding. It should be specified in modes using a bitrate
+ * target when the buffering of the output stream needs to be constrained.
+ *
+ * If not provided, the encoder may use arbitrary amounts of buffering.
+ */
typedef struct _VAEncMiscParameterHRD
{
- uint32_t initial_buffer_fullness; /* in bits */
- uint32_t buffer_size; /* in bits */
+ /** The initial fullness of the HRD coded picture buffer, in bits.
+ *
+ * This sets how full the CPB is when encoding begins - that is, how much
+ * buffering will happen on the decoder side before the first frame.
+ * The CPB fullness will be reset to this value after any rate control
+ * reset (a change in parameters or an explicit reset).
+ *
+ * For H.264, it should match the value of initial_cpb_removal_delay in
+ * buffering_period SEI messages.
+ */
+ uint32_t initial_buffer_fullness;
+ /** The HRD coded picture buffer size, in bits.
+ *
+ * For H.264, it should match the value of cpb_size_value_minus1 in the VUI
+ * parameters.
+ */
+ uint32_t buffer_size;
/** \brief Reserved bytes for future use, must be zero */
uint32_t va_reserved[VA_PADDING_LOW];