1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>GstH264Parser: GStreamer Bad Plugins 1.0 Library Reference Manual</title> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="index.html" title="GStreamer Bad Plugins 1.0 Library Reference Manual"> 8<link rel="up" href="codecparsers.html" title="Bitstream parsing Library"> 9<link rel="prev" href="codecparsers.html" title="Bitstream parsing Library"> 10<link rel="next" href="gst-plugins-bad-libs-jpegparser.html" title="GstJpegParser"> 11<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> 12<link rel="stylesheet" href="style.css" type="text/css"> 13</head> 14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> 16<td width="100%" align="left" class="shortcuts"> 17<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 18 <a href="#gst-plugins-bad-libs-h264parser.description" class="shortcut">Description</a></span> 19</td> 20<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 21<td><a accesskey="u" href="codecparsers.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 22<td><a accesskey="p" href="codecparsers.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 23<td><a accesskey="n" href="gst-plugins-bad-libs-jpegparser.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 24</tr></table> 25<div class="refentry"> 26<a name="gst-plugins-bad-libs-h264parser"></a><div class="titlepage"></div> 27<div class="refnamediv"><table width="100%"><tr> 28<td valign="top"> 29<h2><span class="refentrytitle"><a name="gst-plugins-bad-libs-h264parser.top_of_page"></a>GstH264Parser</span></h2> 30<p>GstH264Parser — Convenience library for h264 video 31bitstream parsing.</p> 32</td> 33<td class="gallery_image" valign="top" align="right"></td> 34</tr></table></div> 35<div class="refsect1"> 36<a name="gst-plugins-bad-libs-h264parser.functions"></a><h2>Functions</h2> 37<div class="informaltable"><table class="informaltable" width="100%" border="0"> 38<colgroup> 39<col width="150px" class="functions_return"> 40<col class="functions_name"> 41</colgroup> 42<tbody> 43<tr> 44<td class="define_keyword">#define</td> 45<td class="function_name"> 46<a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-IS-P-SLICE:CAPS" title="GST_H264_IS_P_SLICE()">GST_H264_IS_P_SLICE</a><span class="c_punctuation">()</span> 47</td> 48</tr> 49<tr> 50<td class="define_keyword">#define</td> 51<td class="function_name"> 52<a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-IS-B-SLICE:CAPS" title="GST_H264_IS_B_SLICE()">GST_H264_IS_B_SLICE</a><span class="c_punctuation">()</span> 53</td> 54</tr> 55<tr> 56<td class="define_keyword">#define</td> 57<td class="function_name"> 58<a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-IS-I-SLICE:CAPS" title="GST_H264_IS_I_SLICE()">GST_H264_IS_I_SLICE</a><span class="c_punctuation">()</span> 59</td> 60</tr> 61<tr> 62<td class="define_keyword">#define</td> 63<td class="function_name"> 64<a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-IS-SP-SLICE:CAPS" title="GST_H264_IS_SP_SLICE()">GST_H264_IS_SP_SLICE</a><span class="c_punctuation">()</span> 65</td> 66</tr> 67<tr> 68<td class="define_keyword">#define</td> 69<td class="function_name"> 70<a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-IS-SI-SLICE:CAPS" title="GST_H264_IS_SI_SLICE()">GST_H264_IS_SI_SLICE</a><span class="c_punctuation">()</span> 71</td> 72</tr> 73<tr> 74<td class="function_type"> 75<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 76</td> 77<td class="function_name"> 78<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-identify-nalu" title="gst_h264_parser_identify_nalu ()">gst_h264_parser_identify_nalu</a> <span class="c_punctuation">()</span> 79</td> 80</tr> 81<tr> 82<td class="function_type"> 83<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 84</td> 85<td class="function_name"> 86<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-identify-nalu-avc" title="gst_h264_parser_identify_nalu_avc ()">gst_h264_parser_identify_nalu_avc</a> <span class="c_punctuation">()</span> 87</td> 88</tr> 89<tr> 90<td class="function_type"> 91<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 92</td> 93<td class="function_name"> 94<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-nal" title="gst_h264_parser_parse_nal ()">gst_h264_parser_parse_nal</a> <span class="c_punctuation">()</span> 95</td> 96</tr> 97<tr> 98<td class="function_type"> 99<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 100</td> 101<td class="function_name"> 102<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-slice-hdr" title="gst_h264_parser_parse_slice_hdr ()">gst_h264_parser_parse_slice_hdr</a> <span class="c_punctuation">()</span> 103</td> 104</tr> 105<tr> 106<td class="function_type"> 107<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 108</td> 109<td class="function_name"> 110<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-sps" title="gst_h264_parser_parse_sps ()">gst_h264_parser_parse_sps</a> <span class="c_punctuation">()</span> 111</td> 112</tr> 113<tr> 114<td class="function_type"> 115<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 116</td> 117<td class="function_name"> 118<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-pps" title="gst_h264_parser_parse_pps ()">gst_h264_parser_parse_pps</a> <span class="c_punctuation">()</span> 119</td> 120</tr> 121<tr> 122<td class="function_type"> 123<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 124</td> 125<td class="function_name"> 126<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-sei" title="gst_h264_parser_parse_sei ()">gst_h264_parser_parse_sei</a> <span class="c_punctuation">()</span> 127</td> 128</tr> 129<tr> 130<td class="function_type"> 131<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="returnvalue">GstH264NalParser</span></a> * 132</td> 133<td class="function_name"> 134<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-nal-parser-new" title="gst_h264_nal_parser_new ()">gst_h264_nal_parser_new</a> <span class="c_punctuation">()</span> 135</td> 136</tr> 137<tr> 138<td class="function_type"> 139<span class="returnvalue">void</span> 140</td> 141<td class="function_name"> 142<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-nal-parser-free" title="gst_h264_nal_parser_free ()">gst_h264_nal_parser_free</a> <span class="c_punctuation">()</span> 143</td> 144</tr> 145<tr> 146<td class="function_type"> 147<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 148</td> 149<td class="function_name"> 150<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parse-sps" title="gst_h264_parse_sps ()">gst_h264_parse_sps</a> <span class="c_punctuation">()</span> 151</td> 152</tr> 153<tr> 154<td class="function_type"> 155<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 156</td> 157<td class="function_name"> 158<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parse-pps" title="gst_h264_parse_pps ()">gst_h264_parse_pps</a> <span class="c_punctuation">()</span> 159</td> 160</tr> 161<tr> 162<td class="function_type"> 163<span class="returnvalue">void</span> 164</td> 165<td class="function_name"> 166<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-pps-clear" title="gst_h264_pps_clear ()">gst_h264_pps_clear</a> <span class="c_punctuation">()</span> 167</td> 168</tr> 169<tr> 170<td class="function_type"> 171<span class="returnvalue">void</span> 172</td> 173<td class="function_name"> 174<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-quant-matrix-8x8-get-zigzag-from-raster" title="gst_h264_quant_matrix_8x8_get_zigzag_from_raster ()">gst_h264_quant_matrix_8x8_get_zigzag_from_raster</a> <span class="c_punctuation">()</span> 175</td> 176</tr> 177<tr> 178<td class="function_type"> 179<span class="returnvalue">void</span> 180</td> 181<td class="function_name"> 182<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-quant-matrix-8x8-get-raster-from-zigzag" title="gst_h264_quant_matrix_8x8_get_raster_from_zigzag ()">gst_h264_quant_matrix_8x8_get_raster_from_zigzag</a> <span class="c_punctuation">()</span> 183</td> 184</tr> 185<tr> 186<td class="function_type"> 187<span class="returnvalue">void</span> 188</td> 189<td class="function_name"> 190<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-quant-matrix-4x4-get-zigzag-from-raster" title="gst_h264_quant_matrix_4x4_get_zigzag_from_raster ()">gst_h264_quant_matrix_4x4_get_zigzag_from_raster</a> <span class="c_punctuation">()</span> 191</td> 192</tr> 193<tr> 194<td class="function_type"> 195<span class="returnvalue">void</span> 196</td> 197<td class="function_name"> 198<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-quant-matrix-4x4-get-raster-from-zigzag" title="gst_h264_quant_matrix_4x4_get_raster_from_zigzag ()">gst_h264_quant_matrix_4x4_get_raster_from_zigzag</a> <span class="c_punctuation">()</span> 199</td> 200</tr> 201<tr> 202<td class="function_type"> 203<span class="returnvalue">void</span> 204</td> 205<td class="function_name"> 206<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-video-calculate-framerate" title="gst_h264_video_calculate_framerate ()">gst_h264_video_calculate_framerate</a> <span class="c_punctuation">()</span> 207</td> 208</tr> 209</tbody> 210</table></div> 211</div> 212<div class="refsect1"> 213<a name="gst-plugins-bad-libs-h264parser.other"></a><h2>Types and Values</h2> 214<div class="informaltable"><table class="informaltable" width="100%" border="0"> 215<colgroup> 216<col width="150px" class="name"> 217<col class="description"> 218</colgroup> 219<tbody> 220<tr> 221<td class="define_keyword">#define</td> 222<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-MAX-SPS-COUNT:CAPS" title="GST_H264_MAX_SPS_COUNT">GST_H264_MAX_SPS_COUNT</a></td> 223</tr> 224<tr> 225<td class="define_keyword">#define</td> 226<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-MAX-PPS-COUNT:CAPS" title="GST_H264_MAX_PPS_COUNT">GST_H264_MAX_PPS_COUNT</a></td> 227</tr> 228<tr> 229<td class="datatype_keyword">enum</td> 230<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnitType" title="enum GstH264NalUnitType">GstH264NalUnitType</a></td> 231</tr> 232<tr> 233<td class="datatype_keyword">enum</td> 234<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult">GstH264ParserResult</a></td> 235</tr> 236<tr> 237<td class="datatype_keyword">enum</td> 238<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SEIPayloadType" title="enum GstH264SEIPayloadType">GstH264SEIPayloadType</a></td> 239</tr> 240<tr> 241<td class="datatype_keyword">enum</td> 242<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SEIPicStructType" title="enum GstH264SEIPicStructType">GstH264SEIPicStructType</a></td> 243</tr> 244<tr> 245<td class="datatype_keyword">enum</td> 246<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SliceType" title="enum GstH264SliceType">GstH264SliceType</a></td> 247</tr> 248<tr> 249<td class="datatype_keyword">struct</td> 250<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser">GstH264NalParser</a></td> 251</tr> 252<tr> 253<td class="datatype_keyword">struct</td> 254<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit">GstH264NalUnit</a></td> 255</tr> 256<tr> 257<td class="datatype_keyword">struct</td> 258<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SPS" title="struct GstH264SPS">GstH264SPS</a></td> 259</tr> 260<tr> 261<td class="datatype_keyword">struct</td> 262<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PPS" title="struct GstH264PPS">GstH264PPS</a></td> 263</tr> 264<tr> 265<td class="datatype_keyword">struct</td> 266<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264HRDParams" title="struct GstH264HRDParams">GstH264HRDParams</a></td> 267</tr> 268<tr> 269<td class="datatype_keyword">struct</td> 270<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264VUIParams" title="struct GstH264VUIParams">GstH264VUIParams</a></td> 271</tr> 272<tr> 273<td class="datatype_keyword">struct</td> 274<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264DecRefPicMarking" title="struct GstH264DecRefPicMarking">GstH264DecRefPicMarking</a></td> 275</tr> 276<tr> 277<td class="datatype_keyword">struct</td> 278<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264RefPicMarking" title="struct GstH264RefPicMarking">GstH264RefPicMarking</a></td> 279</tr> 280<tr> 281<td class="datatype_keyword">struct</td> 282<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PredWeightTable" title="struct GstH264PredWeightTable">GstH264PredWeightTable</a></td> 283</tr> 284<tr> 285<td class="datatype_keyword">struct</td> 286<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SliceHdr" title="struct GstH264SliceHdr">GstH264SliceHdr</a></td> 287</tr> 288<tr> 289<td class="datatype_keyword">struct</td> 290<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ClockTimestamp" title="struct GstH264ClockTimestamp">GstH264ClockTimestamp</a></td> 291</tr> 292<tr> 293<td class="datatype_keyword">struct</td> 294<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PicTiming" title="struct GstH264PicTiming">GstH264PicTiming</a></td> 295</tr> 296<tr> 297<td class="datatype_keyword">struct</td> 298<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264BufferingPeriod" title="struct GstH264BufferingPeriod">GstH264BufferingPeriod</a></td> 299</tr> 300<tr> 301<td class="datatype_keyword">struct</td> 302<td class="function_name"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SEIMessage" title="struct GstH264SEIMessage">GstH264SEIMessage</a></td> 303</tr> 304</tbody> 305</table></div> 306</div> 307<div class="refsect1"> 308<a name="gst-plugins-bad-libs-h264parser.includes"></a><h2>Includes</h2> 309<pre class="synopsis">#include <gst/codecparsers/gsth264parser.h> 310</pre> 311</div> 312<div class="refsect1"> 313<a name="gst-plugins-bad-libs-h264parser.description"></a><h2>Description</h2> 314<p>It offers bitstream parsing in both AVC (length-prefixed) and Annex B 315(0x000001 start code prefix) format. To identify a NAL unit in a bitstream 316and parse its headers, first call:</p> 317<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 318<li class="listitem"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-identify-nalu" title="gst_h264_parser_identify_nalu ()"><span class="type">gst_h264_parser_identify_nalu</span></a> to identify a NAL unit in an Annex B type bitstream</p></li> 319<li class="listitem"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-identify-nalu-avc" title="gst_h264_parser_identify_nalu_avc ()"><span class="type">gst_h264_parser_identify_nalu_avc</span></a> to identify a NAL unit in an AVC type bitstream</p></li> 320</ul></div> 321<p>The following functions are then available for parsing the structure of the 322<a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a>, depending on the <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnitType" title="enum GstH264NalUnitType"><span class="type">GstH264NalUnitType</span></a>:</p> 323<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 324<li class="listitem"><p>From <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SLICE:CAPS"><span class="type">GST_H264_NAL_SLICE</span></a> to <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SLICE-IDR:CAPS"><span class="type">GST_H264_NAL_SLICE_IDR</span></a>: <a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-slice-hdr" title="gst_h264_parser_parse_slice_hdr ()"><span class="type">gst_h264_parser_parse_slice_hdr</span></a></p></li> 325<li class="listitem"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SEI:CAPS"><span class="type">GST_H264_NAL_SEI</span></a>: <a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-sei" title="gst_h264_parser_parse_sei ()"><span class="type">gst_h264_parser_parse_sei</span></a></p></li> 326<li class="listitem"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SPS:CAPS"><span class="type">GST_H264_NAL_SPS</span></a>: <a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-sps" title="gst_h264_parser_parse_sps ()"><span class="type">gst_h264_parser_parse_sps</span></a></p></li> 327<li class="listitem"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-PPS:CAPS"><span class="type">GST_H264_NAL_PPS</span></a>: <a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-pps" title="gst_h264_parser_parse_pps ()"><span class="type">gst_h264_parser_parse_pps</span></a></p></li> 328<li class="listitem"><p>Any other: <a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-nal" title="gst_h264_parser_parse_nal ()"><span class="type">gst_h264_parser_parse_nal</span></a></p></li> 329</ul></div> 330<p>One of these functions *must* be called on every NAL unit in the bitstream, 331in order to keep the internal structures of the <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> up to 332date. It is legal to call <a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-parser-parse-nal" title="gst_h264_parser_parse_nal ()"><span class="type">gst_h264_parser_parse_nal</span></a> on NAL units of any 333type, if no special parsing of the current NAL unit is required by the 334application.</p> 335<p>For more details about the structures, look at the ITU-T H.264 and ISO/IEC 14496-10 – MPEG-4 336Part 10 specifications, available at:</p> 337<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 338<li class="listitem"><p>ITU-T H.264: http://www.itu.int/rec/T-REC-H.264</p></li> 339<li class="listitem"><p>ISO/IEC 14496-10: http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=56538</p></li> 340</ul></div> 341</div> 342<div class="refsect1"> 343<a name="gst-plugins-bad-libs-h264parser.functions_details"></a><h2>Functions</h2> 344<div class="refsect2"> 345<a name="GST-H264-IS-P-SLICE:CAPS"></a><h3>GST_H264_IS_P_SLICE()</h3> 346<pre class="programlisting">#define GST_H264_IS_P_SLICE(slice) (((slice)->type % 5) == GST_H264_P_SLICE) 347</pre> 348</div> 349<hr> 350<div class="refsect2"> 351<a name="GST-H264-IS-B-SLICE:CAPS"></a><h3>GST_H264_IS_B_SLICE()</h3> 352<pre class="programlisting">#define GST_H264_IS_B_SLICE(slice) (((slice)->type % 5) == GST_H264_B_SLICE) 353</pre> 354</div> 355<hr> 356<div class="refsect2"> 357<a name="GST-H264-IS-I-SLICE:CAPS"></a><h3>GST_H264_IS_I_SLICE()</h3> 358<pre class="programlisting">#define GST_H264_IS_I_SLICE(slice) (((slice)->type % 5) == GST_H264_I_SLICE) 359</pre> 360</div> 361<hr> 362<div class="refsect2"> 363<a name="GST-H264-IS-SP-SLICE:CAPS"></a><h3>GST_H264_IS_SP_SLICE()</h3> 364<pre class="programlisting">#define GST_H264_IS_SP_SLICE(slice) (((slice)->type % 5) == GST_H264_SP_SLICE) 365</pre> 366</div> 367<hr> 368<div class="refsect2"> 369<a name="GST-H264-IS-SI-SLICE:CAPS"></a><h3>GST_H264_IS_SI_SLICE()</h3> 370<pre class="programlisting">#define GST_H264_IS_SI_SLICE(slice) (((slice)->type % 5) == GST_H264_SI_SLICE) 371</pre> 372</div> 373<hr> 374<div class="refsect2"> 375<a name="gst-h264-parser-identify-nalu"></a><h3>gst_h264_parser_identify_nalu ()</h3> 376<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 377gst_h264_parser_identify_nalu (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 378 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>, 379 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> offset</code></em>, 380 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>, 381 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>);</pre> 382<p>Parses the headers of an Annex B coded NAL unit from <em class="parameter"><code>data</code></em> 383 and puts the 384result into <em class="parameter"><code>nalu</code></em> 385.</p> 386<div class="refsect3"> 387<a name="gst-h264-parser-identify-nalu.parameters"></a><h4>Parameters</h4> 388<div class="informaltable"><table class="informaltable" width="100%" border="0"> 389<colgroup> 390<col width="150px" class="parameters_name"> 391<col class="parameters_description"> 392<col width="200px" class="parameters_annotations"> 393</colgroup> 394<tbody> 395<tr> 396<td class="parameter_name"><p>nalparser</p></td> 397<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 398<td class="parameter_annotations"> </td> 399</tr> 400<tr> 401<td class="parameter_name"><p>data</p></td> 402<td class="parameter_description"><p>The data to parse, containing an Annex B coded NAL unit</p></td> 403<td class="parameter_annotations"> </td> 404</tr> 405<tr> 406<td class="parameter_name"><p>offset</p></td> 407<td class="parameter_description"><p>the offset in <em class="parameter"><code>data</code></em> 408from which to parse the NAL unit</p></td> 409<td class="parameter_annotations"> </td> 410</tr> 411<tr> 412<td class="parameter_name"><p>size</p></td> 413<td class="parameter_description"><p>the size of <em class="parameter"><code>data</code></em> 414</p></td> 415<td class="parameter_annotations"> </td> 416</tr> 417<tr> 418<td class="parameter_name"><p>nalu</p></td> 419<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to store the identified NAL unit in</p></td> 420<td class="parameter_annotations"> </td> 421</tr> 422</tbody> 423</table></div> 424</div> 425<div class="refsect3"> 426<a name="gst-h264-parser-identify-nalu.returns"></a><h4>Returns</h4> 427<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 428</div> 429</div> 430<hr> 431<div class="refsect2"> 432<a name="gst-h264-parser-identify-nalu-avc"></a><h3>gst_h264_parser_identify_nalu_avc ()</h3> 433<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 434gst_h264_parser_identify_nalu_avc (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 435 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>, 436 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> offset</code></em>, 437 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>, 438 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> nal_length_size</code></em>, 439 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>);</pre> 440<p>Parses the headers of an AVC coded NAL unit from <em class="parameter"><code>data</code></em> 441 and puts the result 442into <em class="parameter"><code>nalu</code></em> 443.</p> 444<div class="refsect3"> 445<a name="gst-h264-parser-identify-nalu-avc.parameters"></a><h4>Parameters</h4> 446<div class="informaltable"><table class="informaltable" width="100%" border="0"> 447<colgroup> 448<col width="150px" class="parameters_name"> 449<col class="parameters_description"> 450<col width="200px" class="parameters_annotations"> 451</colgroup> 452<tbody> 453<tr> 454<td class="parameter_name"><p>nalparser</p></td> 455<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 456<td class="parameter_annotations"> </td> 457</tr> 458<tr> 459<td class="parameter_name"><p>data</p></td> 460<td class="parameter_description"><p>The data to parse, containing an AVC coded NAL unit</p></td> 461<td class="parameter_annotations"> </td> 462</tr> 463<tr> 464<td class="parameter_name"><p>offset</p></td> 465<td class="parameter_description"><p>the offset in <em class="parameter"><code>data</code></em> 466from which to parse the NAL unit</p></td> 467<td class="parameter_annotations"> </td> 468</tr> 469<tr> 470<td class="parameter_name"><p>size</p></td> 471<td class="parameter_description"><p>the size of <em class="parameter"><code>data</code></em> 472</p></td> 473<td class="parameter_annotations"> </td> 474</tr> 475<tr> 476<td class="parameter_name"><p>nal_length_size</p></td> 477<td class="parameter_description"><p>the size in bytes of the AVC nal length prefix.</p></td> 478<td class="parameter_annotations"> </td> 479</tr> 480<tr> 481<td class="parameter_name"><p>nalu</p></td> 482<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to store the identified NAL unit in</p></td> 483<td class="parameter_annotations"> </td> 484</tr> 485</tbody> 486</table></div> 487</div> 488<div class="refsect3"> 489<a name="gst-h264-parser-identify-nalu-avc.returns"></a><h4>Returns</h4> 490<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 491</div> 492</div> 493<hr> 494<div class="refsect2"> 495<a name="gst-h264-parser-parse-nal"></a><h3>gst_h264_parser_parse_nal ()</h3> 496<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 497gst_h264_parser_parse_nal (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 498 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>);</pre> 499<p>This function should be called in the case one doesn't need to 500parse a specific structure. It is necessary to do so to make 501sure <em class="parameter"><code>nalparser</code></em> 502 is up to date.</p> 503<div class="refsect3"> 504<a name="gst-h264-parser-parse-nal.parameters"></a><h4>Parameters</h4> 505<div class="informaltable"><table class="informaltable" width="100%" border="0"> 506<colgroup> 507<col width="150px" class="parameters_name"> 508<col class="parameters_description"> 509<col width="200px" class="parameters_annotations"> 510</colgroup> 511<tbody> 512<tr> 513<td class="parameter_name"><p>nalparser</p></td> 514<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 515<td class="parameter_annotations"> </td> 516</tr> 517<tr> 518<td class="parameter_name"><p>nalu</p></td> 519<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to parse</p></td> 520<td class="parameter_annotations"> </td> 521</tr> 522</tbody> 523</table></div> 524</div> 525<div class="refsect3"> 526<a name="gst-h264-parser-parse-nal.returns"></a><h4>Returns</h4> 527<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 528</div> 529</div> 530<hr> 531<div class="refsect2"> 532<a name="gst-h264-parser-parse-slice-hdr"></a><h3>gst_h264_parser_parse_slice_hdr ()</h3> 533<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 534gst_h264_parser_parse_slice_hdr (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 535 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>, 536 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SliceHdr" title="struct GstH264SliceHdr"><span class="type">GstH264SliceHdr</span></a> *slice</code></em>, 537 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> parse_pred_weight_table</code></em>, 538 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> parse_dec_ref_pic_marking</code></em>);</pre> 539<p>Parses <em class="parameter"><code>nalu</code></em> 540 containing a coded slice, and fills <em class="parameter"><code>slice</code></em> 541.</p> 542<div class="refsect3"> 543<a name="gst-h264-parser-parse-slice-hdr.parameters"></a><h4>Parameters</h4> 544<div class="informaltable"><table class="informaltable" width="100%" border="0"> 545<colgroup> 546<col width="150px" class="parameters_name"> 547<col class="parameters_description"> 548<col width="200px" class="parameters_annotations"> 549</colgroup> 550<tbody> 551<tr> 552<td class="parameter_name"><p>nalparser</p></td> 553<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 554<td class="parameter_annotations"> </td> 555</tr> 556<tr> 557<td class="parameter_name"><p>nalu</p></td> 558<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SLICE:CAPS"><span class="type">GST_H264_NAL_SLICE</span></a> to <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SLICE-IDR:CAPS"><span class="type">GST_H264_NAL_SLICE_IDR</span></a> <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to parse</p></td> 559<td class="parameter_annotations"> </td> 560</tr> 561<tr> 562<td class="parameter_name"><p>slice</p></td> 563<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SliceHdr" title="struct GstH264SliceHdr"><span class="type">GstH264SliceHdr</span></a> to fill.</p></td> 564<td class="parameter_annotations"> </td> 565</tr> 566<tr> 567<td class="parameter_name"><p>parse_pred_weight_table</p></td> 568<td class="parameter_description"><p>Whether to parse the pred_weight_table or not</p></td> 569<td class="parameter_annotations"> </td> 570</tr> 571<tr> 572<td class="parameter_name"><p>parse_dec_ref_pic_marking</p></td> 573<td class="parameter_description"><p>Whether to parse the dec_ref_pic_marking or not</p></td> 574<td class="parameter_annotations"> </td> 575</tr> 576</tbody> 577</table></div> 578</div> 579<div class="refsect3"> 580<a name="gst-h264-parser-parse-slice-hdr.returns"></a><h4>Returns</h4> 581<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 582</div> 583</div> 584<hr> 585<div class="refsect2"> 586<a name="gst-h264-parser-parse-sps"></a><h3>gst_h264_parser_parse_sps ()</h3> 587<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 588gst_h264_parser_parse_sps (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 589 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>, 590 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SPS" title="struct GstH264SPS"><span class="type">GstH264SPS</span></a> *sps</code></em>, 591 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> parse_vui_params</code></em>);</pre> 592<p>Parses <em class="parameter"><code>nalu</code></em> 593 containing a Sequence Parameter Set, and fills <em class="parameter"><code>sps</code></em> 594.</p> 595<div class="refsect3"> 596<a name="gst-h264-parser-parse-sps.parameters"></a><h4>Parameters</h4> 597<div class="informaltable"><table class="informaltable" width="100%" border="0"> 598<colgroup> 599<col width="150px" class="parameters_name"> 600<col class="parameters_description"> 601<col width="200px" class="parameters_annotations"> 602</colgroup> 603<tbody> 604<tr> 605<td class="parameter_name"><p>nalparser</p></td> 606<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 607<td class="parameter_annotations"> </td> 608</tr> 609<tr> 610<td class="parameter_name"><p>nalu</p></td> 611<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SPS:CAPS"><span class="type">GST_H264_NAL_SPS</span></a> <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to parse</p></td> 612<td class="parameter_annotations"> </td> 613</tr> 614<tr> 615<td class="parameter_name"><p>sps</p></td> 616<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SPS" title="struct GstH264SPS"><span class="type">GstH264SPS</span></a> to fill.</p></td> 617<td class="parameter_annotations"> </td> 618</tr> 619<tr> 620<td class="parameter_name"><p>parse_vui_params</p></td> 621<td class="parameter_description"><p>Whether to parse the vui_params or not</p></td> 622<td class="parameter_annotations"> </td> 623</tr> 624</tbody> 625</table></div> 626</div> 627<div class="refsect3"> 628<a name="gst-h264-parser-parse-sps.returns"></a><h4>Returns</h4> 629<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 630</div> 631</div> 632<hr> 633<div class="refsect2"> 634<a name="gst-h264-parser-parse-pps"></a><h3>gst_h264_parser_parse_pps ()</h3> 635<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 636gst_h264_parser_parse_pps (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 637 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>, 638 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PPS" title="struct GstH264PPS"><span class="type">GstH264PPS</span></a> *pps</code></em>);</pre> 639<p>Parses <em class="parameter"><code>nalu</code></em> 640 containing a Picture Parameter Set, and fills <em class="parameter"><code>pps</code></em> 641.</p> 642<p>The resulting <em class="parameter"><code>pps</code></em> 643 data structure must be deallocated by the caller using 644<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-pps-clear" title="gst_h264_pps_clear ()"><code class="function">gst_h264_pps_clear()</code></a>.</p> 645<div class="refsect3"> 646<a name="gst-h264-parser-parse-pps.parameters"></a><h4>Parameters</h4> 647<div class="informaltable"><table class="informaltable" width="100%" border="0"> 648<colgroup> 649<col width="150px" class="parameters_name"> 650<col class="parameters_description"> 651<col width="200px" class="parameters_annotations"> 652</colgroup> 653<tbody> 654<tr> 655<td class="parameter_name"><p>nalparser</p></td> 656<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 657<td class="parameter_annotations"> </td> 658</tr> 659<tr> 660<td class="parameter_name"><p>nalu</p></td> 661<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-PPS:CAPS"><span class="type">GST_H264_NAL_PPS</span></a> <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to parse</p></td> 662<td class="parameter_annotations"> </td> 663</tr> 664<tr> 665<td class="parameter_name"><p>pps</p></td> 666<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PPS" title="struct GstH264PPS"><span class="type">GstH264PPS</span></a> to fill.</p></td> 667<td class="parameter_annotations"> </td> 668</tr> 669</tbody> 670</table></div> 671</div> 672<div class="refsect3"> 673<a name="gst-h264-parser-parse-pps.returns"></a><h4>Returns</h4> 674<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 675</div> 676</div> 677<hr> 678<div class="refsect2"> 679<a name="gst-h264-parser-parse-sei"></a><h3>gst_h264_parser_parse_sei ()</h3> 680<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 681gst_h264_parser_parse_sei (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 682 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>, 683 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Arrays.html#GArray"><span class="type">GArray</span></a> **messages</code></em>);</pre> 684<p>Parses <em class="parameter"><code>nalu</code></em> 685 containing one or more Supplementary Enhancement Information messages, 686and allocates and fills the <em class="parameter"><code>messages</code></em> 687 array.</p> 688<div class="refsect3"> 689<a name="gst-h264-parser-parse-sei.parameters"></a><h4>Parameters</h4> 690<div class="informaltable"><table class="informaltable" width="100%" border="0"> 691<colgroup> 692<col width="150px" class="parameters_name"> 693<col class="parameters_description"> 694<col width="200px" class="parameters_annotations"> 695</colgroup> 696<tbody> 697<tr> 698<td class="parameter_name"><p>nalparser</p></td> 699<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 700<td class="parameter_annotations"> </td> 701</tr> 702<tr> 703<td class="parameter_name"><p>nalu</p></td> 704<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SEI:CAPS"><span class="type">GST_H264_NAL_SEI</span></a> <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to parse</p></td> 705<td class="parameter_annotations"> </td> 706</tr> 707<tr> 708<td class="parameter_name"><p>messages</p></td> 709<td class="parameter_description"><p>The GArray of <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SEIMessage" title="struct GstH264SEIMessage"><span class="type">GstH264SEIMessage</span></a> to fill. The caller must free it when done.</p></td> 710<td class="parameter_annotations"> </td> 711</tr> 712</tbody> 713</table></div> 714</div> 715<div class="refsect3"> 716<a name="gst-h264-parser-parse-sei.returns"></a><h4>Returns</h4> 717<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 718</div> 719</div> 720<hr> 721<div class="refsect2"> 722<a name="gst-h264-nal-parser-new"></a><h3>gst_h264_nal_parser_new ()</h3> 723<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="returnvalue">GstH264NalParser</span></a> * 724gst_h264_nal_parser_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> 725<p>Creates a new <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a>. It should be freed with 726gst_h264_nal_parser_free after use.</p> 727<div class="refsect3"> 728<a name="gst-h264-nal-parser-new.returns"></a><h4>Returns</h4> 729<p> a new <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p> 730</div> 731</div> 732<hr> 733<div class="refsect2"> 734<a name="gst-h264-nal-parser-free"></a><h3>gst_h264_nal_parser_free ()</h3> 735<pre class="programlisting"><span class="returnvalue">void</span> 736gst_h264_nal_parser_free (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>);</pre> 737<p>Frees <em class="parameter"><code>nalparser</code></em> 738 and sets it to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p> 739<div class="refsect3"> 740<a name="gst-h264-nal-parser-free.parameters"></a><h4>Parameters</h4> 741<div class="informaltable"><table class="informaltable" width="100%" border="0"> 742<colgroup> 743<col width="150px" class="parameters_name"> 744<col class="parameters_description"> 745<col width="200px" class="parameters_annotations"> 746</colgroup> 747<tbody><tr> 748<td class="parameter_name"><p>nalparser</p></td> 749<td class="parameter_description"><p>the <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> to free</p></td> 750<td class="parameter_annotations"> </td> 751</tr></tbody> 752</table></div> 753</div> 754</div> 755<hr> 756<div class="refsect2"> 757<a name="gst-h264-parse-sps"></a><h3>gst_h264_parse_sps ()</h3> 758<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 759gst_h264_parse_sps (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>, 760 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SPS" title="struct GstH264SPS"><span class="type">GstH264SPS</span></a> *sps</code></em>, 761 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> parse_vui_params</code></em>);</pre> 762<p>Parses <em class="parameter"><code>data</code></em> 763, and fills the <em class="parameter"><code>sps</code></em> 764 structure.</p> 765<div class="refsect3"> 766<a name="gst-h264-parse-sps.parameters"></a><h4>Parameters</h4> 767<div class="informaltable"><table class="informaltable" width="100%" border="0"> 768<colgroup> 769<col width="150px" class="parameters_name"> 770<col class="parameters_description"> 771<col width="200px" class="parameters_annotations"> 772</colgroup> 773<tbody> 774<tr> 775<td class="parameter_name"><p>nalu</p></td> 776<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-SPS:CAPS"><span class="type">GST_H264_NAL_SPS</span></a> <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to parse</p></td> 777<td class="parameter_annotations"> </td> 778</tr> 779<tr> 780<td class="parameter_name"><p>sps</p></td> 781<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SPS" title="struct GstH264SPS"><span class="type">GstH264SPS</span></a> to fill.</p></td> 782<td class="parameter_annotations"> </td> 783</tr> 784<tr> 785<td class="parameter_name"><p>parse_vui_params</p></td> 786<td class="parameter_description"><p>Whether to parse the vui_params or not</p></td> 787<td class="parameter_annotations"> </td> 788</tr> 789</tbody> 790</table></div> 791</div> 792<div class="refsect3"> 793<a name="gst-h264-parse-sps.returns"></a><h4>Returns</h4> 794<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 795</div> 796</div> 797<hr> 798<div class="refsect2"> 799<a name="gst-h264-parse-pps"></a><h3>gst_h264_parse_pps ()</h3> 800<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="returnvalue">GstH264ParserResult</span></a> 801gst_h264_parse_pps (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a> *nalparser</code></em>, 802 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> *nalu</code></em>, 803 <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PPS" title="struct GstH264PPS"><span class="type">GstH264PPS</span></a> *pps</code></em>);</pre> 804<p>Parses <em class="parameter"><code>data</code></em> 805, and fills the <em class="parameter"><code>pps</code></em> 806 structure.</p> 807<p>The resulting <em class="parameter"><code>pps</code></em> 808 data structure shall be deallocated with the 809<a class="link" href="gst-plugins-bad-libs-h264parser.html#gst-h264-pps-clear" title="gst_h264_pps_clear ()"><code class="function">gst_h264_pps_clear()</code></a> function when it is no longer needed, or prior 810to parsing a new PPS NAL unit.</p> 811<div class="refsect3"> 812<a name="gst-h264-parse-pps.parameters"></a><h4>Parameters</h4> 813<div class="informaltable"><table class="informaltable" width="100%" border="0"> 814<colgroup> 815<col width="150px" class="parameters_name"> 816<col class="parameters_description"> 817<col width="200px" class="parameters_annotations"> 818</colgroup> 819<tbody> 820<tr> 821<td class="parameter_name"><p>nalparser</p></td> 822<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalParser" title="struct GstH264NalParser"><span class="type">GstH264NalParser</span></a></p></td> 823<td class="parameter_annotations"> </td> 824</tr> 825<tr> 826<td class="parameter_name"><p>nalu</p></td> 827<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-NAL-PPS:CAPS"><span class="type">GST_H264_NAL_PPS</span></a> <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnit" title="struct GstH264NalUnit"><span class="type">GstH264NalUnit</span></a> to parse</p></td> 828<td class="parameter_annotations"> </td> 829</tr> 830<tr> 831<td class="parameter_name"><p>pps</p></td> 832<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PPS" title="struct GstH264PPS"><span class="type">GstH264PPS</span></a> to fill.</p></td> 833<td class="parameter_annotations"> </td> 834</tr> 835</tbody> 836</table></div> 837</div> 838<div class="refsect3"> 839<a name="gst-h264-parse-pps.returns"></a><h4>Returns</h4> 840<p> a <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264ParserResult" title="enum GstH264ParserResult"><span class="type">GstH264ParserResult</span></a></p> 841</div> 842</div> 843<hr> 844<div class="refsect2"> 845<a name="gst-h264-pps-clear"></a><h3>gst_h264_pps_clear ()</h3> 846<pre class="programlisting"><span class="returnvalue">void</span> 847gst_h264_pps_clear (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PPS" title="struct GstH264PPS"><span class="type">GstH264PPS</span></a> *pps</code></em>);</pre> 848<p>Clears all <em class="parameter"><code>pps</code></em> 849 internal resources.</p> 850<div class="refsect3"> 851<a name="gst-h264-pps-clear.parameters"></a><h4>Parameters</h4> 852<div class="informaltable"><table class="informaltable" width="100%" border="0"> 853<colgroup> 854<col width="150px" class="parameters_name"> 855<col class="parameters_description"> 856<col width="200px" class="parameters_annotations"> 857</colgroup> 858<tbody><tr> 859<td class="parameter_name"><p>pps</p></td> 860<td class="parameter_description"><p>The <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PPS" title="struct GstH264PPS"><span class="type">GstH264PPS</span></a> to free</p></td> 861<td class="parameter_annotations"> </td> 862</tr></tbody> 863</table></div> 864</div> 865<p class="since">Since: 1.4</p> 866</div> 867<hr> 868<div class="refsect2"> 869<a name="gst-h264-quant-matrix-8x8-get-zigzag-from-raster"></a><h3>gst_h264_quant_matrix_8x8_get_zigzag_from_raster ()</h3> 870<pre class="programlisting"><span class="returnvalue">void</span> 871gst_h264_quant_matrix_8x8_get_zigzag_from_raster 872 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> out_quant[64]</code></em>, 873 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> quant[64]</code></em>);</pre> 874<p>Converts quantization matrix <em class="parameter"><code>quant</code></em> 875 from raster scan order to 876zigzag scan order and store the resulting factors into <em class="parameter"><code>out_quant</code></em> 877.</p> 878<p>Note: it is an error to pass the same table in both <em class="parameter"><code>quant</code></em> 879 and 880<em class="parameter"><code>out_quant</code></em> 881 arguments.</p> 882<div class="refsect3"> 883<a name="gst-h264-quant-matrix-8x8-get-zigzag-from-raster.parameters"></a><h4>Parameters</h4> 884<div class="informaltable"><table class="informaltable" width="100%" border="0"> 885<colgroup> 886<col width="150px" class="parameters_name"> 887<col class="parameters_description"> 888<col width="200px" class="parameters_annotations"> 889</colgroup> 890<tbody> 891<tr> 892<td class="parameter_name"><p>out_quant</p></td> 893<td class="parameter_description"><p>The resulting quantization matrix. </p></td> 894<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 895</tr> 896<tr> 897<td class="parameter_name"><p>quant</p></td> 898<td class="parameter_description"><p>The source quantization matrix</p></td> 899<td class="parameter_annotations"> </td> 900</tr> 901</tbody> 902</table></div> 903</div> 904<p class="since">Since: 1.4</p> 905</div> 906<hr> 907<div class="refsect2"> 908<a name="gst-h264-quant-matrix-8x8-get-raster-from-zigzag"></a><h3>gst_h264_quant_matrix_8x8_get_raster_from_zigzag ()</h3> 909<pre class="programlisting"><span class="returnvalue">void</span> 910gst_h264_quant_matrix_8x8_get_raster_from_zigzag 911 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> out_quant[64]</code></em>, 912 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> quant[64]</code></em>);</pre> 913<p>Converts quantization matrix <em class="parameter"><code>quant</code></em> 914 from zigzag scan order to 915raster scan order and store the resulting factors into <em class="parameter"><code>out_quant</code></em> 916.</p> 917<p>Note: it is an error to pass the same table in both <em class="parameter"><code>quant</code></em> 918 and 919<em class="parameter"><code>out_quant</code></em> 920 arguments.</p> 921<div class="refsect3"> 922<a name="gst-h264-quant-matrix-8x8-get-raster-from-zigzag.parameters"></a><h4>Parameters</h4> 923<div class="informaltable"><table class="informaltable" width="100%" border="0"> 924<colgroup> 925<col width="150px" class="parameters_name"> 926<col class="parameters_description"> 927<col width="200px" class="parameters_annotations"> 928</colgroup> 929<tbody> 930<tr> 931<td class="parameter_name"><p>out_quant</p></td> 932<td class="parameter_description"><p>The resulting quantization matrix. </p></td> 933<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 934</tr> 935<tr> 936<td class="parameter_name"><p>quant</p></td> 937<td class="parameter_description"><p>The source quantization matrix</p></td> 938<td class="parameter_annotations"> </td> 939</tr> 940</tbody> 941</table></div> 942</div> 943<p class="since">Since: 1.4</p> 944</div> 945<hr> 946<div class="refsect2"> 947<a name="gst-h264-quant-matrix-4x4-get-zigzag-from-raster"></a><h3>gst_h264_quant_matrix_4x4_get_zigzag_from_raster ()</h3> 948<pre class="programlisting"><span class="returnvalue">void</span> 949gst_h264_quant_matrix_4x4_get_zigzag_from_raster 950 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> out_quant[16]</code></em>, 951 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> quant[16]</code></em>);</pre> 952<p>Converts quantization matrix <em class="parameter"><code>quant</code></em> 953 from raster scan order to 954zigzag scan order and store the resulting factors into <em class="parameter"><code>out_quant</code></em> 955.</p> 956<p>Note: it is an error to pass the same table in both <em class="parameter"><code>quant</code></em> 957 and 958<em class="parameter"><code>out_quant</code></em> 959 arguments.</p> 960<div class="refsect3"> 961<a name="gst-h264-quant-matrix-4x4-get-zigzag-from-raster.parameters"></a><h4>Parameters</h4> 962<div class="informaltable"><table class="informaltable" width="100%" border="0"> 963<colgroup> 964<col width="150px" class="parameters_name"> 965<col class="parameters_description"> 966<col width="200px" class="parameters_annotations"> 967</colgroup> 968<tbody> 969<tr> 970<td class="parameter_name"><p>out_quant</p></td> 971<td class="parameter_description"><p>The resulting quantization matrix. </p></td> 972<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 973</tr> 974<tr> 975<td class="parameter_name"><p>quant</p></td> 976<td class="parameter_description"><p>The source quantization matrix</p></td> 977<td class="parameter_annotations"> </td> 978</tr> 979</tbody> 980</table></div> 981</div> 982<p class="since">Since: 1.4</p> 983</div> 984<hr> 985<div class="refsect2"> 986<a name="gst-h264-quant-matrix-4x4-get-raster-from-zigzag"></a><h3>gst_h264_quant_matrix_4x4_get_raster_from_zigzag ()</h3> 987<pre class="programlisting"><span class="returnvalue">void</span> 988gst_h264_quant_matrix_4x4_get_raster_from_zigzag 989 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> out_quant[16]</code></em>, 990 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> quant[16]</code></em>);</pre> 991<p>Converts quantization matrix <em class="parameter"><code>quant</code></em> 992 from zigzag scan order to 993raster scan order and store the resulting factors into <em class="parameter"><code>out_quant</code></em> 994.</p> 995<p>Note: it is an error to pass the same table in both <em class="parameter"><code>quant</code></em> 996 and 997<em class="parameter"><code>out_quant</code></em> 998 arguments.</p> 999<div class="refsect3"> 1000<a name="gst-h264-quant-matrix-4x4-get-raster-from-zigzag.parameters"></a><h4>Parameters</h4> 1001<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1002<colgroup> 1003<col width="150px" class="parameters_name"> 1004<col class="parameters_description"> 1005<col width="200px" class="parameters_annotations"> 1006</colgroup> 1007<tbody> 1008<tr> 1009<td class="parameter_name"><p>out_quant</p></td> 1010<td class="parameter_description"><p>The resulting quantization matrix. </p></td> 1011<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 1012</tr> 1013<tr> 1014<td class="parameter_name"><p>quant</p></td> 1015<td class="parameter_description"><p>The source quantization matrix</p></td> 1016<td class="parameter_annotations"> </td> 1017</tr> 1018</tbody> 1019</table></div> 1020</div> 1021<p class="since">Since: 1.4</p> 1022</div> 1023<hr> 1024<div class="refsect2"> 1025<a name="gst-h264-video-calculate-framerate"></a><h3>gst_h264_video_calculate_framerate ()</h3> 1026<pre class="programlisting"><span class="returnvalue">void</span> 1027gst_h264_video_calculate_framerate (<em class="parameter"><code>const <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264SPS" title="struct GstH264SPS"><span class="type">GstH264SPS</span></a> *sps</code></em>, 1028 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> field_pic_flag</code></em>, 1029 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> pic_struct</code></em>, 1030 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *fps_num</code></em>, 1031 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *fps_den</code></em>);</pre> 1032<p>Calculate framerate of a video sequence using <em class="parameter"><code>sps</code></em> 1033 VUI information, 1034<em class="parameter"><code>field_pic_flag</code></em> 1035 from a slice header and <em class="parameter"><code>pic_struct</code></em> 1036 from <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264PicTiming" title="struct GstH264PicTiming"><span class="type">GstH264PicTiming</span></a> SEI 1037message.</p> 1038<p>If framerate is variable or can't be determined, <em class="parameter"><code>fps_num</code></em> 1039 will be set to 0 1040and <em class="parameter"><code>fps_den</code></em> 1041 to 1.</p> 1042<div class="refsect3"> 1043<a name="gst-h264-video-calculate-framerate.parameters"></a><h4>Parameters</h4> 1044<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1045<colgroup> 1046<col width="150px" class="parameters_name"> 1047<col class="parameters_description"> 1048<col width="200px" class="parameters_annotations"> 1049</colgroup> 1050<tbody> 1051<tr> 1052<td class="parameter_name"><p>sps</p></td> 1053<td class="parameter_description"><p>Current Sequence Parameter Set</p></td> 1054<td class="parameter_annotations"> </td> 1055</tr> 1056<tr> 1057<td class="parameter_name"><p>field_pic_flag</p></td> 1058<td class="parameter_description"><p>Current <em class="parameter"><code>field_pic_flag</code></em> 1059, obtained from latest slice header</p></td> 1060<td class="parameter_annotations"> </td> 1061</tr> 1062<tr> 1063<td class="parameter_name"><p>pic_struct</p></td> 1064<td class="parameter_description"><p><em class="parameter"><code>pic_struct</code></em> 1065value if available, 0 otherwise</p></td> 1066<td class="parameter_annotations"> </td> 1067</tr> 1068<tr> 1069<td class="parameter_name"><p>fps_num</p></td> 1070<td class="parameter_description"><p>The resulting fps numerator. </p></td> 1071<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 1072</tr> 1073<tr> 1074<td class="parameter_name"><p>fps_den</p></td> 1075<td class="parameter_description"><p>The resulting fps denominator. </p></td> 1076<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 1077</tr> 1078</tbody> 1079</table></div> 1080</div> 1081</div> 1082</div> 1083<div class="refsect1"> 1084<a name="gst-plugins-bad-libs-h264parser.other_details"></a><h2>Types and Values</h2> 1085<div class="refsect2"> 1086<a name="GST-H264-MAX-SPS-COUNT:CAPS"></a><h3>GST_H264_MAX_SPS_COUNT</h3> 1087<pre class="programlisting">#define GST_H264_MAX_SPS_COUNT 32 1088</pre> 1089</div> 1090<hr> 1091<div class="refsect2"> 1092<a name="GST-H264-MAX-PPS-COUNT:CAPS"></a><h3>GST_H264_MAX_PPS_COUNT</h3> 1093<pre class="programlisting">#define GST_H264_MAX_PPS_COUNT 256 1094</pre> 1095</div> 1096<hr> 1097<div class="refsect2"> 1098<a name="GstH264NalUnitType"></a><h3>enum GstH264NalUnitType</h3> 1099<p>Indicates the type of H264 Nal Units</p> 1100<div class="refsect3"> 1101<a name="GstH264NalUnitType.members"></a><h4>Members</h4> 1102<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1103<colgroup> 1104<col width="300px" class="enum_members_name"> 1105<col class="enum_members_description"> 1106<col width="200px" class="enum_members_annotations"> 1107</colgroup> 1108<tbody> 1109<tr> 1110<td class="enum_member_name"><p><a name="GST-H264-NAL-UNKNOWN:CAPS"></a>GST_H264_NAL_UNKNOWN</p></td> 1111<td class="enum_member_description"> 1112<p>Unknown nal type</p> 1113</td> 1114<td class="enum_member_annotations"> </td> 1115</tr> 1116<tr> 1117<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE:CAPS"></a>GST_H264_NAL_SLICE</p></td> 1118<td class="enum_member_description"> 1119<p>Slice nal</p> 1120</td> 1121<td class="enum_member_annotations"> </td> 1122</tr> 1123<tr> 1124<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE-DPA:CAPS"></a>GST_H264_NAL_SLICE_DPA</p></td> 1125<td class="enum_member_description"> 1126<p>DPA slice nal</p> 1127</td> 1128<td class="enum_member_annotations"> </td> 1129</tr> 1130<tr> 1131<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE-DPB:CAPS"></a>GST_H264_NAL_SLICE_DPB</p></td> 1132<td class="enum_member_description"> 1133<p>DPB slice nal</p> 1134</td> 1135<td class="enum_member_annotations"> </td> 1136</tr> 1137<tr> 1138<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE-DPC:CAPS"></a>GST_H264_NAL_SLICE_DPC</p></td> 1139<td class="enum_member_description"> 1140<p>DPC slice nal</p> 1141</td> 1142<td class="enum_member_annotations"> </td> 1143</tr> 1144<tr> 1145<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE-IDR:CAPS"></a>GST_H264_NAL_SLICE_IDR</p></td> 1146<td class="enum_member_description"> 1147<p>DPR slice nal</p> 1148</td> 1149<td class="enum_member_annotations"> </td> 1150</tr> 1151<tr> 1152<td class="enum_member_name"><p><a name="GST-H264-NAL-SEI:CAPS"></a>GST_H264_NAL_SEI</p></td> 1153<td class="enum_member_description"> 1154<p>Supplemental enhancement information (SEI) nal unit</p> 1155</td> 1156<td class="enum_member_annotations"> </td> 1157</tr> 1158<tr> 1159<td class="enum_member_name"><p><a name="GST-H264-NAL-SPS:CAPS"></a>GST_H264_NAL_SPS</p></td> 1160<td class="enum_member_description"> 1161<p>Sequence parameter set (SPS) nal unit</p> 1162</td> 1163<td class="enum_member_annotations"> </td> 1164</tr> 1165<tr> 1166<td class="enum_member_name"><p><a name="GST-H264-NAL-PPS:CAPS"></a>GST_H264_NAL_PPS</p></td> 1167<td class="enum_member_description"> 1168<p>Picture parameter set (PPS) nal unit</p> 1169</td> 1170<td class="enum_member_annotations"> </td> 1171</tr> 1172<tr> 1173<td class="enum_member_name"><p><a name="GST-H264-NAL-AU-DELIMITER:CAPS"></a>GST_H264_NAL_AU_DELIMITER</p></td> 1174<td class="enum_member_description"> 1175<p>Access unit (AU) delimiter nal unit</p> 1176</td> 1177<td class="enum_member_annotations"> </td> 1178</tr> 1179<tr> 1180<td class="enum_member_name"><p><a name="GST-H264-NAL-SEQ-END:CAPS"></a>GST_H264_NAL_SEQ_END</p></td> 1181<td class="enum_member_description"> 1182<p>End of sequence nal unit</p> 1183</td> 1184<td class="enum_member_annotations"> </td> 1185</tr> 1186<tr> 1187<td class="enum_member_name"><p><a name="GST-H264-NAL-STREAM-END:CAPS"></a>GST_H264_NAL_STREAM_END</p></td> 1188<td class="enum_member_description"> 1189<p>End of stream nal unit</p> 1190</td> 1191<td class="enum_member_annotations"> </td> 1192</tr> 1193<tr> 1194<td class="enum_member_name"><p><a name="GST-H264-NAL-FILLER-DATA:CAPS"></a>GST_H264_NAL_FILLER_DATA</p></td> 1195<td class="enum_member_description"> 1196<p>Filler data nal lunit</p> 1197</td> 1198<td class="enum_member_annotations"> </td> 1199</tr> 1200<tr> 1201<td class="enum_member_name"><p><a name="GST-H264-NAL-SPS-EXT:CAPS"></a>GST_H264_NAL_SPS_EXT</p></td> 1202<td class="enum_member_description"> 1203<p>Sequence parameter set (SPS) extension NAL unit</p> 1204</td> 1205<td class="enum_member_annotations"> </td> 1206</tr> 1207<tr> 1208<td class="enum_member_name"><p><a name="GST-H264-NAL-PREFIX-UNIT:CAPS"></a>GST_H264_NAL_PREFIX_UNIT</p></td> 1209<td class="enum_member_description"> 1210<p>Prefix NAL unit</p> 1211</td> 1212<td class="enum_member_annotations"> </td> 1213</tr> 1214<tr> 1215<td class="enum_member_name"><p><a name="GST-H264-NAL-SUBSET-SPS:CAPS"></a>GST_H264_NAL_SUBSET_SPS</p></td> 1216<td class="enum_member_description"> 1217<p>Subset sequence parameter set (SSPS) NAL unit</p> 1218</td> 1219<td class="enum_member_annotations"> </td> 1220</tr> 1221<tr> 1222<td class="enum_member_name"><p><a name="GST-H264-NAL-DEPTH-SPS:CAPS"></a>GST_H264_NAL_DEPTH_SPS</p></td> 1223<td class="enum_member_description"> 1224<p>Depth parameter set (DPS) NAL unit</p> 1225</td> 1226<td class="enum_member_annotations"> </td> 1227</tr> 1228<tr> 1229<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE-AUX:CAPS"></a>GST_H264_NAL_SLICE_AUX</p></td> 1230<td class="enum_member_description"> 1231<p>Auxiliary coded picture without partitioning NAL unit</p> 1232</td> 1233<td class="enum_member_annotations"> </td> 1234</tr> 1235<tr> 1236<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE-EXT:CAPS"></a>GST_H264_NAL_SLICE_EXT</p></td> 1237<td class="enum_member_description"> 1238<p>Coded slice extension NAL unit</p> 1239</td> 1240<td class="enum_member_annotations"> </td> 1241</tr> 1242<tr> 1243<td class="enum_member_name"><p><a name="GST-H264-NAL-SLICE-DEPTH:CAPS"></a>GST_H264_NAL_SLICE_DEPTH</p></td> 1244<td class="enum_member_description"> 1245<p>Coded slice extension for depth or 3D-AVC texture view</p> 1246</td> 1247<td class="enum_member_annotations"> </td> 1248</tr> 1249</tbody> 1250</table></div> 1251</div> 1252</div> 1253<hr> 1254<div class="refsect2"> 1255<a name="GstH264ParserResult"></a><h3>enum GstH264ParserResult</h3> 1256<p>The result of parsing H264 data.</p> 1257<div class="refsect3"> 1258<a name="GstH264ParserResult.members"></a><h4>Members</h4> 1259<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1260<colgroup> 1261<col width="300px" class="enum_members_name"> 1262<col class="enum_members_description"> 1263<col width="200px" class="enum_members_annotations"> 1264</colgroup> 1265<tbody> 1266<tr> 1267<td class="enum_member_name"><p><a name="GST-H264-PARSER-OK:CAPS"></a>GST_H264_PARSER_OK</p></td> 1268<td class="enum_member_description"> 1269<p>The parsing succeeded</p> 1270</td> 1271<td class="enum_member_annotations"> </td> 1272</tr> 1273<tr> 1274<td class="enum_member_name"><p><a name="GST-H264-PARSER-BROKEN-DATA:CAPS"></a>GST_H264_PARSER_BROKEN_DATA</p></td> 1275<td class="enum_member_description"> 1276<p>The data to parse is broken</p> 1277</td> 1278<td class="enum_member_annotations"> </td> 1279</tr> 1280<tr> 1281<td class="enum_member_name"><p><a name="GST-H264-PARSER-BROKEN-LINK:CAPS"></a>GST_H264_PARSER_BROKEN_LINK</p></td> 1282<td class="enum_member_description"> 1283<p>The link to structure needed for the parsing couldn't be found</p> 1284</td> 1285<td class="enum_member_annotations"> </td> 1286</tr> 1287<tr> 1288<td class="enum_member_name"><p><a name="GST-H264-PARSER-ERROR:CAPS"></a>GST_H264_PARSER_ERROR</p></td> 1289<td class="enum_member_description"> 1290<p>An error occurred when parsing</p> 1291</td> 1292<td class="enum_member_annotations"> </td> 1293</tr> 1294<tr> 1295<td class="enum_member_name"><p><a name="GST-H264-PARSER-NO-NAL:CAPS"></a>GST_H264_PARSER_NO_NAL</p></td> 1296<td class="enum_member_description"> 1297<p>No NAL unit found during the parsing</p> 1298</td> 1299<td class="enum_member_annotations"> </td> 1300</tr> 1301<tr> 1302<td class="enum_member_name"><p><a name="GST-H264-PARSER-NO-NAL-END:CAPS"></a>GST_H264_PARSER_NO_NAL_END</p></td> 1303<td class="enum_member_description"> 1304<p>Start of the NAL unit found, but not the end. 1305 This will be returned if no start/sync marker for the next NAL unit was 1306 found. In this case the parser will assume that the end of the data is 1307 also the end of the NAL unit. Whether this assumption is correct or not 1308 depends on the context, which only the caller can know, which is why a 1309 special result value is returned in this case. If the data is NAL-aligned 1310 then <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-PARSER-NO-NAL-END:CAPS"><span class="type">GST_H264_PARSER_NO_NAL_END</span></a> can be treated just like 1311 <a class="link" href="gst-plugins-bad-libs-h264parser.html#GST-H264-PARSER-OK:CAPS"><span class="type">GST_H264_PARSER_OK</span></a>. If the data is not guaranteed to be NAL-aligned, 1312 then the caller probably wants to collect more data until there's another 1313 sync marker or the end of the stream has been reached.</p> 1314</td> 1315<td class="enum_member_annotations"> </td> 1316</tr> 1317</tbody> 1318</table></div> 1319</div> 1320</div> 1321<hr> 1322<div class="refsect2"> 1323<a name="GstH264SEIPayloadType"></a><h3>enum GstH264SEIPayloadType</h3> 1324<p>The type of SEI message.</p> 1325<div class="refsect3"> 1326<a name="GstH264SEIPayloadType.members"></a><h4>Members</h4> 1327<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1328<colgroup> 1329<col width="300px" class="enum_members_name"> 1330<col class="enum_members_description"> 1331<col width="200px" class="enum_members_annotations"> 1332</colgroup> 1333<tbody> 1334<tr> 1335<td class="enum_member_name"><p><a name="GST-H264-SEI-BUF-PERIOD:CAPS"></a>GST_H264_SEI_BUF_PERIOD</p></td> 1336<td class="enum_member_description"> 1337<p>Buffering Period SEI Message</p> 1338</td> 1339<td class="enum_member_annotations"> </td> 1340</tr> 1341<tr> 1342<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-TIMING:CAPS"></a>GST_H264_SEI_PIC_TIMING</p></td> 1343<td class="enum_member_description"> 1344<p>Picture Timing SEI Message</p> 1345</td> 1346<td class="enum_member_annotations"> </td> 1347</tr> 1348<tr> 1349<td class="enum_member_name"><p><a name="GST-H264-SEI-REGISTERED-USER-DATA:CAPS"></a>GST_H264_SEI_REGISTERED_USER_DATA</p></td> 1350<td class="enum_member_description"> 1351<p>Registered user data (D.2.5)</p> 1352</td> 1353<td class="enum_member_annotations"> </td> 1354</tr> 1355<tr> 1356<td class="enum_member_name"><p><a name="GST-H264-SEI-RECOVERY-POINT:CAPS"></a>GST_H264_SEI_RECOVERY_POINT</p></td> 1357<td class="enum_member_description"> 1358<p>Recovery Point SEI Message (D.2.7)</p> 1359</td> 1360<td class="enum_member_annotations"> </td> 1361</tr> 1362<tr> 1363<td class="enum_member_name"><p><a name="GST-H264-SEI-STEREO-VIDEO-INFO:CAPS"></a>GST_H264_SEI_STEREO_VIDEO_INFO</p></td> 1364<td class="enum_member_description"> 1365<p>stereo video info SEI message (Since: 1.6)</p> 1366</td> 1367<td class="enum_member_annotations"> </td> 1368</tr> 1369<tr> 1370<td class="enum_member_name"><p><a name="GST-H264-SEI-FRAME-PACKING:CAPS"></a>GST_H264_SEI_FRAME_PACKING</p></td> 1371<td class="enum_member_description"> 1372<p>Frame Packing Arrangement (FPA) message that 1373 contains the 3D arrangement for stereoscopic 3D video (Since: 1.6) 1374...</p> 1375</td> 1376<td class="enum_member_annotations"> </td> 1377</tr> 1378</tbody> 1379</table></div> 1380</div> 1381</div> 1382<hr> 1383<div class="refsect2"> 1384<a name="GstH264SEIPicStructType"></a><h3>enum GstH264SEIPicStructType</h3> 1385<p>SEI pic_struct type</p> 1386<div class="refsect3"> 1387<a name="GstH264SEIPicStructType.members"></a><h4>Members</h4> 1388<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1389<colgroup> 1390<col width="300px" class="enum_members_name"> 1391<col class="enum_members_description"> 1392<col width="200px" class="enum_members_annotations"> 1393</colgroup> 1394<tbody> 1395<tr> 1396<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-FRAME:CAPS"></a>GST_H264_SEI_PIC_STRUCT_FRAME</p></td> 1397<td class="enum_member_description"> 1398<p>Picture is a frame</p> 1399</td> 1400<td class="enum_member_annotations"> </td> 1401</tr> 1402<tr> 1403<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-TOP-FIELD:CAPS"></a>GST_H264_SEI_PIC_STRUCT_TOP_FIELD</p></td> 1404<td class="enum_member_description"> 1405<p>Top field of frame</p> 1406</td> 1407<td class="enum_member_annotations"> </td> 1408</tr> 1409<tr> 1410<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-BOTTOM-FIELD:CAPS"></a>GST_H264_SEI_PIC_STRUCT_BOTTOM_FIELD</p></td> 1411<td class="enum_member_description"> 1412<p>Bottom field of frame</p> 1413</td> 1414<td class="enum_member_annotations"> </td> 1415</tr> 1416<tr> 1417<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-TOP-BOTTOM:CAPS"></a>GST_H264_SEI_PIC_STRUCT_TOP_BOTTOM</p></td> 1418<td class="enum_member_description"> 1419<p>Top bottom field of frame</p> 1420</td> 1421<td class="enum_member_annotations"> </td> 1422</tr> 1423<tr> 1424<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-BOTTOM-TOP:CAPS"></a>GST_H264_SEI_PIC_STRUCT_BOTTOM_TOP</p></td> 1425<td class="enum_member_description"> 1426<p>bottom top field of frame</p> 1427</td> 1428<td class="enum_member_annotations"> </td> 1429</tr> 1430<tr> 1431<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-TOP-BOTTOM-TOP:CAPS"></a>GST_H264_SEI_PIC_STRUCT_TOP_BOTTOM_TOP</p></td> 1432<td class="enum_member_description"> 1433<p>top bottom top field of frame</p> 1434</td> 1435<td class="enum_member_annotations"> </td> 1436</tr> 1437<tr> 1438<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-BOTTOM-TOP-BOTTOM:CAPS"></a>GST_H264_SEI_PIC_STRUCT_BOTTOM_TOP_BOTTOM</p></td> 1439<td class="enum_member_description"> 1440<p>bottom top bottom field of frame</p> 1441</td> 1442<td class="enum_member_annotations"> </td> 1443</tr> 1444<tr> 1445<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-FRAME-DOUBLING:CAPS"></a>GST_H264_SEI_PIC_STRUCT_FRAME_DOUBLING</p></td> 1446<td class="enum_member_description"> 1447<p>indicates that the frame should 1448 be displayed two times consecutively</p> 1449</td> 1450<td class="enum_member_annotations"> </td> 1451</tr> 1452<tr> 1453<td class="enum_member_name"><p><a name="GST-H264-SEI-PIC-STRUCT-FRAME-TRIPLING:CAPS"></a>GST_H264_SEI_PIC_STRUCT_FRAME_TRIPLING</p></td> 1454<td class="enum_member_description"> 1455<p>indicates that the frame should be 1456 displayed three times consecutively</p> 1457</td> 1458<td class="enum_member_annotations"> </td> 1459</tr> 1460</tbody> 1461</table></div> 1462</div> 1463</div> 1464<hr> 1465<div class="refsect2"> 1466<a name="GstH264SliceType"></a><h3>enum GstH264SliceType</h3> 1467<p>Type of Picture slice</p> 1468<div class="refsect3"> 1469<a name="GstH264SliceType.members"></a><h4>Members</h4> 1470<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1471<colgroup> 1472<col width="300px" class="enum_members_name"> 1473<col class="enum_members_description"> 1474<col width="200px" class="enum_members_annotations"> 1475</colgroup> 1476<tbody> 1477<tr> 1478<td class="enum_member_name"><p><a name="GST-H264-P-SLICE:CAPS"></a>GST_H264_P_SLICE</p></td> 1479<td> </td> 1480<td> </td> 1481</tr> 1482<tr> 1483<td class="enum_member_name"><p><a name="GST-H264-B-SLICE:CAPS"></a>GST_H264_B_SLICE</p></td> 1484<td> </td> 1485<td> </td> 1486</tr> 1487<tr> 1488<td class="enum_member_name"><p><a name="GST-H264-I-SLICE:CAPS"></a>GST_H264_I_SLICE</p></td> 1489<td> </td> 1490<td> </td> 1491</tr> 1492<tr> 1493<td class="enum_member_name"><p><a name="GST-H264-SP-SLICE:CAPS"></a>GST_H264_SP_SLICE</p></td> 1494<td> </td> 1495<td> </td> 1496</tr> 1497<tr> 1498<td class="enum_member_name"><p><a name="GST-H264-SI-SLICE:CAPS"></a>GST_H264_SI_SLICE</p></td> 1499<td> </td> 1500<td> </td> 1501</tr> 1502<tr> 1503<td class="enum_member_name"><p><a name="GST-H264-S-P-SLICE:CAPS"></a>GST_H264_S_P_SLICE</p></td> 1504<td> </td> 1505<td> </td> 1506</tr> 1507<tr> 1508<td class="enum_member_name"><p><a name="GST-H264-S-B-SLICE:CAPS"></a>GST_H264_S_B_SLICE</p></td> 1509<td> </td> 1510<td> </td> 1511</tr> 1512<tr> 1513<td class="enum_member_name"><p><a name="GST-H264-S-I-SLICE:CAPS"></a>GST_H264_S_I_SLICE</p></td> 1514<td> </td> 1515<td> </td> 1516</tr> 1517<tr> 1518<td class="enum_member_name"><p><a name="GST-H264-S-SP-SLICE:CAPS"></a>GST_H264_S_SP_SLICE</p></td> 1519<td> </td> 1520<td> </td> 1521</tr> 1522<tr> 1523<td class="enum_member_name"><p><a name="GST-H264-S-SI-SLICE:CAPS"></a>GST_H264_S_SI_SLICE</p></td> 1524<td> </td> 1525<td> </td> 1526</tr> 1527</tbody> 1528</table></div> 1529</div> 1530</div> 1531<hr> 1532<div class="refsect2"> 1533<a name="GstH264NalParser"></a><h3>struct GstH264NalParser</h3> 1534<pre class="programlisting">struct GstH264NalParser { 1535}; 1536</pre> 1537<p>H264 NAL Parser (opaque structure).</p> 1538</div> 1539<hr> 1540<div class="refsect2"> 1541<a name="GstH264NalUnit"></a><h3>struct GstH264NalUnit</h3> 1542<pre class="programlisting">struct GstH264NalUnit { 1543 guint16 ref_idc; 1544 guint16 type; 1545 1546 /* calculated values */ 1547 guint8 idr_pic_flag; 1548 guint size; 1549 guint offset; 1550 guint sc_offset; 1551 gboolean valid; 1552 1553 guint8 *data; 1554 1555 guint8 header_bytes; 1556 guint8 extension_type; 1557 union { 1558 GstH264NalUnitExtensionMVC mvc; 1559 } extension; 1560}; 1561</pre> 1562<p>Structure defining the NAL unit headers</p> 1563<div class="refsect3"> 1564<a name="GstH264NalUnit.members"></a><h4>Members</h4> 1565<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1566<colgroup> 1567<col width="300px" class="struct_members_name"> 1568<col class="struct_members_description"> 1569<col width="200px" class="struct_members_annotations"> 1570</colgroup> 1571<tbody> 1572<tr> 1573<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="GstH264NalUnit.ref-idc"></a>ref_idc</code></em>;</p></td> 1574<td class="struct_member_description"><p>not equal to 0 specifies that the content of the NAL unit 1575contains a sequence parameter set, a sequence parameter set 1576extension, a subset sequence parameter set, a picture parameter 1577set, a slice of a reference picture, a slice data partition of a 1578reference picture, or a prefix NAL unit preceding a slice of a 1579reference picture.</p></td> 1580<td class="struct_member_annotations"> </td> 1581</tr> 1582<tr> 1583<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="GstH264NalUnit.type"></a>type</code></em>;</p></td> 1584<td class="struct_member_description"><p>A <a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264NalUnitType" title="enum GstH264NalUnitType"><span class="type">GstH264NalUnitType</span></a></p></td> 1585<td class="struct_member_annotations"> </td> 1586</tr> 1587<tr> 1588<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264NalUnit.idr-pic-flag"></a>idr_pic_flag</code></em>;</p></td> 1589<td class="struct_member_description"><p>calculated idr_pic_flag</p></td> 1590<td class="struct_member_annotations"> </td> 1591</tr> 1592<tr> 1593<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstH264NalUnit.size"></a>size</code></em>;</p></td> 1594<td class="struct_member_description"><p>The size of the NAL unit starting from <em class="parameter"><code>offset</code></em> 1595, thus 1596including the header bytes. e.g. <em class="parameter"><code>type</code></em> 1597(nal_unit_type)</p></td> 1598<td class="struct_member_annotations"> </td> 1599</tr> 1600<tr> 1601<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstH264NalUnit.offset"></a>offset</code></em>;</p></td> 1602<td class="struct_member_description"><p>The offset of the actual start of the NAL unit, thus 1603including the header bytes</p></td> 1604<td class="struct_member_annotations"> </td> 1605</tr> 1606<tr> 1607<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstH264NalUnit.sc-offset"></a>sc_offset</code></em>;</p></td> 1608<td class="struct_member_description"><p>The offset of the start code of the NAL unit</p></td> 1609<td class="struct_member_annotations"> </td> 1610</tr> 1611<tr> 1612<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GstH264NalUnit.valid"></a>valid</code></em>;</p></td> 1613<td class="struct_member_description"><p>If the NAL unit is valid, which means it has 1614already been parsed</p></td> 1615<td class="struct_member_annotations"> </td> 1616</tr> 1617<tr> 1618<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *<em class="structfield"><code><a name="GstH264NalUnit.data"></a>data</code></em>;</p></td> 1619<td class="struct_member_description"><p>The data from which the NAL unit has been parsed</p></td> 1620<td class="struct_member_annotations"> </td> 1621</tr> 1622<tr> 1623<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264NalUnit.header-bytes"></a>header_bytes</code></em>;</p></td> 1624<td class="struct_member_description"><p>The size of the NALU header in bytes (Since: 1.6)</p></td> 1625<td class="struct_member_annotations"> </td> 1626</tr> 1627<tr> 1628<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264NalUnit.extension-type"></a>extension_type</code></em>;</p></td> 1629<td class="struct_member_description"><p>the extension type (Since: 1.6)</p></td> 1630<td class="struct_member_annotations"> </td> 1631</tr> 1632</tbody> 1633</table></div> 1634</div> 1635</div> 1636<hr> 1637<div class="refsect2"> 1638<a name="GstH264SPS"></a><h3>struct GstH264SPS</h3> 1639<pre class="programlisting">struct GstH264SPS { 1640 gint id; 1641 1642 guint8 profile_idc; 1643 guint8 constraint_set0_flag; 1644 guint8 constraint_set1_flag; 1645 guint8 constraint_set2_flag; 1646 guint8 constraint_set3_flag; 1647 guint8 constraint_set4_flag; 1648 guint8 constraint_set5_flag; 1649 guint8 level_idc; 1650 1651 guint8 chroma_format_idc; 1652 guint8 separate_colour_plane_flag; 1653 guint8 bit_depth_luma_minus8; 1654 guint8 bit_depth_chroma_minus8; 1655 guint8 qpprime_y_zero_transform_bypass_flag; 1656 1657 guint8 scaling_matrix_present_flag; 1658 guint8 scaling_lists_4x4[6][16]; 1659 guint8 scaling_lists_8x8[6][64]; 1660 1661 guint8 log2_max_frame_num_minus4; 1662 guint8 pic_order_cnt_type; 1663 1664 /* if pic_order_cnt_type == 0 */ 1665 guint8 log2_max_pic_order_cnt_lsb_minus4; 1666 1667 /* else if pic_order_cnt_type == 1 */ 1668 guint8 delta_pic_order_always_zero_flag; 1669 gint32 offset_for_non_ref_pic; 1670 gint32 offset_for_top_to_bottom_field; 1671 guint8 num_ref_frames_in_pic_order_cnt_cycle; 1672 gint32 offset_for_ref_frame[255]; 1673 1674 guint32 num_ref_frames; 1675 guint8 gaps_in_frame_num_value_allowed_flag; 1676 guint32 pic_width_in_mbs_minus1; 1677 guint32 pic_height_in_map_units_minus1; 1678 guint8 frame_mbs_only_flag; 1679 1680 guint8 mb_adaptive_frame_field_flag; 1681 1682 guint8 direct_8x8_inference_flag; 1683 1684 guint8 frame_cropping_flag; 1685 1686 /* if frame_cropping_flag */ 1687 guint32 frame_crop_left_offset; 1688 guint32 frame_crop_right_offset; 1689 guint32 frame_crop_top_offset; 1690 guint32 frame_crop_bottom_offset; 1691 1692 guint8 vui_parameters_present_flag; 1693 /* if vui_parameters_present_flag */ 1694 GstH264VUIParams vui_parameters; 1695 1696 /* calculated values */ 1697 guint8 chroma_array_type; 1698 guint32 max_frame_num; 1699 gint width, height; 1700 gint crop_rect_width, crop_rect_height; 1701 gint crop_rect_x, crop_rect_y; 1702 gint fps_num_removed, fps_den_removed; /* FIXME: remove */ 1703 gboolean valid; 1704 1705 /* Subset SPS extensions */ 1706 guint8 extension_type; 1707 union { 1708 GstH264SPSExtMVC mvc; 1709 } extension; 1710}; 1711</pre> 1712<p>H264 Sequence Parameter Set (SPS)</p> 1713<div class="refsect3"> 1714<a name="GstH264SPS.members"></a><h4>Members</h4> 1715<div class="informaltable"><table class="informaltable" width="100%" border="0"> 1716<colgroup> 1717<col width="300px" class="struct_members_name"> 1718<col class="struct_members_description"> 1719<col width="200px" class="struct_members_annotations"> 1720</colgroup> 1721<tbody> 1722<tr> 1723<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.id"></a>id</code></em>;</p></td> 1724<td class="struct_member_description"><p>The ID of the sequence parameter set</p></td> 1725<td class="struct_member_annotations"> </td> 1726</tr> 1727<tr> 1728<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.profile-idc"></a>profile_idc</code></em>;</p></td> 1729<td class="struct_member_description"><p>indicate the profile to which the coded video sequence conforms</p></td> 1730<td class="struct_member_annotations"> </td> 1731</tr> 1732<tr> 1733<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.constraint-set0-flag"></a>constraint_set0_flag</code></em>;</p></td> 1734<td> </td> 1735<td> </td> 1736</tr> 1737<tr> 1738<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.constraint-set1-flag"></a>constraint_set1_flag</code></em>;</p></td> 1739<td> </td> 1740<td> </td> 1741</tr> 1742<tr> 1743<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.constraint-set2-flag"></a>constraint_set2_flag</code></em>;</p></td> 1744<td> </td> 1745<td> </td> 1746</tr> 1747<tr> 1748<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.constraint-set3-flag"></a>constraint_set3_flag</code></em>;</p></td> 1749<td> </td> 1750<td> </td> 1751</tr> 1752<tr> 1753<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.constraint-set4-flag"></a>constraint_set4_flag</code></em>;</p></td> 1754<td> </td> 1755<td> </td> 1756</tr> 1757<tr> 1758<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.constraint-set5-flag"></a>constraint_set5_flag</code></em>;</p></td> 1759<td> </td> 1760<td> </td> 1761</tr> 1762<tr> 1763<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.level-idc"></a>level_idc</code></em>;</p></td> 1764<td> </td> 1765<td> </td> 1766</tr> 1767<tr> 1768<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.chroma-format-idc"></a>chroma_format_idc</code></em>;</p></td> 1769<td> </td> 1770<td> </td> 1771</tr> 1772<tr> 1773<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.separate-colour-plane-flag"></a>separate_colour_plane_flag</code></em>;</p></td> 1774<td> </td> 1775<td> </td> 1776</tr> 1777<tr> 1778<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.bit-depth-luma-minus8"></a>bit_depth_luma_minus8</code></em>;</p></td> 1779<td> </td> 1780<td> </td> 1781</tr> 1782<tr> 1783<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.bit-depth-chroma-minus8"></a>bit_depth_chroma_minus8</code></em>;</p></td> 1784<td> </td> 1785<td> </td> 1786</tr> 1787<tr> 1788<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.qpprime-y-zero-transform-bypass-flag"></a>qpprime_y_zero_transform_bypass_flag</code></em>;</p></td> 1789<td> </td> 1790<td> </td> 1791</tr> 1792<tr> 1793<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.scaling-matrix-present-flag"></a>scaling_matrix_present_flag</code></em>;</p></td> 1794<td> </td> 1795<td> </td> 1796</tr> 1797<tr> 1798<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.scaling-lists-4x4"></a>scaling_lists_4x4</code></em>[6][16];</p></td> 1799<td> </td> 1800<td> </td> 1801</tr> 1802<tr> 1803<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.scaling-lists-8x8"></a>scaling_lists_8x8</code></em>[6][64];</p></td> 1804<td> </td> 1805<td> </td> 1806</tr> 1807<tr> 1808<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.log2-max-frame-num-minus4"></a>log2_max_frame_num_minus4</code></em>;</p></td> 1809<td> </td> 1810<td> </td> 1811</tr> 1812<tr> 1813<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.pic-order-cnt-type"></a>pic_order_cnt_type</code></em>;</p></td> 1814<td> </td> 1815<td> </td> 1816</tr> 1817<tr> 1818<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.log2-max-pic-order-cnt-lsb-minus4"></a>log2_max_pic_order_cnt_lsb_minus4</code></em>;</p></td> 1819<td> </td> 1820<td> </td> 1821</tr> 1822<tr> 1823<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.delta-pic-order-always-zero-flag"></a>delta_pic_order_always_zero_flag</code></em>;</p></td> 1824<td> </td> 1825<td> </td> 1826</tr> 1827<tr> 1828<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="GstH264SPS.offset-for-non-ref-pic"></a>offset_for_non_ref_pic</code></em>;</p></td> 1829<td> </td> 1830<td> </td> 1831</tr> 1832<tr> 1833<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="GstH264SPS.offset-for-top-to-bottom-field"></a>offset_for_top_to_bottom_field</code></em>;</p></td> 1834<td> </td> 1835<td> </td> 1836</tr> 1837<tr> 1838<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.num-ref-frames-in-pic-order-cnt-cycle"></a>num_ref_frames_in_pic_order_cnt_cycle</code></em>;</p></td> 1839<td> </td> 1840<td> </td> 1841</tr> 1842<tr> 1843<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="GstH264SPS.offset-for-ref-frame"></a>offset_for_ref_frame</code></em>[255];</p></td> 1844<td> </td> 1845<td> </td> 1846</tr> 1847<tr> 1848<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.num-ref-frames"></a>num_ref_frames</code></em>;</p></td> 1849<td> </td> 1850<td> </td> 1851</tr> 1852<tr> 1853<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.gaps-in-frame-num-value-allowed-flag"></a>gaps_in_frame_num_value_allowed_flag</code></em>;</p></td> 1854<td> </td> 1855<td> </td> 1856</tr> 1857<tr> 1858<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.pic-width-in-mbs-minus1"></a>pic_width_in_mbs_minus1</code></em>;</p></td> 1859<td> </td> 1860<td> </td> 1861</tr> 1862<tr> 1863<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.pic-height-in-map-units-minus1"></a>pic_height_in_map_units_minus1</code></em>;</p></td> 1864<td> </td> 1865<td> </td> 1866</tr> 1867<tr> 1868<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.frame-mbs-only-flag"></a>frame_mbs_only_flag</code></em>;</p></td> 1869<td> </td> 1870<td> </td> 1871</tr> 1872<tr> 1873<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.mb-adaptive-frame-field-flag"></a>mb_adaptive_frame_field_flag</code></em>;</p></td> 1874<td> </td> 1875<td> </td> 1876</tr> 1877<tr> 1878<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.direct-8x8-inference-flag"></a>direct_8x8_inference_flag</code></em>;</p></td> 1879<td> </td> 1880<td> </td> 1881</tr> 1882<tr> 1883<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.frame-cropping-flag"></a>frame_cropping_flag</code></em>;</p></td> 1884<td> </td> 1885<td> </td> 1886</tr> 1887<tr> 1888<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.frame-crop-left-offset"></a>frame_crop_left_offset</code></em>;</p></td> 1889<td> </td> 1890<td> </td> 1891</tr> 1892<tr> 1893<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.frame-crop-right-offset"></a>frame_crop_right_offset</code></em>;</p></td> 1894<td> </td> 1895<td> </td> 1896</tr> 1897<tr> 1898<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.frame-crop-top-offset"></a>frame_crop_top_offset</code></em>;</p></td> 1899<td> </td> 1900<td> </td> 1901</tr> 1902<tr> 1903<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.frame-crop-bottom-offset"></a>frame_crop_bottom_offset</code></em>;</p></td> 1904<td> </td> 1905<td> </td> 1906</tr> 1907<tr> 1908<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.vui-parameters-present-flag"></a>vui_parameters_present_flag</code></em>;</p></td> 1909<td> </td> 1910<td> </td> 1911</tr> 1912<tr> 1913<td class="struct_member_name"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264VUIParams" title="struct GstH264VUIParams"><span class="type">GstH264VUIParams</span></a> <em class="structfield"><code><a name="GstH264SPS.vui-parameters"></a>vui_parameters</code></em>;</p></td> 1914<td> </td> 1915<td> </td> 1916</tr> 1917<tr> 1918<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.chroma-array-type"></a>chroma_array_type</code></em>;</p></td> 1919<td> </td> 1920<td> </td> 1921</tr> 1922<tr> 1923<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264SPS.max-frame-num"></a>max_frame_num</code></em>;</p></td> 1924<td> </td> 1925<td> </td> 1926</tr> 1927<tr> 1928<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.width"></a>width</code></em>;</p></td> 1929<td> </td> 1930<td> </td> 1931</tr> 1932<tr> 1933<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.height"></a>height</code></em>;</p></td> 1934<td> </td> 1935<td> </td> 1936</tr> 1937<tr> 1938<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.crop-rect-width"></a>crop_rect_width</code></em>;</p></td> 1939<td> </td> 1940<td> </td> 1941</tr> 1942<tr> 1943<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.crop-rect-height"></a>crop_rect_height</code></em>;</p></td> 1944<td> </td> 1945<td> </td> 1946</tr> 1947<tr> 1948<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.crop-rect-x"></a>crop_rect_x</code></em>;</p></td> 1949<td> </td> 1950<td> </td> 1951</tr> 1952<tr> 1953<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.crop-rect-y"></a>crop_rect_y</code></em>;</p></td> 1954<td> </td> 1955<td> </td> 1956</tr> 1957<tr> 1958<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.fps-num-removed"></a>fps_num_removed</code></em>;</p></td> 1959<td> </td> 1960<td> </td> 1961</tr> 1962<tr> 1963<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GstH264SPS.fps-den-removed"></a>fps_den_removed</code></em>;</p></td> 1964<td> </td> 1965<td> </td> 1966</tr> 1967<tr> 1968<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GstH264SPS.valid"></a>valid</code></em>;</p></td> 1969<td> </td> 1970<td> </td> 1971</tr> 1972<tr> 1973<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264SPS.extension-type"></a>extension_type</code></em>;</p></td> 1974<td> </td> 1975<td> </td> 1976</tr> 1977</tbody> 1978</table></div> 1979</div> 1980</div> 1981<hr> 1982<div class="refsect2"> 1983<a name="GstH264PPS"></a><h3>struct GstH264PPS</h3> 1984<pre class="programlisting">struct GstH264PPS { 1985 gint id; 1986 1987 GstH264SPS *sequence; 1988 1989 guint8 entropy_coding_mode_flag; 1990 guint8 pic_order_present_flag; 1991 1992 guint32 num_slice_groups_minus1; 1993 1994 /* if num_slice_groups_minus1 > 0 */ 1995 guint8 slice_group_map_type; 1996 /* and if slice_group_map_type == 0 */ 1997 guint32 run_length_minus1[8]; 1998 /* or if slice_group_map_type == 2 */ 1999 guint32 top_left[8]; 2000 guint32 bottom_right[8]; 2001 /* or if slice_group_map_type == (3, 4, 5) */ 2002 guint8 slice_group_change_direction_flag; 2003 guint32 slice_group_change_rate_minus1; 2004 /* or if slice_group_map_type == 6 */ 2005 guint32 pic_size_in_map_units_minus1; 2006 guint8 *slice_group_id; 2007 2008 guint8 num_ref_idx_l0_active_minus1; 2009 guint8 num_ref_idx_l1_active_minus1; 2010 guint8 weighted_pred_flag; 2011 guint8 weighted_bipred_idc; 2012 gint8 pic_init_qp_minus26; 2013 gint8 pic_init_qs_minus26; 2014 gint8 chroma_qp_index_offset; 2015 guint8 deblocking_filter_control_present_flag; 2016 guint8 constrained_intra_pred_flag; 2017 guint8 redundant_pic_cnt_present_flag; 2018 2019 guint8 transform_8x8_mode_flag; 2020 2021 guint8 scaling_lists_4x4[6][16]; 2022 guint8 scaling_lists_8x8[6][64]; 2023 2024 guint8 second_chroma_qp_index_offset; 2025 2026 gboolean valid; 2027}; 2028</pre> 2029<p>H264 Picture Parameter Set</p> 2030</div> 2031<hr> 2032<div class="refsect2"> 2033<a name="GstH264HRDParams"></a><h3>struct GstH264HRDParams</h3> 2034<pre class="programlisting">struct GstH264HRDParams { 2035 guint8 cpb_cnt_minus1; 2036 guint8 bit_rate_scale; 2037 guint8 cpb_size_scale; 2038 2039 guint32 bit_rate_value_minus1[32]; 2040 guint32 cpb_size_value_minus1[32]; 2041 guint8 cbr_flag[32]; 2042 2043 guint8 initial_cpb_removal_delay_length_minus1; 2044 guint8 cpb_removal_delay_length_minus1; 2045 guint8 dpb_output_delay_length_minus1; 2046 guint8 time_offset_length; 2047}; 2048</pre> 2049<p>Defines the HRD parameters</p> 2050<div class="refsect3"> 2051<a name="GstH264HRDParams.members"></a><h4>Members</h4> 2052<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2053<colgroup> 2054<col width="300px" class="struct_members_name"> 2055<col class="struct_members_description"> 2056<col width="200px" class="struct_members_annotations"> 2057</colgroup> 2058<tbody> 2059<tr> 2060<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.cpb-cnt-minus1"></a>cpb_cnt_minus1</code></em>;</p></td> 2061<td class="struct_member_description"><p>plus 1 specifies the number of alternative 2062CPB specifications in the bitstream</p></td> 2063<td class="struct_member_annotations"> </td> 2064</tr> 2065<tr> 2066<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.bit-rate-scale"></a>bit_rate_scale</code></em>;</p></td> 2067<td class="struct_member_description"><p>specifies the maximum input bit rate of the 2068SchedSelIdx-th CPB</p></td> 2069<td class="struct_member_annotations"> </td> 2070</tr> 2071<tr> 2072<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.cpb-size-scale"></a>cpb_size_scale</code></em>;</p></td> 2073<td class="struct_member_description"><p>specifies the CPB size of the SchedSelIdx-th CPB</p></td> 2074<td class="struct_member_annotations"> </td> 2075</tr> 2076<tr> 2077<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264HRDParams.bit-rate-value-minus1"></a>bit_rate_value_minus1</code></em>[32];</p></td> 2078<td> </td> 2079<td> </td> 2080</tr> 2081<tr> 2082<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264HRDParams.cpb-size-value-minus1"></a>cpb_size_value_minus1</code></em>[32];</p></td> 2083<td class="struct_member_description"><p>is used together with cpb_size_scale to specify the 2084SchedSelIdx-th CPB size</p></td> 2085<td class="struct_member_annotations"> </td> 2086</tr> 2087<tr> 2088<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.cbr-flag"></a>cbr_flag</code></em>[32];</p></td> 2089<td class="struct_member_description"><p>Specifies if running in constant or intermittent bit rate mode</p></td> 2090<td class="struct_member_annotations"> </td> 2091</tr> 2092<tr> 2093<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.initial-cpb-removal-delay-length-minus1"></a>initial_cpb_removal_delay_length_minus1</code></em>;</p></td> 2094<td class="struct_member_description"><p>specifies the length in bits of 2095the cpb_removal_delay syntax element</p></td> 2096<td class="struct_member_annotations"> </td> 2097</tr> 2098<tr> 2099<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.cpb-removal-delay-length-minus1"></a>cpb_removal_delay_length_minus1</code></em>;</p></td> 2100<td class="struct_member_description"><p>specifies the length in bits of the 2101dpb_output_delay syntax element</p></td> 2102<td class="struct_member_annotations"> </td> 2103</tr> 2104<tr> 2105<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.dpb-output-delay-length-minus1"></a>dpb_output_delay_length_minus1</code></em>;</p></td> 2106<td class="struct_member_description"><div class="blockquote"><blockquote class="blockquote"><p>0 specifies the length in bits of the time_offset syntax element. 2107=0 specifies that the time_offset syntax element is not present</p></blockquote></div></td> 2108<td class="struct_member_annotations"> </td> 2109</tr> 2110<tr> 2111<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264HRDParams.time-offset-length"></a>time_offset_length</code></em>;</p></td> 2112<td class="struct_member_description"><p>Length of the time offset</p></td> 2113<td class="struct_member_annotations"> </td> 2114</tr> 2115</tbody> 2116</table></div> 2117</div> 2118</div> 2119<hr> 2120<div class="refsect2"> 2121<a name="GstH264VUIParams"></a><h3>struct GstH264VUIParams</h3> 2122<pre class="programlisting">struct GstH264VUIParams { 2123 guint8 aspect_ratio_info_present_flag; 2124 guint8 aspect_ratio_idc; 2125 /* if aspect_ratio_idc == 255 */ 2126 guint16 sar_width; 2127 guint16 sar_height; 2128 2129 guint8 overscan_info_present_flag; 2130 /* if overscan_info_present_flag */ 2131 guint8 overscan_appropriate_flag; 2132 2133 guint8 video_signal_type_present_flag; 2134 guint8 video_format; 2135 guint8 video_full_range_flag; 2136 guint8 colour_description_present_flag; 2137 guint8 colour_primaries; 2138 guint8 transfer_characteristics; 2139 guint8 matrix_coefficients; 2140 2141 guint8 chroma_loc_info_present_flag; 2142 guint8 chroma_sample_loc_type_top_field; 2143 guint8 chroma_sample_loc_type_bottom_field; 2144 2145 guint8 timing_info_present_flag; 2146 /* if timing_info_present_flag */ 2147 guint32 num_units_in_tick; 2148 guint32 time_scale; 2149 guint8 fixed_frame_rate_flag; 2150 2151 guint8 nal_hrd_parameters_present_flag; 2152 /* if nal_hrd_parameters_present_flag */ 2153 GstH264HRDParams nal_hrd_parameters; 2154 2155 guint8 vcl_hrd_parameters_present_flag; 2156 /* if vcl_hrd_parameters_present_flag */ 2157 GstH264HRDParams vcl_hrd_parameters; 2158 2159 guint8 low_delay_hrd_flag; 2160 guint8 pic_struct_present_flag; 2161 2162 guint8 bitstream_restriction_flag; 2163 /* if bitstream_restriction_flag */ 2164 guint8 motion_vectors_over_pic_boundaries_flag; 2165 guint32 max_bytes_per_pic_denom; 2166 guint32 max_bits_per_mb_denom; 2167 guint32 log2_max_mv_length_horizontal; 2168 guint32 log2_max_mv_length_vertical; 2169 guint32 num_reorder_frames; 2170 guint32 max_dec_frame_buffering; 2171 2172 /* calculated values */ 2173 guint par_n; 2174 guint par_d; 2175}; 2176</pre> 2177<p>The structure representing the VUI parameters.</p> 2178<div class="refsect3"> 2179<a name="GstH264VUIParams.members"></a><h4>Members</h4> 2180<div class="informaltable"><table class="informaltable" width="100%" border="0"> 2181<colgroup> 2182<col width="300px" class="struct_members_name"> 2183<col class="struct_members_description"> 2184<col width="200px" class="struct_members_annotations"> 2185</colgroup> 2186<tbody> 2187<tr> 2188<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.aspect-ratio-info-present-flag"></a>aspect_ratio_info_present_flag</code></em>;</p></td> 2189<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> specifies that aspect_ratio_idc is present. 2190<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> specifies that aspect_ratio_idc is not present 2191<em class="parameter"><code>aspect_ratio_idc</code></em> 2192specifies the value of the sample aspect ratio of the luma samples 2193<em class="parameter"><code>sar_width</code></em> 2194indicates the horizontal size of the sample aspect ratio 2195<em class="parameter"><code>sar_height</code></em> 2196indicates the vertical size of the sample aspect ratio</p></td> 2197<td class="struct_member_annotations"> </td> 2198</tr> 2199<tr> 2200<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.aspect-ratio-idc"></a>aspect_ratio_idc</code></em>;</p></td> 2201<td> </td> 2202<td> </td> 2203</tr> 2204<tr> 2205<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="GstH264VUIParams.sar-width"></a>sar_width</code></em>;</p></td> 2206<td> </td> 2207<td> </td> 2208</tr> 2209<tr> 2210<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="GstH264VUIParams.sar-height"></a>sar_height</code></em>;</p></td> 2211<td> </td> 2212<td> </td> 2213</tr> 2214<tr> 2215<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.overscan-info-present-flag"></a>overscan_info_present_flag</code></em>;</p></td> 2216<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> overscan_appropriate_flag is present <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p></td> 2217<td class="struct_member_annotations"> </td> 2218</tr> 2219<tr> 2220<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.overscan-appropriate-flag"></a>overscan_appropriate_flag</code></em>;</p></td> 2221<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> indicates that the cropped decoded pictures 2222output are suitable for display using overscan. <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> the cropped decoded pictures 2223output contain visually important information</p></td> 2224<td class="struct_member_annotations"> </td> 2225</tr> 2226<tr> 2227<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.video-signal-type-present-flag"></a>video_signal_type_present_flag</code></em>;</p></td> 2228<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> specifies that video_format, video_full_range_flag and 2229colour_description_present_flag are present.</p></td> 2230<td class="struct_member_annotations"> </td> 2231</tr> 2232<tr> 2233<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.video-format"></a>video_format</code></em>;</p></td> 2234<td class="struct_member_description"><p>indicates the representation of the picture</p></td> 2235<td class="struct_member_annotations"> </td> 2236</tr> 2237<tr> 2238<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.video-full-range-flag"></a>video_full_range_flag</code></em>;</p></td> 2239<td class="struct_member_description"><p>indicates the black level and range of the luma and chroma signals</p></td> 2240<td class="struct_member_annotations"> </td> 2241</tr> 2242<tr> 2243<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.colour-description-present-flag"></a>colour_description_present_flag</code></em>;</p></td> 2244<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> specifies that colour_primaries, 2245transfer_characteristics and matrix_coefficients are present</p></td> 2246<td class="struct_member_annotations"> </td> 2247</tr> 2248<tr> 2249<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.colour-primaries"></a>colour_primaries</code></em>;</p></td> 2250<td class="struct_member_description"><p>indicates the chromaticity coordinates of the source primaries</p></td> 2251<td class="struct_member_annotations"> </td> 2252</tr> 2253<tr> 2254<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.transfer-characteristics"></a>transfer_characteristics</code></em>;</p></td> 2255<td class="struct_member_description"><p>indicates the opto-electronic transfer characteristic</p></td> 2256<td class="struct_member_annotations"> </td> 2257</tr> 2258<tr> 2259<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.matrix-coefficients"></a>matrix_coefficients</code></em>;</p></td> 2260<td class="struct_member_description"><p>describes the matrix coefficients used in deriving luma and chroma signals</p></td> 2261<td class="struct_member_annotations"> </td> 2262</tr> 2263<tr> 2264<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.chroma-loc-info-present-flag"></a>chroma_loc_info_present_flag</code></em>;</p></td> 2265<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> specifies that chroma_sample_loc_type_top_field and 2266chroma_sample_loc_type_bottom_field are present, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p></td> 2267<td class="struct_member_annotations"> </td> 2268</tr> 2269<tr> 2270<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.chroma-sample-loc-type-top-field"></a>chroma_sample_loc_type_top_field</code></em>;</p></td> 2271<td class="struct_member_description"><p>specify the location of chroma for top field 2272<em class="parameter"><code>chroma_sample_loc_type_bottom_field</code></em> 2273specify the location of chroma for bottom field</p></td> 2274<td class="struct_member_annotations"> </td> 2275</tr> 2276<tr> 2277<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.chroma-sample-loc-type-bottom-field"></a>chroma_sample_loc_type_bottom_field</code></em>;</p></td> 2278<td> </td> 2279<td> </td> 2280</tr> 2281<tr> 2282<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.timing-info-present-flag"></a>timing_info_present_flag</code></em>;</p></td> 2283<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> specifies that num_units_in_tick, 2284time_scale and fixed_frame_rate_flag are present in the bitstream</p></td> 2285<td class="struct_member_annotations"> </td> 2286</tr> 2287<tr> 2288<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.num-units-in-tick"></a>num_units_in_tick</code></em>;</p></td> 2289<td class="struct_member_description"><p>is the number of time units of a clock operating at the frequency time_scale Hz 2290time_scale: is the number of time units that pass in one second</p></td> 2291<td class="struct_member_annotations"> </td> 2292</tr> 2293<tr> 2294<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.time-scale"></a>time_scale</code></em>;</p></td> 2295<td> </td> 2296<td> </td> 2297</tr> 2298<tr> 2299<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.fixed-frame-rate-flag"></a>fixed_frame_rate_flag</code></em>;</p></td> 2300<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> indicates that the temporal distance between the HRD output times 2301of any two consecutive pictures in output order is constrained as specified in the spec, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> 2302otherwise.</p></td> 2303<td class="struct_member_annotations"> </td> 2304</tr> 2305<tr> 2306<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.nal-hrd-parameters-present-flag"></a>nal_hrd_parameters_present_flag</code></em>;</p></td> 2307<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if NAL HRD parameters exist in the bitstream</p></td> 2308<td class="struct_member_annotations"> </td> 2309</tr> 2310<tr> 2311<td class="struct_member_name"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264HRDParams" title="struct GstH264HRDParams"><span class="type">GstH264HRDParams</span></a> <em class="structfield"><code><a name="GstH264VUIParams.nal-hrd-parameters"></a>nal_hrd_parameters</code></em>;</p></td> 2312<td> </td> 2313<td> </td> 2314</tr> 2315<tr> 2316<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.vcl-hrd-parameters-present-flag"></a>vcl_hrd_parameters_present_flag</code></em>;</p></td> 2317<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if VCL HRD parameters exist in the bitstream</p></td> 2318<td class="struct_member_annotations"> </td> 2319</tr> 2320<tr> 2321<td class="struct_member_name"><p><a class="link" href="gst-plugins-bad-libs-h264parser.html#GstH264HRDParams" title="struct GstH264HRDParams"><span class="type">GstH264HRDParams</span></a> <em class="structfield"><code><a name="GstH264VUIParams.vcl-hrd-parameters"></a>vcl_hrd_parameters</code></em>;</p></td> 2322<td> </td> 2323<td> </td> 2324</tr> 2325<tr> 2326<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.low-delay-hrd-flag"></a>low_delay_hrd_flag</code></em>;</p></td> 2327<td class="struct_member_description"><p>specifies the HRD operational mode</p></td> 2328<td class="struct_member_annotations"> </td> 2329</tr> 2330<tr> 2331<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.pic-struct-present-flag"></a>pic_struct_present_flag</code></em>;</p></td> 2332<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> specifies that picture timing SEI messages are present or not</p></td> 2333<td class="struct_member_annotations"> </td> 2334</tr> 2335<tr> 2336<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.bitstream-restriction-flag"></a>bitstream_restriction_flag</code></em>;</p></td> 2337<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> specifies that the following coded video sequence bitstream restriction 2338parameters are present</p></td> 2339<td class="struct_member_annotations"> </td> 2340</tr> 2341<tr> 2342<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> <em class="structfield"><code><a name="GstH264VUIParams.motion-vectors-over-pic-boundaries-flag"></a>motion_vectors_over_pic_boundaries_flag</code></em>;</p></td> 2343<td class="struct_member_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> indicates that no sample outside the 2344picture boundaries and no sample at a fractional sample position, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> indicates that one or more 2345samples outside picture boundaries may be used in inter prediction</p></td> 2346<td class="struct_member_annotations"> </td> 2347</tr> 2348<tr> 2349<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.max-bytes-per-pic-denom"></a>max_bytes_per_pic_denom</code></em>;</p></td> 2350<td class="struct_member_description"><p>indicates a number of bytes not exceeded by the sum of the sizes of 2351the VCL NAL units associated with any coded picture in the coded video sequence.</p></td> 2352<td class="struct_member_annotations"> </td> 2353</tr> 2354<tr> 2355<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.max-bits-per-mb-denom"></a>max_bits_per_mb_denom</code></em>;</p></td> 2356<td class="struct_member_description"><p>indicates the maximum number of coded bits of macroblock_layer</p></td> 2357<td class="struct_member_annotations"> </td> 2358</tr> 2359<tr> 2360<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.log2-max-mv-length-horizontal"></a>log2_max_mv_length_horizontal</code></em>;</p></td> 2361<td class="struct_member_description"><p>indicate the maximum absolute value of a decoded horizontal 2362motion vector component</p></td> 2363<td class="struct_member_annotations"> </td> 2364</tr> 2365<tr> 2366<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.log2-max-mv-length-vertical"></a>log2_max_mv_length_vertical</code></em>;</p></td> 2367<td class="struct_member_description"><p>indicate the maximum absolute value of a decoded vertical 2368motion vector component</p></td> 2369<td class="struct_member_annotations"> </td> 2370</tr> 2371<tr> 2372<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.num-reorder-frames"></a>num_reorder_frames</code></em>;</p></td> 2373<td class="struct_member_description"><p>indicates the maximum number of frames, complementary field pairs, 2374or non-paired fields that precede any frame,</p></td> 2375<td class="struct_member_annotations"> </td> 2376</tr> 2377<tr> 2378<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstH264VUIParams.max-dec-frame-buffering"></a>max_dec_frame_buffering</code></em>;</p></td> 2379<td class="struct_member_description"><p>specifies the required size of the HRD decoded picture buffer in 2380units of frame buffers.</p></td> 2381<td class="struct_member_annotations"> </td> 2382</tr> 2383<tr> 2384<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstH264VUIParams.par-n"></a>par_n</code></em>;</p></td> 2385<td> </td> 2386<td> </td> 2387</tr> 2388<tr> 2389<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstH264VUIParams.par-d"></a>par_d</code></em>;</p></td> 2390<td> </td> 2391<td> </td> 2392</tr> 2393</tbody> 2394</table></div> 2395</div> 2396</div> 2397<hr> 2398<div class="refsect2"> 2399<a name="GstH264DecRefPicMarking"></a><h3>struct GstH264DecRefPicMarking</h3> 2400<pre class="programlisting">struct GstH264DecRefPicMarking { 2401 /* if slice->nal_unit.IdrPicFlag */ 2402 guint8 no_output_of_prior_pics_flag; 2403 guint8 long_term_reference_flag; 2404 2405 guint8 adaptive_ref_pic_marking_mode_flag; 2406 GstH264RefPicMarking ref_pic_marking[10]; 2407 guint8 n_ref_pic_marking; 2408}; 2409</pre> 2410</div> 2411<hr> 2412<div class="refsect2"> 2413<a name="GstH264RefPicMarking"></a><h3>struct GstH264RefPicMarking</h3> 2414<pre class="programlisting">struct GstH264RefPicMarking { 2415 guint8 memory_management_control_operation; 2416 2417 guint32 difference_of_pic_nums_minus1; 2418 guint32 long_term_pic_num; 2419 guint32 long_term_frame_idx; 2420 guint32 max_long_term_frame_idx_plus1; 2421}; 2422</pre> 2423</div> 2424<hr> 2425<div class="refsect2"> 2426<a name="GstH264PredWeightTable"></a><h3>struct GstH264PredWeightTable</h3> 2427<pre class="programlisting">struct GstH264PredWeightTable { 2428 guint8 luma_log2_weight_denom; 2429 guint8 chroma_log2_weight_denom; 2430 2431 gint16 luma_weight_l0[32]; 2432 gint8 luma_offset_l0[32]; 2433 2434 /* if seq->ChromaArrayType != 0 */ 2435 gint16 chroma_weight_l0[32][2]; 2436 gint8 chroma_offset_l0[32][2]; 2437 2438 /* if slice->slice_type % 5 == 1 */ 2439 gint16 luma_weight_l1[32]; 2440 gint8 luma_offset_l1[32]; 2441 2442 /* and if seq->ChromaArrayType != 0 */ 2443 gint16 chroma_weight_l1[32][2]; 2444 gint8 chroma_offset_l1[32][2]; 2445}; 2446</pre> 2447</div> 2448<hr> 2449<div class="refsect2"> 2450<a name="GstH264SliceHdr"></a><h3>struct GstH264SliceHdr</h3> 2451<pre class="programlisting">struct GstH264SliceHdr { 2452 guint32 first_mb_in_slice; 2453 guint32 type; 2454 GstH264PPS *pps; 2455 2456 /* if seq->separate_colour_plane_flag */ 2457 guint8 colour_plane_id; 2458 2459 guint16 frame_num; 2460 2461 guint8 field_pic_flag; 2462 guint8 bottom_field_flag; 2463 2464 /* if nal_unit.type == 5 */ 2465 guint16 idr_pic_id; 2466 2467 /* if seq->pic_order_cnt_type == 0 */ 2468 guint16 pic_order_cnt_lsb; 2469 /* if seq->pic_order_present_flag && !field_pic_flag */ 2470 gint32 delta_pic_order_cnt_bottom; 2471 2472 gint32 delta_pic_order_cnt[2]; 2473 guint8 redundant_pic_cnt; 2474 2475 /* if slice_type == B_SLICE */ 2476 guint8 direct_spatial_mv_pred_flag; 2477 2478 guint8 num_ref_idx_l0_active_minus1; 2479 guint8 num_ref_idx_l1_active_minus1; 2480 2481 guint8 ref_pic_list_modification_flag_l0; 2482 guint8 n_ref_pic_list_modification_l0; 2483 GstH264RefPicListModification ref_pic_list_modification_l0[32]; 2484 guint8 ref_pic_list_modification_flag_l1; 2485 guint8 n_ref_pic_list_modification_l1; 2486 GstH264RefPicListModification ref_pic_list_modification_l1[32]; 2487 2488 GstH264PredWeightTable pred_weight_table; 2489 /* if nal_unit.ref_idc != 0 */ 2490 GstH264DecRefPicMarking dec_ref_pic_marking; 2491 2492 guint8 cabac_init_idc; 2493 gint8 slice_qp_delta; 2494 gint8 slice_qs_delta; 2495 2496 guint8 disable_deblocking_filter_idc; 2497 gint8 slice_alpha_c0_offset_div2; 2498 gint8 slice_beta_offset_div2; 2499 2500 guint16 slice_group_change_cycle; 2501 2502 /* calculated values */ 2503 guint32 max_pic_num; 2504 gboolean valid; 2505 2506 /* Size of the slice_header() in bits */ 2507 guint header_size; 2508 2509 /* Number of emulation prevention bytes (EPB) in this slice_header() */ 2510 guint n_emulation_prevention_bytes; 2511}; 2512</pre> 2513</div> 2514<hr> 2515<div class="refsect2"> 2516<a name="GstH264ClockTimestamp"></a><h3>struct GstH264ClockTimestamp</h3> 2517<pre class="programlisting">struct GstH264ClockTimestamp { 2518 guint8 ct_type; 2519 guint8 nuit_field_based_flag; 2520 guint8 counting_type; 2521 guint8 discontinuity_flag; 2522 guint8 cnt_dropped_flag; 2523 guint8 n_frames; 2524 2525 guint8 seconds_flag; 2526 guint8 seconds_value; 2527 2528 guint8 minutes_flag; 2529 guint8 minutes_value; 2530 2531 guint8 hours_flag; 2532 guint8 hours_value; 2533 2534 guint32 time_offset; 2535}; 2536</pre> 2537</div> 2538<hr> 2539<div class="refsect2"> 2540<a name="GstH264PicTiming"></a><h3>struct GstH264PicTiming</h3> 2541<pre class="programlisting">struct GstH264PicTiming { 2542 guint32 cpb_removal_delay; 2543 guint32 dpb_output_delay; 2544 2545 guint8 pic_struct_present_flag; 2546 /* if pic_struct_present_flag */ 2547 guint8 pic_struct; 2548 2549 guint8 clock_timestamp_flag[3]; 2550 GstH264ClockTimestamp clock_timestamp[3]; 2551}; 2552</pre> 2553</div> 2554<hr> 2555<div class="refsect2"> 2556<a name="GstH264BufferingPeriod"></a><h3>struct GstH264BufferingPeriod</h3> 2557<pre class="programlisting">struct GstH264BufferingPeriod { 2558 GstH264SPS *sps; 2559 2560 /* seq->vui_parameters->nal_hrd_parameters_present_flag */ 2561 guint32 nal_initial_cpb_removal_delay[32]; 2562 guint32 nal_initial_cpb_removal_delay_offset[32]; 2563 2564 /* seq->vui_parameters->vcl_hrd_parameters_present_flag */ 2565 guint32 vcl_initial_cpb_removal_delay[32]; 2566 guint32 vcl_initial_cpb_removal_delay_offset[32]; 2567}; 2568</pre> 2569</div> 2570<hr> 2571<div class="refsect2"> 2572<a name="GstH264SEIMessage"></a><h3>struct GstH264SEIMessage</h3> 2573<pre class="programlisting">struct GstH264SEIMessage { 2574 GstH264SEIPayloadType payloadType; 2575 2576 union { 2577 GstH264BufferingPeriod buffering_period; 2578 GstH264PicTiming pic_timing; 2579 GstH264RegisteredUserData registered_user_data; 2580 GstH264RecoveryPoint recovery_point; 2581 GstH264StereoVideoInfo stereo_video_info; 2582 GstH264FramePacking frame_packing; 2583 /* ... could implement more */ 2584 } payload; 2585}; 2586</pre> 2587</div> 2588</div> 2589</div> 2590<div class="footer"> 2591<hr>Generated by GTK-Doc V1.28</div> 2592</body> 2593</html>