Define a fallback version string.
[opus.git] / src / opus_encoder.h
index aec775b..7900835 100644 (file)
 
 #include "celt.h"
 #include "opus.h"
-#include "SKP_Silk_SDK_API.h"
+#include "silk_API.h"
 
 /* FIXME: This is only valid for 48 kHz */
-#define ENCODER_DELAY_COMPENSATION 130
+#define MAX_ENCODER_BUFFER 480
 
 struct OpusEncoder {
-       CELTEncoder *celt_enc;
-       SKP_SILK_SDK_EncControlStruct silk_mode;
-       void        *silk_enc;
+       int          celt_enc_offset;
+       int          silk_enc_offset;
+       silk_EncControlStruct silk_mode;
+    int          hybrid_stereo_width_Q14;
        int          channels;
        int          stream_channels;
+    int          force_mono;
 
     int          mode;
+    int          user_mode;
     int          prev_mode;
+    int          signal_type;
        int          bandwidth;
+       int          user_bandwidth;
+       int          voice_ratio;
     /* Sampling rate (at the API level) */
     int          Fs;
     int          use_vbr;
+    int          vbr_constraint;
     int          bitrate_bps;
+    int          user_bitrate_bps;
+    int          encoder_buffer;
+    int          delay_compensation;
+    int          first;
+    short        delay_buffer[MAX_ENCODER_BUFFER*2];
 
-    short        delay_buffer[ENCODER_DELAY_COMPENSATION*2];
-
-#ifdef OPUS_TEST_RANGE_CODER_STATE
     int          rangeFinal;
-#endif
 };