diff options
author | Jean-Marc Valin <jmvalin@amazon.com> | 2022-12-21 03:30:31 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@amazon.com> | 2022-12-21 03:30:31 -0500 |
commit | 87f8270f7959535c4fb2a2d9c8c6842466e49785 (patch) | |
tree | 07c5332cc26a052a9889792fd47e00779ad1ea3a /include/opus_defines.h | |
parent | df7e01521363893fc3e83330c424c5d74443a563 (diff) | |
download | opus-87f8270f7959535c4fb2a2d9c8c6842466e49785.tar.gz |
Controlling DRED on the encode side
Diffstat (limited to 'include/opus_defines.h')
-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 94b9e0d9..3ca90188 100644 --- a/include/opus_defines.h +++ b/include/opus_defines.h @@ -169,6 +169,8 @@ extern "C" { #define OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST 4046 #define OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST 4047 #define OPUS_GET_IN_DTX_REQUEST 4049 +#define OPUS_SET_DRED_DURATION_REQUEST 4050 +#define OPUS_GET_DRED_DURATION_REQUEST 4051 /** Defines for the presence of extended APIs. */ #define OPUS_HAVE_OPUS_PROJECTION_H @@ -620,6 +622,14 @@ extern "C" { * @hideinitializer */ #define OPUS_GET_PREDICTION_DISABLED(x) OPUS_GET_PREDICTION_DISABLED_REQUEST, __opus_check_int_ptr(x) +/** If non-zero, enables Deep Redundancy (DRED) and use the specified maximum number of 10-ms redundant frames + * @hideinitializer */ +#define OPUS_SET_DRED_DURATION(x) OPUS_SET_DRED_DURATION_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured Deep Redundancy (DRED) maximum number of frames. + * @hideinitializer */ +#define OPUS_GET_DRED_DURATION(x) OPUS_GET_DRED_DURATION_REQUEST, __opus_check_int_ptr(x) + + /**@}*/ /** @defgroup opus_genericctls Generic CTLs |