shithub: opus

Download patch

ref: 88e5cdc5ad86113e916b82dac813f6a21e2f7786
parent: 1e03a6eb0472cc78e33541af11733f4f27ed3219
author: Timothy B. Terriberry <[email protected]>
date: Mon Oct 17 09:16:23 EDT 2011

Fix fixed-point build bustage from 53cc1a03.

--- a/silk/fixed/encode_frame_FIX.c
+++ b/silk/fixed/encode_frame_FIX.c
@@ -32,6 +32,14 @@
 #include "main_FIX.h"
 #include "tuning_parameters.h"
 
+/* Low Bitrate Redundancy (LBRR) encoding. Reuse all parameters but encode with lower bitrate           */
+static inline void silk_LBRR_encode_FIX(
+    silk_encoder_state_FIX          *psEnc,             /* I/O  Pointer to Silk FIX encoder state           */
+    silk_encoder_control_FIX        *psEncCtrl,         /* I/O  Pointer to Silk FIX encoder control struct  */
+    const opus_int16                 xfw[],              /* I    Input signal                                */
+    opus_int                         condCoding         /* I    The type of conditional coding used so far for this frame */
+);
+
 /****************/
 /* Encode frame */
 /****************/
@@ -121,7 +129,7 @@
     /* Process gains                        */
     /****************************************/
 TIC(PROCESS_GAINS)
-    silk_process_gains_FIX( psEnc, &sEncCtrl );
+    silk_process_gains_FIX( psEnc, &sEncCtrl, condCoding );
 TOC(PROCESS_GAINS)
 
     /*****************************************/
--- a/silk/fixed/main_FIX.h
+++ b/silk/fixed/main_FIX.h
@@ -63,13 +63,6 @@
     opus_int                         condCoding         /* I    The type of conditional coding to use   */
 );
 
-/* Low Bitrate Redundancy (LBRR) encoding. Reuse all parameters but encode with lower bitrate           */
-void silk_LBRR_encode_FIX(
-    silk_encoder_state_FIX          *psEnc,             /* I/O  Pointer to Silk FIX encoder state           */
-    silk_encoder_control_FIX        *psEncCtrl,         /* I/O  Pointer to Silk FIX encoder control struct  */
-    const opus_int16                 xfw[]               /* I    Input signal                                */
-);
-
 /* Initializes the Silk encoder state */
 opus_int silk_init_encoder(
     silk_encoder_state_FIX          *psEnc              /* I/O  Pointer to Silk FIX encoder state           */
--- a/silk/fixed/process_gains_FIX.c
+++ b/silk/fixed/process_gains_FIX.c
@@ -35,7 +35,7 @@
 /* Processing of gains */
 void silk_process_gains_FIX(
     silk_encoder_state_FIX      *psEnc,         /* I/O  Encoder state_FIX                           */
-    silk_encoder_control_FIX    *psEncCtrl      /* I/O  Encoder control_FIX                         */
+    silk_encoder_control_FIX    *psEncCtrl,     /* I/O  Encoder control_FIX                         */
     opus_int                     condCoding     /* The type of conditional coding to use            */
 )
 {