Shaka Packager SDK
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
shaka::media::ContentEncoding Class Reference

Public Types

enum  Scope {
  kScopeInvalid = 0 , kScopeAllFrameContents = 1 , kScopeTrackPrivateData = 2 , kScopeNextContentEncodingData = 4 ,
  kScopeMax = 7
}
 
enum  Type { kTypeInvalid = -1 , kTypeCompression = 0 , kTypeEncryption = 1 }
 
enum  EncryptionAlgo {
  kEncAlgoInvalid = -1 , kEncAlgoNotEncrypted = 0 , kEncAlgoDes = 1 , kEncAlgo3des = 2 ,
  kEncAlgoTwofish = 3 , kEncAlgoBlowfish = 4 , kEncAlgoAes = 5
}
 
enum  CipherMode { kCipherModeInvalid = 0 , kCipherModeCtr = 1 }
 

Public Member Functions

int64_t order () const
 
void set_order (int64_t order)
 
Scope scope () const
 
void set_scope (Scope scope)
 
Type type () const
 
void set_type (Type type)
 
EncryptionAlgo encryption_algo () const
 
void set_encryption_algo (EncryptionAlgo encryption_algo)
 
const std::string & encryption_key_id () const
 
void SetEncryptionKeyId (const uint8_t *encryption_key_id, int size)
 
CipherMode cipher_mode () const
 
void set_cipher_mode (CipherMode mode)
 

Static Public Attributes

static const int kOrderInvalid = -1
 

Detailed Description

Definition at line 15 of file webm_content_encodings.h.

Member Enumeration Documentation

◆ CipherMode

enum shaka::media::ContentEncoding::CipherMode

Definition at line 46 of file webm_content_encodings.h.

◆ EncryptionAlgo

enum shaka::media::ContentEncoding::EncryptionAlgo

Definition at line 36 of file webm_content_encodings.h.

◆ Scope

enum shaka::media::ContentEncoding::Scope

Definition at line 22 of file webm_content_encodings.h.

◆ Type

enum shaka::media::ContentEncoding::Type

Definition at line 30 of file webm_content_encodings.h.

Constructor & Destructor Documentation

◆ ContentEncoding()

shaka::media::ContentEncoding::ContentEncoding ( )

Definition at line 13 of file webm_content_encodings.cc.

◆ ~ContentEncoding()

shaka::media::ContentEncoding::~ContentEncoding ( )

Definition at line 21 of file webm_content_encodings.cc.

Member Function Documentation

◆ cipher_mode()

CipherMode shaka::media::ContentEncoding::cipher_mode ( ) const
inline

Definition at line 71 of file webm_content_encodings.h.

◆ encryption_algo()

EncryptionAlgo shaka::media::ContentEncoding::encryption_algo ( ) const
inline

Definition at line 63 of file webm_content_encodings.h.

◆ encryption_key_id()

const std::string & shaka::media::ContentEncoding::encryption_key_id ( ) const
inline

Definition at line 68 of file webm_content_encodings.h.

◆ order()

int64_t shaka::media::ContentEncoding::order ( ) const
inline

Definition at line 54 of file webm_content_encodings.h.

◆ scope()

Scope shaka::media::ContentEncoding::scope ( ) const
inline

Definition at line 57 of file webm_content_encodings.h.

◆ set_cipher_mode()

void shaka::media::ContentEncoding::set_cipher_mode ( CipherMode  mode)
inline

Definition at line 72 of file webm_content_encodings.h.

◆ set_encryption_algo()

void shaka::media::ContentEncoding::set_encryption_algo ( EncryptionAlgo  encryption_algo)
inline

Definition at line 64 of file webm_content_encodings.h.

◆ set_order()

void shaka::media::ContentEncoding::set_order ( int64_t  order)
inline

Definition at line 55 of file webm_content_encodings.h.

◆ set_scope()

void shaka::media::ContentEncoding::set_scope ( Scope  scope)
inline

Definition at line 58 of file webm_content_encodings.h.

◆ set_type()

void shaka::media::ContentEncoding::set_type ( Type  type)
inline

Definition at line 61 of file webm_content_encodings.h.

◆ SetEncryptionKeyId()

void shaka::media::ContentEncoding::SetEncryptionKeyId ( const uint8_t *  encryption_key_id,
int  size 
)

Definition at line 23 of file webm_content_encodings.cc.

◆ type()

Type shaka::media::ContentEncoding::type ( ) const
inline

Definition at line 60 of file webm_content_encodings.h.

Member Data Documentation

◆ kOrderInvalid

const int shaka::media::ContentEncoding::kOrderInvalid = -1
static

The following enum definitions are based on the ContentEncoding element specified in the Matroska spec.

Definition at line 20 of file webm_content_encodings.h.


The documentation for this class was generated from the following files: