FFmpeg
|
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | AVSubsampleEncryptionInfo |
This file is part of FFmpeg. More... | |
struct | AVEncryptionInfo |
This describes encryption info for a packet. More... | |
struct | AVEncryptionInitInfo |
This describes info used to initialize an encryption key system. More... | |
Functions | |
AVEncryptionInfo * | av_encryption_info_alloc (uint32_t subsample_count, uint32_t key_id_size, uint32_t iv_size) |
Allocates an AVEncryptionInfo structure and sub-pointers to hold the given number of subsamples. More... | |
AVEncryptionInfo * | av_encryption_info_clone (const AVEncryptionInfo *info) |
Allocates an AVEncryptionInfo structure with a copy of the given data. More... | |
void | av_encryption_info_free (AVEncryptionInfo *info) |
Frees the given encryption info object. More... | |
AVEncryptionInfo * | av_encryption_info_get_side_data (const uint8_t *side_data, size_t side_data_size) |
Creates a copy of the AVEncryptionInfo that is contained in the given side data. More... | |
uint8_t * | av_encryption_info_add_side_data (const AVEncryptionInfo *info, size_t *side_data_size) |
Allocates and initializes side data that holds a copy of the given encryption info. More... | |
AVEncryptionInitInfo * | av_encryption_init_info_alloc (uint32_t system_id_size, uint32_t num_key_ids, uint32_t key_id_size, uint32_t data_size) |
Allocates an AVEncryptionInitInfo structure and sub-pointers to hold the given sizes. More... | |
void | av_encryption_init_info_free (AVEncryptionInitInfo *info) |
Frees the given encryption init info object. More... | |
AVEncryptionInitInfo * | av_encryption_init_info_get_side_data (const uint8_t *side_data, size_t side_data_size) |
Creates a copy of the AVEncryptionInitInfo that is contained in the given side data. More... | |
uint8_t * | av_encryption_init_info_add_side_data (const AVEncryptionInitInfo *info, size_t *side_data_size) |
Allocates and initializes side data that holds a copy of the given encryption init info. More... | |
AVEncryptionInfo* av_encryption_info_alloc | ( | uint32_t | subsample_count, |
uint32_t | key_id_size, | ||
uint32_t | iv_size | ||
) |
Allocates an AVEncryptionInfo structure and sub-pointers to hold the given number of subsamples.
This will allocate pointers for the key ID, IV, and subsample entries, set the size members, and zero-initialize the rest.
subsample_count | The number of subsamples. |
key_id_size | The number of bytes in the key ID, should be 16. |
iv_size | The number of bytes in the IV, should be 16. |
Definition at line 41 of file encryption_info.c.
Referenced by av_encryption_info_clone(), av_encryption_info_get_side_data(), mov_read_schm(), mov_read_tenc(), and run_encryption_info_test().
AVEncryptionInfo* av_encryption_info_clone | ( | const AVEncryptionInfo * | info | ) |
Allocates an AVEncryptionInfo structure with a copy of the given data.
Definition at line 65 of file encryption_info.c.
Referenced by mov_read_sample_encryption_info(), and run_encryption_info_test().
void av_encryption_info_free | ( | AVEncryptionInfo * | info | ) |
Frees the given encryption info object.
This MUST NOT be used to free the side-data data pointer, that should use normal side-data methods.
Definition at line 82 of file encryption_info.c.
Referenced by av_encryption_info_alloc(), mov_free_encryption_index(), mov_free_stream_context(), mov_parse_auxiliary_info(), mov_read_sample_encryption_info(), mov_read_senc(), and run_encryption_info_test().
AVEncryptionInfo* av_encryption_info_get_side_data | ( | const uint8_t * | side_data, |
size_t | side_data_size | ||
) |
Creates a copy of the AVEncryptionInfo that is contained in the given side data.
The resulting object should be passed to av_encryption_info_free() when done.
Definition at line 92 of file encryption_info.c.
Referenced by run_encryption_info_test().
uint8_t* av_encryption_info_add_side_data | ( | const AVEncryptionInfo * | info, |
size_t * | side_data_size | ||
) |
Allocates and initializes side data that holds a copy of the given encryption info.
The resulting pointer should be either freed using av_free or given to av_packet_add_side_data().
Definition at line 127 of file encryption_info.c.
Referenced by cenc_filter(), and run_encryption_info_test().
AVEncryptionInitInfo* av_encryption_init_info_alloc | ( | uint32_t | system_id_size, |
uint32_t | num_key_ids, | ||
uint32_t | key_id_size, | ||
uint32_t | data_size | ||
) |
Allocates an AVEncryptionInitInfo structure and sub-pointers to hold the given sizes.
This will allocate pointers and set all the fields.
Definition at line 178 of file encryption_info.c.
Referenced by av_encryption_init_info_get_side_data(), create_init_info(), and mov_read_pssh().
void av_encryption_init_info_free | ( | AVEncryptionInitInfo * | info | ) |
Frees the given encryption init info object.
This MUST NOT be used to free the side-data data pointer, that should use normal side-data methods.
Definition at line 216 of file encryption_info.c.
Referenced by av_encryption_init_info_alloc(), av_encryption_init_info_free(), av_encryption_init_info_get_side_data(), mov_read_pssh(), mov_write_pssh_tag(), and run_encryption_init_info_test().
AVEncryptionInitInfo* av_encryption_init_info_get_side_data | ( | const uint8_t * | side_data, |
size_t | side_data_size | ||
) |
Creates a copy of the AVEncryptionInitInfo that is contained in the given side data.
The resulting object should be passed to av_encryption_init_info_free() when done.
Definition at line 231 of file encryption_info.c.
Referenced by mov_read_pssh(), mov_write_pssh_tag(), and run_encryption_init_info_test().
uint8_t* av_encryption_init_info_add_side_data | ( | const AVEncryptionInitInfo * | info, |
size_t * | side_data_size | ||
) |
Allocates and initializes side data that holds a copy of the given encryption init info.
The resulting pointer should be either freed using av_free or given to av_packet_add_side_data().
Definition at line 292 of file encryption_info.c.
Referenced by mov_read_pssh(), and run_encryption_init_info_test().