FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cljrenc.c File Reference

Cirrus Logic AccuPak encoder. More...

#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
#include "put_bits.h"

Go to the source code of this file.

Data Structures

struct  CLJRContext
 

Macros

#define OFFSET(x)   offsetof(CLJRContext, x)
 
#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
 

Variables

static const AVOption options []
 
static const AVClass cljr_class
 
AVCodec ff_cljr_encoder
 

Detailed Description

Cirrus Logic AccuPak encoder.

Definition in file cljrenc.c.

Macro Definition Documentation

#define OFFSET (   x)    offsetof(CLJRContext, x)

Definition at line 98 of file cljrenc.c.

Definition at line 99 of file cljrenc.c.

Function Documentation

static int encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame p,
int *  got_packet 
)
static

Definition at line 39 of file cljrenc.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "dither_type", "Dither type", OFFSET(dither_type), AV_OPT_TYPE_INT, { .i64=1 }, 0, 2, VE},
{ NULL },
}

Definition at line 100 of file cljrenc.c.

const AVClass cljr_class
static
Initial value:
= {
.class_name = "cljr encoder",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 105 of file cljrenc.c.

AVCodec ff_cljr_encoder
Initial value:
= {
.name = "cljr",
.long_name = NULL_IF_CONFIG_SMALL("Cirrus Logic AccuPak"),
.priv_data_size = sizeof(CLJRContext),
.encode2 = encode_frame,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
.priv_class = &cljr_class,
}

Definition at line 112 of file cljrenc.c.