FFmpeg
Data Structures | Macros | Functions
dnxhddata.h File Reference
#include <stdint.h>
#include "avcodec.h"
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/rational.h"

Go to the source code of this file.

Data Structures

struct  CIDEntry
 

Macros

#define DNXHD_INTERLACED   (1<<0)
 Additional profile info flags. More...
 
#define DNXHD_MBAFF   (1<<1)
 
#define DNXHD_444   (1<<2)
 
#define DNXHD_HEADER_INITIAL   0x000002800100
 Frame headers, extra 0x00 added to end for parser. More...
 
#define DNXHD_HEADER_444   0x000002800200
 
#define DNXHD_VARIABLE   0
 Indicate that a CIDEntry value must be read in the bitstream. More...
 

Functions

const CIDEntryff_dnxhd_get_cid_table (int cid)
 
int ff_dnxhd_find_cid (AVCodecContext *avctx, int bit_depth)
 
void ff_dnxhd_print_profiles (AVCodecContext *avctx, int loglevel)
 
static av_always_inline uint64_t ff_dnxhd_check_header_prefix_hr (uint64_t prefix)
 
static av_always_inline uint64_t ff_dnxhd_check_header_prefix (uint64_t prefix)
 
static av_always_inline uint64_t ff_dnxhd_parse_header_prefix (const uint8_t *buf)
 
int ff_dnxhd_get_frame_size (int cid)
 
int ff_dnxhd_get_hr_frame_size (int cid, int w, int h)
 

Macro Definition Documentation

◆ DNXHD_INTERLACED

#define DNXHD_INTERLACED   (1<<0)

Additional profile info flags.

Definition at line 32 of file dnxhddata.h.

◆ DNXHD_MBAFF

#define DNXHD_MBAFF   (1<<1)

Definition at line 33 of file dnxhddata.h.

◆ DNXHD_444

#define DNXHD_444   (1<<2)

Definition at line 34 of file dnxhddata.h.

◆ DNXHD_HEADER_INITIAL

#define DNXHD_HEADER_INITIAL   0x000002800100

Frame headers, extra 0x00 added to end for parser.

Definition at line 37 of file dnxhddata.h.

◆ DNXHD_HEADER_444

#define DNXHD_HEADER_444   0x000002800200

Definition at line 38 of file dnxhddata.h.

◆ DNXHD_VARIABLE

#define DNXHD_VARIABLE   0

Indicate that a CIDEntry value must be read in the bitstream.

Definition at line 41 of file dnxhddata.h.

Function Documentation

◆ ff_dnxhd_get_cid_table()

const CIDEntry* ff_dnxhd_get_cid_table ( int  cid)

◆ ff_dnxhd_find_cid()

int ff_dnxhd_find_cid ( AVCodecContext avctx,
int  bit_depth 
)

Definition at line 1127 of file dnxhddata.c.

Referenced by dnxhd_encode_init().

◆ ff_dnxhd_print_profiles()

void ff_dnxhd_print_profiles ( AVCodecContext avctx,
int  loglevel 
)

Definition at line 1157 of file dnxhddata.c.

Referenced by dnxhd_encode_init().

◆ ff_dnxhd_check_header_prefix_hr()

static av_always_inline uint64_t ff_dnxhd_check_header_prefix_hr ( uint64_t  prefix)
static

Definition at line 66 of file dnxhddata.h.

Referenced by dnxhd_decode_header(), and ff_dnxhd_check_header_prefix().

◆ ff_dnxhd_check_header_prefix()

static av_always_inline uint64_t ff_dnxhd_check_header_prefix ( uint64_t  prefix)
static

Definition at line 76 of file dnxhddata.h.

Referenced by dnxhd_find_frame_end(), and ff_dnxhd_parse_header_prefix().

◆ ff_dnxhd_parse_header_prefix()

static av_always_inline uint64_t ff_dnxhd_parse_header_prefix ( const uint8_t *  buf)
static

Definition at line 85 of file dnxhddata.h.

Referenced by dnxhd_decode_header(), dnxhd_probe(), and mov_write_avid_tag().

◆ ff_dnxhd_get_frame_size()

int ff_dnxhd_get_frame_size ( int  cid)

Definition at line 1088 of file dnxhddata.c.

Referenced by dnxhd_find_frame_end().

◆ ff_dnxhd_get_hr_frame_size()

int ff_dnxhd_get_hr_frame_size ( int  cid,
int  w,
int  h 
)

Definition at line 1096 of file dnxhddata.c.

Referenced by dnxhd_encode_init(), and dnxhd_find_frame_end().