4
This software module was originally developed by
6
Peter Kroon (Bell Laboratories, Lucent Technologies)
8
in the course of development of the MPEG-2 NBC/MPEG-4 Audio standard
9
ISO/IEC 13818-7, 14496-1,2 and 3. This software module is an
10
implementation of a part of one or more MPEG-2 NBC/MPEG-4 Audio tools
11
as specified by the MPEG-2 NBC/MPEG-4 Audio standard. ISO/IEC gives
12
users of the MPEG-2 NBC/MPEG-4 Audio standards free license to this
13
software module or modifications thereof for use in hardware or
14
software products claiming conformance to the MPEG-2 NBC/ MPEG-4 Audio
15
standards. Those intending to use this software module in hardware or
16
software products are advised that this use may infringe existing
17
patents. The original developer of this software module and his/her
18
company, the subsequent editors and their companies, and ISO/IEC have
19
no liability for use of this software module or modifications thereof
20
in an implementation. Copyright is not released for non MPEG-2
21
NBC/MPEG-4 Audio conforming products. The original developer retains
22
full right to use the code for his/her own purpose, assign or donate
23
the code to a third party and to inhibit third party from using the
24
code for non MPEG-2 NBC/MPEG-4 Audio conforming products. This
25
copyright notice must be included in all copies or derivative works.
33
#ifndef _att_header_h_
34
#define _att_header_h_
40
/* Revised 06/26/96 These are defined as configuration input
41
#define FRAME_SIZE 200
42
#define MAX_N_LAG_CANDIDATES 2
47
#define mmax(x,y) ((x > y) ? x : y)
48
#define mmin(x,y) ((x > y) ? y : x)
50
typedef signed short Int16;
60
void Int2Float(Int16 *int_sig, float *flt_sig, long n);
61
void MoveFData(float *des, float *start, long len);
62
void MoveIData(Int16 *des, Int16 *start, long len);
64
void LPF_800(float inbuf[], float lpbuf[], long len);
65
void Inv_Filt(float lpbuf[], float ivbuf[], long len);
66
void AMDF(float speech[], lag_amdf amdf[], long min_lag, long max_lag, long len);
67
void MakeAmdfWeight(float weight[], long min_lag, long max_lag);
68
void Weighted_amdf(lag_amdf amdf[], float weight[], long min_lag, long max_lag);
69
void Sort_Amdf(lag_amdf amdf[], long len, long n_lag);
70
void Assign_candidate(long candidates[], lag_amdf amdf[], long n_cand);