FFmpeg
Functions | Variables
encryption_info.c File Reference
#include "libavutil/encryption_info.h"
#include <stdio.h>
#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/mem.h"

Go to the source code of this file.

Functions

static int compare_encryption_info (const AVEncryptionInfo *a, const AVEncryptionInfo *b)
 
static int compare_encryption_init_info (const AVEncryptionInitInfo *a, const AVEncryptionInitInfo *b)
 
static void run_encryption_info_test (void)
 
static AVEncryptionInitInfocreate_init_info (void)
 
static void run_encryption_init_info_test (void)
 
int main (int argc, char **argv)
 

Variables

static const AVSubsampleEncryptionInfo test_subsamples [] = {{1, 2}, {3, 4}, {5, 6}, {7, 8}}
 
static const size_t test_subsample_count = sizeof(test_subsamples) / sizeof(test_subsamples[0])
 
static const uint8_t test_iv [] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18}
 
static const uint8_t test_key_id [] = {0x21, 0x22, 0x23, 0x24}
 
static const uint8_t test_key_id_2 [] = {0x31, 0x32, 0x33, 0x34}
 
static const uint8_t test_system_id [] = {0x41, 0x42, 0x43}
 
static const uint8_t test_data [] = {0x51, 0x52}
 

Function Documentation

◆ compare_encryption_info()

static int compare_encryption_info ( const AVEncryptionInfo a,
const AVEncryptionInfo b 
)
static

Definition at line 35 of file encryption_info.c.

Referenced by run_encryption_info_test().

◆ compare_encryption_init_info()

static int compare_encryption_init_info ( const AVEncryptionInitInfo a,
const AVEncryptionInitInfo b 
)
static

Definition at line 49 of file encryption_info.c.

Referenced by run_encryption_init_info_test().

◆ run_encryption_info_test()

static void run_encryption_info_test ( void  )
static

Definition at line 74 of file encryption_info.c.

Referenced by main().

◆ create_init_info()

static AVEncryptionInitInfo* create_init_info ( void  )
static

Definition at line 116 of file encryption_info.c.

Referenced by run_encryption_init_info_test().

◆ run_encryption_init_info_test()

static void run_encryption_init_info_test ( void  )
static

Definition at line 141 of file encryption_info.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 172 of file encryption_info.c.

Variable Documentation

◆ test_subsamples

const AVSubsampleEncryptionInfo test_subsamples[] = {{1, 2}, {3, 4}, {5, 6}, {7, 8}}
static

Definition at line 27 of file encryption_info.c.

Referenced by run_encryption_info_test().

◆ test_subsample_count

const size_t test_subsample_count = sizeof(test_subsamples) / sizeof(test_subsamples[0])
static

Definition at line 28 of file encryption_info.c.

Referenced by run_encryption_info_test().

◆ test_iv

const uint8_t test_iv[] = {0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18}
static

Definition at line 29 of file encryption_info.c.

Referenced by run_encryption_info_test().

◆ test_key_id

const uint8_t test_key_id[] = {0x21, 0x22, 0x23, 0x24}
static

Definition at line 30 of file encryption_info.c.

Referenced by create_init_info(), and run_encryption_info_test().

◆ test_key_id_2

const uint8_t test_key_id_2[] = {0x31, 0x32, 0x33, 0x34}
static

Definition at line 31 of file encryption_info.c.

Referenced by create_init_info().

◆ test_system_id

const uint8_t test_system_id[] = {0x41, 0x42, 0x43}
static

Definition at line 32 of file encryption_info.c.

Referenced by create_init_info().

◆ test_data

const uint8_t test_data[] = {0x51, 0x52}
static

Definition at line 33 of file encryption_info.c.

Referenced by create_init_info(), and main().