FFmpeg  4.0
Data Fields
AVEncryptionInfo Struct Reference

This describes encryption info for a packet. More...

#include <libavutil/encryption_info.h>

Data Fields

uint32_t scheme
 The fourcc encryption scheme. More...
 
uint32_t crypt_byte_block
 Only used for pattern encryption. More...
 
uint32_t skip_byte_block
 Only used for pattern encryption. More...
 
uint8_tkey_id
 The ID of the key used to encrypt the packet. More...
 
uint32_t key_id_size
 
uint8_tiv
 The initialization vector. More...
 
uint32_t iv_size
 
AVSubsampleEncryptionInfosubsamples
 An array of subsample encryption info specifying how parts of the sample are encrypted. More...
 
uint32_t subsample_count
 

Detailed 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.

Definition at line 43 of file encryption_info.h.

Field Documentation

◆ scheme

uint32_t AVEncryptionInfo::scheme

The fourcc encryption scheme.

Definition at line 45 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_clone(), and av_encryption_info_get_side_data().

◆ crypt_byte_block

uint32_t AVEncryptionInfo::crypt_byte_block

Only used for pattern encryption.

This is the number of 16-byte blocks that are encrypted.

Definition at line 51 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_clone(), and av_encryption_info_get_side_data().

◆ skip_byte_block

uint32_t AVEncryptionInfo::skip_byte_block

Only used for pattern encryption.

This is the number of 16-byte blocks that are clear.

Definition at line 57 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_clone(), and av_encryption_info_get_side_data().

◆ key_id

uint8_t* AVEncryptionInfo::key_id

The ID of the key used to encrypt the packet.

This should always be 16 bytes long, but may be changed in the future.

Definition at line 63 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_alloc(), av_encryption_info_clone(), av_encryption_info_free(), and av_encryption_info_get_side_data().

◆ key_id_size

uint32_t AVEncryptionInfo::key_id_size

◆ iv

uint8_t* AVEncryptionInfo::iv

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.

Definition at line 71 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_alloc(), av_encryption_info_clone(), av_encryption_info_free(), and av_encryption_info_get_side_data().

◆ iv_size

uint32_t AVEncryptionInfo::iv_size

◆ subsamples

AVSubsampleEncryptionInfo* AVEncryptionInfo::subsamples

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.

Definition at line 79 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_alloc(), av_encryption_info_clone(), av_encryption_info_free(), and av_encryption_info_get_side_data().

◆ subsample_count

uint32_t AVEncryptionInfo::subsample_count

The documentation for this struct was generated from the following file: