FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
qtrleenc.c File Reference
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  QtrleEncContext
 

Macros

#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_end (AVCodecContext *avctx)
 
static av_cold int qtrle_encode_init (AVCodecContext *avctx)
 
static void qtrle_encode_line (QtrleEncContext *s, const AVFrame *p, int line, uint8_t **buf)
 Compute the best RLE sequence for a line.
 
static int encode_frame (QtrleEncContext *s, const AVFrame *p, uint8_t *buf)
 Encode frame including header.
 
static int qtrle_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 

Variables

AVCodec ff_qtrle_encoder
 

Macro Definition Documentation

#define MAX_RLE_BULK   127

Maximum RLE code for bulk copy.

Definition at line 31 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 33 of file qtrleenc.c.

Referenced by qtrle_encode_line().

#define MAX_RLE_SKIP   254

Maximum RLE code for skip.

Definition at line 35 of file qtrleenc.c.

Referenced by qtrle_encode_line().

Function Documentation

static av_cold int qtrle_encode_end ( AVCodecContext avctx)
static

Definition at line 63 of file qtrleenc.c.

Referenced by qtrle_encode_init().

static av_cold int qtrle_encode_init ( AVCodecContext avctx)
static

Definition at line 76 of file qtrleenc.c.

static void qtrle_encode_line ( QtrleEncContext s,
const AVFrame p,
int  line,
uint8_t **  buf 
)
static

Compute the best RLE sequence for a line.

Definition at line 136 of file qtrleenc.c.

Referenced by encode_frame().

static int encode_frame ( QtrleEncContext s,
const AVFrame p,
uint8_t buf 
)
static

Encode frame including header.

Definition at line 322 of file qtrleenc.c.

static int qtrle_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int *  got_packet 
)
static

Definition at line 363 of file qtrleenc.c.

Variable Documentation

AVCodec ff_qtrle_encoder
Initial value:
= {
.name = "qtrle",
.long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"),
.priv_data_size = sizeof(QtrleEncContext),
.encode2 = qtrle_encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
},
}

Definition at line 396 of file qtrleenc.c.