FFmpeg
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

◆ PCX_HEADER_SIZE

#define PCX_HEADER_SIZE   128

Definition at line 31 of file pcx.c.

Function Documentation

◆ pcx_rle_decode()

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

◆ pcx_palette()

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

◆ 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

◆ 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,
}

Definition at line 252 of file pcx.c.

AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
AV_CODEC_ID_PCX
@ AV_CODEC_ID_PCX
Definition: avcodec.h:327
pcx_decode_frame
static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: pcx.c:72
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201