~ubuntu-branches/ubuntu/trusty/mpeg4ip/trusty

« back to all changes in this revision

Viewing changes to player/lib/audio/celp/include/att_header.h

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2008-01-12 15:59:56 UTC
  • Revision ID: james.westby@ubuntu.com-20080112155956-1vznw5njidvrh649
Tags: upstream-1.6dfsg
ImportĀ upstreamĀ versionĀ 1.6dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 
 
3
 
 
4
This software module was originally developed by
 
5
 
 
6
Peter Kroon (Bell Laboratories, Lucent Technologies)
 
7
 
 
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.
 
26
 
 
27
Copyright (c) 1996.
 
28
 
 
29
 
 
30
 */
 
31
 
 
32
 
 
33
#ifndef _att_header_h_
 
34
#define _att_header_h_
 
35
 
 
36
#include <stdio.h>
 
37
#include <stdlib.h>
 
38
#include <math.h>
 
39
 
 
40
/* Revised 06/26/96 These are defined as configuration input
 
41
#define  FRAME_SIZE 200
 
42
#define  MAX_N_LAG_CANDIDATES 2
 
43
 
 
44
#define  MAXLAG 156
 
45
*/
 
46
 
 
47
#define  mmax(x,y) ((x > y) ? x : y)
 
48
#define  mmin(x,y) ((x > y) ? y : x)
 
49
 
 
50
typedef signed short Int16;
 
51
typedef struct {
 
52
  float val;
 
53
  int   idx;
 
54
} lag_amdf;
 
55
 
 
56
#ifdef __cplusplus
 
57
extern "C" {
 
58
#endif
 
59
 
 
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);
 
63
 
 
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);
 
71
 
 
72
#ifdef __cplusplus
 
73
}
 
74
#endif
 
75
 
 
76
#endif