FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions | Variables
dfa.c File Reference
#include <inttypes.h>
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"

Go to the source code of this file.

Data Structures

struct  DfaContext
 

Typedefs

typedef int(* chunk_decoder )(GetByteContext *gb, uint8_t *frame, int width, int height)
 

Functions

static av_cold int dfa_decode_init (AVCodecContext *avctx)
 
static int decode_copy (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int decode_tsw1 (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int decode_dsw1 (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int decode_dds1 (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int decode_bdlt (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int decode_wdlt (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int decode_tdlt (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int decode_blck (GetByteContext *gb, uint8_t *frame, int width, int height)
 
static int dfa_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int dfa_decode_end (AVCodecContext *avctx)
 

Variables

static const chunk_decoder decoder [8]
 
static const char * chunk_name [8]
 
AVCodec ff_dfa_decoder
 

Typedef Documentation

typedef int(* chunk_decoder)(GetByteContext *gb, uint8_t *frame, int width, int height)

Definition at line 325 of file dfa.c.

Function Documentation

static av_cold int dfa_decode_init ( AVCodecContext avctx)
static

Definition at line 38 of file dfa.c.

static int decode_copy ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 56 of file dfa.c.

static int decode_tsw1 ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 65 of file dfa.c.

static int decode_dsw1 ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 107 of file dfa.c.

static int decode_dds1 ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 144 of file dfa.c.

static int decode_bdlt ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 193 of file dfa.c.

static int decode_wdlt ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 235 of file dfa.c.

static int decode_tdlt ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 296 of file dfa.c.

static int decode_blck ( GetByteContext gb,
uint8_t frame,
int  width,
int  height 
)
static

Definition at line 318 of file dfa.c.

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

Definition at line 336 of file dfa.c.

static av_cold int dfa_decode_end ( AVCodecContext avctx)
static

Definition at line 403 of file dfa.c.

Variable Documentation

const chunk_decoder decoder[8]
static
Initial value:
= {
}
static int decode_blck(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:318
static int decode_tdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:296
static int decode_dsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:107
static int decode_copy(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:56
static int decode_bdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:193
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:144
static int decode_wdlt(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:235
static int decode_tsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
Definition: dfa.c:65
Examples:
qsvdec.c.

Definition at line 327 of file dfa.c.

Referenced by av_find_best_stream(), commit_bitstream_and_slice_buffer(), dfa_decode_frame(), ff_dxva2_commit_buffer(), ff_dxva2_common_end_frame(), ffmal_update_format(), ffmmal_flush(), ffmmal_init_decoder(), ffmmal_read_frame(), ffmmal_stop_decoder(), libschroedinger_decode_frame(), libschroedinger_handle_first_access_unit(), and main().

const char* chunk_name[8]
static
Initial value:
= {
"COPY", "TSW1", "BDLT", "WDLT", "TDLT", "DSW1", "BLCK", "DDS1"
}

Definition at line 332 of file dfa.c.

Referenced by dfa_decode_frame().

AVCodec ff_dfa_decoder
Initial value:
= {
.name = "dfa",
.long_name = NULL_IF_CONFIG_SMALL("Chronomaster DFA"),
.priv_data_size = sizeof(DfaContext),
.close = dfa_decode_end,
.capabilities = CODEC_CAP_DR1,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int dfa_decode_end(AVCodecContext *avctx)
Definition: dfa.c:403
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:789
static int dfa_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: dfa.c:336
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
Definition: dfa.c:33
static av_cold int dfa_decode_init(AVCodecContext *avctx)
Definition: dfa.c:38
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:522

Definition at line 412 of file dfa.c.