<divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Copyright 2014 Google Inc. All rights reserved.</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="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment">// Defines command line flags for widevine_encryption.</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="stringliteral">"Enable encryption with Widevine key server. User should provide "</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="stringliteral">"either AES signing key (--aes_signing_key, --aes_signing_iv) or "</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="stringliteral">"Enable decryption with Widevine license server/proxy. User should "</span></div>
<divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="stringliteral">"provide either AES signing key (--aes_signing_key, "</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="stringliteral">"--aes_signing_iv) or RSA signing key (--rsa_signing_key_path)."</span>);</div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> DEFINE_string(key_server_url, <spanclass="stringliteral">""</span>, <spanclass="stringliteral">"Key server url. Required for encryption and "</span></div>
<divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> <spanclass="stringliteral">"The name of a stored policy, which specifies DRM content "</span></div>
<divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> <spanclass="stringliteral">"The video track is considered SD if its max pixels per frame is "</span></div>
<divclass="line"><aname="l00036"></a><spanclass="lineno"> 36</span> <spanclass="stringliteral">"no higher than max_sd_pixels. Default: 442368 (768 x 576)."</span>);</div>
<divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span> <spanclass="stringliteral">"The video track is considered HD if its max pixels per frame is "</span></div>
<divclass="line"><aname="l00040"></a><spanclass="lineno"> 40</span> <spanclass="stringliteral">"higher than max_sd_pixels, but no higher than max_hd_pixels. "</span></div>
<divclass="line"><aname="l00041"></a><spanclass="lineno"> 41</span> <spanclass="stringliteral">"Default: 2073600 (1920 x 1080)."</span>);</div>
<divclass="line"><aname="l00044"></a><spanclass="lineno"> 44</span> <spanclass="stringliteral">"The video track is considered UHD1 if its max pixels per frame "</span></div>
<divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> <spanclass="stringliteral">"is higher than max_hd_pixels, but no higher than max_uhd1_pixels."</span></div>
<divclass="line"><aname="l00046"></a><spanclass="lineno"> 46</span> <spanclass="stringliteral">" Otherwise it is UHD2. Default: 8847360 (4096 x 2160)."</span>);</div>
<divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span> DEFINE_string(signer, <spanclass="stringliteral">""</span>, <spanclass="stringliteral">"The name of the signer."</span>);</div>
<divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span> <spanclass="stringliteral">"AES signing key in hex string. --aes_signing_iv is required. "</span></div>
<divclass="line"><aname="l00051"></a><spanclass="lineno"> 51</span> <spanclass="stringliteral">"Exclusive with --rsa_signing_key_path."</span>);</div>
<divclass="line"><aname="l00052"></a><spanclass="lineno"> 52</span> DEFINE_hex_bytes(aes_signing_iv, <spanclass="stringliteral">""</span>, <spanclass="stringliteral">"AES signing iv in hex string."</span>);</div>
<divclass="line"><aname="l00059"></a><spanclass="lineno"> 59</span> <spanclass="stringliteral">"Crypto period duration in seconds. If it is non-zero, key "</span></div>
<divclass="line"><aname="l00060"></a><spanclass="lineno"> 60</span> <spanclass="stringliteral">"rotation is enabled."</span>);</div>
<divclass="line"><aname="l00061"></a><spanclass="lineno"> 61</span> DEFINE_hex_bytes(group_id, <spanclass="stringliteral">""</span>, <spanclass="stringliteral">"Identifier for a group of licenses (hex)."</span>);</div>
<divclass="line"><aname="l00064"></a><spanclass="lineno"> 64</span> <spanclass="stringliteral">"Enable entitlement license when using Widevine key server."</span>);</div>
<divclass="line"><aname="l00078"></a><spanclass="lineno"> 78</span> <spanclass="comment">// key_server_url and signer (optional) are associated with</span></div>
<divclass="line"><aname="l00079"></a><spanclass="lineno"> 79</span> <spanclass="comment">// enable_widevine_encryption and enable_widevine_descryption.</span></div>
<divclass="line"><aname="l00097"></a><spanclass="lineno"> 97</span>  LOG(WARNING) <<<spanclass="stringliteral">"--signer is likely required with "</span></div>
<divclass="line"><aname="l00102"></a><spanclass="lineno"> 102</span> <spanclass="comment">// content_id and policy (optional) are associated with</span></div>
<divclass="line"><aname="l00120"></a><spanclass="lineno"> 120</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--max_sd_pixels must be positive."</span>);</div>
<divclass="line"><aname="l00124"></a><spanclass="lineno"> 124</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--max_hd_pixels must be positive."</span>);</div>
<divclass="line"><aname="l00128"></a><spanclass="lineno"> 128</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--max_uhd1_pixels must be positive."</span>);</div>
<divclass="line"><aname="l00132"></a><spanclass="lineno"> 132</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--max_hd_pixels must be greater than --max_sd_pixels."</span>);</div>
<divclass="line"><aname="l00136"></a><spanclass="lineno"> 136</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--max_uhd1_pixels must be greater than --max_hd_pixels."</span>);</div>
<divclass="line"><aname="l00144"></a><spanclass="lineno"> 144</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--aes_signing_key/iv is required if using aes signing."</span>);</div>
<divclass="line"><aname="l00151"></a><spanclass="lineno"> 151</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--signer is required if using aes/rsa signing."</span>);</div>
<divclass="line"><aname="l00156"></a><spanclass="lineno"> 156</span> <spanclass="stringliteral">"--aes_signing_key/iv or --rsa_signing_key_path is required with "</span></div>
<divclass="line"><aname="l00162"></a><spanclass="lineno"> 162</span> <spanclass="stringliteral">"Only one of --aes_signing_key/iv and --rsa_signing_key_path should be "</span></div>
<divclass="line"><aname="l00168"></a><spanclass="lineno"> 168</span> <aclass="code"href="../../d8/daf/namespaceshaka.html#a54fadd9c7ef14b39cd0355a5c269c772">PrintError</a>(<spanclass="stringliteral">"--crypto_period_duration should not be negative."</span>);</div>
<divclass="ttc"id="anamespaceshaka_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>
Generated on Thu Jun 10 2021 21:44:25 for Shaka Packager SDK by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="../../doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.1