• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revision564570925568911b36e984904fd702b2ea12d456 (tree)
Zeit2013-05-28 17:19:09
AutorGwenole Beauchesne <gwenole.beauchesne@inte...>
CommiterXiang, Haihao

Log Message

API: h264 encode: add more explicit packed header types for H.264.

Ändern Zusammenfassung

Diff

--- a/va/va_enc_h264.h
+++ b/va/va_enc_h264.h
@@ -71,9 +71,44 @@ extern "C" {
7171 * associated packed header data buffer shall contain the start code
7272 * prefix 0x000001 followed by the complete NAL unit, thus also
7373 * including the \c nal_unit_type.
74+ *
75+ * Note: the start code prefix can contain an arbitrary number of leading
76+ * zeros. The driver will skip them for emulation prevention bytes insertion,
77+ * if necessary.
7478 */
7579 typedef enum {
7680 /**
81+ * \brief Packed Sequence Parameter Set (SPS).
82+ *
83+ * The corresponding packed header data buffer shall contain the
84+ * complete seq_parameter_set_rbsp() syntax element.
85+ *
86+ * Note: packed \c nal_unit_type shall be equal to 7.
87+ */
88+ VAEncPackedHeaderH264_SPS = VAEncPackedHeaderSequence,
89+ /**
90+ * \brief Packed Picture Parameter Set (PPS).
91+ *
92+ * The corresponding packed header data buffer shall contain the
93+ * complete pic_parameter_set_rbsp() syntax element.
94+ *
95+ * Note: packed \c nal_unit_type shall be equal to 8.
96+ */
97+ VAEncPackedHeaderH264_PPS = VAEncPackedHeaderPicture,
98+ /**
99+ * \brief Packed slice header.
100+ *
101+ * The corresponding packed header data buffer shall contain the
102+ * \c slice_header() syntax element only, along with any start
103+ * code prefix and NAL unit type preceeding it. i.e. this means
104+ * that the buffer does not contain any of the \c slice_data() or
105+ * the \c rbsp_slice_trailing_bits().
106+ *
107+ * Note: packed \c nal_unit_type shall be equal to 1 (non-IDR
108+ * picture), or 5 (IDR picture).
109+ */
110+ VAEncPackedHeaderH264_Slice = VAEncPackedHeaderSlice,
111+ /**
77112 * \brief Packed Supplemental Enhancement Information (SEI).
78113 *
79114 * The corresponding packed header data buffer shall contain the
@@ -82,7 +117,7 @@ typedef enum {
82117 *
83118 * Note: packed \c nal_unit_type shall be equal to 6.
84119 */
85- VAEncPackedHeaderH264_SEI = (VAEncPackedHeaderMiscMask | 1),
120+ VAEncPackedHeaderH264_SEI = (VAEncPackedHeaderMiscMask | 1),
86121 } VAEncPackedHeaderTypeH264;
87122
88123 /**