[][src]Struct ffmpeg_dev::sys::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,
}

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: u32iv: *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: u32subsamples: *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[src]

impl Copy for AVEncryptionInfo[src]

impl Debug for AVEncryptionInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]