public final class CryptoInfo
extends java.lang.Object
MediaCodec.CryptoInfo.| Modifier and Type | Field and Description |
|---|---|
int |
clearBlocks |
int |
encryptedBlocks |
byte[] |
iv |
byte[] |
key |
int |
mode |
int[] |
numBytesOfClearData |
int[] |
numBytesOfEncryptedData |
int |
numSubSamples |
| Constructor and Description |
|---|
CryptoInfo() |
| Modifier and Type | Method and Description |
|---|---|
android.media.MediaCodec.CryptoInfo |
getFrameworkCryptoInfoV16()
Returns an equivalent
MediaCodec.CryptoInfo instance. |
void |
set(int numSubSamples,
int[] numBytesOfClearData,
int[] numBytesOfEncryptedData,
byte[] key,
byte[] iv,
int mode,
int encryptedBlocks,
int clearBlocks) |
public byte[] iv
MediaCodec.CryptoInfo.ivpublic byte[] key
MediaCodec.CryptoInfo.key@C.CryptoMode public int mode
MediaCodec.CryptoInfo.modepublic int[] numBytesOfClearData
MediaCodec.CryptoInfo.numBytesOfClearDatapublic int[] numBytesOfEncryptedData
MediaCodec.CryptoInfo.numBytesOfEncryptedDatapublic int numSubSamples
MediaCodec.CryptoInfo.numSubSamplespublic int encryptedBlocks
MediaCodec.CryptoInfo.Patternpublic int clearBlocks
MediaCodec.CryptoInfo.Patternpublic void set(int numSubSamples,
int[] numBytesOfClearData,
int[] numBytesOfEncryptedData,
byte[] key,
byte[] iv,
@C.CryptoMode
int mode,
int encryptedBlocks,
int clearBlocks)
MediaCodec.CryptoInfo.set(int, int[], int[], byte[], byte[], int)public android.media.MediaCodec.CryptoInfo getFrameworkCryptoInfoV16()
MediaCodec.CryptoInfo instance.
Successive calls to this method on a single CryptoInfo will return the same instance.
Changes to the CryptoInfo will be reflected in the returned object. The return object
should not be modified directly.
MediaCodec.CryptoInfo instance.