All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libdcadec.c File Reference
#include <libdcadec/dca_context.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "dca.h"
#include "dca_syncwords.h"
#include "internal.h"
#include "profiles.h"

Go to the source code of this file.

Data Structures

struct  DCADecContext


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


static void my_log_cb (int level, const char *file, int line, const char *message, void *cbarg)
static int dcadec_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
static av_cold void dcadec_flush (AVCodecContext *avctx)
static av_cold int dcadec_close (AVCodecContext *avctx)
static av_cold int dcadec_init (AVCodecContext *avctx)


static const AVOption dcadec_options []
static const AVClass dcadec_class
AVCodec ff_libdcadec_decoder

Macro Definition Documentation

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

Definition at line 276 of file libdcadec.c.

Definition at line 277 of file libdcadec.c.

Function Documentation

static void my_log_cb ( int  level,
const char *  file,
int  line,
const char *  message,
void cbarg 

Definition at line 43 of file libdcadec.c.

Referenced by dcadec_init().

static int dcadec_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket avpkt 

Definition at line 70 of file libdcadec.c.

static av_cold void dcadec_flush ( AVCodecContext avctx)

Definition at line 202 of file libdcadec.c.

static av_cold int dcadec_close ( AVCodecContext avctx)

Definition at line 208 of file libdcadec.c.

static av_cold int dcadec_init ( AVCodecContext avctx)

Definition at line 220 of file libdcadec.c.

Variable Documentation

const AVOption dcadec_options[]
Initial value:
= {
{ "lfe_filter", "Lossy LFE channel interpolation filter", OFFSET(lfe_filter), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 2, PARAM, "lfe_filter" },
{ "default", "Library default", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, INT_MIN, INT_MAX, PARAM, "lfe_filter" },
{ "iir", "IIR filter", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, INT_MIN, INT_MAX, PARAM, "lfe_filter" },
{ "fir", "FIR filter", 0, AV_OPT_TYPE_CONST, { .i64 = 2 }, INT_MIN, INT_MAX, PARAM, "lfe_filter" },
{ "core_only", "Decode core only without extensions", OFFSET(core_only), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, PARAM },
{ NULL }
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: libdcadec.c:276
#define PARAM
Definition: libdcadec.c:277

Definition at line 279 of file libdcadec.c.

const AVClass dcadec_class
Initial value:
= {
.class_name = "libdcadec decoder",
.item_name = av_default_item_name,
.option = dcadec_options,
Definition: version.h:70
static const AVOption dcadec_options[]
Definition: libdcadec.c:279

Definition at line 288 of file libdcadec.c.

AVCodec ff_libdcadec_decoder
Initial value:
= {
.name = "libdcadec",
.long_name = NULL_IF_CONFIG_SMALL("dcadec DCA decoder"),
.priv_data_size = sizeof(DCADecContext),
.close = dcadec_close,
.priv_class = &dcadec_class,
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold void dcadec_flush(AVCodecContext *avctx)
Definition: libdcadec.c:202
static const AVClass dcadec_class
Definition: libdcadec.c:288
Codec should fill in channel configuration and samplerate instead of container.
Definition: avcodec.h:915
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
signed 32 bits, planar
Definition: samplefmt.h:69
static int dcadec_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: libdcadec.c:70
static av_cold int dcadec_init(AVCodecContext *avctx)
Definition: libdcadec.c:220
Audio sample formats.
Definition: samplefmt.h:59
static av_cold int dcadec_close(AVCodecContext *avctx)
Definition: libdcadec.c:208
const AVProfile ff_dca_profiles[]
Definition: profiles.c:40
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:572
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701
signed 16 bits, planar
Definition: samplefmt.h:68
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:856

Definition at line 296 of file libdcadec.c.