audio-quantize: update docs

Update docs
Add another flag for the quantizer
This commit is contained in:
Wim Taymans 2015-11-06 13:02:19 +01:00
parent 1635bc0a45
commit 59db8ce542
2 changed files with 24 additions and 2 deletions

View file

@ -420,6 +420,9 @@ count_power (guint v)
* Output samples will be quantized to a multiple of @quantizer. Better
* performance is achieved when @quantizer is a power of 2.
*
* Dithering and noise-shaping can be performed during quantization with
* the @dither and @ns parameters.
*
* Returns: a new #GstAudioQuantize. Free with gst_audio_quantize_free().
*/
GstAudioQuantize *
@ -472,6 +475,18 @@ gst_audio_quantize_free (GstAudioQuantize * quant)
g_slice_free (GstAudioQuantize, quant);
}
/**
* gst_audio_quantize_samples:
* @quant: a #GstAudioQuantize
* @src: source samples
* @dst: output samples
* @samples: number of samples
*
* Perform quantization on @samples in @src and write the result to @dst.
*
* @src and @dst may point to the same memory location, in which case samples will be
* modified in-place.
*/
void
gst_audio_quantize_samples (GstAudioQuantize * quant,
const gpointer src, gpointer dst, guint samples)

View file

@ -65,10 +65,17 @@ typedef enum
GST_AUDIO_NOISE_SHAPING_HIGH
} GstAudioNoiseShapingMethod;
/**
* GstAudioQuantizeFlags:
* @GST_AUDIO_QUANTIZE_FLAG_NONE: no flags
* @GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED: samples are non-interleaved
*
* Extra flags that can be passed to gst_audio_quantize_new()
*/
typedef enum
{
GST_AUDIO_QUANTIZE_FLAG_NONE = 0
GST_AUDIO_QUANTIZE_FLAG_NONE = 0,
GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = (1 << 0)
} GstAudioQuantizeFlags;