NaCl Player API
NaCl Player API Documentation
Samsung::NaClPlayer::EncryptedSubsampleDescription Struct Reference

#include <media_common.h>

Public Attributes

uint32_t clear_bytes
 Size in bytes of clear data in a subsample entry.
 
uint32_t cipher_bytes
 Size in bytes of encrypted data in a subsample entry.
 

Detailed Description

The EncryptedSubsampleDescription structure contains information to support subsample decryption.

An input block can be split into several continuous subsamples. A PP_DecryptSubsampleEntry specifies the number of clear and cipher bytes in each subsample. For example, the following block has three subsamples:

|<--— subsample1 --—>|<--— subsample2 --—>|<--— subsample3 --—>| | clear1 | cipher1 | clear2 | cipher2 | clear3 | cipher3 |

For decryption, all of the cipher bytes in a block should be treated as a contiguous (in the subsample order) logical stream. The clear bytes should not be considered as part of decryption.

Logical stream to decrypt: | cipher1 | cipher2 | cipher3 | Decrypted stream: | decrypted1| decrypted2 | decrypted3 |

After decryption, the decrypted bytes should be copied over the position of the corresponding cipher bytes in the original block to form the output block. Following the above example, the decrypted block should be:

|<--— subsample1 --—>|<--— subsample2 --—>|<--— subsample3 --—>| | clear1 | decrypted1| clear2 | decrypted2 | clear3 | decrypted3 |

Definition at line 317 of file media_common.h.


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