<spanid="_CPPv3N5shaka8PackagerE"></span><spanid="_CPPv2N5shaka8PackagerE"></span><spanid="shaka::Packager"></span><spanclass="target"id="db/dd0/classshaka_1_1Packager"></span><emclass="property">class </em><codeclass="sig-prename descclassname">shaka<codeclass="sig-prename descclassname">::</code></code><codeclass="sig-name descname">Packager</code><aclass="headerlink"href="#_CPPv4N5shaka8PackagerE"title="Permalink to this definition">¶</a><br/></dt>
<spanid="_CPPv3N5shaka8Packager10InitializeERK15PackagingParamsRKNSt6vectorI16StreamDescriptorEE"></span><spanid="_CPPv2N5shaka8Packager10InitializeERK15PackagingParamsRKNSt6vectorI16StreamDescriptorEE"></span><spanid="shaka::Packager::Initialize__PackagingParamsCR.std::vector:StreamDescriptor:CR"></span><spanclass="target"id="db/dd0/classshaka_1_1Packager_1ae40969a98da3a27a0b1633927afb3ce2"></span><aclass="reference internal"href="library_details.html#_CPPv4N5shaka6StatusE"title="shaka::Status">Status</a><codeclass="sig-name descname">Initialize</code><spanclass="sig-paren">(</span><emclass="property">const</em><aclass="reference internal"href="library_details.html#_CPPv4N5shaka15PackagingParamsE"title="shaka::PackagingParams">PackagingParams</a>&<em>packaging_params</em>, <emclass="property">const</em> std::vector<<aclass="reference internal"href="library_details.html#_CPPv4N5shaka16StreamDescriptorE"title="shaka::StreamDescriptor">StreamDescriptor</a>>&<em>stream_descriptors</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv4N5shaka8Packager10InitializeERK15PackagingParamsRKNSt6vectorI16StreamDescriptorEE"title="Permalink to this definition">¶</a><br/></dt>
<spanid="_CPPv3N5shaka8Packager3RunEv"></span><spanid="_CPPv2N5shaka8Packager3RunEv"></span><spanid="shaka::Packager::Run"></span><spanclass="target"id="db/dd0/classshaka_1_1Packager_1a48275206bc7032eb69607081ac0ada08"></span><aclass="reference internal"href="library_details.html#_CPPv4N5shaka6StatusE"title="shaka::Status">Status</a><codeclass="sig-name descname">Run</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv4N5shaka8Packager3RunEv"title="Permalink to this definition">¶</a><br/></dt>
<dd><p>Run the pipeline to completion (or failed / been cancelled). Note that it blocks until completion. <dlclass="simple">
<dt><strong>Return</strong></dt><dd><p>OK on success, an appropriate error code on failure. </p>
<spanid="_CPPv3N5shaka8Packager6CancelEv"></span><spanid="_CPPv2N5shaka8Packager6CancelEv"></span><spanid="shaka::Packager::Cancel"></span><spanclass="target"id="db/dd0/classshaka_1_1Packager_1a5323e6dc242b1cdd6208cd6ea77dd0c7"></span>void <codeclass="sig-name descname">Cancel</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv4N5shaka8Packager6CancelEv"title="Permalink to this definition">¶</a><br/></dt>
<spanid="_CPPv3N5shaka8Packager17GetLibraryVersionEv"></span><spanid="_CPPv2N5shaka8Packager17GetLibraryVersionEv"></span><spanid="shaka::Packager::GetLibraryVersion"></span><spanclass="target"id="db/dd0/classshaka_1_1Packager_1a7bae5b5c202a716f5d890e70afae51b2"></span><emclass="property">static</em> std::string <codeclass="sig-name descname">GetLibraryVersion</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv4N5shaka8Packager17GetLibraryVersionEv"title="Permalink to this definition">¶</a><br/></dt>
<spanid="_CPPv3N5shaka8Packager26DefaultStreamLabelFunctionEiiiRKN16EncryptionParams25EncryptedStreamAttributesE"></span><spanid="_CPPv2N5shaka8Packager26DefaultStreamLabelFunctionEiiiRKN16EncryptionParams25EncryptedStreamAttributesE"></span><spanid="shaka::Packager::DefaultStreamLabelFunction__i.i.i.EncryptionParams::EncryptedStreamAttributesCR"></span><spanclass="target"id="db/dd0/classshaka_1_1Packager_1a59fec4e3f33138081e5222d3553ab948"></span><emclass="property">static</em> std::string <codeclass="sig-name descname">DefaultStreamLabelFunction</code><spanclass="sig-paren">(</span>int <em>max_sd_pixels</em>, int <em>max_hd_pixels</em>, int <em>max_uhd1_pixels</em>, <emclass="property">const</em><aclass="reference internal"href="library_details.html#_CPPv4N5shaka16EncryptionParamsE"title="shaka::EncryptionParams">EncryptionParams</a>::<aclass="reference internal"href="library_details.html#_CPPv4N5shaka16EncryptionParams25EncryptedStreamAttributesE"title="shaka::EncryptionParams::EncryptedStreamAttributes">EncryptedStreamAttributes</a>&<em>stream_attributes</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv4N5shaka8Packager26DefaultStreamLabelFunctionEiiiRKN16EncryptionParams25EncryptedStreamAttributesE"title="Permalink to this definition">¶</a><br/></dt>
<dd><p>Default stream label function implementation. <dlclass="simple">
<dt><strong>Return</strong></dt><dd><p>the stream label associated with <codeclass="docutils literal notranslate"><spanclass="pre">stream_info</span></code>. Can be “AUDIO”, “SD”, “HD”, “UHD1” or “UHD2”. </p>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">max_sd_pixels</span></code>: The threshold to determine whether a video track should be considered as SD. If the max pixels per frame is no higher than max_sd_pixels, i.e. [0, max_sd_pixels], it is SD. </p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">max_hd_pixels</span></code>: The threshold to determine whether a video track should be considered as HD. If the max pixels per frame is higher than max_sd_pixels, but no higher than max_hd_pixels, i.e. (max_sd_pixels, max_hd_pixels], it is HD. </p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">max_uhd1_pixels</span></code>: The threshold to determine whether a video track should be considered as UHD1. If the max pixels per frame is higher than max_hd_pixels, but no higher than max_uhd1_pixels, i.e. (max_hd_pixels, max_uhd1_pixels], it is UHD1. Otherwise it is UHD2. </p></li>
<spanid="_CPPv3N5shaka8Packager16PackagerInternalE"></span><spanid="_CPPv2N5shaka8Packager16PackagerInternalE"></span><spanid="shaka::Packager::PackagerInternal"></span><spanclass="target"id="dc/d33/structshaka_1_1Packager_1_1PackagerInternal"></span><emclass="property">struct </em><codeclass="sig-name descname">PackagerInternal</code><aclass="headerlink"href="#_CPPv4N5shaka8Packager16PackagerInternalE"title="Permalink to this definition">¶</a><br/></dt>