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

Go to the source code of this file.

Data Structures

struct  PTXContext
 

Typedefs

typedef struct PTXContext PTXContext
 

Functions

static av_cold int ptx_init (AVCodecContext *avctx)
 
static int ptx_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 
static av_cold int ptx_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_ptx_decoder
 

Typedef Documentation

typedef struct PTXContext PTXContext

Function Documentation

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

Definition at line 39 of file ptx.c.

static av_cold int ptx_end ( AVCodecContext avctx)
static

Definition at line 110 of file ptx.c.

static av_cold int ptx_init ( AVCodecContext avctx)
static

Definition at line 30 of file ptx.c.

Variable Documentation

AVCodec ff_ptx_decoder
Initial value:
= {
.name = "ptx",
.id = CODEC_ID_PTX,
.priv_data_size = sizeof(PTXContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("V.Flash PTX image"),
}
struct PTXContext PTXContext
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
static av_cold int ptx_init(AVCodecContext *avctx)
Definition: ptx.c:30
static av_cold int ptx_end(AVCodecContext *avctx)
Definition: ptx.c:110
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 int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: ptx.c:39
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327

Definition at line 119 of file ptx.c.