FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dcadec.h File Reference
#include "libavutil/common.h"
#include "libavutil/crc.h"
#include "libavutil/float_dsp.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...
 

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

#define DCA_PACKET_CORE   0x01

Definition at line 37 of file dcadec.h.

Referenced by combine_residual_frame(), and dcadec_decode_frame().

#define DCA_PACKET_EXSS   0x02

Definition at line 38 of file dcadec.h.

Referenced by dcadec_decode_frame(), and ff_dca_core_filter_frame().

#define DCA_PACKET_XLL   0x04

Definition at line 39 of file dcadec.h.

Referenced by dcadec_decode_frame(), ff_dca_core_parse_exss(), and filter_frame_fixed().

#define DCA_PACKET_LBR   0x08

Definition at line 40 of file dcadec.h.

Referenced by dcadec_decode_frame().

#define DCA_PACKET_MASK   0x0f

Definition at line 41 of file dcadec.h.

Referenced by dcadec_flush().

#define DCA_PACKET_RECOVERY   0x10

Sync error recovery flag.

Definition at line 43 of file dcadec.h.

Referenced by dcadec_decode_frame(), and ff_dca_xll_filter_frame().

#define DCA_PACKET_RESIDUAL   0x20

Core valid for residual decoding.

Definition at line 44 of file dcadec.h.

Referenced by dcadec_decode_frame().

Function Documentation

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

Definition at line 32 of file dcadec.c.

Referenced by ff_dca_core_filter_frame(), and ff_dca_xll_filter_frame().

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

Definition at line 79 of file dcadec.c.

Referenced by ff_dca_xll_filter_frame(), and filter_frame_fixed().

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

Definition at line 110 of file dcadec.c.

Referenced by filter_frame_float().

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