FFmpeg
Data Structures | Macros | Enumerations | Functions
dcadec.h File Reference
#include <stdint.h>
#include "libavutil/crc.h"
#include "libavutil/float_dsp.h"
#include "libavutil/log.h"
#include "avcodec.h"
#include "get_bits.h"
#include "dca.h"
#include "dcadsp.h"
#include "dca_core.h"
#include "dca_exss.h"
#include "dca_xll.h"
#include "dca_lbr.h"

Go to the source code of this file.

Data Structures

struct  DCAContext
 

Macros

#define DCA_PACKET_CORE   0x01
 
#define DCA_PACKET_EXSS   0x02
 
#define DCA_PACKET_XLL   0x04
 
#define DCA_PACKET_LBR   0x08
 
#define DCA_PACKET_MASK   0x0f
 
#define DCA_PACKET_RECOVERY   0x10
 Sync error recovery flag. More...
 
#define DCA_PACKET_RESIDUAL   0x20
 Core valid for residual decoding. More...
 

Enumerations

enum  DCAOutputChannelOrder { CHANNEL_ORDER_DEFAULT, CHANNEL_ORDER_CODED }
 

Functions

int ff_dca_set_channel_layout (AVCodecContext *avctx, int *ch_remap, int dca_mask)
 
void ff_dca_downmix_to_stereo_fixed (DCADSPContext *dcadsp, int32_t **samples, int *coeff_l, int nsamples, int ch_mask)
 
void ff_dca_downmix_to_stereo_float (AVFloatDSPContext *fdsp, float **samples, int *coeff_l, int nsamples, int ch_mask)
 
static int ff_dca_check_crc (AVCodecContext *avctx, GetBitContext *s, int p1, int p2)
 
static int ff_dca_seek_bits (GetBitContext *s, int p)
 

Macro Definition Documentation

◆ DCA_PACKET_CORE

#define DCA_PACKET_CORE   0x01

Definition at line 39 of file dcadec.h.

◆ DCA_PACKET_EXSS

#define DCA_PACKET_EXSS   0x02

Definition at line 40 of file dcadec.h.

◆ DCA_PACKET_XLL

#define DCA_PACKET_XLL   0x04

Definition at line 41 of file dcadec.h.

◆ DCA_PACKET_LBR

#define DCA_PACKET_LBR   0x08

Definition at line 42 of file dcadec.h.

◆ DCA_PACKET_MASK

#define DCA_PACKET_MASK   0x0f

Definition at line 43 of file dcadec.h.

◆ DCA_PACKET_RECOVERY

#define DCA_PACKET_RECOVERY   0x10

Sync error recovery flag.

Definition at line 45 of file dcadec.h.

◆ DCA_PACKET_RESIDUAL

#define DCA_PACKET_RESIDUAL   0x20

Core valid for residual decoding.

Definition at line 46 of file dcadec.h.

Enumeration Type Documentation

◆ DCAOutputChannelOrder

Enumerator
CHANNEL_ORDER_DEFAULT 
CHANNEL_ORDER_CODED 

Definition at line 48 of file dcadec.h.

Function Documentation

◆ ff_dca_set_channel_layout()

int ff_dca_set_channel_layout ( AVCodecContext avctx,
int *  ch_remap,
int  dca_mask 
)

Definition at line 35 of file dcadec.c.

Referenced by ff_dca_core_filter_frame(), and ff_dca_xll_filter_frame().

◆ ff_dca_downmix_to_stereo_fixed()

void ff_dca_downmix_to_stereo_fixed ( DCADSPContext dcadsp,
int32_t **  samples,
int *  coeff_l,
int  nsamples,
int  ch_mask 
)

Definition at line 86 of file dcadec.c.

Referenced by ff_dca_xll_filter_frame(), and filter_frame_fixed().

◆ ff_dca_downmix_to_stereo_float()

void ff_dca_downmix_to_stereo_float ( AVFloatDSPContext fdsp,
float **  samples,
int *  coeff_l,
int  nsamples,
int  ch_mask 
)

Definition at line 117 of file dcadec.c.

Referenced by filter_frame_float().

◆ ff_dca_check_crc()

static int ff_dca_check_crc ( AVCodecContext avctx,
GetBitContext s,
int  p1,
int  p2 
)
inlinestatic

◆ ff_dca_seek_bits()

static int ff_dca_seek_bits ( GetBitContext s,
int  p 
)
inlinestatic