Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-15 22:50:38 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-15 22:50:38 +0400
commitcbe93e23be564195d8bcc9842aeb764c32e3fe48 (patch)
tree802f6dc9b49960a2bb82da4d7fa2430d60234b6b /silk/enc_API.c
parentaad4117d780cee87e1be03e4a108b9e601367dc8 (diff)
Adds OPUS_SET_PREDICTION_DISABLED() ctl to force "independent" frames
Works by turning off pitch and energy prediction in CELT, while setting first_frame_after_reset in SILK to disable pitch and LSF interpolation and reduce LPC gain.
Diffstat (limited to 'silk/enc_API.c')
-rw-r--r--silk/enc_API.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/silk/enc_API.c b/silk/enc_API.c
index 44b9ab35..b3424872 100644
--- a/silk/enc_API.c
+++ b/silk/enc_API.c
@@ -156,6 +156,11 @@ opus_int silk_Encode( /* O Returns error co
opus_int transition, curr_block, tot_blocks;
SAVE_STACK;
+ if (encControl->reducedDependency)
+ {
+ psEnc->state_Fxx[0].sCmn.first_frame_after_reset = 1;
+ psEnc->state_Fxx[1].sCmn.first_frame_after_reset = 1;
+ }
psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded = psEnc->state_Fxx[ 1 ].sCmn.nFramesEncoded = 0;
/* Check values in encoder control structure */