Shaka Packager SDK
Loading...
Searching...
No Matches
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 <cstdint>
14#include <string>
15
16#include <absl/flags/declare.h>
17
18ABSL_DECLARE_FLAG(std::string, protection_scheme);
19ABSL_DECLARE_FLAG(int32_t, crypt_byte_block);
20ABSL_DECLARE_FLAG(int32_t, skip_byte_block);
21ABSL_DECLARE_FLAG(bool, vp9_subsample_encryption);
22ABSL_DECLARE_FLAG(bool, cencv1);
23ABSL_DECLARE_FLAG(std::string, playready_extra_header_data);
24
25namespace shaka {
26bool ValidateCryptoFlags();
27}
28
29#endif // PACKAGER_APP_CRYPTO_FLAGS_H_
All the methods that are virtual are virtual for mocking.