Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/silk
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2012-09-10 12:48:22 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-09-12 23:54:17 +0400
commitd006b781ca528fa7d9da7b02480846fedd3b82a1 (patch)
tree87b50bbdfd703ed5e4dde3d147cbdb0f73913493 /silk
parentd509e9f2a82ed39465b9ae864c69e4fde70c3042 (diff)
Mark functions static if they are only used in their own translation unit.
This allows the compiler to perform more optimization on them as it knows how the functions are being called. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Diffstat (limited to 'silk')
-rw-r--r--silk/API.h8
-rw-r--r--silk/control_codec.c12
-rw-r--r--silk/enc_API.c10
-rw-r--r--silk/float/prefilter_FLP.c2
4 files changed, 16 insertions, 16 deletions
diff --git a/silk/API.h b/silk/API.h
index c77ad2f5..4b8ca12a 100644
--- a/silk/API.h
+++ b/silk/API.h
@@ -67,14 +67,6 @@ opus_int silk_InitEncoder( /* O Returns error co
silk_EncControlStruct *encStatus /* O Encoder Status */
);
-/***************************************/
-/* Read control structure from encoder */
-/***************************************/
-opus_int silk_QueryEncoder( /* O Returns error code */
- const void *encState, /* I State */
- silk_EncControlStruct *encStatus /* O Encoder Status */
-);
-
/**************************/
/* Encode frame with Silk */
/**************************/
diff --git a/silk/control_codec.c b/silk/control_codec.c
index d0ed528f..ecc338ce 100644
--- a/silk/control_codec.c
+++ b/silk/control_codec.c
@@ -38,18 +38,18 @@ POSSIBILITY OF SUCH DAMAGE.
#include "tuning_parameters.h"
#include "pitch_est_defines.h"
-opus_int silk_setup_resamplers(
+static opus_int silk_setup_resamplers(
silk_encoder_state_Fxx *psEnc, /* I/O */
opus_int fs_kHz /* I */
);
-opus_int silk_setup_fs(
+static opus_int silk_setup_fs(
silk_encoder_state_Fxx *psEnc, /* I/O */
opus_int fs_kHz, /* I */
opus_int PacketSize_ms /* I */
);
-opus_int silk_setup_complexity(
+static opus_int silk_setup_complexity(
silk_encoder_state *psEncC, /* I/O */
opus_int Complexity /* I */
);
@@ -131,7 +131,7 @@ opus_int silk_control_encoder(
return ret;
}
-opus_int silk_setup_resamplers(
+static opus_int silk_setup_resamplers(
silk_encoder_state_Fxx *psEnc, /* I/O */
opus_int fs_kHz /* I */
)
@@ -186,7 +186,7 @@ opus_int silk_setup_resamplers(
return ret;
}
-opus_int silk_setup_fs(
+static opus_int silk_setup_fs(
silk_encoder_state_Fxx *psEnc, /* I/O */
opus_int fs_kHz, /* I */
opus_int PacketSize_ms /* I */
@@ -299,7 +299,7 @@ opus_int silk_setup_fs(
return ret;
}
-opus_int silk_setup_complexity(
+static opus_int silk_setup_complexity(
silk_encoder_state *psEncC, /* I/O */
opus_int Complexity /* I */
)
diff --git a/silk/enc_API.c b/silk/enc_API.c
index c0143fd5..ec7915ce 100644
--- a/silk/enc_API.c
+++ b/silk/enc_API.c
@@ -40,6 +40,14 @@ POSSIBILITY OF SUCH DAMAGE.
#include "main_FLP.h"
#endif
+/***************************************/
+/* Read control structure from encoder */
+/***************************************/
+static opus_int silk_QueryEncoder( /* O Returns error code */
+ const void *encState, /* I State */
+ silk_EncControlStruct *encStatus /* O Encoder Status */
+);
+
/****************************************/
/* Encoder functions */
/****************************************/
@@ -90,7 +98,7 @@ opus_int silk_InitEncoder( /* O Returns error co
/***************************************/
/* Read control structure from encoder */
/***************************************/
-opus_int silk_QueryEncoder( /* O Returns error code */
+static opus_int silk_QueryEncoder( /* O Returns error code */
const void *encState, /* I State */
silk_EncControlStruct *encStatus /* O Encoder Status */
)
diff --git a/silk/float/prefilter_FLP.c b/silk/float/prefilter_FLP.c
index 95b32da5..d6c84398 100644
--- a/silk/float/prefilter_FLP.c
+++ b/silk/float/prefilter_FLP.c
@@ -47,7 +47,7 @@ static inline void silk_prefilt_FLP(
opus_int length /* I */
);
-void silk_warped_LPC_analysis_filter_FLP(
+static void silk_warped_LPC_analysis_filter_FLP(
silk_float state[], /* I/O State [order + 1] */
silk_float res[], /* O Residual signal [length] */
const silk_float coef[], /* I Coefficients [order] */