FFmpeg  4.0
Variables
adpcm_data.h File Reference

ADPCM tables. More...

#include <stdint.h>

Go to the source code of this file.

Variables

static const uint8_t ff_adpcm_ima_block_sizes [4] = { 4, 12, 4, 20 }
 
static const uint8_t ff_adpcm_ima_block_samples [4] = { 16, 32, 8, 32 }
 
const int8_t *const ff_adpcm_index_tables [4]
 
const int8_t ff_adpcm_index_table [16]
 
const int16_t ff_adpcm_step_table [89]
 This is the step table. More...
 
const int16_t ff_adpcm_oki_step_table [49]
 
const int16_t ff_adpcm_AdaptationTable []
 
const uint8_t ff_adpcm_AdaptCoeff1 []
 Divided by 4 to fit in 8-bit integers. More...
 
const int8_t ff_adpcm_AdaptCoeff2 []
 Divided by 4 to fit in 8-bit integers. More...
 
const int16_t ff_adpcm_yamaha_indexscale []
 
const int8_t ff_adpcm_yamaha_difflookup []
 
const int16_t ff_adpcm_afc_coeffs [2][16]
 
const int16_t ff_adpcm_mtaf_stepsize [32][16]
 

Detailed Description

ADPCM tables.

Definition in file adpcm_data.h.

Variable Documentation

◆ ff_adpcm_ima_block_sizes

const uint8_t ff_adpcm_ima_block_sizes[4] = { 4, 12, 4, 20 }
static

Definition at line 31 of file adpcm_data.h.

Referenced by adpcm_decode_frame(), and get_nb_samples().

◆ ff_adpcm_ima_block_samples

const uint8_t ff_adpcm_ima_block_samples[4] = { 16, 32, 8, 32 }
static

Definition at line 32 of file adpcm_data.h.

Referenced by adpcm_decode_frame(), and get_nb_samples().

◆ ff_adpcm_index_tables

const int8_t* const ff_adpcm_index_tables[4]

Definition at line 50 of file adpcm_data.c.

Referenced by adpcm_ima_wav_expand_nibble().

◆ ff_adpcm_index_table

const int8_t ff_adpcm_index_table[16]

◆ ff_adpcm_step_table

const int16_t ff_adpcm_step_table[89]

This is the step table.

Note that many programs use slight deviations from this table, but such deviations are negligible:

Definition at line 61 of file adpcm_data.c.

Referenced by adpcm_compress_trellis(), adpcm_ima_compress_sample(), adpcm_ima_expand_nibble(), adpcm_ima_qt_compress_sample(), adpcm_ima_qt_expand_nibble(), adpcm_ima_wav_expand_nibble(), adpcm_swf_decode(), decode_frame(), and decode_init().

◆ ff_adpcm_oki_step_table

const int16_t ff_adpcm_oki_step_table[49]

Definition at line 73 of file adpcm_data.c.

Referenced by adpcm_ima_oki_expand_nibble().

◆ ff_adpcm_AdaptationTable

const int16_t ff_adpcm_AdaptationTable[]

◆ ff_adpcm_AdaptCoeff1

const uint8_t ff_adpcm_AdaptCoeff1[]

Divided by 4 to fit in 8-bit integers.

Definition at line 90 of file adpcm_data.c.

Referenced by adpcm_decode_frame(), adpcm_encode_frame(), and adpcm_encode_init().

◆ ff_adpcm_AdaptCoeff2

const int8_t ff_adpcm_AdaptCoeff2[]

Divided by 4 to fit in 8-bit integers.

Definition at line 95 of file adpcm_data.c.

Referenced by adpcm_decode_frame(), adpcm_encode_frame(), and adpcm_encode_init().

◆ ff_adpcm_yamaha_indexscale

const int16_t ff_adpcm_yamaha_indexscale[]

◆ ff_adpcm_yamaha_difflookup

const int8_t ff_adpcm_yamaha_difflookup[]

◆ ff_adpcm_afc_coeffs

const int16_t ff_adpcm_afc_coeffs[2][16]

Definition at line 109 of file adpcm_data.c.

Referenced by adpcm_decode_frame().

◆ ff_adpcm_mtaf_stepsize

const int16_t ff_adpcm_mtaf_stepsize[32][16]

Definition at line 114 of file adpcm_data.c.

Referenced by adpcm_mtaf_expand_nibble().