#include "avcodec.h"
#include "bytestream.h"
#include "libavutil/imgutils.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | 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. | |
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 |
Definition in file pcxenc.c.
static int pcx_encode_frame | ( | AVCodecContext * | avctx, | |
AVPacket * | pkt, | |||
const AVFrame * | frame, | |||
int * | got_packet | |||
) | [static] |
static av_cold int pcx_encode_init | ( | AVCodecContext * | avctx | ) | [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.
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 |
Definition at line 60 of file pcxenc.c.
Referenced by pcx_encode_frame().
Initial value:
{ .name = "pcx", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_PCX, .priv_data_size = sizeof(PCXContext), .init = pcx_encode_init, .encode2 = pcx_encode_frame, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_RGB24, PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_MONOBLACK, PIX_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"), }
const uint32_t monoblack_pal[16] = { 0x000000, 0xFFFFFF } [static] |