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