diff options
author | Ralph Giles <giles@mozilla.com> | 2013-05-24 21:23:41 +0400 |
---|---|---|
committer | Ralph Giles <giles@mozilla.com> | 2013-05-24 21:23:41 +0400 |
commit | b243dca30cda9062ad520bf28205abd4c53199b3 (patch) | |
tree | 30aefe7f984e9a1e742787eb7250c01df1b02420 | |
parent | 9e85220f21bc0bb8e4fc3437a643a03cee1247a9 (diff) |
Wrap lookahead code example in a figure.
-rw-r--r-- | doc/draft-ietf-codec-oggopus.xml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/draft-ietf-codec-oggopus.xml b/doc/draft-ietf-codec-oggopus.xml index 8731f48d..3934ef0e 100644 --- a/doc/draft-ietf-codec-oggopus.xml +++ b/doc/draft-ietf-codec-oggopus.xml @@ -1142,11 +1142,17 @@ An implementation could reasonably choose any of these numbers for its internal <t> When encoding Opus files, Ogg encoders should take into account the algorithmic delay of the Opus encoder. +</t> +<figure align="center"> +<preamble> In encoders derived from the reference implementation, the number of samples can be queried with: - - opus_encoder_ctl(encoder_state, OPUS_GET_LOOKAHEAD, &samples_delay); - +</preamble> +<artwork align="center"><![CDATA[ + opus_encoder_ctl(encoder_state, OPUS_GET_LOOKAHEAD, &samples_delay); +]]></artwork> +</figure> +<t> To achieve good quality in the very first samples of a stream, the Ogg encoder MAY use LPC extrapolation to generate at least 120 extra samples (extra_samples) at the beginning to avoid the Opus encoder having to encode |