FFmpeg
Data Structures | Macros | Functions | Variables
cljrenc.c File Reference
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "encode.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
 
const FFCodec 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 97 of file cljrenc.c.

◆ VE

Definition at line 98 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 99 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 104 of file cljrenc.c.

◆ ff_cljr_encoder

const FFCodec ff_cljr_encoder
Initial value:
= {
.p.name = "cljr",
CODEC_LONG_NAME("Cirrus Logic AccuPak"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(CLJRContext),
.p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
.color_ranges = AVCOL_RANGE_MPEG,
.p.priv_class = &cljr_class,
}

Definition at line 111 of file cljrenc.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:71
CLJRContext
Definition: cljrenc.c:34
FF_CODEC_ENCODE_CB
#define FF_CODEC_ENCODE_CB(func)
Definition: codec_internal.h:320
options
static const AVOption options[]
Definition: cljrenc.c:99
AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
Definition: codec.h:159
cljr_class
static const AVClass cljr_class
Definition: cljrenc.c:104
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
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:237
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_CODEC_ID_CLJR
@ AV_CODEC_ID_CLJR
Definition: codec_id.h:88
AVCOL_RANGE_MPEG
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
Definition: pixfmt.h:700
OFFSET
#define OFFSET(x)
Definition: cljrenc.c:97
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
VE
#define VE
Definition: cljrenc.c:98
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:80