summaryrefslogtreecommitdiff
path: root/silk/control.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/control.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/control.h')
-rw-r--r--silk/control.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/silk/control.h b/silk/control.h
index ac1b288e..c2f906b8 100644
--- a/silk/control.h
+++ b/silk/control.h
@@ -83,6 +83,9 @@ typedef struct {
/* I: Flag to use constant bitrate */
opus_int useCBR;
+ /* I: Maximum number of bits allowed for the frame */
+ opus_int maxBits;
+
/* I: Causes a smooth downmix to mono */
opus_int toMono;