PCX image encoder.
More...
Go to the source code of this file.
PCX image encoder.
- Author
- Daniel Verkamp
- See also
- http://bespin.org/~qz/pc-gpe/pcx.txt
Definition in file pcxenc.c.
◆ pcx_rle_encode()
| 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 47 of file pcxenc.c.
Referenced by pcx_encode_frame().
◆ pcx_encode_frame()
◆ monoblack_pal
| const uint32_t monoblack_pal[16] = { 0x000000, 0xFFFFFF } |
|
static |
◆ ff_pcx_encoder
Initial value:= {
.p.name = "pcx",
}
#define CODEC_PIXFMTS(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static int pcx_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
@ AV_PIX_FMT_MONOBLACK
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb.
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_RGB8
packed RGB 3:3:2, 8bpp, (msb)3R 3G 2B(lsb)
@ AV_PIX_FMT_BGR8
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
@ AV_PIX_FMT_RGB4_BYTE
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
@ AV_PIX_FMT_BGR4_BYTE
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
@ AV_PIX_FMT_PAL8
8 bits with AV_PIX_FMT_RGB32 palette
Definition at line 195 of file pcxenc.c.