FFmpeg
Macros | Variables
g728data.h File Reference
#include <stdint.h>
#include "libavutil/macros.h"

Go to the source code of this file.

Macros

#define IDIM   5 /* Vector dimension (excitation block size) */
 
#define LPC   50 /* Synthesis filter order */
 
#define LPCLG   10 /* Log-gain predictor order */
 
#define NFRSZ   20 /* Frame size (adaptation cycle size in samples */
 
#define NONR   35 /* Number of non-recursive window samples for synthesis filter */
 
#define NONRLG   20 /* Number of non-recursive window samples for log-gain predictor */
 
#define NUPDATE   4 /* Predictor update period (in terms of vectors) */
 
#define NSBSZ   (LPC + NONR + NFRSZ)
 
#define NSBGSZ   (LPCLG + NONRLG + NUPDATE)
 

Variables

static const uint16_t g728_wnr [NSBSZ]
 
static const uint16_t g728_wnrg [NSBGSZ]
 
static const uint16_t g728_facv [LPC]
 

Macro Definition Documentation

◆ IDIM

#define IDIM   5 /* Vector dimension (excitation block size) */

Definition at line 27 of file g728data.h.

◆ LPC

#define LPC   50 /* Synthesis filter order */

Definition at line 28 of file g728data.h.

◆ LPCLG

#define LPCLG   10 /* Log-gain predictor order */

Definition at line 29 of file g728data.h.

◆ NFRSZ

#define NFRSZ   20 /* Frame size (adaptation cycle size in samples */

Definition at line 30 of file g728data.h.

◆ NONR

#define NONR   35 /* Number of non-recursive window samples for synthesis filter */

Definition at line 31 of file g728data.h.

◆ NONRLG

#define NONRLG   20 /* Number of non-recursive window samples for log-gain predictor */

Definition at line 32 of file g728data.h.

◆ NUPDATE

#define NUPDATE   4 /* Predictor update period (in terms of vectors) */

Definition at line 33 of file g728data.h.

◆ NSBSZ

#define NSBSZ   (LPC + NONR + NFRSZ)

Definition at line 35 of file g728data.h.

◆ NSBGSZ

#define NSBGSZ   (LPCLG + NONRLG + NUPDATE)

Definition at line 36 of file g728data.h.

Variable Documentation

◆ g728_wnr

const uint16_t g728_wnr[NSBSZ]
static
Initial value:
= {
1565, 3127, 4681, 6225, 7755, 9266, 10757, 12223, 13661, 15068,
16441, 17776, 19071, 20322, 21526, 22682, 23786, 24835, 25828, 26761,
27634, 28444, 29188, 29866, 30476, 31016, 31486, 31884, 32208, 32460,
32637, 32739, 32767, 32721, 32599, 32403, 32171, 31940, 31711, 31484,
31259, 31034, 30812, 30591, 30372, 30154, 29938, 29724, 29511, 29299,
29089, 28881, 28674, 28468, 28264, 28062, 27861, 27661, 27463, 27266,
27071, 26877, 26684, 26493, 26303, 26114, 25927, 25742, 25557, 25374,
25192, 25012, 24832, 24654, 24478, 24302, 24128, 23955, 23784, 23613,
23444, 23276, 23109, 22943, 22779, 22616, 22454, 22293, 22133, 21974,
21817, 21661, 21505, 21351, 21198, 21046, 20896, 20746, 20597, 20450,
20303, 20157, 20013, 19870, 19727
}

Definition at line 39 of file g728data.h.

Referenced by g728_init_static_data().

◆ g728_wnrg

const uint16_t g728_wnrg[NSBGSZ]
static
Initial value:
= {
3026, 6025, 8973, 11845, 14615, 17261, 19759, 22088, 24228, 26162,
27872, 29344, 30565, 31525, 32216, 32631, 32767, 32625, 32203, 31506,
30540, 29461, 28420, 27416, 26448, 25514, 24613, 23743, 22905, 22096,
21315, 20562, 19836, 19135
}

Definition at line 54 of file g728data.h.

Referenced by g728_init_static_data().

◆ g728_facv

const uint16_t g728_facv[LPC]
static
Initial value:
= {
16192, 16002, 15815, 15629, 15446, 15265, 15086, 14910, 14735, 14562,
14391, 14223, 14056, 13891, 13729, 13568, 13409, 13252, 13096, 12943,
12791, 12641, 12493, 12347, 12202, 12059, 11918, 11778, 11640, 11504,
11369, 11236, 11104, 10974, 10845, 10718, 10593, 10468, 10346, 10225,
10105, 9986, 9869, 9754, 9639, 9526, 9415, 9304, 9195, 9088
}

Definition at line 62 of file g728data.h.

Referenced by g728_init_static_data().