Browse Source

Remove Opus extra includes

Remove the extra directories to include that were needed by the Opus
library. Now the lib includes more specific paths to avoid those.
George Marques 9 years ago
parent
commit
fc0c4c6175
100 changed files with 435 additions and 438 deletions
  1. 1 4
      drivers/opus/SCsub
  2. 9 9
      drivers/opus/analysis.c
  3. 2 2
      drivers/opus/analysis.h
  4. 2 2
      drivers/opus/celt/_kiss_fft_guts.h
  5. 4 4
      drivers/opus/celt/arch.h
  6. 2 2
      drivers/opus/celt/arm/arm_celt_map.c
  7. 5 5
      drivers/opus/celt/arm/armcpu.c
  8. 1 1
      drivers/opus/celt/arm/fixed_armv5e.h
  9. 1 1
      drivers/opus/celt/arm/pitch_arm.h
  10. 11 11
      drivers/opus/celt/bands.c
  11. 5 5
      drivers/opus/celt/bands.h
  12. 15 15
      drivers/opus/celt/celt.c
  13. 6 6
      drivers/opus/celt/celt.h
  14. 16 16
      drivers/opus/celt/celt_decoder.c
  15. 16 16
      drivers/opus/celt/celt_encoder.c
  16. 5 5
      drivers/opus/celt/celt_lpc.c
  17. 1 1
      drivers/opus/celt/celt_lpc.h
  18. 2 2
      drivers/opus/celt/cpu_support.h
  19. 5 5
      drivers/opus/celt/cwrs.c
  20. 4 4
      drivers/opus/celt/cwrs.h
  21. 2 2
      drivers/opus/celt/ecintrin.h
  22. 3 3
      drivers/opus/celt/entcode.c
  23. 3 3
      drivers/opus/celt/entcode.h
  24. 5 5
      drivers/opus/celt/entdec.c
  25. 1 1
      drivers/opus/celt/entdec.h
  26. 5 5
      drivers/opus/celt/entenc.c
  27. 1 1
      drivers/opus/celt/entenc.h
  28. 1 1
      drivers/opus/celt/fixed_debug.h
  29. 1 1
      drivers/opus/celt/float_cast.h
  30. 6 6
      drivers/opus/celt/kiss_fft.c
  31. 2 2
      drivers/opus/celt/kiss_fft.h
  32. 3 3
      drivers/opus/celt/laplace.c
  33. 2 2
      drivers/opus/celt/laplace.h
  34. 2 2
      drivers/opus/celt/mathops.c
  35. 4 4
      drivers/opus/celt/mathops.h
  36. 7 7
      drivers/opus/celt/mdct.c
  37. 3 3
      drivers/opus/celt/mdct.h
  38. 1 1
      drivers/opus/celt/mfrngcod.h
  39. 9 9
      drivers/opus/celt/modes.c
  40. 3 3
      drivers/opus/celt/opus_custom_demo.c
  41. 6 6
      drivers/opus/celt/opus_modes.h
  42. 2 2
      drivers/opus/celt/os_support.h
  43. 7 7
      drivers/opus/celt/pitch.c
  44. 2 2
      drivers/opus/celt/pitch.h
  45. 8 8
      drivers/opus/celt/quant_bands.c
  46. 5 5
      drivers/opus/celt/quant_bands.h
  47. 7 7
      drivers/opus/celt/rate.c
  48. 2 2
      drivers/opus/celt/rate.h
  49. 3 3
      drivers/opus/celt/stack_alloc.h
  50. 2 2
      drivers/opus/celt/static_modes_fixed.h
  51. 2 2
      drivers/opus/celt/static_modes_float.h
  52. 8 8
      drivers/opus/celt/tests/test_unit_cwrs32.c
  53. 6 6
      drivers/opus/celt/tests/test_unit_dft.c
  54. 7 7
      drivers/opus/celt/tests/test_unit_entropy.c
  55. 7 7
      drivers/opus/celt/tests/test_unit_laplace.c
  56. 10 10
      drivers/opus/celt/tests/test_unit_mathops.c
  57. 7 7
      drivers/opus/celt/tests/test_unit_mdct.c
  58. 8 8
      drivers/opus/celt/tests/test_unit_rotation.c
  59. 2 2
      drivers/opus/celt/tests/test_unit_types.c
  60. 8 8
      drivers/opus/celt/vq.c
  61. 3 3
      drivers/opus/celt/vq.h
  62. 1 1
      drivers/opus/celt/x86/pitch_sse.h
  63. 3 3
      drivers/opus/http.c
  64. 2 2
      drivers/opus/info.c
  65. 2 2
      drivers/opus/internal.c
  66. 6 6
      drivers/opus/mlp.c
  67. 1 1
      drivers/opus/mlp.h
  68. 1 1
      drivers/opus/mlp_data.c
  69. 3 3
      drivers/opus/opus.c
  70. 2 2
      drivers/opus/opus.h
  71. 1 1
      drivers/opus/opus_custom.h
  72. 14 14
      drivers/opus/opus_decoder.c
  73. 1 1
      drivers/opus/opus_defines.h
  74. 6 6
      drivers/opus/opus_demo.c
  75. 17 17
      drivers/opus/opus_encoder.c
  76. 7 7
      drivers/opus/opus_multistream.c
  77. 1 1
      drivers/opus/opus_multistream.h
  78. 7 7
      drivers/opus/opus_multistream_decoder.c
  79. 12 12
      drivers/opus/opus_multistream_encoder.c
  80. 3 3
      drivers/opus/opus_private.h
  81. 3 3
      drivers/opus/opusfile.c
  82. 4 4
      drivers/opus/repacketizer.c
  83. 2 2
      drivers/opus/repacketizer_demo.c
  84. 3 3
      drivers/opus/silk/A2NLSF.c
  85. 5 5
      drivers/opus/silk/API.h
  86. 3 3
      drivers/opus/silk/CNG.c
  87. 4 4
      drivers/opus/silk/HP_variable_cutoff.c
  88. 3 3
      drivers/opus/silk/LPC_analysis_filter.c
  89. 2 2
      drivers/opus/silk/LPC_inv_pred_gain.c
  90. 2 2
      drivers/opus/silk/LP_variable_cutoff.c
  91. 3 3
      drivers/opus/silk/NLSF2A.c
  92. 2 2
      drivers/opus/silk/NLSF_VQ.c
  93. 3 3
      drivers/opus/silk/NLSF_VQ_weights_laroia.c
  94. 2 2
      drivers/opus/silk/NLSF_decode.c
  95. 2 2
      drivers/opus/silk/NLSF_del_dec_quant.c
  96. 3 3
      drivers/opus/silk/NLSF_encode.c
  97. 2 2
      drivers/opus/silk/NLSF_stabilize.c
  98. 2 2
      drivers/opus/silk/NLSF_unpack.c
  99. 3 3
      drivers/opus/silk/NSQ.c
  100. 3 3
      drivers/opus/silk/NSQ_del_dec.c

+ 1 - 4
drivers/opus/SCsub

@@ -124,7 +124,7 @@ opus_sources_lib = [
 ]
 ]
 
 
 if("opus_fixed_point" in env and env.opus_fixed_point=="yes"):
 if("opus_fixed_point" in env and env.opus_fixed_point=="yes"):
-	env.Append(CPPPATH=["#drivers/opus/silk/fixed"], CFLAGS=["-DOPUS_FIXED_POINT"])
+	env.Append(CFLAGS=["-DOPUS_FIXED_POINT"])
 	opus_sources_silk = [
 	opus_sources_silk = [
 		"opus/silk/fixed/apply_sine_window_FIX.c",
 		"opus/silk/fixed/apply_sine_window_FIX.c",
 		"opus/silk/fixed/k2a_FIX.c",
 		"opus/silk/fixed/k2a_FIX.c",
@@ -153,7 +153,6 @@ if("opus_fixed_point" in env and env.opus_fixed_point=="yes"):
 		"opus/silk/fixed/regularize_correlations_FIX.c"
 		"opus/silk/fixed/regularize_correlations_FIX.c"
 	]
 	]
 else:
 else:
-	env.Append(CPPPATH=["#drivers/opus/silk/float"])
 	opus_sources_silk = [
 	opus_sources_silk = [
 		"opus/silk/float/apply_sine_window_FLP.c",
 		"opus/silk/float/apply_sine_window_FLP.c",
 		"opus/silk/float/inner_product_FLP.c",
 		"opus/silk/float/inner_product_FLP.c",
@@ -193,8 +192,6 @@ opus_sources_lib+=opus_sources_silk
 env.drivers_sources+=opus_sources_lib
 env.drivers_sources+=opus_sources_lib
 env.drivers_sources+=opus_sources
 env.drivers_sources+=opus_sources
 
 
-env.Append(CPPPATH=["#drivers/opus"])
-env.Append(CPPPATH=["#drivers/opus/celt","#drivers/opus/silk","#drivers/opus/silk/float"])
 env.Append(CFLAGS=["-DOPUS_HAVE_CONFIG_H"])
 env.Append(CFLAGS=["-DOPUS_HAVE_CONFIG_H"])
 
 
 Export('env')
 Export('env')

+ 9 - 9
drivers/opus/analysis.c

@@ -26,18 +26,18 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "kiss_fft.h"
-#include "celt.h"
-#include "opus_modes.h"
-#include "arch.h"
-#include "quant_bands.h"
+#include "opus/celt/kiss_fft.h"
+#include "opus/celt/celt.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/quant_bands.h"
 #include <stdio.h>
 #include <stdio.h>
-#include "analysis.h"
-#include "mlp.h"
-#include "stack_alloc.h"
+#include "opus/analysis.h"
+#include "opus/mlp.h"
+#include "opus/celt/stack_alloc.h"
 
 
 extern const MLP net;
 extern const MLP net;
 
 

+ 2 - 2
drivers/opus/analysis.h

@@ -28,8 +28,8 @@
 #ifndef ANALYSIS_H
 #ifndef ANALYSIS_H
 #define ANALYSIS_H
 #define ANALYSIS_H
 
 
-#include "celt.h"
-#include "opus_private.h"
+#include "opus/celt/celt.h"
+#include "opus/opus_private.h"
 
 
 #define NB_FRAMES 8
 #define NB_FRAMES 8
 #define NB_TBANDS 18
 #define NB_TBANDS 18

+ 2 - 2
drivers/opus/celt/_kiss_fft_guts.h

@@ -33,7 +33,7 @@
    defines kiss_fft_scalar as either short or a float type
    defines kiss_fft_scalar as either short or a float type
    and defines
    and defines
    typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */
    typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */
-#include "kiss_fft.h"
+#include "opus/celt/kiss_fft.h"
 
 
 /*
 /*
   Explanation of macros dealing with complex math:
   Explanation of macros dealing with complex math:
@@ -45,7 +45,7 @@
    C_ADDTO( res , a)    : res += a
    C_ADDTO( res , a)    : res += a
  * */
  * */
 #ifdef OPUS_FIXED_POINT
 #ifdef OPUS_FIXED_POINT
-#include "arch.h"
+#include "opus/celt/arch.h"
 
 
 
 
 #define SAMP_MAX 2147483647
 #define SAMP_MAX 2147483647

+ 4 - 4
drivers/opus/celt/arch.h

@@ -34,8 +34,8 @@
 #ifndef ARCH_H
 #ifndef ARCH_H
 #define ARCH_H
 #define ARCH_H
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
 
 
 # if !defined(__GNUC_PREREQ)
 # if !defined(__GNUC_PREREQ)
 #  if defined(__GNUC__)&&defined(__GNUC_MINOR__)
 #  if defined(__GNUC__)&&defined(__GNUC_MINOR__)
@@ -109,10 +109,10 @@ typedef opus_val32 celt_ener;
 #define SCALEOUT(a)     (a)
 #define SCALEOUT(a)     (a)
 
 
 #ifdef FIXED_DEBUG
 #ifdef FIXED_DEBUG
-#include "fixed_debug.h"
+#include "opus/celt/fixed_debug.h"
 #else
 #else
 
 
-#include "fixed_generic.h"
+#include "opus/celt/fixed_generic.h"
 
 
 #ifdef OPUS_ARM_INLINE_EDSP
 #ifdef OPUS_ARM_INLINE_EDSP
 #include "arm/fixed_armv5e.h"
 #include "arm/fixed_armv5e.h"

+ 2 - 2
drivers/opus/celt/arm/arm_celt_map.c

@@ -26,10 +26,10 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "pitch.h"
+#include "opus/celt/pitch.h"
 
 
 #if defined(OPUS_HAVE_RTCD)
 #if defined(OPUS_HAVE_RTCD)
 
 

+ 5 - 5
drivers/opus/celt/arm/armcpu.c

@@ -28,15 +28,15 @@
 /* Original code from libtheora modified to suit to Opus */
 /* Original code from libtheora modified to suit to Opus */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #ifdef OPUS_HAVE_RTCD
 #ifdef OPUS_HAVE_RTCD
 
 
-#include "armcpu.h"
-#include "cpu_support.h"
-#include "os_support.h"
-#include "opus_types.h"
+#include "opus/celt/arm/armcpu.h"
+#include "opus/celt/cpu_support.h"
+#include "opus/celt/os_support.h"
+#include "opus/opus_types.h"
 
 
 #define OPUS_CPU_ARM_V4    (1)
 #define OPUS_CPU_ARM_V4    (1)
 #define OPUS_CPU_ARM_EDSP  (1<<1)
 #define OPUS_CPU_ARM_EDSP  (1<<1)

+ 1 - 1
drivers/opus/celt/arm/fixed_armv5e.h

@@ -30,7 +30,7 @@
 #ifndef FIXED_ARMv5E_H
 #ifndef FIXED_ARMv5E_H
 #define FIXED_ARMv5E_H
 #define FIXED_ARMv5E_H
 
 
-#include "fixed_armv4.h"
+#include "opus/celt/arm/fixed_armv4.h"
 
 
 /** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */
 /** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */
 #undef MULT16_32_Q16
 #undef MULT16_32_Q16

+ 1 - 1
drivers/opus/celt/arm/pitch_arm.h

@@ -28,7 +28,7 @@
 #if !defined(PITCH_ARM_H)
 #if !defined(PITCH_ARM_H)
 # define PITCH_ARM_H
 # define PITCH_ARM_H
 
 
-# include "armcpu.h"
+# include "opus/celt/arm/armcpu.h"
 
 
 # if defined(OPUS_FIXED_POINT)
 # if defined(OPUS_FIXED_POINT)
 
 

+ 11 - 11
drivers/opus/celt/bands.c

@@ -28,20 +28,20 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <math.h>
 #include <math.h>
-#include "bands.h"
-#include "opus_modes.h"
-#include "vq.h"
-#include "cwrs.h"
-#include "stack_alloc.h"
-#include "os_support.h"
-#include "mathops.h"
-#include "rate.h"
-#include "quant_bands.h"
-#include "pitch.h"
+#include "opus/celt/bands.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/vq.h"
+#include "opus/celt/cwrs.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/rate.h"
+#include "opus/celt/quant_bands.h"
+#include "opus/celt/pitch.h"
 
 
 int hysteresis_decision(opus_val16 val, const opus_val16 *thresholds, const opus_val16 *hysteresis, int N, int prev)
 int hysteresis_decision(opus_val16 val, const opus_val16 *thresholds, const opus_val16 *hysteresis, int N, int prev)
 {
 {

+ 5 - 5
drivers/opus/celt/bands.h

@@ -30,11 +30,11 @@
 #ifndef BANDS_H
 #ifndef BANDS_H
 #define BANDS_H
 #define BANDS_H
 
 
-#include "arch.h"
-#include "opus_modes.h"
-#include "entenc.h"
-#include "entdec.h"
-#include "rate.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
+#include "opus/celt/rate.h"
 
 
 /** Compute the amplitude (sqrt energy) in each of the bands
 /** Compute the amplitude (sqrt energy) in each of the bands
  * @param m Mode data
  * @param m Mode data

+ 15 - 15
drivers/opus/celt/celt.c

@@ -28,27 +28,27 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #define CELT_C
 #define CELT_C
 
 
-#include "os_support.h"
-#include "mdct.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/mdct.h"
 #include <math.h>
 #include <math.h>
-#include "celt.h"
-#include "pitch.h"
-#include "bands.h"
-#include "opus_modes.h"
-#include "entcode.h"
-#include "quant_bands.h"
-#include "rate.h"
-#include "stack_alloc.h"
-#include "mathops.h"
-#include "float_cast.h"
+#include "opus/celt/celt.h"
+#include "opus/celt/pitch.h"
+#include "opus/celt/bands.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/entcode.h"
+#include "opus/celt/quant_bands.h"
+#include "opus/celt/rate.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/float_cast.h"
 #include <stdarg.h>
 #include <stdarg.h>
-#include "celt_lpc.h"
-#include "vq.h"
+#include "opus/celt/celt_lpc.h"
+#include "opus/celt/vq.h"
 
 
 #ifndef PACKAGE_VERSION
 #ifndef PACKAGE_VERSION
 #define PACKAGE_VERSION "unknown"
 #define PACKAGE_VERSION "unknown"

+ 6 - 6
drivers/opus/celt/celt.h

@@ -35,12 +35,12 @@
 #ifndef CELT_H
 #ifndef CELT_H
 #define CELT_H
 #define CELT_H
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
-#include "opus_custom.h"
-#include "entenc.h"
-#include "entdec.h"
-#include "arch.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
+#include "opus/opus_custom.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
+#include "opus/celt/arch.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 16 - 16
drivers/opus/celt/celt_decoder.c

@@ -28,28 +28,28 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #define CELT_DECODER_C
 #define CELT_DECODER_C
 
 
-#include "cpu_support.h"
-#include "os_support.h"
-#include "mdct.h"
+#include "opus/celt/cpu_support.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/mdct.h"
 #include <math.h>
 #include <math.h>
-#include "celt.h"
-#include "pitch.h"
-#include "bands.h"
-#include "opus_modes.h"
-#include "entcode.h"
-#include "quant_bands.h"
-#include "rate.h"
-#include "stack_alloc.h"
-#include "mathops.h"
-#include "float_cast.h"
+#include "opus/celt/celt.h"
+#include "opus/celt/pitch.h"
+#include "opus/celt/bands.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/entcode.h"
+#include "opus/celt/quant_bands.h"
+#include "opus/celt/rate.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/float_cast.h"
 #include <stdarg.h>
 #include <stdarg.h>
-#include "celt_lpc.h"
-#include "vq.h"
+#include "opus/celt/celt_lpc.h"
+#include "opus/celt/vq.h"
 
 
 /**********************************************************************/
 /**********************************************************************/
 /*                                                                    */
 /*                                                                    */

+ 16 - 16
drivers/opus/celt/celt_encoder.c

@@ -28,28 +28,28 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #define CELT_ENCODER_C
 #define CELT_ENCODER_C
 
 
-#include "cpu_support.h"
-#include "os_support.h"
-#include "mdct.h"
+#include "opus/celt/cpu_support.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/mdct.h"
 #include <math.h>
 #include <math.h>
-#include "celt.h"
-#include "pitch.h"
-#include "bands.h"
-#include "opus_modes.h"
-#include "entcode.h"
-#include "quant_bands.h"
-#include "rate.h"
-#include "stack_alloc.h"
-#include "mathops.h"
-#include "float_cast.h"
+#include "opus/celt/celt.h"
+#include "opus/celt/pitch.h"
+#include "opus/celt/bands.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/entcode.h"
+#include "opus/celt/quant_bands.h"
+#include "opus/celt/rate.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/float_cast.h"
 #include <stdarg.h>
 #include <stdarg.h>
-#include "celt_lpc.h"
-#include "vq.h"
+#include "opus/celt/celt_lpc.h"
+#include "opus/celt/vq.h"
 
 
 
 
 /** Encoder state
 /** Encoder state

+ 5 - 5
drivers/opus/celt/celt_lpc.c

@@ -26,13 +26,13 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "celt_lpc.h"
-#include "stack_alloc.h"
-#include "mathops.h"
-#include "pitch.h"
+#include "opus/celt/celt_lpc.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/pitch.h"
 
 
 void _celt_lpc(
 void _celt_lpc(
       opus_val16       *_lpc, /* out: [0...p-1] LPC coefficients      */
       opus_val16       *_lpc, /* out: [0...p-1] LPC coefficients      */

+ 1 - 1
drivers/opus/celt/celt_lpc.h

@@ -28,7 +28,7 @@
 #ifndef PLC_H
 #ifndef PLC_H
 #define PLC_H
 #define PLC_H
 
 
-#include "arch.h"
+#include "opus/celt/arch.h"
 
 
 #define LPC_ORDER 24
 #define LPC_ORDER 24
 
 

+ 2 - 2
drivers/opus/celt/cpu_support.h

@@ -28,8 +28,8 @@
 #ifndef CPU_SUPPORT_H
 #ifndef CPU_SUPPORT_H
 #define CPU_SUPPORT_H
 #define CPU_SUPPORT_H
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
 
 
 #if defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_ASM)
 #if defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_ASM)
 #include "arm/armcpu.h"
 #include "arm/armcpu.h"

+ 5 - 5
drivers/opus/celt/cwrs.c

@@ -28,13 +28,13 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "os_support.h"
-#include "cwrs.h"
-#include "mathops.h"
-#include "arch.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/cwrs.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/arch.h"
 
 
 #ifdef CUSTOM_MODES
 #ifdef CUSTOM_MODES
 
 

+ 4 - 4
drivers/opus/celt/cwrs.h

@@ -30,10 +30,10 @@
 #ifndef CWRS_H
 #ifndef CWRS_H
 #define CWRS_H
 #define CWRS_H
 
 
-#include "arch.h"
-#include "stack_alloc.h"
-#include "entenc.h"
-#include "entdec.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
 
 
 #ifdef CUSTOM_MODES
 #ifdef CUSTOM_MODES
 int log2_frac(opus_uint32 val, int frac);
 int log2_frac(opus_uint32 val, int frac);

+ 2 - 2
drivers/opus/celt/ecintrin.h

@@ -26,10 +26,10 @@
 */
 */
 
 
 /*Some common macros for potential platform-specific optimization.*/
 /*Some common macros for potential platform-specific optimization.*/
-#include "opus_types.h"
+#include "opus/opus_types.h"
 #include <math.h>
 #include <math.h>
 #include <limits.h>
 #include <limits.h>
-#include "arch.h"
+#include "opus/celt/arch.h"
 #if !defined(_ecintrin_H)
 #if !defined(_ecintrin_H)
 # define _ecintrin_H (1)
 # define _ecintrin_H (1)
 
 

+ 3 - 3
drivers/opus/celt/entcode.c

@@ -26,11 +26,11 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "entcode.h"
-#include "arch.h"
+#include "opus/celt/entcode.h"
+#include "opus/celt/arch.h"
 
 
 #if !defined(EC_CLZ)
 #if !defined(EC_CLZ)
 /*This is a fallback for systems where we don't know how to access
 /*This is a fallback for systems where we don't know how to access

+ 3 - 3
drivers/opus/celt/entcode.h

@@ -25,14 +25,14 @@
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 */
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
 
 
 #if !defined(_entcode_H)
 #if !defined(_entcode_H)
 # define _entcode_H (1)
 # define _entcode_H (1)
 # include <limits.h>
 # include <limits.h>
 # include <stddef.h>
 # include <stddef.h>
-# include "ecintrin.h"
+# include "opus/celt/ecintrin.h"
 
 
 /*OPT: ec_window must be at least 32 bits, but if you have fast arithmetic on a
 /*OPT: ec_window must be at least 32 bits, but if you have fast arithmetic on a
    larger type, you can speed up the decoder by using it here.*/
    larger type, you can speed up the decoder by using it here.*/

+ 5 - 5
drivers/opus/celt/entdec.c

@@ -26,14 +26,14 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <stddef.h>
 #include <stddef.h>
-#include "os_support.h"
-#include "arch.h"
-#include "entdec.h"
-#include "mfrngcod.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/entdec.h"
+#include "opus/celt/mfrngcod.h"
 
 
 /*A range decoder.
 /*A range decoder.
   This is an entropy decoder based upon \cite{Mar79}, which is itself a
   This is an entropy decoder based upon \cite{Mar79}, which is itself a

+ 1 - 1
drivers/opus/celt/entdec.h

@@ -28,7 +28,7 @@
 #if !defined(_entdec_H)
 #if !defined(_entdec_H)
 # define _entdec_H (1)
 # define _entdec_H (1)
 # include <limits.h>
 # include <limits.h>
-# include "entcode.h"
+# include "opus/celt/entcode.h"
 
 
 /*Initializes the decoder.
 /*Initializes the decoder.
   _buf: The input buffer to use.
   _buf: The input buffer to use.

+ 5 - 5
drivers/opus/celt/entenc.c

@@ -26,12 +26,12 @@
 */
 */
 
 
 #if defined(OPUS_HAVE_CONFIG_H)
 #if defined(OPUS_HAVE_CONFIG_H)
-# include "opus_config.h"
+# include "opus/opus_config.h"
 #endif
 #endif
-#include "os_support.h"
-#include "arch.h"
-#include "entenc.h"
-#include "mfrngcod.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/mfrngcod.h"
 
 
 /*A range encoder.
 /*A range encoder.
   See entdec.c and the references for implementation details \cite{Mar79,MNW98}.
   See entdec.c and the references for implementation details \cite{Mar79,MNW98}.

+ 1 - 1
drivers/opus/celt/entenc.h

@@ -28,7 +28,7 @@
 #if !defined(_entenc_H)
 #if !defined(_entenc_H)
 # define _entenc_H (1)
 # define _entenc_H (1)
 # include <stddef.h>
 # include <stddef.h>
-# include "entcode.h"
+# include "opus/celt/entcode.h"
 
 
 /*Initializes the encoder.
 /*Initializes the encoder.
   _buf:  The buffer to store output bytes in.
   _buf:  The buffer to store output bytes in.

+ 1 - 1
drivers/opus/celt/fixed_debug.h

@@ -33,7 +33,7 @@
 #define FIXED_DEBUG_H
 #define FIXED_DEBUG_H
 
 
 #include <stdio.h>
 #include <stdio.h>
-#include "opus_defines.h"
+#include "opus/opus_defines.h"
 
 
 #ifdef CELT_C
 #ifdef CELT_C
 OPUS_EXPORT opus_int64 celt_mips=0;
 OPUS_EXPORT opus_int64 celt_mips=0;

+ 1 - 1
drivers/opus/celt/float_cast.h

@@ -30,7 +30,7 @@
 #define FLOAT_CAST_H
 #define FLOAT_CAST_H
 
 
 
 
-#include "arch.h"
+#include "opus/celt/arch.h"
 
 
 /*============================================================================
 /*============================================================================
 **      On Intel Pentium processors (especially PIII and probably P4), converting
 **      On Intel Pentium processors (especially PIII and probably P4), converting

+ 6 - 6
drivers/opus/celt/kiss_fft.c

@@ -31,15 +31,15 @@
 
 
 #ifndef SKIP_CONFIG_H
 #ifndef SKIP_CONFIG_H
 #  ifdef OPUS_HAVE_CONFIG_H
 #  ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #  endif
 #  endif
 #endif
 #endif
 
 
-#include "_kiss_fft_guts.h"
-#include "arch.h"
-#include "os_support.h"
-#include "mathops.h"
-#include "stack_alloc.h"
+#include "opus/celt/_kiss_fft_guts.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/stack_alloc.h"
 
 
 /* The guts header contains all the multiplication and addition macros that are defined for
 /* The guts header contains all the multiplication and addition macros that are defined for
    complex numbers.  It also delares the kf_ internal functions.
    complex numbers.  It also delares the kf_ internal functions.

+ 2 - 2
drivers/opus/celt/kiss_fft.h

@@ -31,7 +31,7 @@
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <math.h>
 #include <math.h>
-#include "arch.h"
+#include "opus/celt/arch.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {
@@ -46,7 +46,7 @@ extern "C" {
 #endif
 #endif
 
 
 #ifdef OPUS_FIXED_POINT
 #ifdef OPUS_FIXED_POINT
-#include "arch.h"
+#include "opus/celt/arch.h"
 
 
 #  define kiss_fft_scalar opus_int32
 #  define kiss_fft_scalar opus_int32
 #  define kiss_twiddle_scalar opus_int16
 #  define kiss_twiddle_scalar opus_int16

+ 3 - 3
drivers/opus/celt/laplace.c

@@ -27,11 +27,11 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "laplace.h"
-#include "mathops.h"
+#include "opus/celt/laplace.h"
+#include "opus/celt/mathops.h"
 
 
 /* The minimum probability of an energy delta (out of 32768). */
 /* The minimum probability of an energy delta (out of 32768). */
 #define LAPLACE_LOG_MINP (0)
 #define LAPLACE_LOG_MINP (0)

+ 2 - 2
drivers/opus/celt/laplace.h

@@ -26,8 +26,8 @@
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 */
 
 
-#include "entenc.h"
-#include "entdec.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
 
 
 /** Encode a value that is assumed to be the realisation of a
 /** Encode a value that is assumed to be the realisation of a
     Laplace-distributed random process
     Laplace-distributed random process

+ 2 - 2
drivers/opus/celt/mathops.c

@@ -32,10 +32,10 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "mathops.h"
+#include "opus/celt/mathops.h"
 
 
 /*Compute floor(sqrt(_val)) with exact arithmetic.
 /*Compute floor(sqrt(_val)) with exact arithmetic.
   This has been tested on all possible 32-bit inputs.*/
   This has been tested on all possible 32-bit inputs.*/

+ 4 - 4
drivers/opus/celt/mathops.h

@@ -34,9 +34,9 @@
 #ifndef MATHOPS_H
 #ifndef MATHOPS_H
 #define MATHOPS_H
 #define MATHOPS_H
 
 
-#include "arch.h"
-#include "entcode.h"
-#include "os_support.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/entcode.h"
+#include "opus/celt/os_support.h"
 
 
 /* Multiplies two 16-bit fractional values. Bit-exactness of this macro is important */
 /* Multiplies two 16-bit fractional values. Bit-exactness of this macro is important */
 #define FRAC_MUL16(a,b) ((16384+((opus_int32)(opus_int16)(a)*(opus_int16)(b)))>>15)
 #define FRAC_MUL16(a,b) ((16384+((opus_int32)(opus_int16)(a)*(opus_int16)(b)))>>15)
@@ -141,7 +141,7 @@ static OPUS_INLINE float celt_exp2(float x)
 
 
 #ifdef OPUS_FIXED_POINT
 #ifdef OPUS_FIXED_POINT
 
 
-#include "os_support.h"
+#include "opus/celt/os_support.h"
 
 
 #ifndef OVERRIDE_CELT_ILOG2
 #ifndef OVERRIDE_CELT_ILOG2
 /** Integer log in base2. Undefined for zero and negative numbers */
 /** Integer log in base2. Undefined for zero and negative numbers */

+ 7 - 7
drivers/opus/celt/mdct.c

@@ -41,17 +41,17 @@
 
 
 #ifndef SKIP_CONFIG_H
 #ifndef SKIP_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 #endif
 #endif
 
 
-#include "mdct.h"
-#include "kiss_fft.h"
-#include "_kiss_fft_guts.h"
+#include "opus/celt/mdct.h"
+#include "opus/celt/kiss_fft.h"
+#include "opus/celt/_kiss_fft_guts.h"
 #include <math.h>
 #include <math.h>
-#include "os_support.h"
-#include "mathops.h"
-#include "stack_alloc.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/stack_alloc.h"
 
 
 #ifdef CUSTOM_MODES
 #ifdef CUSTOM_MODES
 
 

+ 3 - 3
drivers/opus/celt/mdct.h

@@ -42,9 +42,9 @@
 #ifndef MDCT_H
 #ifndef MDCT_H
 #define MDCT_H
 #define MDCT_H
 
 
-#include "opus_defines.h"
-#include "kiss_fft.h"
-#include "arch.h"
+#include "opus/opus_defines.h"
+#include "opus/celt/kiss_fft.h"
+#include "opus/celt/arch.h"
 
 
 typedef struct {
 typedef struct {
    int n;
    int n;

+ 1 - 1
drivers/opus/celt/mfrngcod.h

@@ -27,7 +27,7 @@
 
 
 #if !defined(_mfrngcode_H)
 #if !defined(_mfrngcode_H)
 # define _mfrngcode_H (1)
 # define _mfrngcode_H (1)
-# include "entcode.h"
+# include "opus/celt/entcode.h"
 
 
 /*Constants used by the entropy encoder/decoder.*/
 /*Constants used by the entropy encoder/decoder.*/
 
 

+ 9 - 9
drivers/opus/celt/modes.c

@@ -28,15 +28,15 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "celt.h"
-#include "opus_modes.h"
-#include "rate.h"
-#include "os_support.h"
-#include "stack_alloc.h"
-#include "quant_bands.h"
+#include "opus/celt/celt.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/rate.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/quant_bands.h"
 
 
 static const opus_int16 eband5ms[] = {
 static const opus_int16 eband5ms[] = {
 /*0  200 400 600 800  1k 1.2 1.4 1.6  2k 2.4 2.8 3.2  4k 4.8 5.6 6.8  8k 9.6 12k 15.6 */
 /*0  200 400 600 800  1k 1.2 1.4 1.6  2k 2.4 2.8 3.2  4k 4.8 5.6 6.8  8k 9.6 12k 15.6 */
@@ -63,9 +63,9 @@ static const unsigned char band_allocation[] = {
 
 
 #ifndef CUSTOM_MODES_ONLY
 #ifndef CUSTOM_MODES_ONLY
  #ifdef OPUS_FIXED_POINT
  #ifdef OPUS_FIXED_POINT
-  #include "static_modes_fixed.h"
+  #include "opus/celt/static_modes_fixed.h"
  #else
  #else
-  #include "static_modes_float.h"
+  #include "opus/celt/static_modes_float.h"
  #endif
  #endif
 #endif /* CUSTOM_MODES_ONLY */
 #endif /* CUSTOM_MODES_ONLY */
 
 

+ 3 - 3
drivers/opus/celt/opus_custom_demo.c

@@ -27,11 +27,11 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus_custom.h"
-#include "arch.h"
+#include "opus/opus_custom.h"
+#include "opus/celt/arch.h"
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <math.h>
 #include <math.h>

+ 6 - 6
drivers/opus/celt/opus_modes.h

@@ -30,12 +30,12 @@
 #ifndef OPUS_MODES_H
 #ifndef OPUS_MODES_H
 #define OPUS_MODES_H
 #define OPUS_MODES_H
 
 
-#include "opus_types.h"
-#include "celt.h"
-#include "arch.h"
-#include "mdct.h"
-#include "entenc.h"
-#include "entdec.h"
+#include "opus/opus_types.h"
+#include "opus/celt/celt.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/mdct.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
 
 
 #define MAX_PERIOD 1024
 #define MAX_PERIOD 1024
 
 

+ 2 - 2
drivers/opus/celt/os_support.h

@@ -35,8 +35,8 @@
 #  include "custom_support.h"
 #  include "custom_support.h"
 #endif
 #endif
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
 
 
 #include <string.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdio.h>

+ 7 - 7
drivers/opus/celt/pitch.c

@@ -32,15 +32,15 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "pitch.h"
-#include "os_support.h"
-#include "opus_modes.h"
-#include "stack_alloc.h"
-#include "mathops.h"
-#include "celt_lpc.h"
+#include "opus/celt/pitch.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/celt_lpc.h"
 
 
 static void find_best_pitch(opus_val32 *xcorr, opus_val16 *y, int len,
 static void find_best_pitch(opus_val32 *xcorr, opus_val16 *y, int len,
                             int max_pitch, int *best_pitch
                             int max_pitch, int *best_pitch

+ 2 - 2
drivers/opus/celt/pitch.h

@@ -34,8 +34,8 @@
 #ifndef PITCH_H
 #ifndef PITCH_H
 #define PITCH_H
 #define PITCH_H
 
 
-#include "opus_modes.h"
-#include "cpu_support.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/cpu_support.h"
 
 
 #if defined(__SSE__) && !defined(OPUS_FIXED_POINT)
 #if defined(__SSE__) && !defined(OPUS_FIXED_POINT)
 #include "x86/pitch_sse.h"
 #include "x86/pitch_sse.h"

+ 8 - 8
drivers/opus/celt/quant_bands.c

@@ -27,17 +27,17 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "quant_bands.h"
-#include "laplace.h"
+#include "opus/celt/quant_bands.h"
+#include "opus/celt/laplace.h"
 #include <math.h>
 #include <math.h>
-#include "os_support.h"
-#include "arch.h"
-#include "mathops.h"
-#include "stack_alloc.h"
-#include "rate.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/rate.h"
 
 
 #ifdef OPUS_FIXED_POINT
 #ifdef OPUS_FIXED_POINT
 /* Mean energy in each band quantized in Q4 */
 /* Mean energy in each band quantized in Q4 */

+ 5 - 5
drivers/opus/celt/quant_bands.h

@@ -29,11 +29,11 @@
 #ifndef QUANT_BANDS
 #ifndef QUANT_BANDS
 #define QUANT_BANDS
 #define QUANT_BANDS
 
 
-#include "arch.h"
-#include "opus_modes.h"
-#include "entenc.h"
-#include "entdec.h"
-#include "mathops.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
+#include "opus/celt/mathops.h"
 
 
 #ifdef OPUS_FIXED_POINT
 #ifdef OPUS_FIXED_POINT
 extern const signed char eMeans[25];
 extern const signed char eMeans[25];

+ 7 - 7
drivers/opus/celt/rate.c

@@ -27,17 +27,17 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <math.h>
 #include <math.h>
-#include "opus_modes.h"
-#include "cwrs.h"
-#include "arch.h"
-#include "os_support.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/cwrs.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/os_support.h"
 
 
-#include "entcode.h"
-#include "rate.h"
+#include "opus/celt/entcode.h"
+#include "opus/celt/rate.h"
 
 
 static const unsigned char LOG2_FRAC_TABLE[24]={
 static const unsigned char LOG2_FRAC_TABLE[24]={
    0,
    0,

+ 2 - 2
drivers/opus/celt/rate.h

@@ -40,8 +40,8 @@
 #define QTHETA_OFFSET 4
 #define QTHETA_OFFSET 4
 #define QTHETA_OFFSET_TWOPHASE 16
 #define QTHETA_OFFSET_TWOPHASE 16
 
 
-#include "cwrs.h"
-#include "opus_modes.h"
+#include "opus/celt/cwrs.h"
+#include "opus/celt/opus_modes.h"
 
 
 void compute_pulse_cache(CELTMode *m, int LM);
 void compute_pulse_cache(CELTMode *m, int LM);
 
 

+ 3 - 3
drivers/opus/celt/stack_alloc.h

@@ -32,8 +32,8 @@
 #ifndef STACK_ALLOC_H
 #ifndef STACK_ALLOC_H
 #define STACK_ALLOC_H
 #define STACK_ALLOC_H
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
 
 
 #if (!defined (VAR_ARRAYS) && !defined (USE_ALLOCA) && !defined (NONTHREADSAFE_PSEUDOSTACK))
 #if (!defined (VAR_ARRAYS) && !defined (USE_ALLOCA) && !defined (NONTHREADSAFE_PSEUDOSTACK))
 #define VAR_ARRAYS
 #define VAR_ARRAYS
@@ -149,7 +149,7 @@ extern char *global_stack_top;
 
 
 #endif /* ENABLE_VALGRIND */
 #endif /* ENABLE_VALGRIND */
 
 
-#include "os_support.h"
+#include "opus/celt/os_support.h"
 #define VARDECL(type, var) type *var
 #define VARDECL(type, var) type *var
 #define ALLOC(var, size, type) var = PUSH(global_stack, size, type)
 #define ALLOC(var, size, type) var = PUSH(global_stack, size, type)
 #define SAVE_STACK char *_saved_stack = global_stack;
 #define SAVE_STACK char *_saved_stack = global_stack;

+ 2 - 2
drivers/opus/celt/static_modes_fixed.h

@@ -1,8 +1,8 @@
 /* The contents of this file was automatically generated by dump_modes.c
 /* The contents of this file was automatically generated by dump_modes.c
    with arguments: 48000 960
    with arguments: 48000 960
    It contains static definitions for some pre-defined modes. */
    It contains static definitions for some pre-defined modes. */
-#include "opus_modes.h"
-#include "rate.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/rate.h"
 
 
 #ifndef DEF_WINDOW120
 #ifndef DEF_WINDOW120
 #define DEF_WINDOW120
 #define DEF_WINDOW120

+ 2 - 2
drivers/opus/celt/static_modes_float.h

@@ -1,8 +1,8 @@
 /* The contents of this file was automatically generated by dump_modes.c
 /* The contents of this file was automatically generated by dump_modes.c
    with arguments: 48000 960
    with arguments: 48000 960
    It contains static definitions for some pre-defined modes. */
    It contains static definitions for some pre-defined modes. */
-#include "opus_modes.h"
-#include "rate.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/rate.h"
 
 
 #ifndef DEF_WINDOW120
 #ifndef DEF_WINDOW120
 #define DEF_WINDOW120
 #define DEF_WINDOW120

+ 8 - 8
drivers/opus/celt/tests/test_unit_cwrs32.c

@@ -27,7 +27,7 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <stdio.h>
 #include <stdio.h>
@@ -40,13 +40,13 @@
 #endif
 #endif
 
 
 #define CELT_C
 #define CELT_C
-#include "stack_alloc.h"
-#include "entenc.c"
-#include "entdec.c"
-#include "entcode.c"
-#include "cwrs.c"
-#include "mathops.c"
-#include "rate.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/entenc.c"
+#include "opus/celt/entdec.c"
+#include "opus/celt/entcode.c"
+#include "opus/celt/cwrs.c"
+#include "opus/celt/mathops.c"
+#include "opus/celt/rate.h"
 
 
 #define NMAX (240)
 #define NMAX (240)
 #define KMAX (128)
 #define KMAX (128)

+ 6 - 6
drivers/opus/celt/tests/test_unit_dft.c

@@ -26,7 +26,7 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #define SKIP_CONFIG_H
 #define SKIP_CONFIG_H
@@ -38,11 +38,11 @@
 #include <stdio.h>
 #include <stdio.h>
 
 
 #define CELT_C
 #define CELT_C
-#include "stack_alloc.h"
-#include "kiss_fft.h"
-#include "kiss_fft.c"
-#include "mathops.c"
-#include "entcode.c"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/kiss_fft.h"
+#include "opus/celt/kiss_fft.c"
+#include "opus/celt/mathops.c"
+#include "opus/celt/entcode.c"
 
 
 
 
 #ifndef M_PI
 #ifndef M_PI

+ 7 - 7
drivers/opus/celt/tests/test_unit_entropy.c

@@ -27,21 +27,21 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <math.h>
 #include <math.h>
 #include <time.h>
 #include <time.h>
-#include "entcode.h"
-#include "entenc.h"
-#include "entdec.h"
+#include "opus/celt/entcode.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
 #include <string.h>
 #include <string.h>
 
 
-#include "entenc.c"
-#include "entdec.c"
-#include "entcode.c"
+#include "opus/celt/entenc.c"
+#include "opus/celt/entdec.c"
+#include "opus/celt/entcode.c"
 
 
 #ifndef M_LOG2E
 #ifndef M_LOG2E
 # define M_LOG2E    1.4426950408889634074
 # define M_LOG2E    1.4426950408889634074

+ 7 - 7
drivers/opus/celt/tests/test_unit_laplace.c

@@ -26,19 +26,19 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
-#include "laplace.h"
+#include "opus/celt/laplace.h"
 #define CELT_C
 #define CELT_C
-#include "stack_alloc.h"
+#include "opus/celt/stack_alloc.h"
 
 
-#include "entenc.c"
-#include "entdec.c"
-#include "entcode.c"
-#include "laplace.c"
+#include "opus/celt/entenc.c"
+#include "opus/celt/entdec.c"
+#include "opus/celt/entcode.c"
+#include "opus/celt/laplace.c"
 
 
 #define DATA_SIZE 40000
 #define DATA_SIZE 40000
 
 

+ 10 - 10
drivers/opus/celt/tests/test_unit_mathops.c

@@ -27,7 +27,7 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #ifndef CUSTOM_MODES
 #ifndef CUSTOM_MODES
@@ -36,15 +36,15 @@
 
 
 #define CELT_C
 #define CELT_C
 
 
-#include "mathops.c"
-#include "entenc.c"
-#include "entdec.c"
-#include "entcode.c"
-#include "bands.c"
-#include "quant_bands.c"
-#include "laplace.c"
-#include "vq.c"
-#include "cwrs.c"
+#include "opus/celt/mathops.c"
+#include "opus/celt/entenc.c"
+#include "opus/celt/entdec.c"
+#include "opus/celt/entcode.c"
+#include "opus/celt/bands.c"
+#include "opus/celt/quant_bands.c"
+#include "opus/celt/laplace.c"
+#include "opus/celt/vq.c"
+#include "opus/celt/cwrs.c"
 #include <stdio.h>
 #include <stdio.h>
 #include <math.h>
 #include <math.h>
 
 

+ 7 - 7
drivers/opus/celt/tests/test_unit_mdct.c

@@ -26,7 +26,7 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #define SKIP_CONFIG_H
 #define SKIP_CONFIG_H
@@ -38,13 +38,13 @@
 #include <stdio.h>
 #include <stdio.h>
 
 
 #define CELT_C
 #define CELT_C
-#include "mdct.h"
-#include "stack_alloc.h"
+#include "opus/celt/mdct.h"
+#include "opus/celt/stack_alloc.h"
 
 
-#include "kiss_fft.c"
-#include "mdct.c"
-#include "mathops.c"
-#include "entcode.c"
+#include "opus/celt/kiss_fft.c"
+#include "opus/celt/mdct.c"
+#include "opus/celt/mathops.c"
+#include "opus/celt/entcode.c"
 
 
 #ifndef M_PI
 #ifndef M_PI
 #define M_PI 3.141592653
 #define M_PI 3.141592653

+ 8 - 8
drivers/opus/celt/tests/test_unit_rotation.c

@@ -26,7 +26,7 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #ifndef CUSTOM_MODES
 #ifndef CUSTOM_MODES
@@ -37,13 +37,13 @@
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
-#include "vq.c"
-#include "cwrs.c"
-#include "entcode.c"
-#include "entenc.c"
-#include "entdec.c"
-#include "mathops.c"
-#include "bands.h"
+#include "opus/celt/vq.c"
+#include "opus/celt/cwrs.c"
+#include "opus/celt/entcode.c"
+#include "opus/celt/entenc.c"
+#include "opus/celt/entdec.c"
+#include "opus/celt/mathops.c"
+#include "opus/celt/bands.h"
 #include <math.h>
 #include <math.h>
 #define MAX_SIZE 100
 #define MAX_SIZE 100
 
 

+ 2 - 2
drivers/opus/celt/tests/test_unit_types.c

@@ -26,10 +26,10 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus_types.h"
+#include "opus/opus_types.h"
 #include <stdio.h>
 #include <stdio.h>
 
 
 int main(void)
 int main(void)

+ 8 - 8
drivers/opus/celt/vq.c

@@ -27,16 +27,16 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "mathops.h"
-#include "cwrs.h"
-#include "vq.h"
-#include "arch.h"
-#include "os_support.h"
-#include "bands.h"
-#include "rate.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/cwrs.h"
+#include "opus/celt/vq.h"
+#include "opus/celt/arch.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/bands.h"
+#include "opus/celt/rate.h"
 
 
 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_val16 s)
 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_val16 s)
 {
 {

+ 3 - 3
drivers/opus/celt/vq.h

@@ -33,9 +33,9 @@
 #ifndef VQ_H
 #ifndef VQ_H
 #define VQ_H
 #define VQ_H
 
 
-#include "entenc.h"
-#include "entdec.h"
-#include "opus_modes.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
+#include "opus/celt/opus_modes.h"
 
 
 /** Algebraic pulse-vector quantiser. The signal x is replaced by the sum of
 /** Algebraic pulse-vector quantiser. The signal x is replaced by the sum of
   * the pitch and a combination of pulses such that its norm is still equal
   * the pitch and a combination of pulses such that its norm is still equal

+ 1 - 1
drivers/opus/celt/x86/pitch_sse.h

@@ -33,7 +33,7 @@
 #define PITCH_SSE_H
 #define PITCH_SSE_H
 
 
 #include <xmmintrin.h>
 #include <xmmintrin.h>
-#include "arch.h"
+#include "opus/celt/arch.h"
 
 
 #define OVERRIDE_XCORR_KERNEL
 #define OVERRIDE_XCORR_KERNEL
 static OPUS_INLINE void xcorr_kernel(const opus_val16 *x, const opus_val16 *y, opus_val32 sum[4], int len)
 static OPUS_INLINE void xcorr_kernel(const opus_val16 *x, const opus_val16 *y, opus_val32 sum[4], int len)

+ 3 - 3
drivers/opus/http.c

@@ -10,10 +10,10 @@
  *                                                                  *
  *                                                                  *
  ********************************************************************/
  ********************************************************************/
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "internal.h"
+#include "opus/internal.h"
 #include <ctype.h>
 #include <ctype.h>
 #include <errno.h>
 #include <errno.h>
 #include <limits.h>
 #include <limits.h>
@@ -214,7 +214,7 @@ static const char *op_parse_file_url(const char *_src){
 #  include <winsock2.h>
 #  include <winsock2.h>
 #  include <ws2tcpip.h>
 #  include <ws2tcpip.h>
 #  include <openssl/ssl.h>
 #  include <openssl/ssl.h>
-#  include "winerrno.h"
+#  include "opus/winerrno.h"
 
 
 typedef SOCKET op_sock;
 typedef SOCKET op_sock;
 
 

+ 2 - 2
drivers/opus/info.c

@@ -10,10 +10,10 @@
  *                                                                  *
  *                                                                  *
  ********************************************************************/
  ********************************************************************/
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "internal.h"
+#include "opus/internal.h"
 #include <limits.h>
 #include <limits.h>
 #include <string.h>
 #include <string.h>
 
 

+ 2 - 2
drivers/opus/internal.c

@@ -10,10 +10,10 @@
  *                                                                  *
  *                                                                  *
  ********************************************************************/
  ********************************************************************/
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "internal.h"
+#include "opus/internal.h"
 
 
 #if defined(OP_ENABLE_ASSERTIONS)
 #if defined(OP_ENABLE_ASSERTIONS)
 void op_fatal_impl(const char *_str,const char *_file,int _line){
 void op_fatal_impl(const char *_str,const char *_file,int _line){

+ 6 - 6
drivers/opus/mlp.c

@@ -26,16 +26,16 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
 
 
 #include <math.h>
 #include <math.h>
-#include "mlp.h"
-#include "arch.h"
-#include "tansig_table.h"
+#include "opus/mlp.h"
+#include "opus/celt/arch.h"
+#include "opus/tansig_table.h"
 #define MAX_NEURONS 100
 #define MAX_NEURONS 100
 
 
 #if 0
 #if 0

+ 1 - 1
drivers/opus/mlp.h

@@ -28,7 +28,7 @@
 #ifndef _MLP_H_
 #ifndef _MLP_H_
 #define _MLP_H_
 #define _MLP_H_
 
 
-#include "arch.h"
+#include "opus/celt/arch.h"
 
 
 typedef struct {
 typedef struct {
 	int layers;
 	int layers;

+ 1 - 1
drivers/opus/mlp_data.c

@@ -1,7 +1,7 @@
 /* The contents of this file was automatically generated by mlp_train.c
 /* The contents of this file was automatically generated by mlp_train.c
    It contains multi-layer perceptron (MLP) weights. */
    It contains multi-layer perceptron (MLP) weights. */
 
 
-#include "mlp.h"
+#include "opus/mlp.h"
 
 
 /* RMS error was 0.138320, seed was 1361535663 */
 /* RMS error was 0.138320, seed was 1361535663 */
 
 

+ 3 - 3
drivers/opus/opus.c

@@ -26,11 +26,11 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus.h"
-#include "opus_private.h"
+#include "opus/opus.h"
+#include "opus/opus_private.h"
 
 
 #ifndef DISABLE_FLOAT_API
 #ifndef DISABLE_FLOAT_API
 OPUS_EXPORT void opus_pcm_soft_clip(float *_x, int N, int C, float *declip_mem)
 OPUS_EXPORT void opus_pcm_soft_clip(float *_x, int N, int C, float *declip_mem)

+ 2 - 2
drivers/opus/opus.h

@@ -33,8 +33,8 @@
 #ifndef OPUS_H
 #ifndef OPUS_H
 #define OPUS_H
 #define OPUS_H
 
 
-#include "opus_types.h"
-#include "opus_defines.h"
+#include "opus/opus_types.h"
+#include "opus/opus_defines.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 1 - 1
drivers/opus/opus_custom.h

@@ -35,7 +35,7 @@
 #ifndef OPUS_CUSTOM_H
 #ifndef OPUS_CUSTOM_H
 #define OPUS_CUSTOM_H
 #define OPUS_CUSTOM_H
 
 
-#include "opus_defines.h"
+#include "opus/opus_defines.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 14 - 14
drivers/opus/opus_decoder.c

@@ -26,7 +26,7 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-# include "opus_config.h"
+# include "opus/opus_config.h"
 #endif
 #endif
 
 
 #ifndef OPUS_BUILD
 #ifndef OPUS_BUILD
@@ -38,19 +38,19 @@
 #endif
 #endif
 
 
 #include <stdarg.h>
 #include <stdarg.h>
-#include "celt.h"
-#include "opus.h"
-#include "entdec.h"
-#include "opus_modes.h"
-#include "API.h"
-#include "stack_alloc.h"
-#include "float_cast.h"
-#include "opus_private.h"
-#include "os_support.h"
-#include "structs.h"
-#include "define.h"
-#include "mathops.h"
-#include "cpu_support.h"
+#include "opus/celt/celt.h"
+#include "opus/opus.h"
+#include "opus/celt/entdec.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/silk/API.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/float_cast.h"
+#include "opus/opus_private.h"
+#include "opus/celt/os_support.h"
+#include "opus/silk/structs.h"
+#include "opus/silk/define.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/cpu_support.h"
 
 
 struct OpusDecoder {
 struct OpusDecoder {
    int          celt_dec_offset;
    int          celt_dec_offset;

+ 1 - 1
drivers/opus/opus_defines.h

@@ -33,7 +33,7 @@
 #ifndef OPUS_DEFINES_H
 #ifndef OPUS_DEFINES_H
 #define OPUS_DEFINES_H
 #define OPUS_DEFINES_H
 
 
-#include "opus_types.h"
+#include "opus/opus_types.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 6 - 6
drivers/opus/opus_demo.c

@@ -27,18 +27,18 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <math.h>
 #include <math.h>
 #include <string.h>
 #include <string.h>
-#include "opus.h"
-#include "debug.h"
-#include "opus_types.h"
-#include "opus_private.h"
-#include "opus_multistream.h"
+#include "opus/opus.h"
+#include "opus/silk/debug.h"
+#include "opus/opus_types.h"
+#include "opus/opus_private.h"
+#include "opus/opus_multistream.h"
 
 
 #define MAX_PACKET 1500
 #define MAX_PACKET 1500
 
 

+ 17 - 17
drivers/opus/opus_encoder.c

@@ -26,28 +26,28 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 #include <stdarg.h>
 #include <stdarg.h>
-#include "celt.h"
-#include "entenc.h"
-#include "opus_modes.h"
-#include "API.h"
-#include "stack_alloc.h"
-#include "float_cast.h"
-#include "opus.h"
-#include "arch.h"
-#include "opus_private.h"
-#include "os_support.h"
-#include "cpu_support.h"
-#include "analysis.h"
-#include "mathops.h"
-#include "tuning_parameters.h"
+#include "opus/celt/celt.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/silk/API.h"
+#include "opus/celt/stack_alloc.h"
+#include "opus/celt/float_cast.h"
+#include "opus/opus.h"
+#include "opus/celt/arch.h"
+#include "opus/opus_private.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/cpu_support.h"
+#include "opus/analysis.h"
+#include "opus/celt/mathops.h"
+#include "opus/silk/tuning_parameters.h"
 #ifdef OPUS_FIXED_POINT
 #ifdef OPUS_FIXED_POINT
-#include "fixed/structs_FIX.h"
+#include "opus/silk/fixed/structs_FIX.h"
 #else
 #else
-#include "float/structs_FLP.h"
+#include "opus/silk/float/structs_FLP.h"
 #endif
 #endif
 
 
 #define MAX_ENCODER_BUFFER 480
 #define MAX_ENCODER_BUFFER 480

+ 7 - 7
drivers/opus/opus_multistream.c

@@ -26,16 +26,16 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus_multistream.h"
-#include "opus.h"
-#include "opus_private.h"
-#include "stack_alloc.h"
+#include "opus/opus_multistream.h"
+#include "opus/opus.h"
+#include "opus/opus_private.h"
+#include "opus/celt/stack_alloc.h"
 #include <stdarg.h>
 #include <stdarg.h>
-#include "float_cast.h"
-#include "os_support.h"
+#include "opus/celt/float_cast.h"
+#include "opus/celt/os_support.h"
 
 
 
 
 int validate_layout(const ChannelLayout *layout)
 int validate_layout(const ChannelLayout *layout)

+ 1 - 1
drivers/opus/opus_multistream.h

@@ -33,7 +33,7 @@
 #ifndef OPUS_MULTISTREAM_H
 #ifndef OPUS_MULTISTREAM_H
 #define OPUS_MULTISTREAM_H
 #define OPUS_MULTISTREAM_H
 
 
-#include "opus.h"
+#include "opus/opus.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 7 - 7
drivers/opus/opus_multistream_decoder.c

@@ -26,16 +26,16 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus_multistream.h"
-#include "opus.h"
-#include "opus_private.h"
-#include "stack_alloc.h"
+#include "opus/opus_multistream.h"
+#include "opus/opus.h"
+#include "opus/opus_private.h"
+#include "opus/celt/stack_alloc.h"
 #include <stdarg.h>
 #include <stdarg.h>
-#include "float_cast.h"
-#include "os_support.h"
+#include "opus/celt/float_cast.h"
+#include "opus/celt/os_support.h"
 
 
 struct OpusMSDecoder {
 struct OpusMSDecoder {
    ChannelLayout layout;
    ChannelLayout layout;

+ 12 - 12
drivers/opus/opus_multistream_encoder.c

@@ -26,21 +26,21 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus_multistream.h"
-#include "opus.h"
-#include "opus_private.h"
-#include "stack_alloc.h"
+#include "opus/opus_multistream.h"
+#include "opus/opus.h"
+#include "opus/opus_private.h"
+#include "opus/celt/stack_alloc.h"
 #include <stdarg.h>
 #include <stdarg.h>
-#include "float_cast.h"
-#include "os_support.h"
-#include "mathops.h"
-#include "mdct.h"
-#include "opus_modes.h"
-#include "bands.h"
-#include "quant_bands.h"
+#include "opus/celt/float_cast.h"
+#include "opus/celt/os_support.h"
+#include "opus/celt/mathops.h"
+#include "opus/celt/mdct.h"
+#include "opus/celt/opus_modes.h"
+#include "opus/celt/bands.h"
+#include "opus/celt/quant_bands.h"
 
 
 typedef struct {
 typedef struct {
    int nb_streams;
    int nb_streams;

+ 3 - 3
drivers/opus/opus_private.h

@@ -29,9 +29,9 @@
 #ifndef OPUS_PRIVATE_H
 #ifndef OPUS_PRIVATE_H
 #define OPUS_PRIVATE_H
 #define OPUS_PRIVATE_H
 
 
-#include "arch.h"
-#include "opus.h"
-#include "celt.h"
+#include "opus/celt/arch.h"
+#include "opus/opus.h"
+#include "opus/celt/celt.h"
 
 
 struct OpusRepacketizer {
 struct OpusRepacketizer {
    unsigned char toc;
    unsigned char toc;

+ 3 - 3
drivers/opus/opusfile.c

@@ -15,10 +15,10 @@
 
 
  ********************************************************************/
  ********************************************************************/
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "internal.h"
+#include "opus/internal.h"
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <errno.h>
 #include <errno.h>
@@ -26,7 +26,7 @@
 #include <string.h>
 #include <string.h>
 #include <math.h>
 #include <math.h>
 
 
-#include "opusfile.h"
+#include "opus/opusfile.h"
 
 
 /*This implementation is largely based off of libvorbisfile.
 /*This implementation is largely based off of libvorbisfile.
   All of the Ogg bits work roughly the same, though I have made some
   All of the Ogg bits work roughly the same, though I have made some

+ 4 - 4
drivers/opus/repacketizer.c

@@ -26,12 +26,12 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus.h"
-#include "opus_private.h"
-#include "os_support.h"
+#include "opus/opus.h"
+#include "opus/opus_private.h"
+#include "opus/celt/os_support.h"
 
 
 
 
 int opus_repacketizer_get_size(void)
 int opus_repacketizer_get_size(void)

+ 2 - 2
drivers/opus/repacketizer_demo.c

@@ -26,10 +26,10 @@
 */
 */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "opus.h"
+#include "opus/opus.h"
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>

+ 3 - 3
drivers/opus/silk/A2NLSF.c

@@ -32,11 +32,11 @@ POSSIBILITY OF SUCH DAMAGE.
 /* functions are accurate inverses of each other                */
 /* functions are accurate inverses of each other                */
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "SigProc_FIX.h"
-#include "tables.h"
+#include "opus/silk/SigProc_FIX.h"
+#include "opus/silk/tables.h"
 
 
 /* Number of binary divisions, when not in low complexity mode */
 /* Number of binary divisions, when not in low complexity mode */
 #define BIN_DIV_STEPS_A2NLSF_FIX      3 /* must be no higher than 16 - log2( LSF_COS_TAB_SZ_FIX ) */
 #define BIN_DIV_STEPS_A2NLSF_FIX      3 /* must be no higher than 16 - log2( LSF_COS_TAB_SZ_FIX ) */

+ 5 - 5
drivers/opus/silk/API.h

@@ -28,11 +28,11 @@ POSSIBILITY OF SUCH DAMAGE.
 #ifndef SILK_API_H
 #ifndef SILK_API_H
 #define SILK_API_H
 #define SILK_API_H
 
 
-#include "control.h"
-#include "typedef.h"
-#include "errors.h"
-#include "entenc.h"
-#include "entdec.h"
+#include "opus/silk/control.h"
+#include "opus/silk/typedef.h"
+#include "opus/silk/errors.h"
+#include "opus/celt/entenc.h"
+#include "opus/celt/entdec.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C"
 extern "C"

+ 3 - 3
drivers/opus/silk/CNG.c

@@ -26,11 +26,11 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
-#include "stack_alloc.h"
+#include "opus/silk/silk_main.h"
+#include "opus/celt/stack_alloc.h"
 
 
 /* Generates excitation for CNG LPC synthesis */
 /* Generates excitation for CNG LPC synthesis */
 static OPUS_INLINE void silk_CNG_exc(
 static OPUS_INLINE void silk_CNG_exc(

+ 4 - 4
drivers/opus/silk/HP_variable_cutoff.c

@@ -26,14 +26,14 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 #ifdef OPUS_FIXED_POINT
 #ifdef OPUS_FIXED_POINT
-#include "main_FIX.h"
+#include "opus/silk/fixed/main_FIX.h"
 #else
 #else
-#include "main_FLP.h"
+#include "opus/silk/float/main_FLP.h"
 #endif
 #endif
-#include "tuning_parameters.h"
+#include "opus/silk/tuning_parameters.h"
 
 
 /* High-pass filter with cutoff frequency adaptation based on pitch lag statistics */
 /* High-pass filter with cutoff frequency adaptation based on pitch lag statistics */
 void silk_HP_variable_cutoff(
 void silk_HP_variable_cutoff(

+ 3 - 3
drivers/opus/silk/LPC_analysis_filter.c

@@ -26,11 +26,11 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "SigProc_FIX.h"
-#include "celt_lpc.h"
+#include "opus/silk/SigProc_FIX.h"
+#include "opus/celt/celt_lpc.h"
 
 
 /*******************************************/
 /*******************************************/
 /* LPC analysis filter                     */
 /* LPC analysis filter                     */

+ 2 - 2
drivers/opus/silk/LPC_inv_pred_gain.c

@@ -26,10 +26,10 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "SigProc_FIX.h"
+#include "opus/silk/SigProc_FIX.h"
 
 
 #define QA                          24
 #define QA                          24
 #define A_LIMIT                     SILK_FIX_CONST( 0.99975, QA )
 #define A_LIMIT                     SILK_FIX_CONST( 0.99975, QA )

+ 2 - 2
drivers/opus/silk/LP_variable_cutoff.c

@@ -26,7 +26,7 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 /*
 /*
@@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
     [0.95 : 0.15 : 0.35] normalized cut off frequencies.
     [0.95 : 0.15 : 0.35] normalized cut off frequencies.
 */
 */
 
 
-#include "silk_main.h"
+#include "opus/silk/silk_main.h"
 
 
 /* Helper function, interpolates the filter taps */
 /* Helper function, interpolates the filter taps */
 static OPUS_INLINE void silk_LP_interpolate_filter_taps(
 static OPUS_INLINE void silk_LP_interpolate_filter_taps(

+ 3 - 3
drivers/opus/silk/NLSF2A.c

@@ -26,7 +26,7 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 /* conversion between prediction filter coefficients and LSFs   */
 /* conversion between prediction filter coefficients and LSFs   */
@@ -35,8 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
 /* therefore the result is not accurate LSFs, but the two       */
 /* therefore the result is not accurate LSFs, but the two       */
 /* functions are accurate inverses of each other                */
 /* functions are accurate inverses of each other                */
 
 
-#include "SigProc_FIX.h"
-#include "tables.h"
+#include "opus/silk/SigProc_FIX.h"
+#include "opus/silk/tables.h"
 
 
 #define QA      16
 #define QA      16
 
 

+ 2 - 2
drivers/opus/silk/NLSF_VQ.c

@@ -26,10 +26,10 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
+#include "opus/silk/silk_main.h"
 
 
 /* Compute quantization errors for an LPC_order element input vector for a VQ codebook */
 /* Compute quantization errors for an LPC_order element input vector for a VQ codebook */
 void silk_NLSF_VQ(
 void silk_NLSF_VQ(

+ 3 - 3
drivers/opus/silk/NLSF_VQ_weights_laroia.c

@@ -26,11 +26,11 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "define.h"
-#include "SigProc_FIX.h"
+#include "opus/silk/define.h"
+#include "opus/silk/SigProc_FIX.h"
 
 
 /*
 /*
 R. Laroia, N. Phamdo and N. Farvardin, "Robust and Efficient Quantization of Speech LSP
 R. Laroia, N. Phamdo and N. Farvardin, "Robust and Efficient Quantization of Speech LSP

+ 2 - 2
drivers/opus/silk/NLSF_decode.c

@@ -26,10 +26,10 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
+#include "opus/silk/silk_main.h"
 
 
 /* Predictive dequantizer for NLSF residuals */
 /* Predictive dequantizer for NLSF residuals */
 static OPUS_INLINE void silk_NLSF_residual_dequant(               /* O    Returns RD value in Q30                     */
 static OPUS_INLINE void silk_NLSF_residual_dequant(               /* O    Returns RD value in Q30                     */

+ 2 - 2
drivers/opus/silk/NLSF_del_dec_quant.c

@@ -26,10 +26,10 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
+#include "opus/silk/silk_main.h"
 
 
 /* Delayed-decision quantizer for NLSF residuals */
 /* Delayed-decision quantizer for NLSF residuals */
 opus_int32 silk_NLSF_del_dec_quant(                             /* O    Returns RD value in Q25                     */
 opus_int32 silk_NLSF_del_dec_quant(                             /* O    Returns RD value in Q25                     */

+ 3 - 3
drivers/opus/silk/NLSF_encode.c

@@ -26,11 +26,11 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
-#include "stack_alloc.h"
+#include "opus/silk/silk_main.h"
+#include "opus/celt/stack_alloc.h"
 
 
 /***********************/
 /***********************/
 /* NLSF vector encoder */
 /* NLSF vector encoder */

+ 2 - 2
drivers/opus/silk/NLSF_stabilize.c

@@ -26,7 +26,7 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
 /* NLSF stabilizer:                                         */
 /* NLSF stabilizer:                                         */
@@ -38,7 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
 /* - Output are sorted NLSF coefficients                    */
 /* - Output are sorted NLSF coefficients                    */
 /*                                                          */
 /*                                                          */
 
 
-#include "SigProc_FIX.h"
+#include "opus/silk/SigProc_FIX.h"
 
 
 /* Constant Definitions */
 /* Constant Definitions */
 #define MAX_LOOPS        20
 #define MAX_LOOPS        20

+ 2 - 2
drivers/opus/silk/NLSF_unpack.c

@@ -26,10 +26,10 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
+#include "opus/silk/silk_main.h"
 
 
 /* Unpack predictor values and indices for entropy coding tables */
 /* Unpack predictor values and indices for entropy coding tables */
 void silk_NLSF_unpack(
 void silk_NLSF_unpack(

+ 3 - 3
drivers/opus/silk/NSQ.c

@@ -26,11 +26,11 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
-#include "stack_alloc.h"
+#include "opus/silk/silk_main.h"
+#include "opus/celt/stack_alloc.h"
 
 
 static OPUS_INLINE void silk_nsq_scale_states(
 static OPUS_INLINE void silk_nsq_scale_states(
     const silk_encoder_state *psEncC,           /* I    Encoder State                   */
     const silk_encoder_state *psEncC,           /* I    Encoder State                   */

+ 3 - 3
drivers/opus/silk/NSQ_del_dec.c

@@ -26,11 +26,11 @@ POSSIBILITY OF SUCH DAMAGE.
 ***********************************************************************/
 ***********************************************************************/
 
 
 #ifdef OPUS_HAVE_CONFIG_H
 #ifdef OPUS_HAVE_CONFIG_H
-#include "opus_config.h"
+#include "opus/opus_config.h"
 #endif
 #endif
 
 
-#include "silk_main.h"
-#include "stack_alloc.h"
+#include "opus/silk/silk_main.h"
+#include "opus/celt/stack_alloc.h"
 
 
 typedef struct {
 typedef struct {
     opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ];
     opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ];

Some files were not shown because too many files changed in this diff