summaryrefslogtreecommitdiff
path: root/silk/float/main_FLP.h
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-20 00:39:41 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-20 00:39:41 -0400
commit294bfec27b82f879e3c3004d31bb91bcb34014f4 (patch)
tree94a6332cc1df41ec84b453ef76ee8118b95bfd8f /silk/float/main_FLP.h
parentdbf2ea841e5b022f0b6d15a606dd7288f25c35dd (diff)
downloadopus-294bfec27b82f879e3c3004d31bb91bcb34014f4.tar.gz
Implements hard CBR for SILK
This is achieved by running the encoding process in a loop and padding when we don't reach the exact rate. It also implements VBR-with-cap, which means we no longer need to artificially decrease the SILK bandwidth when it's close to the cap.
Diffstat (limited to 'silk/float/main_FLP.h')
-rw-r--r--silk/float/main_FLP.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/silk/float/main_FLP.h b/silk/float/main_FLP.h
index 20a766b1..07e31ab6 100644
--- a/silk/float/main_FLP.h
+++ b/silk/float/main_FLP.h
@@ -64,7 +64,9 @@ opus_int silk_encode_frame_FLP(
silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
opus_int32 *pnBytesOut, /* O Number of payload bytes; */
ec_enc *psRangeEnc, /* I/O compressor data structure */
- opus_int condCoding /* I The type of conditional coding to use */
+ opus_int condCoding, /* I The type of conditional coding to use */
+ opus_int maxBits, /* I If > 0: maximum number of output bits */
+ opus_int useCBR /* I Flag to force constant-bitrate operation */
);
/* Initializes the Silk encoder state */