mirror of
https://github.com/godotengine/godot.git
synced 2025-01-11 04:30:50 +00:00
Merge branch 'master' of https://github.com/godotengine/godot
This commit is contained in:
commit
68aaa0f813
@ -970,7 +970,10 @@ void Object::set_script_instance(ScriptInstance *p_instance) {
|
||||
|
||||
script_instance=p_instance;
|
||||
|
||||
script=p_instance->get_script().get_ref_ptr();
|
||||
if (p_instance)
|
||||
script=p_instance->get_script().get_ref_ptr();
|
||||
else
|
||||
script=RefPtr();
|
||||
}
|
||||
|
||||
RefPtr Object::get_script() const {
|
||||
|
Binary file not shown.
@ -124,7 +124,7 @@ opus_sources_lib = [
|
||||
]
|
||||
|
||||
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/silk/fixed/apply_sine_window_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"
|
||||
]
|
||||
else:
|
||||
env.Append(CPPPATH=["#drivers/opus/silk/float"])
|
||||
opus_sources_silk = [
|
||||
"opus/silk/float/apply_sine_window_FLP.c",
|
||||
"opus/silk/float/inner_product_FLP.c",
|
||||
@ -193,8 +192,4 @@ opus_sources_lib+=opus_sources_silk
|
||||
env.drivers_sources+=opus_sources_lib
|
||||
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"])
|
||||
|
||||
Export('env')
|
||||
|
@ -25,19 +25,19 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 "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;
|
||||
|
||||
|
@ -28,8 +28,8 @@
|
||||
#ifndef 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_TBANDS 18
|
||||
|
@ -33,7 +33,7 @@
|
||||
defines kiss_fft_scalar as either short or a float type
|
||||
and defines
|
||||
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:
|
||||
@ -45,7 +45,7 @@
|
||||
C_ADDTO( res , a) : res += a
|
||||
* */
|
||||
#ifdef OPUS_FIXED_POINT
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
|
||||
#define SAMP_MAX 2147483647
|
||||
|
@ -34,8 +34,8 @@
|
||||
#ifndef 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__)&&defined(__GNUC_MINOR__)
|
||||
@ -109,10 +109,10 @@ typedef opus_val32 celt_ener;
|
||||
#define SCALEOUT(a) (a)
|
||||
|
||||
#ifdef FIXED_DEBUG
|
||||
#include "fixed_debug.h"
|
||||
#include "opus/celt/fixed_debug.h"
|
||||
#else
|
||||
|
||||
#include "fixed_generic.h"
|
||||
#include "opus/celt/fixed_generic.h"
|
||||
|
||||
#ifdef OPUS_ARM_INLINE_EDSP
|
||||
#include "arm/fixed_armv5e.h"
|
||||
|
@ -25,11 +25,11 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "pitch.h"
|
||||
#include "opus/celt/pitch.h"
|
||||
|
||||
#if defined(OPUS_HAVE_RTCD)
|
||||
|
||||
|
@ -27,16 +27,16 @@
|
||||
|
||||
/* Original code from libtheora modified to suit to Opus */
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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_EDSP (1<<1)
|
||||
|
@ -30,7 +30,7 @@
|
||||
#ifndef 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 */
|
||||
#undef MULT16_32_Q16
|
||||
|
@ -28,7 +28,7 @@
|
||||
#if !defined(PITCH_ARM_H)
|
||||
# define PITCH_ARM_H
|
||||
|
||||
# include "armcpu.h"
|
||||
# include "opus/celt/arm/armcpu.h"
|
||||
|
||||
# if defined(OPUS_FIXED_POINT)
|
||||
|
||||
|
@ -27,21 +27,21 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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)
|
||||
{
|
||||
|
@ -30,11 +30,11 @@
|
||||
#ifndef 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
|
||||
* @param m Mode data
|
||||
|
@ -27,28 +27,28 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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 "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 "celt_lpc.h"
|
||||
#include "vq.h"
|
||||
#include "opus/celt/celt_lpc.h"
|
||||
#include "opus/celt/vq.h"
|
||||
|
||||
#ifndef PACKAGE_VERSION
|
||||
#define PACKAGE_VERSION "unknown"
|
||||
|
@ -35,12 +35,12 @@
|
||||
#ifndef 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
|
||||
extern "C" {
|
||||
|
@ -27,29 +27,29 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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 "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 "celt_lpc.h"
|
||||
#include "vq.h"
|
||||
#include "opus/celt/celt_lpc.h"
|
||||
#include "opus/celt/vq.h"
|
||||
|
||||
/**********************************************************************/
|
||||
/* */
|
||||
|
@ -27,29 +27,29 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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 "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 "celt_lpc.h"
|
||||
#include "vq.h"
|
||||
#include "opus/celt/celt_lpc.h"
|
||||
#include "opus/celt/vq.h"
|
||||
|
||||
|
||||
/** Encoder state
|
||||
|
@ -25,14 +25,14 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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(
|
||||
opus_val16 *_lpc, /* out: [0...p-1] LPC coefficients */
|
||||
|
@ -28,7 +28,7 @@
|
||||
#ifndef PLC_H
|
||||
#define PLC_H
|
||||
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
#define LPC_ORDER 24
|
||||
|
||||
|
@ -28,8 +28,8 @@
|
||||
#ifndef 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)
|
||||
#include "arm/armcpu.h"
|
||||
|
@ -27,14 +27,14 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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
|
||||
|
||||
|
@ -30,10 +30,10 @@
|
||||
#ifndef 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
|
||||
int log2_frac(opus_uint32 val, int frac);
|
||||
|
@ -26,10 +26,10 @@
|
||||
*/
|
||||
|
||||
/*Some common macros for potential platform-specific optimization.*/
|
||||
#include "opus_types.h"
|
||||
#include "opus/opus_types.h"
|
||||
#include <math.h>
|
||||
#include <limits.h>
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
#if !defined(_ecintrin_H)
|
||||
# define _ecintrin_H (1)
|
||||
|
||||
|
@ -25,12 +25,12 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "entcode.h"
|
||||
#include "arch.h"
|
||||
#include "opus/celt/entcode.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
#if !defined(EC_CLZ)
|
||||
/*This is a fallback for systems where we don't know how to access
|
||||
|
@ -25,14 +25,14 @@
|
||||
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)
|
||||
# define _entcode_H (1)
|
||||
# include <limits.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
|
||||
larger type, you can speed up the decoder by using it here.*/
|
||||
|
@ -25,15 +25,15 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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.
|
||||
This is an entropy decoder based upon \cite{Mar79}, which is itself a
|
||||
|
@ -28,7 +28,7 @@
|
||||
#if !defined(_entdec_H)
|
||||
# define _entdec_H (1)
|
||||
# include <limits.h>
|
||||
# include "entcode.h"
|
||||
# include "opus/celt/entcode.h"
|
||||
|
||||
/*Initializes the decoder.
|
||||
_buf: The input buffer to use.
|
||||
|
@ -25,13 +25,13 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(OPUS_HAVE_CONFIG_H)
|
||||
# include "opus_config.h"
|
||||
#if defined(OPUS_ENABLED)
|
||||
# include "opus/opus_config.h"
|
||||
#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.
|
||||
See entdec.c and the references for implementation details \cite{Mar79,MNW98}.
|
||||
|
@ -28,7 +28,7 @@
|
||||
#if !defined(_entenc_H)
|
||||
# define _entenc_H (1)
|
||||
# include <stddef.h>
|
||||
# include "entcode.h"
|
||||
# include "opus/celt/entcode.h"
|
||||
|
||||
/*Initializes the encoder.
|
||||
_buf: The buffer to store output bytes in.
|
||||
|
@ -33,7 +33,7 @@
|
||||
#define FIXED_DEBUG_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include "opus_defines.h"
|
||||
#include "opus/opus_defines.h"
|
||||
|
||||
#ifdef CELT_C
|
||||
OPUS_EXPORT opus_int64 celt_mips=0;
|
||||
|
@ -30,7 +30,7 @@
|
||||
#define FLOAT_CAST_H
|
||||
|
||||
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
/*============================================================================
|
||||
** On Intel Pentium processors (especially PIII and probably P4), converting
|
||||
|
@ -30,16 +30,16 @@
|
||||
heavily modified to better suit Opus */
|
||||
|
||||
#ifndef SKIP_CONFIG_H
|
||||
# ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
# ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
# 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
|
||||
complex numbers. It also delares the kf_ internal functions.
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -46,7 +46,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef OPUS_FIXED_POINT
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
# define kiss_fft_scalar opus_int32
|
||||
# define kiss_twiddle_scalar opus_int16
|
||||
|
@ -26,12 +26,12 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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). */
|
||||
#define LAPLACE_LOG_MINP (0)
|
||||
|
@ -26,8 +26,8 @@
|
||||
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
|
||||
Laplace-distributed random process
|
||||
|
@ -31,11 +31,11 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "mathops.h"
|
||||
#include "opus/celt/mathops.h"
|
||||
|
||||
/*Compute floor(sqrt(_val)) with exact arithmetic.
|
||||
This has been tested on all possible 32-bit inputs.*/
|
||||
|
@ -34,9 +34,9 @@
|
||||
#ifndef 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 */
|
||||
#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
|
||||
|
||||
#include "os_support.h"
|
||||
#include "opus/celt/os_support.h"
|
||||
|
||||
#ifndef OVERRIDE_CELT_ILOG2
|
||||
/** Integer log in base2. Undefined for zero and negative numbers */
|
||||
|
@ -40,18 +40,18 @@
|
||||
*/
|
||||
|
||||
#ifndef SKIP_CONFIG_H
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 "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
|
||||
|
||||
|
@ -42,9 +42,9 @@
|
||||
#ifndef 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 {
|
||||
int n;
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#if !defined(_mfrngcode_H)
|
||||
# define _mfrngcode_H (1)
|
||||
# include "entcode.h"
|
||||
# include "opus/celt/entcode.h"
|
||||
|
||||
/*Constants used by the entropy encoder/decoder.*/
|
||||
|
||||
|
@ -27,16 +27,16 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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[] = {
|
||||
/*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
|
||||
#ifdef OPUS_FIXED_POINT
|
||||
#include "static_modes_fixed.h"
|
||||
#include "opus/celt/static_modes_fixed.h"
|
||||
#else
|
||||
#include "static_modes_float.h"
|
||||
#include "opus/celt/static_modes_float.h"
|
||||
#endif
|
||||
#endif /* CUSTOM_MODES_ONLY */
|
||||
|
||||
|
@ -26,12 +26,12 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "opus_custom.h"
|
||||
#include "arch.h"
|
||||
#include "opus/opus_custom.h"
|
||||
#include "opus/celt/arch.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
@ -30,12 +30,12 @@
|
||||
#ifndef 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
|
||||
|
||||
|
@ -35,8 +35,8 @@
|
||||
# include "custom_support.h"
|
||||
#endif
|
||||
|
||||
#include "opus_types.h"
|
||||
#include "opus_defines.h"
|
||||
#include "opus/opus_types.h"
|
||||
#include "opus/opus_defines.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
@ -31,16 +31,16 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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,
|
||||
int max_pitch, int *best_pitch
|
||||
|
@ -34,8 +34,8 @@
|
||||
#ifndef 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)
|
||||
#include "x86/pitch_sse.h"
|
||||
|
@ -26,18 +26,18 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "quant_bands.h"
|
||||
#include "laplace.h"
|
||||
#include "opus/celt/quant_bands.h"
|
||||
#include "opus/celt/laplace.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
|
||||
/* Mean energy in each band quantized in Q4 */
|
||||
|
@ -29,11 +29,11 @@
|
||||
#ifndef 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
|
||||
extern const signed char eMeans[25];
|
||||
|
@ -26,18 +26,18 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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]={
|
||||
0,
|
||||
|
@ -40,8 +40,8 @@
|
||||
#define QTHETA_OFFSET 4
|
||||
#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);
|
||||
|
||||
|
@ -32,8 +32,8 @@
|
||||
#ifndef 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))
|
||||
#define VAR_ARRAYS
|
||||
@ -149,7 +149,7 @@ extern char *global_stack_top;
|
||||
|
||||
#endif /* ENABLE_VALGRIND */
|
||||
|
||||
#include "os_support.h"
|
||||
#include "opus/celt/os_support.h"
|
||||
#define VARDECL(type, var) type *var
|
||||
#define ALLOC(var, size, type) var = PUSH(global_stack, size, type)
|
||||
#define SAVE_STACK char *_saved_stack = global_stack;
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* The contents of this file was automatically generated by dump_modes.c
|
||||
with arguments: 48000 960
|
||||
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
|
||||
#define DEF_WINDOW120
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* The contents of this file was automatically generated by dump_modes.c
|
||||
with arguments: 48000 960
|
||||
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
|
||||
#define DEF_WINDOW120
|
||||
|
@ -26,8 +26,8 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@ -40,13 +40,13 @@
|
||||
#endif
|
||||
|
||||
#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 KMAX (128)
|
||||
|
@ -25,8 +25,8 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#define SKIP_CONFIG_H
|
||||
@ -38,11 +38,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#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
|
||||
|
@ -26,22 +26,22 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <math.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 "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
|
||||
# define M_LOG2E 1.4426950408889634074
|
||||
|
@ -25,20 +25,20 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "laplace.h"
|
||||
#include "opus/celt/laplace.h"
|
||||
#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
|
||||
|
||||
|
@ -26,8 +26,8 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#ifndef CUSTOM_MODES
|
||||
@ -36,15 +36,15 @@
|
||||
|
||||
#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 <math.h>
|
||||
|
||||
|
@ -25,8 +25,8 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#define SKIP_CONFIG_H
|
||||
@ -38,13 +38,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#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
|
||||
#define M_PI 3.141592653
|
||||
|
@ -25,8 +25,8 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#ifndef CUSTOM_MODES
|
||||
@ -37,13 +37,13 @@
|
||||
|
||||
#include <stdio.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>
|
||||
#define MAX_SIZE 100
|
||||
|
||||
|
@ -25,11 +25,11 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "opus_types.h"
|
||||
#include "opus/opus_types.h"
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
|
@ -26,17 +26,17 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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)
|
||||
{
|
||||
|
@ -33,9 +33,9 @@
|
||||
#ifndef 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
|
||||
* the pitch and a combination of pulses such that its norm is still equal
|
||||
|
@ -33,7 +33,7 @@
|
||||
#define PITCH_SSE_H
|
||||
|
||||
#include <xmmintrin.h>
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
#define OVERRIDE_XCORR_KERNEL
|
||||
static OPUS_INLINE void xcorr_kernel(const opus_val16 *x, const opus_val16 *y, opus_val32 sum[4], int len)
|
||||
|
@ -9,11 +9,11 @@
|
||||
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
|
||||
* *
|
||||
********************************************************************/
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "internal.h"
|
||||
#include "opus/internal.h"
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
@ -214,7 +214,7 @@ static const char *op_parse_file_url(const char *_src){
|
||||
# include <winsock2.h>
|
||||
# include <ws2tcpip.h>
|
||||
# include <openssl/ssl.h>
|
||||
# include "winerrno.h"
|
||||
# include "opus/winerrno.h"
|
||||
|
||||
typedef SOCKET op_sock;
|
||||
|
||||
|
@ -9,11 +9,11 @@
|
||||
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
|
||||
* *
|
||||
********************************************************************/
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "internal.h"
|
||||
#include "opus/internal.h"
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -9,11 +9,11 @@
|
||||
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
|
||||
* *
|
||||
********************************************************************/
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "internal.h"
|
||||
#include "opus/internal.h"
|
||||
|
||||
#if defined(OP_ENABLE_ASSERTIONS)
|
||||
void op_fatal_impl(const char *_str,const char *_file,int _line){
|
||||
|
@ -25,17 +25,17 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "opus_types.h"
|
||||
#include "opus_defines.h"
|
||||
#include "opus/opus_types.h"
|
||||
#include "opus/opus_defines.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
|
||||
|
||||
#if 0
|
||||
|
@ -28,7 +28,7 @@
|
||||
#ifndef _MLP_H_
|
||||
#define _MLP_H_
|
||||
|
||||
#include "arch.h"
|
||||
#include "opus/celt/arch.h"
|
||||
|
||||
typedef struct {
|
||||
int layers;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* The contents of this file was automatically generated by mlp_train.c
|
||||
It contains multi-layer perceptron (MLP) weights. */
|
||||
|
||||
#include "mlp.h"
|
||||
#include "opus/mlp.h"
|
||||
|
||||
/* RMS error was 0.138320, seed was 1361535663 */
|
||||
|
||||
|
@ -25,12 +25,12 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "opus.h"
|
||||
#include "opus_private.h"
|
||||
#include "opus/opus.h"
|
||||
#include "opus/opus_private.h"
|
||||
|
||||
#ifndef DISABLE_FLOAT_API
|
||||
OPUS_EXPORT void opus_pcm_soft_clip(float *_x, int N, int C, float *declip_mem)
|
||||
|
@ -33,8 +33,8 @@
|
||||
#ifndef 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
|
||||
extern "C" {
|
||||
|
@ -35,7 +35,7 @@
|
||||
#ifndef OPUS_CUSTOM_H
|
||||
#define OPUS_CUSTOM_H
|
||||
|
||||
#include "opus_defines.h"
|
||||
#include "opus/opus_defines.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,8 +25,8 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
# include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
# include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#ifndef OPUS_BUILD
|
||||
@ -38,19 +38,19 @@
|
||||
#endif
|
||||
|
||||
#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 {
|
||||
int celt_dec_offset;
|
||||
|
@ -33,7 +33,7 @@
|
||||
#ifndef OPUS_DEFINES_H
|
||||
#define OPUS_DEFINES_H
|
||||
|
||||
#include "opus_types.h"
|
||||
#include "opus/opus_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -26,19 +26,19 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.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
|
||||
|
||||
|
@ -25,29 +25,29 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#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
|
||||
#include "fixed/structs_FIX.h"
|
||||
#include "opus/silk/fixed/structs_FIX.h"
|
||||
#else
|
||||
#include "float/structs_FLP.h"
|
||||
#include "opus/silk/float/structs_FLP.h"
|
||||
#endif
|
||||
|
||||
#define MAX_ENCODER_BUFFER 480
|
||||
|
@ -25,17 +25,17 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 "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)
|
||||
|
@ -33,7 +33,7 @@
|
||||
#ifndef OPUS_MULTISTREAM_H
|
||||
#define OPUS_MULTISTREAM_H
|
||||
|
||||
#include "opus.h"
|
||||
#include "opus/opus.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,17 +25,17 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 "float_cast.h"
|
||||
#include "os_support.h"
|
||||
#include "opus/celt/float_cast.h"
|
||||
#include "opus/celt/os_support.h"
|
||||
|
||||
struct OpusMSDecoder {
|
||||
ChannelLayout layout;
|
||||
|
@ -25,22 +25,22 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 "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 {
|
||||
int nb_streams;
|
||||
|
@ -29,9 +29,9 @@
|
||||
#ifndef 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 {
|
||||
unsigned char toc;
|
||||
|
@ -14,11 +14,11 @@
|
||||
last mod: $Id: vorbisfile.c 17573 2010-10-27 14:53:59Z xiphmont $
|
||||
|
||||
********************************************************************/
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "internal.h"
|
||||
#include "opus/internal.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -26,7 +26,7 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "opusfile.h"
|
||||
#include "opus/opusfile.h"
|
||||
|
||||
/*This implementation is largely based off of libvorbisfile.
|
||||
All of the Ogg bits work roughly the same, though I have made some
|
||||
|
@ -25,13 +25,13 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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)
|
||||
|
@ -25,11 +25,11 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "opus.h"
|
||||
#include "opus/opus.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -31,12 +31,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
/* Therefore the result is not accurate NLSFs, but the two */
|
||||
/* functions are accurate inverses of each other */
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 */
|
||||
#define BIN_DIV_STEPS_A2NLSF_FIX 3 /* must be no higher than 16 - log2( LSF_COS_TAB_SZ_FIX ) */
|
||||
|
@ -28,11 +28,11 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#ifndef 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
|
||||
extern "C"
|
||||
|
@ -25,12 +25,12 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 */
|
||||
static OPUS_INLINE void silk_CNG_exc(
|
||||
|
@ -25,15 +25,15 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
#ifdef OPUS_FIXED_POINT
|
||||
#include "main_FIX.h"
|
||||
#include "opus/silk/fixed/main_FIX.h"
|
||||
#else
|
||||
#include "main_FLP.h"
|
||||
#include "opus/silk/float/main_FLP.h"
|
||||
#endif
|
||||
#include "tuning_parameters.h"
|
||||
#include "opus/silk/tuning_parameters.h"
|
||||
|
||||
/* High-pass filter with cutoff frequency adaptation based on pitch lag statistics */
|
||||
void silk_HP_variable_cutoff(
|
||||
|
@ -25,12 +25,12 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "SigProc_FIX.h"
|
||||
#include "celt_lpc.h"
|
||||
#include "opus/silk/SigProc_FIX.h"
|
||||
#include "opus/celt/celt_lpc.h"
|
||||
|
||||
/*******************************************/
|
||||
/* LPC analysis filter */
|
||||
|
@ -25,11 +25,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "SigProc_FIX.h"
|
||||
#include "opus/silk/SigProc_FIX.h"
|
||||
|
||||
#define QA 24
|
||||
#define A_LIMIT SILK_FIX_CONST( 0.99975, QA )
|
||||
|
@ -25,8 +25,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
[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 */
|
||||
static OPUS_INLINE void silk_LP_interpolate_filter_taps(
|
||||
|
@ -25,8 +25,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
/* 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 */
|
||||
/* 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
|
||||
|
||||
|
@ -25,11 +25,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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 */
|
||||
void silk_NLSF_VQ(
|
||||
|
@ -25,12 +25,12 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#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
|
||||
|
@ -25,11 +25,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "silk_main.h"
|
||||
#include "opus/silk/silk_main.h"
|
||||
|
||||
/* Predictive dequantizer for NLSF residuals */
|
||||
static OPUS_INLINE void silk_NLSF_residual_dequant( /* O Returns RD value in Q30 */
|
||||
|
@ -25,11 +25,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "silk_main.h"
|
||||
#include "opus/silk/silk_main.h"
|
||||
|
||||
/* Delayed-decision quantizer for NLSF residuals */
|
||||
opus_int32 silk_NLSF_del_dec_quant( /* O Returns RD value in Q25 */
|
||||
|
@ -25,12 +25,12 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "silk_main.h"
|
||||
#include "stack_alloc.h"
|
||||
#include "opus/silk/silk_main.h"
|
||||
#include "opus/celt/stack_alloc.h"
|
||||
|
||||
/***********************/
|
||||
/* NLSF vector encoder */
|
||||
|
@ -25,8 +25,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
/* NLSF stabilizer: */
|
||||
@ -38,7 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
/* - Output are sorted NLSF coefficients */
|
||||
/* */
|
||||
|
||||
#include "SigProc_FIX.h"
|
||||
#include "opus/silk/SigProc_FIX.h"
|
||||
|
||||
/* Constant Definitions */
|
||||
#define MAX_LOOPS 20
|
||||
|
@ -25,11 +25,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_HAVE_CONFIG_H
|
||||
#include "opus_config.h"
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "silk_main.h"
|
||||
#include "opus/silk/silk_main.h"
|
||||
|
||||
/* Unpack predictor values and indices for entropy coding tables */
|
||||
void silk_NLSF_unpack(
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user