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 "thread.h"

Go to the source code of this file.

Data Structures

struct  DNXHDContext
 

Macros

#define DNXHD_VLC_BITS   9
 
#define DNXHD_DC_VLC_BITS   7
 

Functions

static void dnxhd_decode_dct_block_8 (DNXHDContext *ctx, int16_t *block, int n, int qscale)
 
static void dnxhd_decode_dct_block_10 (DNXHDContext *ctx, int16_t *block, int n, int qscale)
 
static void dnxhd_decode_dct_block_10_444 (DNXHDContext *ctx, int16_t *block, int n, int qscale)
 
static av_cold int dnxhd_decode_init (AVCodecContext *avctx)
 
static int dnxhd_init_vlc (DNXHDContext *ctx, uint32_t cid)
 
static int dnxhd_decode_header (DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field)
 
static av_always_inline void dnxhd_decode_dct_block (DNXHDContext *ctx, int16_t *block, int n, int qscale, int index_bits, int level_bias, int level_shift)
 
static int dnxhd_decode_macroblock (DNXHDContext *ctx, AVFrame *frame, int x, int y)
 
static int dnxhd_decode_macroblocks (DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size)
 
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 DNXHD_VLC_BITS   9

Definition at line 60 of file dnxhddec.c.

Referenced by dnxhd_decode_dct_block(), and dnxhd_init_vlc().

#define DNXHD_DC_VLC_BITS   7

Definition at line 61 of file dnxhddec.c.

Referenced by dnxhd_decode_dct_block(), and dnxhd_init_vlc().

Function Documentation

static void dnxhd_decode_dct_block_8 ( DNXHDContext ctx,
int16_t *  block,
int  n,
int  qscale 
)
static

Definition at line 325 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static void dnxhd_decode_dct_block_10 ( DNXHDContext ctx,
int16_t *  block,
int  n,
int  qscale 
)
static

Definition at line 331 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static void dnxhd_decode_dct_block_10_444 ( DNXHDContext ctx,
int16_t *  block,
int  n,
int  qscale 
)
static

Definition at line 337 of file dnxhddec.c.

Referenced by dnxhd_decode_header().

static av_cold int dnxhd_decode_init ( AVCodecContext avctx)
static

Definition at line 70 of file dnxhddec.c.

static int dnxhd_init_vlc ( DNXHDContext ctx,
uint32_t  cid 
)
static

Definition at line 79 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 116 of file dnxhddec.c.

Referenced by dnxhd_decode_frame().

static av_always_inline void dnxhd_decode_dct_block ( DNXHDContext ctx,
int16_t *  block,
int  n,
int  qscale,
int  index_bits,
int  level_bias,
int  level_shift 
)
static
static int dnxhd_decode_macroblock ( DNXHDContext ctx,
AVFrame frame,
int  x,
int  y 
)
static

Definition at line 343 of file dnxhddec.c.

Referenced by dnxhd_decode_macroblocks().

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

Definition at line 427 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 445 of file dnxhddec.c.

static av_cold int dnxhd_decode_close ( AVCodecContext avctx)
static

Definition at line 499 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 av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int dnxhd_decode_close(AVCodecContext *avctx)
Definition: dnxhddec.c:499
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:789
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:522
#define CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:866
static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: dnxhddec.c:445
static av_cold int dnxhd_decode_init(AVCodecContext *avctx)
Definition: dnxhddec.c:70

Definition at line 509 of file dnxhddec.c.