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 },
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: cljrenc.c:98
#define VE
Definition: cljrenc.c:99

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,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:86
static const AVOption options[]
Definition: cljrenc.c:100
av_default_item_name

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,
.priv_class = &cljr_class,
}
static const AVClass cljr_class
Definition: cljrenc.c:105
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:266
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
Definition: cljrenc.c:39
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:69
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60

Definition at line 112 of file cljrenc.c.