Shaka Packager SDK
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
shaka::media::mp4::SampleEncryption Struct Reference
Inheritance diagram for shaka::media::mp4::SampleEncryption:
shaka::media::mp4::FullBox shaka::media::mp4::Box

Public Types

enum  SampleEncryptionFlags { kUseSubsampleEncryption = 2 }
 

Public Member Functions

FourCC BoxType () const override
 
bool ParseFromSampleEncryptionData (uint8_t l_iv_size, std::vector< SampleEncryptionEntry > *l_sample_encryption_entries) const
 
- Public Member Functions inherited from shaka::media::mp4::FullBox
uint32_t HeaderSize () const final
 
- Public Member Functions inherited from shaka::media::mp4::Box
bool Parse (BoxReader *reader)
 
void Write (BufferWriter *writer)
 
void WriteHeader (BufferWriter *writer)
 
uint32_t ComputeSize ()
 
uint32_t box_size ()
 

Public Attributes

std::vector< uint8_t > sample_encryption_data
 
uint8_t iv_size = kInvalidIvSize
 
std::vector< SampleEncryptionEntrysample_encryption_entries
 
- Public Attributes inherited from shaka::media::mp4::FullBox
uint8_t version = 0
 
uint32_t flags = 0
 

Static Public Attributes

static const uint8_t kInvalidIvSize = 1
 

Additional Inherited Members

- Protected Member Functions inherited from shaka::media::mp4::FullBox
bool ReadWriteHeaderInternal (BoxBuffer *buffer) final
 

Detailed Description

Definition at line 106 of file box_definitions.h.

Member Function Documentation

◆ BoxType()

FourCC shaka::media::mp4::SampleEncryption::BoxType ( ) const
overridevirtual
Returns
box type.

Implements shaka::media::mp4::Box.

Definition at line 327 of file box_definitions.cc.

◆ ParseFromSampleEncryptionData()

bool shaka::media::mp4::SampleEncryption::ParseFromSampleEncryptionData ( uint8_t  l_iv_size,
std::vector< SampleEncryptionEntry > *  l_sample_encryption_entries 
) const

Parse from sample_encryption_data.

Parameters
iv_sizespecifies the size of initialization vector.
[out]sample_encryption_entriesreceives parsed sample encryption entries.
Returns
true on success, false otherwise.

Definition at line 382 of file box_definitions.cc.

Member Data Documentation

◆ sample_encryption_data

std::vector<uint8_t> shaka::media::mp4::SampleEncryption::sample_encryption_data

We may not know iv_size before reading this box. In this case, we will store sample encryption data for parsing later when iv_size is known.

Definition at line 125 of file box_definitions.h.


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