FFmpeg
Data Structures | Macros | Functions | Variables
cljrenc.c File Reference
#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

◆ OFFSET

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

Definition at line 98 of file cljrenc.c.

◆ VE

Definition at line 99 of file cljrenc.c.

Function Documentation

◆ encode_frame()

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

◆ options

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.

◆ cljr_class

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.

◆ ff_cljr_encoder

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,
}

Definition at line 112 of file cljrenc.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
CLJRContext
Definition: cljrenc.c:34
options
static const AVOption options[]
Definition: cljrenc.c:100
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:303
cljr_class
static const AVClass cljr_class
Definition: cljrenc.c:105
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
AV_CODEC_ID_CLJR
@ AV_CODEC_ID_CLJR
Definition: codec_id.h:85
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
OFFSET
#define OFFSET(x)
Definition: cljrenc.c:98
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
VE
#define VE
Definition: cljrenc.c:99
encode_frame
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
Definition: cljrenc.c:39
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_PIX_FMT_YUV411P
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:73