FFmpeg
Macros | Functions | Variables
pcx.c File Reference
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.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, AVFrame *p, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_pcx_decoder
 

Macro Definition Documentation

◆ PCX_HEADER_SIZE

#define PCX_HEADER_SIZE   128

Definition at line 32 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 34 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 62 of file pcx.c.

Referenced by pcx_decode_frame().

◆ pcx_decode_frame()

static int pcx_decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 73 of file pcx.c.

Variable Documentation

◆ ff_pcx_decoder

const FFCodec ff_pcx_decoder
Initial value:
= {
.p.name = "pcx",
CODEC_LONG_NAME("PC Paintbrush PCX image"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_PCX,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 253 of file pcx.c.

FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:286
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:271
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_CODEC_ID_PCX
@ AV_CODEC_ID_PCX
Definition: codec_id.h:161
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
pcx_decode_frame
static int pcx_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: pcx.c:73