FFmpeg
Loading...
Searching...
No Matches
cljrenc.c File Reference

Cirrus Logic AccuPak encoder. More...

#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)
 
#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)
Value:
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 },
}
#define VE
Definition amfenc_av1.c:30
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258

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,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

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),
.color_ranges = AVCOL_RANGE_MPEG,
.p.priv_class = &cljr_class,
}
static const AVClass cljr_class
Definition cljrenc.c:104
#define CODEC_PIXFMTS(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
static int encode_frame(OutputFile *of, OutputStream *ost, AVFrame *frame, AVPacket *pkt)
Definition ffmpeg_enc.c:694
#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:147
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_CLJR
Definition codec_id.h:86
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
Definition pixfmt.h:766
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition pixfmt.h:80

Definition at line 111 of file cljrenc.c.