FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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.

Functions

static void 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
 

Function Documentation

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

Definition at line 31 of file pcx.c.

Referenced by pcx_decode_frame().

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

Definition at line 55 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 66 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:66
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:856

Definition at line 236 of file pcx.c.