FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pcx.c File Reference
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define PCX_HEADER_SIZE   128
 

Functions

static int pcx_rle_decode (GetByteContext *gb, uint8_t *dst, unsigned int bytes_per_scanline, int compressed)
 
static void pcx_palette (GetByteContext *gb, uint32_t *dst, int pallen)
 
static int pcx_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_pcx_decoder
 

Macro Definition Documentation

#define PCX_HEADER_SIZE   128

Definition at line 31 of file pcx.c.

Referenced by pcx_decode_frame().

Function Documentation

static int pcx_rle_decode ( GetByteContext gb,
uint8_t dst,
unsigned int  bytes_per_scanline,
int  compressed 
)
static

Definition at line 33 of file pcx.c.

Referenced by pcx_decode_frame().

static void pcx_palette ( GetByteContext gb,
uint32_t *  dst,
int  pallen 
)
static

Definition at line 61 of file pcx.c.

Referenced by pcx_decode_frame().

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

Definition at line 72 of file pcx.c.

Variable Documentation

AVCodec ff_pcx_decoder
Initial value:
= {
.name = "pcx",
.long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"),
.decode = pcx_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
}
static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: pcx.c:72
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:968

Definition at line 252 of file pcx.c.