<divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Copyright 2017 Google Inc. All rights reserved.</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment">// Use of this source code is governed by a BSD-style</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">// license that can be found in the LICENSE file or at</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">// https://developers.google.com/open-source/licenses/bsd</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> </div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="preprocessor">#include "packager/packager.h"</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> </div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="preprocessor">#include <algorithm></span></div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> </div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="preprocessor">#include "packager/app/job_manager.h"</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="preprocessor">#include "packager/app/libcrypto_threading.h"</span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#include "packager/app/muxer_factory.h"</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="preprocessor">#include "packager/app/packager_util.h"</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="preprocessor">#include "packager/app/stream_descriptor.h"</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#include "packager/base/at_exit.h"</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="preprocessor">#include "packager/base/files/file_path.h"</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="preprocessor">#include "packager/base/logging.h"</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor">#include "packager/base/optional.h"</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#include "packager/base/path_service.h"</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor">#include "packager/base/strings/string_util.h"</span></div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#include "packager/base/strings/stringprintf.h"</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="preprocessor">#include "packager/base/threading/simple_thread.h"</span></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor">#include "packager/base/time/clock.h"</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="preprocessor">#include "packager/file/file.h"</span></div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="preprocessor">#include "packager/hls/base/hls_notifier.h"</span></div><divclass="line"><aname="l00027"></a><spanclas
<divclass="ttc"id="structshaka_1_1MpdParams_html"><divclass="ttname"><ahref="../../df/ddc/structshaka_1_1MpdParams.html">shaka::MpdParams</a></div><divclass="ttdoc">DASH MPD related parameters. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d3/d07/mpd__params_8h_source.html#l00016">mpd_params.h:16</a></div></div>
<divclass="ttc"id="structshaka_1_1StreamDescriptor_html"><divclass="ttname"><ahref="../../d2/d7b/structshaka_1_1StreamDescriptor.html">shaka::StreamDescriptor</a></div><divclass="ttdoc">Defines a single input/output stream. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/db5/packager_8h_source.html#l00069">packager.h:69</a></div></div>
<divclass="ttc"id="structshaka_1_1StreamDescriptor_html_ae86324b838baa66dbab9a3d35352e200"><divclass="ttname"><ahref="../../d2/d7b/structshaka_1_1StreamDescriptor.html#ae86324b838baa66dbab9a3d35352e200">shaka::StreamDescriptor::input</a></div><divclass="ttdeci">std::string input</div><divclass="ttdoc">Input/source media file path or network stream URL. Required. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/db5/packager_8h_source.html#l00071">packager.h:71</a></div></div>
<divclass="ttc"id="structshaka_1_1PackagingParams_html_a88e4e2cc444fb79b8e35075dd5a20fbe"><divclass="ttname"><ahref="../../d5/de3/structshaka_1_1PackagingParams.html#a88e4e2cc444fb79b8e35075dd5a20fbe">shaka::PackagingParams::hls_params</a></div><divclass="ttdeci">HlsParams hls_params</div><divclass="ttdoc">HLS related parameters. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/db5/packager_8h_source.html#l00055">packager.h:55</a></div></div>
<divclass="ttc"id="classshaka_1_1hls_1_1SimpleHlsNotifier_html"><divclass="ttname"><ahref="../../d7/d5c/classshaka_1_1hls_1_1SimpleHlsNotifier.html">shaka::hls::SimpleHlsNotifier</a></div><divclass="ttdoc">This is thread safe. </div><divclass="ttdef"><b>Definition:</b><ahref="../../da/d55/simple__hls__notifier_8h_source.html#l00039">simple_hls_notifier.h:39</a></div></div>
<divclass="ttc"id="structshaka_1_1HlsParams_html"><divclass="ttname"><ahref="../../d0/da8/structshaka_1_1HlsParams.html">shaka::HlsParams</a></div><divclass="ttdoc">HLS related parameters. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d6/d47/hls__params_8h_source.html#l00023">hls_params.h:23</a></div></div>
<divclass="ttc"id="structshaka_1_1StreamDescriptor_html_af3e55c8970e8a7604ca79a98f4642872"><divclass="ttname"><ahref="../../d2/d7b/structshaka_1_1StreamDescriptor.html#af3e55c8970e8a7604ca79a98f4642872">shaka::StreamDescriptor::segment_template</a></div><divclass="ttdeci">std::string segment_template</div><divclass="ttdoc">Specifies segment template. Can be empty. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/db5/packager_8h_source.html#l00081">packager.h:81</a></div></div>
<divclass="ttc"id="classshaka_1_1media_1_1LibcryptoThreading_html"><divclass="ttname"><ahref="../../d3/d51/classshaka_1_1media_1_1LibcryptoThreading.html">shaka::media::LibcryptoThreading</a></div><divclass="ttdoc">Convenience class which initializes and terminates libcrypto threading. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d7/d22/libcrypto__threading_8h_source.html#l00016">libcrypto_threading.h:16</a></div></div>
<divclass="ttc"id="namespaceshaka_html"><divclass="ttname"><ahref="../../d8/daf/namespaceshaka.html">shaka</a></div><divclass="ttdoc">All the methods that are virtual are virtual for mocking. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d4/d15/gflags__hex__bytes_8cc_source.html#l00011">gflags_hex_bytes.cc:11</a></div></div>
<divclass="ttc"id="structshaka_1_1PackagingParams_html_aa52d546c86b3b36234bcfc0cd50ef083"><divclass="ttname"><ahref="../../d5/de3/structshaka_1_1PackagingParams.html#aa52d546c86b3b36234bcfc0cd50ef083">shaka::PackagingParams::ad_cue_generator_params</a></div><divclass="ttdeci">AdCueGeneratorParams ad_cue_generator_params</div><divclass="ttdoc">Out of band cuepoint parameters. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/db5/packager_8h_source.html#l00047">packager.h:47</a></div></div>
<divclass="ttc"id="structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_html"><divclass="ttname"><ahref="../../d7/d6d/structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes.html">shaka::EncryptionParams::EncryptedStreamAttributes</a></div><divclass="ttdoc">Encrypted stream information that is used to determine stream label. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00152">crypto_params.h:152</a></div></div>
<divclass="ttc"id="classshaka_1_1Packager_html_a5323e6dc242b1cdd6208cd6ea77dd0c7"><divclass="ttname"><ahref="../../db/dd0/classshaka_1_1Packager.html#a5323e6dc242b1cdd6208cd6ea77dd0c7">shaka::Packager::Cancel</a></div><divclass="ttdeci">void Cancel()</div><divclass="ttdoc">Cancel packaging. Note that it has to be called from another thread. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d3/d48/packager_8cc_source.html#l00951">packager.cc:951</a></div></div>