gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2004 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
2015-11-06 11:10:48 +00:00
|
|
|
* (C) 2015 Wim Taymans <wim.taymans@gmail.com>
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
*
|
2015-11-06 11:10:48 +00:00
|
|
|
* audioconverter.h: audio format conversion library
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
*/
|
|
|
|
|
2015-11-06 11:10:48 +00:00
|
|
|
#ifndef __GST_AUDIO_CONVERTER_H__
|
|
|
|
#define __GST_AUDIO_CONVERTER_H__
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2011-08-18 17:15:03 +00:00
|
|
|
#include <gst/audio/audio.h>
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
|
2017-12-01 13:14:30 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2015-11-06 11:10:48 +00:00
|
|
|
typedef struct _GstAudioConverter GstAudioConverter;
|
2010-03-11 14:38:18 +00:00
|
|
|
|
2015-11-13 14:32:29 +00:00
|
|
|
/**
|
|
|
|
* GST_AUDIO_CONVERTER_OPT_RESAMPLER_METHOD:
|
|
|
|
*
|
|
|
|
* #GST_TYPE_AUDIO_RESAMPLER_METHOD, The resampler method to use when
|
|
|
|
* changing sample rates.
|
|
|
|
* Default is #GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL.
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_CONVERTER_OPT_RESAMPLER_METHOD "GstAudioConverter.resampler-method"
|
|
|
|
|
2015-11-06 11:10:48 +00:00
|
|
|
/**
|
|
|
|
* GST_AUDIO_CONVERTER_OPT_DITHER_METHOD:
|
|
|
|
*
|
|
|
|
* #GST_TYPE_AUDIO_DITHER_METHOD, The dither method to use when
|
|
|
|
* changing bit depth.
|
|
|
|
* Default is #GST_AUDIO_DITHER_NONE.
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_CONVERTER_OPT_DITHER_METHOD "GstAudioConverter.dither-method"
|
2015-10-30 16:36:48 +00:00
|
|
|
|
2015-11-06 11:10:48 +00:00
|
|
|
/**
|
|
|
|
* GST_AUDIO_CONVERTER_OPT_NOISE_SHAPING_METHOD:
|
|
|
|
*
|
|
|
|
* #GST_TYPE_AUDIO_NOISE_SHAPING_METHOD, The noise shaping method to use
|
|
|
|
* to mask noise from quantization errors.
|
|
|
|
* Default is #GST_AUDIO_NOISE_SHAPING_NONE.
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_CONVERTER_OPT_NOISE_SHAPING_METHOD "GstAudioConverter.noise-shaping-method"
|
2015-10-30 16:36:48 +00:00
|
|
|
|
2015-11-06 11:10:48 +00:00
|
|
|
/**
|
|
|
|
* GST_AUDIO_CONVERTER_OPT_QUANTIZATION:
|
|
|
|
*
|
|
|
|
* #G_TYPE_UINT, The quantization amount. Components will be
|
|
|
|
* quantized to multiples of this value.
|
|
|
|
* Default is 1
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_CONVERTER_OPT_QUANTIZATION "GstAudioConverter.quantization"
|
2015-10-30 16:36:48 +00:00
|
|
|
|
2017-07-27 17:31:48 +00:00
|
|
|
/**
|
|
|
|
* GST_AUDIO_CONVERTER_OPT_MIX_MATRIX:
|
|
|
|
*
|
|
|
|
* #GST_TYPE_VALUE_LIST, The channel mapping matrix.
|
|
|
|
*
|
|
|
|
* The matrix coefficients must be between -1 and 1: the number of rows is equal
|
|
|
|
* to the number of output channels and the number of columns is equal to the
|
|
|
|
* number of input channels.
|
|
|
|
*
|
|
|
|
* ## Example matrix generation code
|
|
|
|
* To generate the matrix using code:
|
|
|
|
*
|
|
|
|
* |[
|
|
|
|
* GValue v = G_VALUE_INIT;
|
|
|
|
* GValue v2 = G_VALUE_INIT;
|
|
|
|
* GValue v3 = G_VALUE_INIT;
|
|
|
|
*
|
|
|
|
* g_value_init (&v2, GST_TYPE_ARRAY);
|
|
|
|
* g_value_init (&v3, G_TYPE_DOUBLE);
|
|
|
|
* g_value_set_double (&v3, 1);
|
|
|
|
* gst_value_array_append_value (&v2, &v3);
|
|
|
|
* g_value_unset (&v3);
|
|
|
|
* [ Repeat for as many double as your input channels - unset and reinit v3 ]
|
|
|
|
* g_value_init (&v, GST_TYPE_ARRAY);
|
|
|
|
* gst_value_array_append_value (&v, &v2);
|
|
|
|
* g_value_unset (&v2);
|
|
|
|
* [ Repeat for as many v2's as your output channels - unset and reinit v2]
|
|
|
|
* g_object_set_property (G_OBJECT (audiomixmatrix), "matrix", &v);
|
|
|
|
* g_value_unset (&v);
|
|
|
|
* ]|
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_CONVERTER_OPT_MIX_MATRIX "GstAudioConverter.mix-matrix"
|
2015-10-30 16:36:48 +00:00
|
|
|
|
2015-11-06 11:10:48 +00:00
|
|
|
/**
|
2015-11-10 08:52:24 +00:00
|
|
|
* GstAudioConverterFlags:
|
2015-11-06 11:10:48 +00:00
|
|
|
* @GST_AUDIO_CONVERTER_FLAG_NONE: no flag
|
2016-01-08 16:34:50 +00:00
|
|
|
* @GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE: the input sample arrays are writable and can be
|
2015-11-06 11:10:48 +00:00
|
|
|
* used as temporary storage during conversion.
|
2016-01-08 16:34:50 +00:00
|
|
|
* @GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE: allow arbitrary rate updates with
|
|
|
|
* gst_audio_converter_update_config().
|
2015-11-06 11:10:48 +00:00
|
|
|
*
|
2016-01-08 16:34:50 +00:00
|
|
|
* Extra flags passed to gst_audio_converter_new() and gst_audio_converter_samples().
|
2015-11-06 11:10:48 +00:00
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_AUDIO_CONVERTER_FLAG_NONE = 0,
|
2016-01-08 16:34:50 +00:00
|
|
|
GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE = (1 << 0),
|
|
|
|
GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE = (1 << 1)
|
2015-11-06 11:10:48 +00:00
|
|
|
} GstAudioConverterFlags;
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2016-01-08 16:34:50 +00:00
|
|
|
GstAudioConverter * gst_audio_converter_new (GstAudioConverterFlags flags,
|
|
|
|
GstAudioInfo *in_info,
|
2015-12-16 09:45:48 +00:00
|
|
|
GstAudioInfo *out_info,
|
|
|
|
GstStructure *config);
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
|
2018-02-15 18:56:46 +00:00
|
|
|
GST_EXPORT
|
|
|
|
GType gst_audio_converter_get_type (void);
|
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2015-12-16 09:45:48 +00:00
|
|
|
void gst_audio_converter_free (GstAudioConverter * convert);
|
2015-10-30 16:36:48 +00:00
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2016-01-26 15:56:57 +00:00
|
|
|
void gst_audio_converter_reset (GstAudioConverter * convert);
|
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2016-01-08 16:28:31 +00:00
|
|
|
gboolean gst_audio_converter_update_config (GstAudioConverter * convert,
|
|
|
|
gint in_rate, gint out_rate,
|
|
|
|
GstStructure *config);
|
2017-05-15 23:45:41 +00:00
|
|
|
|
|
|
|
GST_EXPORT
|
2016-01-08 16:28:31 +00:00
|
|
|
const GstStructure * gst_audio_converter_get_config (GstAudioConverter * convert,
|
|
|
|
gint *in_rate, gint *out_rate);
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2015-12-16 09:45:48 +00:00
|
|
|
gsize gst_audio_converter_get_out_frames (GstAudioConverter *convert,
|
|
|
|
gsize in_frames);
|
2017-05-15 23:45:41 +00:00
|
|
|
|
|
|
|
GST_EXPORT
|
2015-12-16 09:45:48 +00:00
|
|
|
gsize gst_audio_converter_get_in_frames (GstAudioConverter *convert,
|
|
|
|
gsize out_frames);
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2015-12-16 09:45:48 +00:00
|
|
|
gsize gst_audio_converter_get_max_latency (GstAudioConverter *convert);
|
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2015-12-16 09:45:48 +00:00
|
|
|
gboolean gst_audio_converter_samples (GstAudioConverter * convert,
|
|
|
|
GstAudioConverterFlags flags,
|
2016-01-26 16:14:20 +00:00
|
|
|
gpointer in[], gsize in_frames,
|
|
|
|
gpointer out[], gsize out_frames);
|
gst/audioconvert/: Cleanups, librarify a bit, optimize, better negotiation and more.
Original commit message from CVS:
* gst/audioconvert/Makefile.am:
* gst/audioconvert/audioconvert.c: (if), (float),
(audio_convert_get_func_index), (check_default),
(audio_convert_clean_fmt), (audio_convert_prepare_context),
(audio_convert_clean_context), (audio_convert_get_sizes),
(get_temp_buffer), (audio_convert_convert):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init), (gst_audio_convert_init),
(gst_audio_convert_dispose), (gst_audio_convert_parse_caps),
(gst_audio_convert_get_unit_size),
(gst_audio_convert_transform_caps),
(gst_audio_convert_fixate_caps), (gst_audio_convert_set_caps),
(gst_audio_convert_transform_ip), (gst_audio_convert_transform):
* gst/audioconvert/gstaudioconvert.h:
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_unset_matrix),
(gst_channel_mix_fill_identical),
(gst_channel_mix_fill_compatible), (gst_channel_mix_detect_pos),
(gst_channel_mix_fill_one_other), (gst_channel_mix_fill_others),
(gst_channel_mix_fill_normalize), (gst_channel_mix_fill_matrix),
(gst_channel_mix_setup_matrix), (gst_channel_mix_passthrough),
(gst_channel_mix_mix):
* gst/audioconvert/gstchannelmix.h:
Cleanups, librarify a bit, optimize, better negotiation and more.
2005-08-26 15:43:56 +00:00
|
|
|
|
2017-05-15 23:45:41 +00:00
|
|
|
GST_EXPORT
|
2016-10-19 10:21:37 +00:00
|
|
|
gboolean gst_audio_converter_supports_inplace (GstAudioConverter *convert);
|
|
|
|
|
2018-02-15 19:00:42 +00:00
|
|
|
GST_EXPORT
|
|
|
|
gboolean gst_audio_converter_convert (GstAudioConverter * convert,
|
|
|
|
GstAudioConverterFlags flags,
|
|
|
|
gpointer in, gsize in_size,
|
|
|
|
gpointer *out, gsize *out_size);
|
|
|
|
|
2017-12-01 13:14:30 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2015-11-06 11:10:48 +00:00
|
|
|
#endif /* __GST_AUDIO_CONVERTER_H__ */
|