FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dca_core.h File Reference
#include "libavutil/common.h"
#include "libavutil/float_dsp.h"
#include "libavutil/fixed_dsp.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "internal.h"
#include "get_bits.h"
#include "dca.h"
#include "dca_exss.h"
#include "dcadsp.h"
#include "dcadct.h"
#include "dcahuff.h"
#include "fft.h"
#include "synth_filter.h"

Go to the source code of this file.

Data Structures

struct  DCADSPData
 
struct  DCACoreDecoder
 

Macros

#define DCA_CHANNELS   7
 
#define DCA_SUBBANDS   32
 
#define DCA_SUBBANDS_X96   64
 
#define DCA_SUBFRAMES   16
 
#define DCA_SUBBAND_SAMPLES   8
 
#define DCA_PCMBLOCK_SAMPLES   32
 
#define DCA_ADPCM_COEFFS   4
 
#define DCA_LFE_HISTORY   8
 
#define DCA_ABITS_MAX   26
 
#define DCA_CORE_CHANNELS_MAX   6
 
#define DCA_DMIX_CHANNELS_MAX   4
 
#define DCA_XXCH_CHANNELS_MAX   2
 
#define DCA_EXSS_CHANNELS_MAX   8
 
#define DCA_EXSS_CHSETS_MAX   4
 
#define DCA_FILTER_MODE_X96   0x01
 
#define DCA_FILTER_MODE_FIXED   0x02
 

Functions

static int ff_dca_core_map_spkr (DCACoreDecoder *core, int spkr)
 
int ff_dca_core_parse (DCACoreDecoder *s, uint8_t *data, int size)
 
int ff_dca_core_parse_exss (DCACoreDecoder *s, uint8_t *data, DCAExssAsset *asset)
 
int ff_dca_core_filter_fixed (DCACoreDecoder *s, int x96_synth)
 
int ff_dca_core_filter_frame (DCACoreDecoder *s, AVFrame *frame)
 
av_cold void ff_dca_core_flush (DCACoreDecoder *s)
 
av_cold int ff_dca_core_init (DCACoreDecoder *s)
 
av_cold void ff_dca_core_close (DCACoreDecoder *s)
 

Macro Definition Documentation

#define DCA_CHANNELS   7
#define DCA_SUBBANDS   32
#define DCA_SUBBANDS_X96   64
#define DCA_SUBFRAMES   16

Definition at line 43 of file dca_core.h.

#define DCA_SUBBAND_SAMPLES   8
#define DCA_PCMBLOCK_SAMPLES   32

Definition at line 45 of file dca_core.h.

Referenced by ff_dca_core_filter_fixed(), filter_frame_float(), and parse_frame_header().

#define DCA_ADPCM_COEFFS   4
#define DCA_LFE_HISTORY   8
#define DCA_ABITS_MAX   26

Definition at line 48 of file dca_core.h.

Referenced by extract_audio(), parse_subframe_header(), and parse_xbr_subframe().

#define DCA_CORE_CHANNELS_MAX   6

Definition at line 50 of file dca_core.h.

#define DCA_DMIX_CHANNELS_MAX   4

Definition at line 51 of file dca_core.h.

#define DCA_XXCH_CHANNELS_MAX   2

Definition at line 52 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_coding_header().

#define DCA_EXSS_CHANNELS_MAX   8

Definition at line 53 of file dca_core.h.

Referenced by parse_xbr_frame().

#define DCA_EXSS_CHSETS_MAX   4

Definition at line 54 of file dca_core.h.

Referenced by parse_x96_frame_exss(), and parse_xbr_frame().

#define DCA_FILTER_MODE_X96   0x01

Definition at line 56 of file dca_core.h.

#define DCA_FILTER_MODE_FIXED   0x02

Definition at line 57 of file dca_core.h.

Referenced by dcadec_decode_frame(), and ff_dca_core_filter_fixed().

Function Documentation

static int ff_dca_core_map_spkr ( DCACoreDecoder core,
int  spkr 
)
inlinestatic

Definition at line 187 of file dca_core.h.

Referenced by combine_residual_frame(), and force_lossy_output().

int ff_dca_core_parse ( DCACoreDecoder s,
uint8_t data,
int  size 
)

Definition at line 1895 of file dca_core.c.

Referenced by dcadec_decode_frame().

int ff_dca_core_parse_exss ( DCACoreDecoder s,
uint8_t data,
DCAExssAsset asset 
)

Definition at line 1928 of file dca_core.c.

Referenced by dcadec_decode_frame().

int ff_dca_core_filter_fixed ( DCACoreDecoder s,
int  x96_synth 
)

Definition at line 2055 of file dca_core.c.

Referenced by dcadec_decode_frame(), and filter_frame_fixed().

int ff_dca_core_filter_frame ( DCACoreDecoder s,
AVFrame frame 
)

Definition at line 2441 of file dca_core.c.

Referenced by dcadec_decode_frame().

av_cold void ff_dca_core_flush ( DCACoreDecoder s)

Definition at line 2495 of file dca_core.c.

Referenced by dcadec_flush().

av_cold int ff_dca_core_init ( DCACoreDecoder s)

Definition at line 2508 of file dca_core.c.

Referenced by dcadec_init().

av_cold void ff_dca_core_close ( DCACoreDecoder s)

Definition at line 2526 of file dca_core.c.

Referenced by dcadec_close().