diff options
Diffstat (limited to 'lib/rbcodec/codecs/libopus/opus_defines.h')
-rw-r--r-- | lib/rbcodec/codecs/libopus/opus_defines.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libopus/opus_defines.h b/lib/rbcodec/codecs/libopus/opus_defines.h index 3474e84c43..265089f65e 100644 --- a/lib/rbcodec/codecs/libopus/opus_defines.h +++ b/lib/rbcodec/codecs/libopus/opus_defines.h | |||
@@ -98,6 +98,18 @@ extern "C" { | |||
98 | # define OPUS_RESTRICT restrict | 98 | # define OPUS_RESTRICT restrict |
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | #if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) ) | ||
102 | # if OPUS_GNUC_PREREQ(2,7) | ||
103 | # define OPUS_INLINE __inline__ | ||
104 | # elif (defined(_MSC_VER)) | ||
105 | # define OPUS_INLINE __inline | ||
106 | # else | ||
107 | # define OPUS_INLINE | ||
108 | # endif | ||
109 | #else | ||
110 | # define OPUS_INLINE inline | ||
111 | #endif | ||
112 | |||
101 | /**Warning attributes for opus functions | 113 | /**Warning attributes for opus functions |
102 | * NONNULL is not used in OPUS_BUILD to avoid the compiler optimizing out | 114 | * NONNULL is not used in OPUS_BUILD to avoid the compiler optimizing out |
103 | * some paranoid null checks. */ | 115 | * some paranoid null checks. */ |
@@ -151,6 +163,8 @@ extern "C" { | |||
151 | #define OPUS_GET_LAST_PACKET_DURATION_REQUEST 4039 | 163 | #define OPUS_GET_LAST_PACKET_DURATION_REQUEST 4039 |
152 | #define OPUS_SET_EXPERT_FRAME_DURATION_REQUEST 4040 | 164 | #define OPUS_SET_EXPERT_FRAME_DURATION_REQUEST 4040 |
153 | #define OPUS_GET_EXPERT_FRAME_DURATION_REQUEST 4041 | 165 | #define OPUS_GET_EXPERT_FRAME_DURATION_REQUEST 4041 |
166 | #define OPUS_SET_PREDICTION_DISABLED_REQUEST 4042 | ||
167 | #define OPUS_GET_PREDICTION_DISABLED_REQUEST 4043 | ||
154 | 168 | ||
155 | /* Don't use 4045, it's already taken by OPUS_GET_GAIN_REQUEST */ | 169 | /* Don't use 4045, it's already taken by OPUS_GET_GAIN_REQUEST */ |
156 | 170 | ||
@@ -194,7 +208,6 @@ extern "C" { | |||
194 | #define OPUS_FRAMESIZE_20_MS 5004 /**< Use 20 ms frames */ | 208 | #define OPUS_FRAMESIZE_20_MS 5004 /**< Use 20 ms frames */ |
195 | #define OPUS_FRAMESIZE_40_MS 5005 /**< Use 40 ms frames */ | 209 | #define OPUS_FRAMESIZE_40_MS 5005 /**< Use 40 ms frames */ |
196 | #define OPUS_FRAMESIZE_60_MS 5006 /**< Use 60 ms frames */ | 210 | #define OPUS_FRAMESIZE_60_MS 5006 /**< Use 60 ms frames */ |
197 | #define OPUS_FRAMESIZE_VARIABLE 5010 /**< Optimize the frame size dynamically */ | ||
198 | 211 | ||
199 | /**@}*/ | 212 | /**@}*/ |
200 | 213 | ||
@@ -575,6 +588,14 @@ extern "C" { | |||
575 | * @hideinitializer */ | 588 | * @hideinitializer */ |
576 | #define OPUS_GET_EXPERT_FRAME_DURATION(x) OPUS_GET_EXPERT_FRAME_DURATION_REQUEST, __opus_check_int_ptr(x) | 589 | #define OPUS_GET_EXPERT_FRAME_DURATION(x) OPUS_GET_EXPERT_FRAME_DURATION_REQUEST, __opus_check_int_ptr(x) |
577 | 590 | ||
591 | /** If set to 1, disables almost all use of prediction, making frames almost | ||
592 | completely independent. This reduces quality. (default : 0) | ||
593 | * @hideinitializer */ | ||
594 | #define OPUS_SET_PREDICTION_DISABLED(x) OPUS_SET_PREDICTION_DISABLED_REQUEST, __opus_check_int(x) | ||
595 | /** Gets the encoder's configured prediction status. | ||
596 | * @hideinitializer */ | ||
597 | #define OPUS_GET_PREDICTION_DISABLED(x) OPUS_GET_PREDICTION_DISABLED_REQUEST, __opus_check_int_ptr(x) | ||
598 | |||
578 | /**@}*/ | 599 | /**@}*/ |
579 | 600 | ||
580 | /** @defgroup opus_genericctls Generic CTLs | 601 | /** @defgroup opus_genericctls Generic CTLs |