java.lang.Object | |
↳ | android.media.MediaCodec.CryptoInfo |
Metadata describing the structure of a (at least partially) encrypted input sample. A buffer's data is considered to be partitioned into "subSamples", each subSample starts with a (potentially empty) run of plain, unencrypted bytes followed by a (also potentially empty) run of encrypted bytes. numBytesOfClearData can be null to indicate that all data is encrypted. This information encapsulates per-sample metadata as outlined in ISO/IEC FDIS 23001-7:2011 "Common encryption in ISO base media file format files".
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
iv | A 16-byte initialization vector | ||||||||||
key | A 16-byte opaque key | ||||||||||
mode | The type of encryption that has been applied,
see CRYPTO_MODE_UNENCRYPTED and CRYPTO_MODE_AES_CTR . |
||||||||||
numBytesOfClearData | The number of leading unencrypted bytes in each subSample. | ||||||||||
numBytesOfEncryptedData | The number of trailing encrypted bytes in each subSample. | ||||||||||
numSubSamples | The number of subSamples that make up the buffer's contents. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The type of encryption that has been applied,
see CRYPTO_MODE_UNENCRYPTED
and CRYPTO_MODE_AES_CTR
.
The number of leading unencrypted bytes in each subSample.
The number of trailing encrypted bytes in each subSample.
The number of subSamples that make up the buffer's contents.