FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
pcxenc.c File Reference

PCX image encoder. More...

#include "avcodec.h"
#include "bytestream.h"
#include "libavutil/imgutils.h"
#include "internal.h"

Go to the source code of this file.

Functions

static av_cold int pcx_encode_init (AVCodecContext *avctx)
 
static av_cold int pcx_encode_close (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, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 

Variables

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

Detailed Description

PCX image encoder.

Author
Daniel Verkamp
See Also
http://www.qzx.com/pc-gpe/pcx.txt

Definition in file pcxenc.c.

Function Documentation

static av_cold int pcx_encode_init ( AVCodecContext avctx)
static

Definition at line 36 of file pcxenc.c.

static av_cold int pcx_encode_close ( AVCodecContext avctx)
static

Definition at line 48 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.

Parameters
dstoutput buffer
dst_sizesize of output buffer
srcinput buffer
src_plane_sizesize of one plane of input buffer in bytes
nplanesnumber of planes in input buffer
Returns
number of bytes written to dst or -1 on error
Bug:
will not work for nplanes != 1 && bpp != 8

Definition at line 64 of file pcxenc.c.

Referenced by pcx_encode_frame().

static int pcx_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int *  got_packet 
)
static

Definition at line 104 of file pcxenc.c.

Variable Documentation

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

Definition at line 34 of file pcxenc.c.

Referenced by pcx_encode_frame().

AVCodec ff_pcx_encoder
Initial value:

Definition at line 213 of file pcxenc.c.