OLD | NEW |
1 /* Copyright (c) 2007-2008 CSIRO | 1 /* Copyright (c) 2007-2008 CSIRO |
2 Copyright (c) 2007-2009 Xiph.Org Foundation | 2 Copyright (c) 2007-2009 Xiph.Org Foundation |
3 Copyright (c) 2008 Gregory Maxwell | 3 Copyright (c) 2008 Gregory Maxwell |
4 Written by Jean-Marc Valin and Gregory Maxwell */ | 4 Written by Jean-Marc Valin and Gregory Maxwell */ |
5 /* | 5 /* |
6 Redistribution and use in source and binary forms, with or without | 6 Redistribution and use in source and binary forms, with or without |
7 modification, are permitted provided that the following conditions | 7 modification, are permitted provided that the following conditions |
8 are met: | 8 are met: |
9 | 9 |
10 - Redistributions of source code must retain the above copyright | 10 - Redistributions of source code must retain the above copyright |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "opus_types.h" | 33 #include "opus_types.h" |
34 #include "celt.h" | 34 #include "celt.h" |
35 #include "arch.h" | 35 #include "arch.h" |
36 #include "mdct.h" | 36 #include "mdct.h" |
37 #include "entenc.h" | 37 #include "entenc.h" |
38 #include "entdec.h" | 38 #include "entdec.h" |
39 | 39 |
40 #define MAX_PERIOD 1024 | 40 #define MAX_PERIOD 1024 |
41 | 41 |
42 #ifndef OVERLAP | |
43 #define OVERLAP(mode) ((mode)->overlap) | |
44 #endif | |
45 | |
46 #ifndef FRAMESIZE | |
47 #define FRAMESIZE(mode) ((mode)->mdctSize) | |
48 #endif | |
49 | |
50 typedef struct { | 42 typedef struct { |
51 int size; | 43 int size; |
52 const opus_int16 *index; | 44 const opus_int16 *index; |
53 const unsigned char *bits; | 45 const unsigned char *bits; |
54 const unsigned char *caps; | 46 const unsigned char *caps; |
55 } PulseCache; | 47 } PulseCache; |
56 | 48 |
57 /** Mode definition (opaque) | 49 /** Mode definition (opaque) |
58 @brief Mode definition | 50 @brief Mode definition |
59 */ | 51 */ |
(...skipping 14 matching lines...) Expand all Loading... |
74 const unsigned char *allocVectors; /**< Number of bits in each band for s
everal rates */ | 66 const unsigned char *allocVectors; /**< Number of bits in each band for s
everal rates */ |
75 const opus_int16 *logN; | 67 const opus_int16 *logN; |
76 | 68 |
77 const opus_val16 *window; | 69 const opus_val16 *window; |
78 mdct_lookup mdct; | 70 mdct_lookup mdct; |
79 PulseCache cache; | 71 PulseCache cache; |
80 }; | 72 }; |
81 | 73 |
82 | 74 |
83 #endif | 75 #endif |
OLD | NEW |