public static final class MediaCodec.CryptoInfo.Pattern
extends Object
| java.lang.Object | |
| android.media.MediaCodec.CryptoInfo.Pattern | |
描述子样本中受保护字节的加密模式的元数据。 加密模式由重复的加密块组成,其中包含多个加密块,后跟多个未加密或跳过的块。
Public constructors |
|
|---|---|
MediaCodec.CryptoInfo.Pattern(int blocksToEncrypt, int blocksToSkip) 给定要在模式中加密和跳过的块数,构造一个样本加密模式。 |
|
公共方法(Public methods) |
|
|---|---|
int |
getEncryptBlocks() 以示例加密模式返回要加密的块数。 |
int |
getSkipBlocks() 以示例加密模式返回要跳过的块数。 |
void |
set(int blocksToEncrypt, int blocksToSkip) 设置要加密的块数并跳过样本加密模式。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
MediaCodec.CryptoInfo.Pattern (int blocksToEncrypt,
int blocksToSkip)
给定要在模式中加密和跳过的块数,构造一个样本加密模式。
| 参数(Parameters) | |
|---|---|
blocksToEncrypt |
int
|
blocksToSkip |
int
|
void set (int blocksToEncrypt,
int blocksToSkip)
设置要加密的块数并跳过样本加密模式。
| 参数(Parameters) | |
|---|---|
blocksToEncrypt |
int
|
blocksToSkip |
int
|