<spanid="_CPPv3N5shaka8PackagerE"></span><spanid="_CPPv2N5shaka8PackagerE"></span><spanid="shaka::Packager"></span><spanclass="target"id="db/dd0/classshaka_1_1Packager"></span><spanclass="k"><spanclass="pre">class</span></span><spanclass="w"></span><spanclass="sig-prename descclassname"><spanclass="n"><spanclass="pre">shaka</span></span><spanclass="p"><spanclass="pre">::</span></span></span><spanclass="sig-name descname"><spanclass="n"><spanclass="pre">Packager</span></span></span><aclass="headerlink"href="#_CPPv4N5shaka8PackagerE"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"><spanclass="n"><spanclass="pre">Status</span></span></a><spanclass="w"></span><spanclass="sig-name descname"><spanclass="n"><spanclass="pre">Run</span></span></span><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. </p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><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><spanclass="kt"><spanclass="pre">void</span></span><spanclass="w"></span><spanclass="sig-name descname"><spanclass="n"><spanclass="pre">Cancel</span></span></span><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><spanclass="k"><spanclass="pre">static</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">std</span></span><spanclass="p"><spanclass="pre">::</span></span><spanclass="n"><spanclass="pre">string</span></span><spanclass="w"></span><spanclass="sig-name descname"><spanclass="n"><spanclass="pre">GetLibraryVersion</span></span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv4N5shaka8Packager17GetLibraryVersionEv"title="Permalink to this definition">¶</a><br/></dt>
<dd><dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p>The version of the library. </p>
<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><spanclass="k"><spanclass="pre">static</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">std</span></span><spanclass="p"><spanclass="pre">::</span></span><spanclass="n"><spanclass="pre">string</span></span><spanclass="w"></span><spanclass="sig-name descname"><spanclass="n"><spanclass="pre">DefaultStreamLabelFunction</span></span></span><spanclass="sig-paren">(</span><spanclass="kt"><spanclass="pre">int</span></span><spanclass="w"></span><spanclass="n sig-param"><spanclass="pre">max_sd_pixels</span></span>, <spanclass="kt"><spanclass="pre">int</span></span><spanclass="w"></span><spanclass="n sig-param"><spanclass="pre">max_hd_pixels</span></span>, <spanclass="kt"><spanclass="pre">int</span></span><spanclass="w"></span><spanclass="n sig-param"><spanclass="pre">max_uhd1_pixels</span></span>, <spanclass="k"><spanclass="pre">const</span></span><spanclass="w"></span><aclass="reference internal"href="library_details.html#_CPPv4N5shaka16EncryptionParamsE"title="shaka::EncryptionParams"><spanclass="n"><spanclass="pre">EncryptionParams</span></span></a><spanclass="p"><spanclass="pre">::</span></span><aclass="reference internal"href="library_details.html#_CPPv4N5shaka16EncryptionParams25EncryptedStreamAttributesE"title="shaka::EncryptionParams::EncryptedStreamAttributes"><spanclass="n"><spanclass="pre">EncryptedStreamAttributes</span></span></a><spanclass="w"></span><spanclass="p"><spanclass="pre">&</span></span><spanclass="n sig-param"><spanclass="pre">stream_attributes</span></span><spanclass="sig-paren">)</span><aclass="headerlink"href="#_CPPv4N5shaka8Packager26DefaultStreamLabelFunctionEiiiRKN16EncryptionParams25EncryptedStreamAttributesE"title="Permalink to this definition">¶</a><br/></dt>
<dd><p>Default stream label function implementation. </p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>max_sd_pixels</strong>– 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><strong>max_hd_pixels</strong>– 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><strong>max_uhd1_pixels</strong>– 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>
<ddclass="field-even"><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>
<spanid="_CPPv3N5shaka8Packager16PackagerInternalE"></span><spanid="_CPPv2N5shaka8Packager16PackagerInternalE"></span><spanid="shaka::Packager::PackagerInternal"></span><spanclass="target"id="dc/d33/structshaka_1_1Packager_1_1PackagerInternal"></span><spanclass="k"><spanclass="pre">struct</span></span><spanclass="w"></span><spanclass="sig-name descname"><spanclass="n"><spanclass="pre">PackagerInternal</span></span></span><aclass="headerlink"href="#_CPPv4N5shaka8Packager16PackagerInternalE"title="Permalink to this definition">¶</a><br/></dt>