FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
dca.h File Reference
#include <stdint.h>
#include "libavutil/float_dsp.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "dcadsp.h"
#include "fmtconvert.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  DCAContext
 

Macros

#define DCA_PRIM_CHANNELS_MAX   (7)
 
#define DCA_ABITS_MAX   (32) /* Should be 28 */
 
#define DCA_SUBSUBFRAMES_MAX   (4)
 
#define DCA_SUBFRAMES_MAX   (16)
 
#define DCA_BLOCKS_MAX   (16)
 
#define DCA_LFE_MAX   (3)
 
#define DCA_CHSETS_MAX   (4)
 
#define DCA_CHSET_CHANS_MAX   (8)
 
#define DCA_MAX_FRAME_SIZE   16384
 
#define DCA_MAX_EXSS_HEADER_SIZE   4096
 
#define DCA_BUFFER_PADDING_SIZE   1024
 

Enumerations

enum  DCAExtensionMask {
  DCA_EXT_CORE = 0x001, DCA_EXT_XXCH = 0x002, DCA_EXT_X96 = 0x004, DCA_EXT_XCH = 0x008,
  DCA_EXT_EXSS_CORE = 0x010, DCA_EXT_EXSS_XBR = 0x020, DCA_EXT_EXSS_XXCH = 0x040, DCA_EXT_EXSS_X96 = 0x080,
  DCA_EXT_EXSS_LBR = 0x100, DCA_EXT_EXSS_XLL = 0x200
}
 

Functions

int avpriv_dca_convert_bitstream (const uint8_t *src, int src_size, uint8_t *dst, int max_size)
 Convert bitstream to one representation based on sync marker.
 
int ff_dca_xbr_parse_frame (DCAContext *s)
 
int ff_dca_xxch_decode_frame (DCAContext *s)
 
void ff_dca_exss_parse_header (DCAContext *s)
 Parse extension substream header (HD)
 

Variables

av_export const uint32_t avpriv_dca_sample_rates [16]
 

Macro Definition Documentation

#define DCA_PRIM_CHANNELS_MAX   (7)

Definition at line 38 of file dca.h.

Referenced by dca_parse_audio_coding_header().

#define DCA_ABITS_MAX   (32) /* Should be 28 */

Definition at line 39 of file dca.h.

#define DCA_SUBSUBFRAMES_MAX   (4)

Definition at line 40 of file dca.h.

#define DCA_SUBFRAMES_MAX   (16)

Definition at line 41 of file dca.h.

#define DCA_BLOCKS_MAX   (16)

Definition at line 42 of file dca.h.

#define DCA_LFE_MAX   (3)

Definition at line 43 of file dca.h.

#define DCA_CHSETS_MAX   (4)

Definition at line 44 of file dca.h.

Referenced by ff_dca_xbr_parse_frame().

#define DCA_CHSET_CHANS_MAX   (8)

Definition at line 45 of file dca.h.

Referenced by ff_dca_xbr_parse_frame().

#define DCA_MAX_FRAME_SIZE   16384

Definition at line 47 of file dca.h.

Referenced by dca_decode_frame().

#define DCA_MAX_EXSS_HEADER_SIZE   4096

Definition at line 48 of file dca.h.

Referenced by dca_decode_frame().

#define DCA_BUFFER_PADDING_SIZE   1024

Definition at line 50 of file dca.h.

Enumeration Type Documentation

Enumerator:
DCA_EXT_CORE 

core in core substream

DCA_EXT_XXCH 

XXCh channels extension in core substream.

DCA_EXT_X96 

96/24 extension in core substream

DCA_EXT_XCH 

XCh channel extension in core substream.

DCA_EXT_EXSS_CORE 

core in ExSS (extension substream)

DCA_EXT_EXSS_XBR 

extended bitrate extension in ExSS

DCA_EXT_EXSS_XXCH 

XXCh channels extension in ExSS.

DCA_EXT_EXSS_X96 

96/24 extension in ExSS

DCA_EXT_EXSS_LBR 

low bitrate component in ExSS

DCA_EXT_EXSS_XLL 

lossless extension in ExSS

Definition at line 52 of file dca.h.

Function Documentation

int avpriv_dca_convert_bitstream ( const uint8_t src,
int  src_size,
uint8_t dst,
int  max_size 
)

Convert bitstream to one representation based on sync marker.

Definition at line 39 of file dca.c.

Referenced by dca_decode_frame(), dca_parse_params(), and dts_probe().

int ff_dca_xbr_parse_frame ( DCAContext s)

Definition at line 1096 of file dcadec.c.

Referenced by ff_dca_exss_parse_header().

int ff_dca_xxch_decode_frame ( DCAContext s)

Definition at line 1258 of file dcadec.c.

Referenced by dca_decode_frame(), and ff_dca_exss_parse_header().

void ff_dca_exss_parse_header ( DCAContext s)

Parse extension substream header (HD)

Definition at line 243 of file dca_exss.c.

Referenced by dca_decode_frame().

Variable Documentation

av_export const uint32_t avpriv_dca_sample_rates[16]

Definition at line 34 of file dca.c.

Referenced by dca_parse_frame_header(), dca_parse_params(), dts_probe(), and spdif_header_dts().