diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-15 22:50:38 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-15 22:50:38 +0400 |
commit | cbe93e23be564195d8bcc9842aeb764c32e3fe48 (patch) | |
tree | 802f6dc9b49960a2bb82da4d7fa2430d60234b6b /include | |
parent | aad4117d780cee87e1be03e4a108b9e601367dc8 (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 'include')
-rw-r--r-- | include/opus_defines.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/opus_defines.h b/include/opus_defines.h index c39a60e3..265089f6 100644 --- a/include/opus_defines.h +++ b/include/opus_defines.h @@ -163,6 +163,8 @@ extern "C" { #define OPUS_GET_LAST_PACKET_DURATION_REQUEST 4039 #define OPUS_SET_EXPERT_FRAME_DURATION_REQUEST 4040 #define OPUS_GET_EXPERT_FRAME_DURATION_REQUEST 4041 +#define OPUS_SET_PREDICTION_DISABLED_REQUEST 4042 +#define OPUS_GET_PREDICTION_DISABLED_REQUEST 4043 /* Don't use 4045, it's already taken by OPUS_GET_GAIN_REQUEST */ @@ -586,6 +588,14 @@ extern "C" { * @hideinitializer */ #define OPUS_GET_EXPERT_FRAME_DURATION(x) OPUS_GET_EXPERT_FRAME_DURATION_REQUEST, __opus_check_int_ptr(x) +/** If set to 1, disables almost all use of prediction, making frames almost + completely independent. This reduces quality. (default : 0) + * @hideinitializer */ +#define OPUS_SET_PREDICTION_DISABLED(x) OPUS_SET_PREDICTION_DISABLED_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured prediction status. + * @hideinitializer */ +#define OPUS_GET_PREDICTION_DISABLED(x) OPUS_GET_PREDICTION_DISABLED_REQUEST, __opus_check_int_ptr(x) + /**@}*/ /** @defgroup opus_genericctls Generic CTLs |