Shaka Packager SDK
crypto_flags.h
1 // Copyright 2017 Google LLC. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 //
7 // Defines common command line flags for encryption and decryption, which
8 // applies to all key sources, i.e. raw key, Widevine and PlayReady.
9 
10 #ifndef PACKAGER_APP_CRYPTO_FLAGS_H_
11 #define PACKAGER_APP_CRYPTO_FLAGS_H_
12 
13 #include <absl/flags/declare.h>
14 #include <absl/flags/flag.h>
15 
16 ABSL_DECLARE_FLAG(std::string, protection_scheme);
17 ABSL_DECLARE_FLAG(int32_t, crypt_byte_block);
18 ABSL_DECLARE_FLAG(int32_t, skip_byte_block);
19 ABSL_DECLARE_FLAG(bool, vp9_subsample_encryption);
20 ABSL_DECLARE_FLAG(std::string, playready_extra_header_data);
21 
22 namespace shaka {
23 bool ValidateCryptoFlags();
24 }
25 
26 #endif // PACKAGER_APP_CRYPTO_FLAGS_H_
All the methods that are virtual are virtual for mocking.
Definition: crypto_flags.cc:66