|
These macros are used with the opus_decoder_ctl
and opus_encoder_ctl
calls to generate a particular request.
More...
Macros | |
#define | OPUS_RESET_STATE |
Resets the codec state to be equivalent to a freshly initialized state. | |
#define | OPUS_GET_FINAL_RANGE(x) |
Gets the final state of the codec's entropy coder. | |
#define | OPUS_GET_PITCH(x) |
Gets the pitch of the last decoded frame, if available. | |
#define | OPUS_GET_BANDWIDTH(x) |
Gets the encoder's configured bandpass or the decoder's last bandpass. | |
#define | OPUS_SET_LSB_DEPTH(x) |
Configures the depth of signal being encoded. | |
#define | OPUS_GET_LSB_DEPTH(x) |
Gets the encoder's configured signal depth. |
These macros are used with the opus_decoder_ctl
and opus_encoder_ctl
calls to generate a particular request.
When called on an OpusDecoder
they apply to that particular decoder instance. When called on an OpusEncoder
they apply to the corresponding setting on that encoder instance, if present.
Some usage examples:
#define OPUS_GET_BANDWIDTH | ( | x | ) |
Gets the encoder's configured bandpass or the decoder's last bandpass.
[out] | x | opus_int32 * : Returns one of the following values:
|
#define OPUS_GET_FINAL_RANGE | ( | x | ) |
Gets the final state of the codec's entropy coder.
This is used for testing purposes, The encoder and decoder state should be identical after coding a payload (assuming no data corruption or software bugs)
[out] | x | opus_uint32 * : Entropy coder state |
#define OPUS_GET_LSB_DEPTH | ( | x | ) |
Gets the encoder's configured signal depth.
[out] | x | opus_int32 * : Input precision in bits, between 8 and 24 (default: 24). |
#define OPUS_GET_PITCH | ( | x | ) |
Gets the pitch of the last decoded frame, if available.
This can be used for any post-processing algorithm requiring the use of pitch, e.g. time stretching/shortening. If the last frame was not voiced, or if the pitch was not coded in the frame, then zero is returned.
This CTL is only implemented for decoder instances.
[out] | x | opus_int32 * : pitch period at 48 kHz (or 0 if not available) |
#define OPUS_RESET_STATE |
Resets the codec state to be equivalent to a freshly initialized state.
This should be called when switching streams in order to prevent the back to back decoding from giving different results from one at a time decoding.
#define OPUS_SET_LSB_DEPTH | ( | x | ) |
Configures the depth of signal being encoded.
This is a hint which helps the encoder identify silence and near-silence.
[in] | x | opus_int32 : Input precision in bits, between 8 and 24 (default: 24). |
For more information visit the Opus Website. |
©2012 Generated on Fri Sep 21 2012 12:06:40 for Opus by doxygen 1.8.1.1 |