libavcodec/dfa.c File Reference
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
Include dependency graph for libavcodec/dfa.c:

Go to the source code of this file.

Data Structures

struct  DfaContext
 

Typedefs

typedef struct DfaContext DfaContext
 
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 320 of file libavcodec/dfa.c.

typedef struct DfaContext DfaContext

Function Documentation

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

Definition at line 191 of file libavcodec/dfa.c.

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

Definition at line 313 of file libavcodec/dfa.c.

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

Definition at line 54 of file libavcodec/dfa.c.

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

Definition at line 142 of file libavcodec/dfa.c.

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

Definition at line 105 of file libavcodec/dfa.c.

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

Definition at line 291 of file libavcodec/dfa.c.

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

Definition at line 63 of file libavcodec/dfa.c.

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

Definition at line 233 of file libavcodec/dfa.c.

static av_cold int dfa_decode_end ( AVCodecContext avctx)
static

Definition at line 397 of file libavcodec/dfa.c.

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

Definition at line 331 of file libavcodec/dfa.c.

static av_cold int dfa_decode_init ( AVCodecContext avctx)
static

Definition at line 36 of file libavcodec/dfa.c.

Variable Documentation

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

Definition at line 327 of file libavcodec/dfa.c.

Referenced by dfa_decode_frame().

const chunk_decoder decoder[8]
static
Initial value:
= {
}
static int decode_blck(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_dsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
static int decode_copy(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_dds1(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_tsw1(GetByteContext *gb, uint8_t *frame, int width, int height)

Definition at line 322 of file libavcodec/dfa.c.

Referenced by av_find_best_stream(), dfa_decode_frame(), libschroedinger_decode_frame(), and libschroedinger_handle_first_access_unit().

AVCodec ff_dfa_decoder
Initial value:
= {
.name = "dfa",
.priv_data_size = sizeof(DfaContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Chronomaster DFA"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int dfa_decode_end(AVCodecContext *avctx)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
static int dfa_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int dfa_decode_init(AVCodecContext *avctx)
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
struct DfaContext DfaContext
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 406 of file libavcodec/dfa.c.