mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
ceb84de916
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.
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
/* GStreamer
|
|
* Copyright (C) 2004 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
|
*
|
|
* gstchannelmix.h: setup of channel conversion matrices
|
|
*
|
|
* 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
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GST_CHANNEL_MIX_H__
|
|
#define __GST_CHANNEL_MIX_H__
|
|
|
|
#include <gst/gst.h>
|
|
#include "audioconvert.h"
|
|
|
|
GST_DEBUG_CATEGORY_EXTERN (audio_convert_debug);
|
|
#define GST_CAT_DEFAULT (audio_convert_debug)
|
|
|
|
/*
|
|
* Delete channel mixer matrix.
|
|
*/
|
|
void gst_channel_mix_unset_matrix (AudioConvertCtx * this);
|
|
|
|
/*
|
|
* Setup channel mixer matrix.
|
|
*/
|
|
void gst_channel_mix_setup_matrix (AudioConvertCtx * this);
|
|
|
|
/*
|
|
* Checks for passthrough (= identity matrix).
|
|
*/
|
|
gboolean gst_channel_mix_passthrough (AudioConvertCtx * this);
|
|
|
|
/*
|
|
* Do actual mixing.
|
|
*/
|
|
void gst_channel_mix_mix (AudioConvertCtx * this,
|
|
gint32 * in_data,
|
|
gint32 * out_data,
|
|
gint samples);
|
|
|
|
#endif /* __GST_CHANNEL_MIX_H__ */
|