hardware/intel/libva
Revision | 564570925568911b36e984904fd702b2ea12d456 (tree) |
---|---|
Zeit | 2013-05-28 17:19:09 |
Autor | Gwenole Beauchesne <gwenole.beauchesne@inte...> |
Commiter | Xiang, Haihao |
API: h264 encode: add more explicit packed header types for H.264.
@@ -71,9 +71,44 @@ extern "C" { | ||
71 | 71 | * associated packed header data buffer shall contain the start code |
72 | 72 | * prefix 0x000001 followed by the complete NAL unit, thus also |
73 | 73 | * 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. | |
74 | 78 | */ |
75 | 79 | typedef enum { |
76 | 80 | /** |
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 | + /** | |
77 | 112 | * \brief Packed Supplemental Enhancement Information (SEI). |
78 | 113 | * |
79 | 114 | * The corresponding packed header data buffer shall contain the |
@@ -82,7 +117,7 @@ typedef enum { | ||
82 | 117 | * |
83 | 118 | * Note: packed \c nal_unit_type shall be equal to 6. |
84 | 119 | */ |
85 | - VAEncPackedHeaderH264_SEI = (VAEncPackedHeaderMiscMask | 1), | |
120 | + VAEncPackedHeaderH264_SEI = (VAEncPackedHeaderMiscMask | 1), | |
86 | 121 | } VAEncPackedHeaderTypeH264; |
87 | 122 | |
88 | 123 | /** |