PCX image encoder.
More...
#include "avcodec.h"
#include "bytestream.h"
Go to the source code of this file.
PCX image encoder.
- Author
- Daniel Verkamp
- See also
- http://www.qzx.com/pc-gpe/pcx.txt
Definition in file pcxenc.c.
static int pcx_encode_frame |
( |
AVCodecContext * |
avctx, |
|
|
unsigned char * |
buf, |
|
|
int |
buf_size, |
|
|
void * |
data |
|
) |
| |
|
static |
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
-
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 |
- Returns
- number of bytes written to dst or -1 on error
- Bug:
- will not work for nplanes != 1 && bpp != 8
Definition at line 58 of file pcxenc.c.
Referenced by pcx_encode_frame().
Initial value:= {
.name = "pcx",
}
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
static int init(AVCodecParserContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int pcx_encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
struct PCXContext PCXContext
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
8 bit with PIX_FMT_RGB32 palette
packed RGB 8:8:8, 24bpp, RGBRGB...
static av_cold int pcx_encode_init(AVCodecContext *avctx)
Definition at line 192 of file pcxenc.c.
const uint32_t monoblack_pal[16] = { 0x000000, 0xFFFFFF } |
|
static |