diff options
author | Ron <ron@debian.org> | 2014-01-18 09:10:18 +1030 |
---|---|---|
committer | Ralph Giles <giles@mozilla.com> | 2014-01-17 16:03:24 -0800 |
commit | e0220e08f526f9ca41b12d640ac52d26e1ccec05 (patch) | |
tree | 3649b347697eae85d220096942f79c1af2a9a6ad | |
parent | d3f0867395074011a51ce983b41393a20b38c460 (diff) | |
download | opus-e0220e08f526f9ca41b12d640ac52d26e1ccec05.tar.gz |
Show how to turn off prediction with libopus
-rw-r--r-- | doc/draft-ietf-codec-oggopus.xml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/draft-ietf-codec-oggopus.xml b/doc/draft-ietf-codec-oggopus.xml index 5d2d342b..84c51719 100644 --- a/doc/draft-ietf-codec-oggopus.xml +++ b/doc/draft-ietf-codec-oggopus.xml @@ -1299,8 +1299,16 @@ The drawback of this approach is that it creates a small discontinuity An encoder MAY avoid this discontinuity by using the following procedure: <list style="numbers"> <t>Encode the last frame of the first segment as an independent frame by - turning off all forms of inter-frame prediction. -De-emphasis is allowed.</t> + turning off all forms of inter-frame prediction.</t> +<figure align="center"> +<preamble> +In encoders derived from the reference implementation, this can be done with: +</preamble> +<artwork align="center"><![CDATA[ + opus_encoder_ctl(encoder_state, OPUS_SET_PREDICTION_DISABLED, 1); +]]></artwork> +</figure> +<t>De-emphasis is allowed.</t> <t>Set the granulepos of the last page to a point near the end of the last frame.</t> <t>Begin the second segment with a copy of the last frame of the first |