FFmpeg
|
pcxenc.c File Reference
PCX image encoder. More...
Include dependency graph for pcxenc.c:
Go to the source code of this file.
Data Structures | |
struct | PCXContext |
Typedefs | |
typedef struct PCXContext | PCXContext |
Functions | |
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. More... | |
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
Typedef Documentation
typedef struct PCXContext PCXContext |
Function Documentation
|
static |
|
static |
|
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 60 of file pcxenc.c.
Referenced by pcx_encode_frame().
Variable Documentation
AVCodec ff_pcx_encoder |
Initial value:
= {
.name = "pcx",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_PCX,
.priv_data_size = sizeof(PCXContext),
.init = pcx_encode_init,
.encode2 = pcx_encode_frame,
},
.long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"),
}
Definition: pixfmt.h:67
Definition: libavcodec/avcodec.h:212
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
static int pcx_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: pcxenc.c:100
struct PCXContext PCXContext
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:78
Definition: avutil.h:143
|
static |
Definition at line 38 of file pcxenc.c.
Referenced by pcx_encode_frame().
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11