Commit e0220e08 authored by Ron's avatar Ron Committed by Ralph Giles
Browse files

Show how to turn off prediction with libopus

parent d3f08673
...@@ -1299,8 +1299,16 @@ The drawback of this approach is that it creates a small discontinuity ...@@ -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: An encoder MAY avoid this discontinuity by using the following procedure:
<list style="numbers"> <list style="numbers">
<t>Encode the last frame of the first segment as an independent frame by <t>Encode the last frame of the first segment as an independent frame by
turning off all forms of inter-frame prediction. turning off all forms of inter-frame prediction.</t>
De-emphasis is allowed.</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 <t>Set the granulepos of the last page to a point near the end of the last
frame.</t> frame.</t>
<t>Begin the second segment with a copy of the last frame of the first <t>Begin the second segment with a copy of the last frame of the first
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment