public static final class MediaCodec.CryptoInfo.Pattern extends Object
Constructor and Description |
---|
Pattern(int blocksToEncrypt,
int blocksToSkip)
Construct a sample encryption pattern given the number of blocks to
encrypt and skip in the pattern.
|
Modifier and Type | Method and Description |
---|---|
int |
getEncryptBlocks()
Return the number of blocks to encrypt in a sample encryption pattern.
|
int |
getSkipBlocks()
Return the number of blocks to skip in a sample encryption pattern.
|
void |
set(int blocksToEncrypt,
int blocksToSkip)
Set the number of blocks to encrypt and skip in a sample encryption
pattern.
|
public Pattern(int blocksToEncrypt, int blocksToSkip)
public void set(int blocksToEncrypt, int blocksToSkip)
public int getSkipBlocks()
public int getEncryptBlocks()