FFmpeg  4.0
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 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
 

Macro Definition Documentation

◆ PCX_HEADER_SIZE

#define PCX_HEADER_SIZE   128

Definition at line 31 of file pcx.c.

Referenced by pcx_decode_frame().

Function Documentation

◆ pcx_rle_decode()

static void 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().

◆ pcx_palette()

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

Definition at line 57 of file pcx.c.

Referenced by pcx_decode_frame().

◆ pcx_decode_frame()

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

Definition at line 68 of file pcx.c.

Variable Documentation

◆ ff_pcx_decoder

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:68
#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:959

Definition at line 240 of file pcx.c.