shaka-packager/docs/d6/dff/classshaka_1_1media_1_1Nalu...

256 lines
16 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>DASH Media Packaging SDK: shaka::media::Nalu Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">DASH Media Packaging SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
<li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
<li><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="../../hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../d8/daf/namespaceshaka.html">shaka</a></li><li class="navelem"><b>media</b></li><li class="navelem"><a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html">Nalu</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d4/d58/classshaka_1_1media_1_1Nalu-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::media::Nalu Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="../../d4/d87/nalu__reader_8h_source.html">nalu_reader.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a555313353e2e23743ad7a70a3e65574a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>H264NaluType</b> { <br/>
&#160;&#160;<b>H264_Unspecified</b> = 0,
<b>H264_NonIDRSlice</b> = 1,
<b>H264_IDRSlice</b> = 5,
<b>H264_SEIMessage</b> = 6,
<br/>
&#160;&#160;<b>H264_SPS</b> = 7,
<b>H264_PPS</b> = 8,
<b>H264_AUD</b> = 9,
<b>H264_EOSeq</b> = 10,
<br/>
&#160;&#160;<b>H264_FillerData</b> = 12,
<b>H264_SPSExtension</b> = 13,
<b>H264_PrefixNALUnit</b> = 14,
<b>H264_SubsetSPS</b> = 15,
<br/>
&#160;&#160;<b>H264_DepthParameterSet</b> = 16,
<b>H264_Reserved17</b> = 17,
<b>H264_Reserved18</b> = 18,
<b>H264_CodedSliceExtension</b> = 20,
<br/>
&#160;&#160;<b>H264_Reserved22</b> = 22
<br/>
}</td></tr>
<tr class="separator:a555313353e2e23743ad7a70a3e65574a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58c5204869bb765b965162a152ce071e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>H265NaluType</b> { <br/>
&#160;&#160;<b>H265_TRAIL_N</b> = 0,
<b>H265_TRAIL_R</b> = 1,
<b>H265_TSA_N</b> = 2,
<b>H265_TSA_R</b> = 3,
<br/>
&#160;&#160;<b>H265_STSA_N</b> = 4,
<b>H265_STSA_R</b> = 5,
<b>H265_RASL_R</b> = 9,
<b>H265_RSV_VCL_N10</b> = 10,
<br/>
&#160;&#160;<b>H265_RSV_VCL_R15</b> = 15,
<b>H265_BLA_W_LP</b> = 16,
<b>H265_IDR_W_RADL</b> = 19,
<b>H265_IDR_N_LP</b> = 20,
<br/>
&#160;&#160;<b>H265_CRA_NUT</b> = 21,
<b>H265_RSV_IRAP_VCL22</b> = 22,
<b>H265_RSV_IRAP_VCL23</b> = 23,
<b>H265_RSV_VCL31</b> = 31,
<br/>
&#160;&#160;<b>H265_VPS</b> = 32,
<b>H265_SPS</b> = 33,
<b>H265_PPS</b> = 34,
<b>H265_AUD</b> = 35,
<br/>
&#160;&#160;<b>H265_EOS</b> = 36,
<b>H265_EOB</b> = 37,
<b>H265_FD</b> = 38,
<b>H265_PREFIX_SEI</b> = 39,
<br/>
&#160;&#160;<b>H265_RSV_NVCL41</b> = 41,
<b>H265_RSV_NVCL44</b> = 44,
<b>H265_UNSPEC48</b> = 48,
<b>H265_UNSPEC55</b> = 55
<br/>
}</td></tr>
<tr class="separator:a58c5204869bb765b965162a152ce071e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4e0927dbdd7c4700e56b4d1a91ce61d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>CodecType</b> { <b>kH264</b>,
<b>kH265</b>
}</td></tr>
<tr class="separator:ad4e0927dbdd7c4700e56b4d1a91ce61d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aad17891432eafa58e6afd9b5d93fbdd4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aad17891432eafa58e6afd9b5d93fbdd4"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>Initialize</b> (CodecType <a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a86143bb8a31825f06668e97bff66ce2c">type</a>, const uint8_t *<a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a3175755a2a847c3bfc8292434d4ea3b6">data</a>, uint64_t size) WARN_UNUSED_RESULT</td></tr>
<tr class="separator:aad17891432eafa58e6afd9b5d93fbdd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3175755a2a847c3bfc8292434d4ea3b6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3175755a2a847c3bfc8292434d4ea3b6"></a>
const uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a3175755a2a847c3bfc8292434d4ea3b6">data</a> () const </td></tr>
<tr class="memdesc:a3175755a2a847c3bfc8292434d4ea3b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is the pointer to the <a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html">Nalu</a> data, pointing to the header. <br/></td></tr>
<tr class="separator:a3175755a2a847c3bfc8292434d4ea3b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eb982bdbb66c10643b2fb8e2ae7a9ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9eb982bdbb66c10643b2fb8e2ae7a9ae"></a>
uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a9eb982bdbb66c10643b2fb8e2ae7a9ae">header_size</a> () const </td></tr>
<tr class="memdesc:a9eb982bdbb66c10643b2fb8e2ae7a9ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">The size of the header, e.g. 1 for H.264. <br/></td></tr>
<tr class="separator:a9eb982bdbb66c10643b2fb8e2ae7a9ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bcba03125313ea515a61a67c9d2a821"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6bcba03125313ea515a61a67c9d2a821"></a>
uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a6bcba03125313ea515a61a67c9d2a821">payload_size</a> () const </td></tr>
<tr class="memdesc:a6bcba03125313ea515a61a67c9d2a821"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of this <a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html">Nalu</a> minus <a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a9eb982bdbb66c10643b2fb8e2ae7a9ae" title="The size of the header, e.g. 1 for H.264. ">header_size()</a>. <br/></td></tr>
<tr class="separator:a6bcba03125313ea515a61a67c9d2a821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef6dab3fffab72aa7d7d185342dec516"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef6dab3fffab72aa7d7d185342dec516"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>ref_idc</b> () const </td></tr>
<tr class="separator:aef6dab3fffab72aa7d7d185342dec516"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d8239041e3d836d58a882848c675af4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d8239041e3d836d58a882848c675af4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>nuh_layer_id</b> () const </td></tr>
<tr class="separator:a1d8239041e3d836d58a882848c675af4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f37c4dfcf352a57da29285d08a0ec27"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f37c4dfcf352a57da29285d08a0ec27"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>nuh_temporal_id</b> () const </td></tr>
<tr class="separator:a2f37c4dfcf352a57da29285d08a0ec27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86143bb8a31825f06668e97bff66ce2c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a86143bb8a31825f06668e97bff66ce2c">type</a> () const </td></tr>
<tr class="separator:a86143bb8a31825f06668e97bff66ce2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf9f3dce319b6016180e0ec3fc2db705"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf9f3dce319b6016180e0ec3fc2db705"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_aud</b> () const </td></tr>
<tr class="separator:acf9f3dce319b6016180e0ec3fc2db705"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64021d9d683c35d13bb7025f22747b34"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64021d9d683c35d13bb7025f22747b34"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_vcl</b> () const </td></tr>
<tr class="separator:a64021d9d683c35d13bb7025f22747b34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95f9428735ea6967d278198b09f48484"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95f9428735ea6967d278198b09f48484"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dff/classshaka_1_1media_1_1Nalu.html#a95f9428735ea6967d278198b09f48484">is_video_slice</a> () const </td></tr>
<tr class="memdesc:a95f9428735ea6967d278198b09f48484"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slice data partition NALs are not considered as slice NALs. <br/></td></tr>
<tr class="separator:a95f9428735ea6967d278198b09f48484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae00e5560cc0acf07fd099c0daf334b14"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae00e5560cc0acf07fd099c0daf334b14"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>can_start_access_unit</b> () const </td></tr>
<tr class="separator:ae00e5560cc0acf07fd099c0daf334b14"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>For explanations of each struct and its members, see H.264 specification at <a href="http://www.itu.int/rec/T-REC-H.264">http://www.itu.int/rec/T-REC-H.264</a>. </p>
<p>Definition at line <a class="el" href="../../d4/d87/nalu__reader_8h_source.html#l00026">26</a> of file <a class="el" href="../../d4/d87/nalu__reader_8h_source.html">nalu_reader.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a86143bb8a31825f06668e97bff66ce2c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int shaka::media::Nalu::type </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>H264NaluType and H265NaluType enums may be used to compare against the return value. </p>
<p>Definition at line <a class="el" href="../../d4/d87/nalu__reader_8h_source.html#l00112">112</a> of file <a class="el" href="../../d4/d87/nalu__reader_8h_source.html">nalu_reader.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>media/codecs/<a class="el" href="../../d4/d87/nalu__reader_8h_source.html">nalu_reader.h</a></li>
<li>media/codecs/<a class="el" href="../../d1/df5/nalu__reader_8cc_source.html">nalu_reader.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Apr 27 2017 19:44:12 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>