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

#include <decrypt_config.h>

Public Member Functions

 SubsampleEntry (uint16_t clear_bytes, uint32_t cipher_bytes)
 

Public Attributes

uint16_t clear_bytes
 
uint32_t cipher_bytes
 

Detailed Description

The Common Encryption spec provides for subsample encryption, where portions of a sample are not encrypted. A SubsampleEntry specifies the number of clear and encrypted bytes in each subsample. For decryption, all of the encrypted bytes in a sample should be considered a single logical stream, regardless of how they are divided into subsamples, and the clear bytes should not be considered as part of decryption. This is logically equivalent to concatenating all cipher_bytes portions of subsamples, decrypting that result, and then copying each byte from the decrypted block over the corresponding encrypted byte.

Definition at line 28 of file decrypt_config.h.


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