#include "avcodec.h"
#include "bytestream.h"
Go to the source code of this file.
Data Structures | |
struct | QtrleEncContext |
Defines | |
#define | MAX_RLE_BULK 127 |
Maximum RLE code for bulk copy. | |
#define | MAX_RLE_REPEAT 128 |
Maximum RLE code for repeat. | |
#define | MAX_RLE_SKIP 254 |
Maximum RLE code for skip. | |
Functions | |
static av_cold int | qtrle_encode_init (AVCodecContext *avctx) |
static void | qtrle_encode_line (QtrleEncContext *s, AVFrame *p, int line, uint8_t **buf) |
Computes the best RLE sequence for a line. | |
static int | encode_frame (QtrleEncContext *s, AVFrame *p, uint8_t *buf) |
Encodes frame including header. | |
static int | qtrle_encode_frame (AVCodecContext *avctx, uint8_t *buf, int buf_size, void *data) |
static av_cold int | qtrle_encode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | qtrle_encoder |
#define MAX_RLE_BULK 127 |
Maximum RLE code for bulk copy.
Definition at line 29 of file qtrleenc.c.
Referenced by qtrle_encode_init(), and qtrle_encode_line().
#define MAX_RLE_REPEAT 128 |
Maximum RLE code for repeat.
Definition at line 31 of file qtrleenc.c.
Referenced by qtrle_encode_line().
#define MAX_RLE_SKIP 254 |
Maximum RLE code for skip.
Definition at line 33 of file qtrleenc.c.
Referenced by qtrle_encode_line().
static int encode_frame | ( | QtrleEncContext * | s, | |
AVFrame * | p, | |||
uint8_t * | buf | |||
) | [static] |
static av_cold int qtrle_encode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 312 of file qtrleenc.c.
static int qtrle_encode_frame | ( | AVCodecContext * | avctx, | |
uint8_t * | buf, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
Definition at line 280 of file qtrleenc.c.
static av_cold int qtrle_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 61 of file qtrleenc.c.
static void qtrle_encode_line | ( | QtrleEncContext * | s, | |
AVFrame * | p, | |||
int | line, | |||
uint8_t ** | buf | |||
) | [static] |
Computes the best RLE sequence for a line.
Definition at line 109 of file qtrleenc.c.
Referenced by encode_frame().
Initial value:
{ "qtrle", AVMEDIA_TYPE_VIDEO, CODEC_ID_QTRLE, sizeof(QtrleEncContext), qtrle_encode_init, qtrle_encode_frame, qtrle_encode_end, .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB555BE, PIX_FMT_ARGB, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"), }
Definition at line 323 of file qtrleenc.c.