FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dnxhddec.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/timer.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "get_bits.h"
#include "dnxhddata.h"
#include "idctdsp.h"
#include "internal.h"
#include "profiles.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  RowContext
 
struct  DNXHDContext
 

Macros

#define UNCHECKED_BITSTREAM_READER   1
 
#define DNXHD_VLC_BITS   9
 
#define DNXHD_DC_VLC_BITS   7
 

Functions

static int dnxhd_decode_dct_block_8 (const DNXHDContext *ctx, RowContext *row, int n)
 
static int dnxhd_decode_dct_block_10 (const DNXHDContext *ctx, RowContext *row, int n)
 
static int dnxhd_decode_dct_block_10_444 (const DNXHDContext *ctx, RowContext *row, int n)
 
static int dnxhd_decode_dct_block_12 (const DNXHDContext *ctx, RowContext *row, int n)
 
static int dnxhd_decode_dct_block_12_444 (const DNXHDContext *ctx, RowContext *row, int n)
 
static av_cold int dnxhd_decode_init (AVCodecContext *avctx)
 
static int dnxhd_init_vlc (DNXHDContext *ctx, uint32_t cid, int bitdepth)
 
static av_cold int dnxhd_decode_init_thread_copy (AVCodecContext *avctx)
 
static int dnxhd_get_profile (int cid)
 
static int dnxhd_decode_header (DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field)
 
static av_always_inline int dnxhd_decode_dct_block (const DNXHDContext *ctx, RowContext *row, int n, int index_bits, int level_bias, int level_shift, int dc_shift)
 
static int dnxhd_decode_macroblock (const DNXHDContext *ctx, RowContext *row, AVFrame *frame, int x, int y)
 
static int dnxhd_decode_row (AVCodecContext *avctx, void *data, int rownb, int threadnb)
 
static int dnxhd_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int dnxhd_decode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_dnxhd_decoder
 

Macro Definition Documentation

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 31 of file dnxhddec.c.

#define DNXHD_VLC_BITS   9

Definition at line 78 of file dnxhddec.c.

Referenced by dnxhd_decode_dct_block(), and dnxhd_init_vlc().

#define DNXHD_DC_VLC_BITS   7

Definition at line 79 of file dnxhddec.c.

Referenced by dnxhd_decode_dct_block(), and dnxhd_init_vlc().

Function Documentation

static int dnxhd_decode_dct_block_8 ( const DNXHDContext ctx,
RowContext row,
int  n 
)
static

Definition at line 454 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static int dnxhd_decode_dct_block_10 ( const DNXHDContext ctx,
RowContext row,
int  n 
)
static

Definition at line 460 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static int dnxhd_decode_dct_block_10_444 ( const DNXHDContext ctx,
RowContext row,
int  n 
)
static

Definition at line 466 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static int dnxhd_decode_dct_block_12 ( const DNXHDContext ctx,
RowContext row,
int  n 
)
static

Definition at line 472 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static int dnxhd_decode_dct_block_12_444 ( const DNXHDContext ctx,
RowContext row,
int  n 
)
static

Definition at line 478 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static av_cold int dnxhd_decode_init ( AVCodecContext avctx)
static

Definition at line 92 of file dnxhddec.c.

static int dnxhd_init_vlc ( DNXHDContext ctx,
uint32_t  cid,
int  bitdepth 
)
static

Definition at line 112 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static av_cold int dnxhd_decode_init_thread_copy ( AVCodecContext avctx)
static

Definition at line 148 of file dnxhddec.c.

static int dnxhd_get_profile ( int  cid)
static

Definition at line 163 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static int dnxhd_decode_header ( DNXHDContext ctx,
AVFrame frame,
const uint8_t buf,
int  buf_size,
int  first_field 
)
static

Definition at line 180 of file dnxhddec.c.

Referenced by dnxhd_decode_frame().

static av_always_inline int dnxhd_decode_dct_block ( const DNXHDContext ctx,
RowContext row,
int  n,
int  index_bits,
int  level_bias,
int  level_shift,
int  dc_shift 
)
static
static int dnxhd_decode_macroblock ( const DNXHDContext ctx,
RowContext row,
AVFrame frame,
int  x,
int  y 
)
static

Definition at line 484 of file dnxhddec.c.

Referenced by dnxhd_decode_row().

static int dnxhd_decode_row ( AVCodecContext avctx,
void data,
int  rownb,
int  threadnb 
)
static

Definition at line 586 of file dnxhddec.c.

Referenced by dnxhd_decode_frame().

static int dnxhd_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 611 of file dnxhddec.c.

static av_cold int dnxhd_decode_close ( AVCodecContext avctx)
static

Definition at line 711 of file dnxhddec.c.

Variable Documentation

AVCodec ff_dnxhd_decoder
Initial value:
= {
.name = "dnxhd",
.long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"),
.priv_data_size = sizeof(DNXHDContext),
}
static int init_thread_copy(AVCodecContext *avctx)
Definition: tta.c:392
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int dnxhd_decode_init_thread_copy(AVCodecContext *avctx)
Definition: dnxhddec.c:148
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
static av_cold int dnxhd_decode_close(AVCodecContext *avctx)
Definition: dnxhddec.c:711
const AVProfile ff_dnxhd_profiles[]
Definition: profiles.c:48
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:1024
#define ONLY_IF_THREADS_ENABLED(x)
Define a function with only the non-default version specified.
Definition: internal.h:225
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: avcodec.h:1028
static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: dnxhddec.c:611
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:968
static av_cold int dnxhd_decode_init(AVCodecContext *avctx)
Definition: dnxhddec.c:92

Definition at line 724 of file dnxhddec.c.