pcx.c File Reference
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  PCXContext
 

Typedefs

typedef struct PCXContext PCXContext
 

Functions

static av_cold int pcx_init (AVCodecContext *avctx)
 
static const uint8_t * pcx_rle_decode (const uint8_t *src, const uint8_t *end, uint8_t *dst, unsigned int bytes_per_scanline, int compressed)
 
static void pcx_palette (const uint8_t **src, uint32_t *dst, unsigned int pallen)
 
static int pcx_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 
static av_cold int pcx_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_pcx_decoder
 

Typedef Documentation

typedef struct PCXContext PCXContext

Function Documentation

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

Definition at line 82 of file pcx.c.

static av_cold int pcx_end ( AVCodecContext avctx)
static

Definition at line 257 of file pcx.c.

static av_cold int pcx_init ( AVCodecContext avctx)
static

Definition at line 34 of file pcx.c.

static void pcx_palette ( const uint8_t **  src,
uint32_t *  dst,
unsigned int  pallen 
)
static

Definition at line 73 of file pcx.c.

Referenced by pcx_decode_frame().

static const uint8_t* pcx_rle_decode ( const uint8_t *  src,
const uint8_t *  end,
uint8_t *  dst,
unsigned int  bytes_per_scanline,
int  compressed 
)
static
Returns
advanced src pointer

Definition at line 46 of file pcx.c.

Referenced by pcx_decode_frame().

Variable Documentation

AVCodec ff_pcx_decoder
Initial value:
= {
.name = "pcx",
.id = CODEC_ID_PCX,
.priv_data_size = sizeof(PCXContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"),
}
static av_cold int pcx_init(AVCodecContext *avctx)
Definition: pcx.c:34
static av_cold int pcx_end(AVCodecContext *avctx)
Definition: pcx.c:257
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: pcx.c:82
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
struct PCXContext PCXContext
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327

Definition at line 266 of file pcx.c.