Shaka Packager SDK
Public Member Functions | Public Attributes | List of all members
shaka::media::mp4::SampleEncryptionEntry Struct Reference

Public Member Functions

bool ReadWrite (uint8_t iv_size, bool has_subsamples, BoxBuffer *buffer)
 
bool ParseFromBuffer (uint8_t iv_size, bool has_subsamples, BufferReader *reader)
 
uint32_t ComputeSize () const
 
uint32_t GetTotalSizeOfSubsamples () const
 

Public Attributes

std::vector< uint8_t > initialization_vector
 
std::vector< SubsampleEntrysubsamples
 

Detailed Description

Definition at line 79 of file box_definitions.h.

Member Function Documentation

◆ ComputeSize()

uint32_t shaka::media::mp4::SampleEncryptionEntry::ComputeSize ( ) const
Returns
The size of the structure in bytes when it is stored.

Definition at line 307 of file box_definitions.cc.

◆ GetTotalSizeOfSubsamples()

uint32_t shaka::media::mp4::SampleEncryptionEntry::GetTotalSizeOfSubsamples ( ) const
Returns
The accumulated size of subsamples. Returns 0 if there is no subsamples.

Definition at line 317 of file box_definitions.cc.

◆ ParseFromBuffer()

bool shaka::media::mp4::SampleEncryptionEntry::ParseFromBuffer ( uint8_t  iv_size,
bool  has_subsamples,
BufferReader reader 
)

Parse SampleEncryptionEntry from buffer.

Parameters
iv_sizespecifies the size of initialization vector.
has_subsamplesindicates whether this sample encryption entry constains subsamples.
readerpoints to the buffer reader. Cannot be NULL.
Returns
true on success, false otherwise.

Definition at line 282 of file box_definitions.cc.

◆ ReadWrite()

bool shaka::media::mp4::SampleEncryptionEntry::ReadWrite ( uint8_t  iv_size,
bool  has_subsamples,
BoxBuffer buffer 
)

Read/Write SampleEncryptionEntry.

Parameters
iv_sizespecifies the size of initialization vector.
has_subsamplesindicates whether this sample encryption entry constains subsamples.
bufferpoints to the box buffer for reading or writing.
Returns
true on success, false otherwise.

Definition at line 258 of file box_definitions.cc.


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