txd.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "s3tc.h"

Go to the source code of this file.

Data Structures

struct  TXDContext
 

Typedefs

typedef struct TXDContext TXDContext
 

Functions

static av_cold int txd_init (AVCodecContext *avctx)
 
static int txd_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 
static av_cold int txd_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_txd_decoder
 

Typedef Documentation

typedef struct TXDContext TXDContext

Function Documentation

static int txd_decode_frame ( AVCodecContext avctx,
void data,
int *  data_size,
AVPacket avpkt 
)
static

Definition at line 42 of file txd.c.

static av_cold int txd_end ( AVCodecContext avctx)
static

Definition at line 150 of file txd.c.

static av_cold int txd_init ( AVCodecContext avctx)
static

Definition at line 33 of file txd.c.

Variable Documentation

AVCodec ff_txd_decoder
Initial value:
= {
.name = "txd",
.id = CODEC_ID_TXD,
.priv_data_size = sizeof(TXDContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Renderware TXD (TeXture Dictionary) image"),
}
static av_cold int txd_init(AVCodecContext *avctx)
Definition: txd.c:33
static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: txd.c:42
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:719
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327
static av_cold int txd_end(AVCodecContext *avctx)
Definition: txd.c:150
struct TXDContext TXDContext

Definition at line 159 of file txd.c.