Struct AVEncryptionInfo
#[repr(C)]pub struct AVEncryptionInfo {
pub scheme: u32,
pub crypt_byte_block: u32,
pub skip_byte_block: u32,
pub key_id: *mut u8,
pub key_id_size: u32,
pub iv: *mut u8,
pub iv_size: u32,
pub subsamples: *mut AVSubsampleEncryptionInfo,
pub subsample_count: u32,
}
Expand description
This describes encryption info for a packet. This contains frame-specific info for how to decrypt the packet before passing it to the decoder.
The size of this struct is not part of the public ABI.
Fields§
§scheme: u32
The fourcc encryption scheme, in big-endian byte order.
crypt_byte_block: u32
Only used for pattern encryption. This is the number of 16-byte blocks that are encrypted.
skip_byte_block: u32
Only used for pattern encryption. This is the number of 16-byte blocks that are clear.
key_id: *mut u8
The ID of the key used to encrypt the packet. This should always be 16 bytes long, but may be changed in the future.
key_id_size: u32
§iv: *mut u8
The initialization vector. This may have been zero-filled to be the correct block size. This should always be 16 bytes long, but may be changed in the future.
iv_size: u32
§subsamples: *mut AVSubsampleEncryptionInfo
An array of subsample encryption info specifying how parts of the sample are encrypted. If there are no subsamples, then the whole sample is encrypted.
subsample_count: u32
Trait Implementations§
§impl Clone for AVEncryptionInfo
impl Clone for AVEncryptionInfo
§fn clone(&self) -> AVEncryptionInfo
fn clone(&self) -> AVEncryptionInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more