FFmpeg
Loading...
Searching...
No Matches
codecstring.c File Reference
#include <stdio.h>
#include <string.h>
#include "libavutil/bprint.h"
#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "libavcodec/codec_par.h"
#include "libavcodec/defs.h"
#include "libavformat/avformat.h"

Go to the source code of this file.

Data Structures

struct  TestCase
 

Functions

static int run_case (const TestCase *test)
 
int main (void)
 

Variables

static const uint8_t h264_annexb []
 
static const uint8_t h264_avcc []
 
static const uint8_t hevc_annexb []
 
static const uint8_t hevc_annexb_3byte_start_code []
 
static const uint8_t hevc_hvcc []
 
static const uint8_t hevc_hvcc_version0 []
 
static const uint8_t hevc_hvcc_zeroed []
 
static const uint8_t hevc_hvcc_profile_space []
 
static const uint8_t hevc_hvcc_constraints []
 
static const uint8_t hevc_hvcc_constraints_full []
 
static const uint8_t hevc_annexb_leading_zero []
 
static const uint8_t hevc_annexb_32_long_term_refs []
 
static const TestCase cases []
 

Function Documentation

◆ run_case()

static int run_case ( const TestCase * test)
static

Definition at line 155 of file codecstring.c.

Referenced by main().

◆ main()

int main ( void )

Definition at line 186 of file codecstring.c.

Variable Documentation

◆ h264_annexb

const uint8_t h264_annexb[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x01, 0x67, 0x64, 0x00, 0x0b, 0xac, 0xd9, 0x42, 0x84,
0x7e, 0x5c, 0x04, 0x40, 0x00, 0x00, 0x03, 0x00, 0x40, 0x00, 0x00, 0x0c,
0x83, 0xc5, 0x0a, 0x65, 0x80,
}

Definition at line 31 of file codecstring.c.

◆ h264_avcc

const uint8_t h264_avcc[]
static
Initial value:
= {
0x01, 0x64, 0x00, 0x0b, 0xff, 0xe1,
}

Definition at line 37 of file codecstring.c.

◆ hevc_annexb

const uint8_t hevc_annexb[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x01, 0x42, 0x01, 0x01, 0x01, 0x60, 0x00, 0x00, 0x03,
0x00, 0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x1e, 0xa0, 0x14,
0x20, 0x79, 0x65, 0x95, 0x9a, 0x49, 0x32, 0xbc, 0x05, 0xa0, 0x20, 0x00,
0x00, 0x03, 0x00, 0x20, 0x00, 0x00, 0x03, 0x03, 0x21, 0x00,
}

Definition at line 41 of file codecstring.c.

◆ hevc_annexb_3byte_start_code

const uint8_t hevc_annexb_3byte_start_code[]
static
Initial value:
= {
0x00, 0x00, 0x01, 0x42, 0x01, 0x01, 0x01, 0x60, 0x00, 0x00, 0x03, 0x00,
0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x1e, 0xa0, 0x14, 0x20,
0x79, 0x65, 0x95, 0x9a, 0x49, 0x32, 0xbc, 0x05, 0xa0, 0x20, 0x00, 0x00,
0x03, 0x00, 0x20, 0x00, 0x00, 0x03, 0x03, 0x21, 0x00,
}

Definition at line 48 of file codecstring.c.

◆ hevc_hvcc

const uint8_t hevc_hvcc[]
static
Initial value:
= {
0x01, 0x01, 0x60, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1e, 0xf0, 0x00, 0xfc, 0xfd, 0xf8, 0xf8, 0x00, 0x00, 0x0f, 0x00,
}

Definition at line 55 of file codecstring.c.

◆ hevc_hvcc_version0

const uint8_t hevc_hvcc_version0[]
static
Initial value:
= {
0x00, 0x01, 0x60, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1e, 0xf0, 0x00, 0xfc, 0xfd, 0xf8, 0xf8, 0x00, 0x00, 0x0f, 0x00,
}

Definition at line 60 of file codecstring.c.

◆ hevc_hvcc_zeroed

const uint8_t hevc_hvcc_zeroed[]
static
Initial value:
= {
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xf0, 0x00, 0xfc, 0xfd, 0xf8, 0xf8, 0x00, 0x00, 0x0f, 0x00,
}

Definition at line 65 of file codecstring.c.

◆ hevc_hvcc_profile_space

const uint8_t hevc_hvcc_profile_space[]
static
Initial value:
= {
0x01, 0x41, 0x60, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1e, 0xf0, 0x00, 0xfc, 0xfd, 0xf8, 0xf8, 0x00, 0x00, 0x0f, 0x00,
}

Definition at line 70 of file codecstring.c.

◆ hevc_hvcc_constraints

const uint8_t hevc_hvcc_constraints[]
static
Initial value:
= {
0x01, 0x01, 0x60, 0x00, 0x00, 0x00, 0x90, 0x00, 0x10, 0x00, 0x00, 0x00,
0x1e, 0xf0, 0x00, 0xfc, 0xfd, 0xf8, 0xf8, 0x00, 0x00, 0x0f, 0x00,
}

Definition at line 75 of file codecstring.c.

◆ hevc_hvcc_constraints_full

const uint8_t hevc_hvcc_constraints_full[]
static
Initial value:
= {
0x01, 0x01, 0x60, 0x00, 0x00, 0x00, 0x90, 0x10, 0x20, 0x30, 0x40, 0x50,
0x1e, 0xf0, 0x00, 0xfc, 0xfd, 0xf8, 0xf8, 0x00, 0x00, 0x0f, 0x00,
}

Definition at line 80 of file codecstring.c.

◆ hevc_annexb_leading_zero

const uint8_t hevc_annexb_leading_zero[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x01, 0x01, 0x01, 0x60, 0x00, 0x00,
0x03, 0x00, 0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x1e, 0xa0,
0x14, 0x20, 0x79, 0x65, 0x95, 0x9a, 0x49, 0x32, 0xbc, 0x05, 0xa0, 0x20,
0x00, 0x00, 0x03, 0x00, 0x20, 0x00, 0x00, 0x03, 0x03, 0x21, 0x00,
}

Definition at line 85 of file codecstring.c.

◆ hevc_annexb_32_long_term_refs

const uint8_t hevc_annexb_32_long_term_refs[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x01, 0x42, 0x01, 0x01, 0x01, 0x60, 0x00, 0x00, 0x03,
0x00, 0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x1e, 0xa0, 0x14,
0x20, 0x79, 0x65, 0x95, 0x9a, 0x49, 0x32, 0xc1, 0x08, 0x00, 0x04, 0x04,
0x03, 0x02, 0x01, 0x40, 0xc0, 0x70, 0x40, 0x24, 0x14, 0x0b, 0x06, 0x03,
0x41, 0xc0, 0xf0, 0x80, 0x44, 0x24, 0x13, 0x0a, 0x05, 0x42, 0xc1, 0x70,
0xc0, 0x64, 0x34, 0x1b, 0x0e, 0x07, 0x43, 0xc1, 0xf7, 0x80, 0xb4, 0x04,
0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x64, 0x20,
}

Definition at line 93 of file codecstring.c.

◆ cases

const TestCase cases[]
static

Definition at line 112 of file codecstring.c.

Referenced by main(), test_adjust_ntsc(), and test_init().