FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
dcaenc.h File Reference
#include <stdint.h>
#include "dcamath.h"

Go to the source code of this file.

Data Structures

struct  softfloat
 

Functions

static int32_t quantize_value (int32_t value, softfloat quant)
 

Variables

static const int sample_rates []
 
static const uint8_t bitstream_sfreq [] = { 1, 2, 3, 6, 7, 8, 11, 12, 13 }
 
static const uint16_t fc []
 
static const uint16_t erb []
 
static const softfloat stepsize_inv [27]
 
static const softfloat scalefactor_inv [128]
 
static const int bit_consumption [27]
 
static const int8_t lfe_index [16]
 
static const int8_t channel_reorder_lfe [16][9]
 
static const int8_t channel_reorder_nolfe [16][9]
 

Function Documentation

static int32_t quantize_value ( int32_t  value,
softfloat  quant 
)
inlinestatic

Definition at line 149 of file dcaenc.h.

Referenced by calc_one_scale(), ff_dcaadpcm_do_real(), put_subframe(), and quantize_pcm().

Variable Documentation

const int sample_rates[]
static
Initial value:
= {
8000, 16000, 32000, 11025, 22050, 44100, 12000, 24000, 48000, 0,
}

Definition at line 34 of file dcaenc.h.

const uint8_t bitstream_sfreq[] = { 1, 2, 3, 6, 7, 8, 11, 12, 13 }
static

Definition at line 38 of file dcaenc.h.

Referenced by put_frame_header().

const uint16_t fc[]
static
Initial value:
= {
50, 150, 250, 350, 450, 570, 700, 840, 1000, 1170, 1370, 1600, 1850, 2150,
2500, 2900, 3400, 4000, 4800, 5800, 7000, 8500, 10500, 13500, 17000
}

Definition at line 43 of file dcaenc.h.

Referenced by create_vorbis_context(), decode_frame(), ff_lzw_decode(), format_to_name(), gammafilter(), imlt_window_float(), nut_write_packet(), opt_default(), and vorbis_encode_frame().

const uint16_t erb[]
static
Initial value:
= {
80, 100, 100, 100, 110, 120, 140, 150, 160, 190, 210, 240, 280,
320, 380, 450, 550, 700, 900, 1100, 1300, 1800, 2500, 3500, 4500
}

Definition at line 48 of file dcaenc.h.

Referenced by gammafilter().

const softfloat stepsize_inv[27]
static
Initial value:
= {
{0, 0}, {1342177360, 21}, {2147483647, 21}, {1342177360, 20},
{1819901661, 20}, {2147483647, 20}, {1278263843, 19}, {1579032492, 19},
{1412817763, 18}, {1220162327, 17}, {1118482133, 16}, {1917391412, 16},
{1766017772, 15}, {1525212826, 14}, {1290553940, 13}, {2097179000, 13},
{1677683200, 12}, {1497972244, 11}, {1310893147, 10}, {1165354136, 9},
{1748031204, 9}, {1542092044, 8}, {1636178017, 7}, {1636178017, 6},
{1636178017, 5}, {1636178017, 4}, {1636178017, 3},
}

Definition at line 53 of file dcaenc.h.

Referenced by calc_one_scale().

const softfloat scalefactor_inv[128]
static

Definition at line 63 of file dcaenc.h.

Referenced by calc_one_scale().

const int bit_consumption[27]
static
Initial value:
= {
-8, 28, 40, 48, 52, 60, 68, 76, 80, 96,
112, 128, 144, 160, 176, 192, 208, 224, 240, 256,
272, 288, 304, 320, 336, 352, 368,
}

Definition at line 101 of file dcaenc.h.

Referenced by init_quantization_noise(), and put_subframe_samples().

const int8_t lfe_index[16]
static
Initial value:
= {
1, 2, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 1, 3, 2, 3
}

Definition at line 107 of file dcaenc.h.

const int8_t channel_reorder_lfe[16][9]
static
Initial value:
= {
{ 0, -1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, 3, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 4, -1, -1, -1, -1, -1 },
{ 0, 1, 3, 4, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 4, 5, -1, -1, -1, -1 },
{ 3, 4, 0, 1, 5, 6, -1, -1, -1 },
{ 2, 0, 1, 4, 5, 6, -1, -1, -1 },
{ 0, 6, 4, 5, 2, 3, -1, -1, -1 },
{ 4, 2, 5, 0, 1, 6, 7, -1, -1 },
{ 5, 6, 0, 1, 7, 3, 8, 4, -1 },
{ 4, 2, 5, 0, 1, 6, 8, 7, -1 },
}

Definition at line 111 of file dcaenc.h.

const int8_t channel_reorder_nolfe[16][9]
static
Initial value:
= {
{ 0, -1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, 2, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 3, -1, -1, -1, -1, -1 },
{ 0, 1, 2, 3, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 3, 4, -1, -1, -1, -1 },
{ 2, 3, 0, 1, 4, 5, -1, -1, -1 },
{ 2, 0, 1, 3, 4, 5, -1, -1, -1 },
{ 0, 5, 3, 4, 1, 2, -1, -1, -1 },
{ 3, 2, 4, 0, 1, 5, 6, -1, -1 },
{ 4, 5, 0, 1, 6, 2, 7, 3, -1 },
{ 3, 2, 4, 0, 1, 5, 7, 6, -1 },
}

Definition at line 130 of file dcaenc.h.