shithub: opus

Download patch

ref: 25c2f620b6de0f47a9d7e6e7859c035b31031122
parent: 3bd0231be14b77ab83f3afe2785f82338a1418b8
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Tue Jun 23 07:41:11 EDT 2015

Improve OPUS_GET_LSB_DEPTH documentation.

We use at most 16 when using fixed-point (for the API or the
 internal implementation), but we didn't tell anyone this.

--- a/include/opus_defines.h
+++ b/include/opus_defines.h
@@ -525,6 +525,9 @@
 #define OPUS_GET_DTX(x) OPUS_GET_DTX_REQUEST, __opus_check_int_ptr(x)
 /** Configures the depth of signal being encoded.
   * This is a hint which helps the encoder identify silence and near-silence.
+  * When using opus_encode() * instead of opus_encode_float(), or when libopus
+  * is compiled for fixed-point, the encoder uses the minimum of the value
+  * set here and the value 16.
   * @see OPUS_GET_LSB_DEPTH
   * @param[in] x <tt>opus_int32</tt>: Input precision in bits, between 8 and 24
   *                                   (default: 24).