MSRLE encoder.
More...
Go to the source code of this file.
|
| static av_cold int | msrle_encode_init (AVCodecContext *avctx) |
| |
| static void | write_run (AVCodecContext *avctx, uint8_t **data, int len, int value) |
| |
| static void | write_absolute (AVCodecContext *avctx, uint8_t **data, const uint8_t *line, int len) |
| |
| static void | write_delta (AVCodecContext *avctx, uint8_t **data, int delta) |
| |
| static void | write_yskip (AVCodecContext *avctx, uint8_t **data, int yskip) |
| |
| static void | encode_line (AVCodecContext *avctx, uint8_t **data, const uint8_t *line, int length) |
| |
| static int | encode (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int keyframe, int *got_keyframe) |
| |
| static int | msrle_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
| |
| static av_cold int | msrle_encode_close (AVCodecContext *avctx) |
| |
◆ msrle_encode_init()
◆ write_run()
| static void write_run |
( |
AVCodecContext * | avctx, |
|
|
uint8_t ** | data, |
|
|
int | len, |
|
|
int | value ) |
|
static |
◆ write_absolute()
| static void write_absolute |
( |
AVCodecContext * | avctx, |
|
|
uint8_t ** | data, |
|
|
const uint8_t * | line, |
|
|
int | len ) |
|
static |
◆ write_delta()
| static void write_delta |
( |
AVCodecContext * | avctx, |
|
|
uint8_t ** | data, |
|
|
int | delta ) |
|
static |
◆ write_yskip()
| static void write_yskip |
( |
AVCodecContext * | avctx, |
|
|
uint8_t ** | data, |
|
|
int | yskip ) |
|
static |
◆ encode_line()
| static void encode_line |
( |
AVCodecContext * | avctx, |
|
|
uint8_t ** | data, |
|
|
const uint8_t * | line, |
|
|
int | length ) |
|
static |
◆ encode()
◆ msrle_encode_frame()
◆ msrle_encode_close()
◆ ff_msrle_encoder
Initial value:= {
.p.name = "msrle",
}
#define CODEC_PIXFMTS(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static av_cold int msrle_encode_close(AVCodecContext *avctx)
static int msrle_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
static av_cold int msrle_encode_init(AVCodecContext *avctx)
@ AV_PIX_FMT_PAL8
8 bits with AV_PIX_FMT_RGB32 palette
Definition at line 288 of file msrleenc.c.