libavcodec/pcxenc.c File Reference

PCX image encoder. More...

#include "avcodec.h"
#include "bytestream.h"

Go to the source code of this file.

Data Structures

struct  PCXContext


static av_cold int pcx_encode_init (AVCodecContext *avctx)
static int pcx_rle_encode (uint8_t *dst, int dst_size, const uint8_t *src, int src_plane_size, int nplanes)
 PCX run-length encoder.
static int pcx_encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)


static const uint32_t monoblack_pal [16] = { 0x000000, 0xFFFFFF }
AVCodec ff_pcx_encoder

Detailed Description

PCX image encoder.

Daniel Verkamp
See also:

Definition in file pcxenc.c.

Function Documentation

static int pcx_encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void *  data 
) [static]

Definition at line 98 of file pcxenc.c.

static av_cold int pcx_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 38 of file pcxenc.c.

static int pcx_rle_encode ( uint8_t *  dst,
int  dst_size,
const uint8_t *  src,
int  src_plane_size,
int  nplanes 
) [static]

PCX run-length encoder.

dst output buffer
dst_size size of output buffer
src input buffer
src_plane_size size of one plane of input buffer in bytes
nplanes number of planes in input buffer
number of bytes written to dst or -1 on error
will not work for nplanes != 1 && bpp != 8

Definition at line 58 of file pcxenc.c.

Referenced by pcx_encode_frame().

Variable Documentation

Initial value:

Definition at line 192 of file pcxenc.c.

const uint32_t monoblack_pal[16] = { 0x000000, 0xFFFFFF } [static]

Definition at line 36 of file pcxenc.c.

Generated on Fri Oct 26 02:39:46 2012 for FFmpeg by  doxygen 1.5.8