summaryrefslogtreecommitdiff
path: root/gst/audioresample/gstaudioresample.h
AgeCommit message (Collapse)AuthorFilesLines
2021-03-29audioresample: allow per feature registrationStéphane Cerveau1-0/+1
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1089>
2020-03-16audioresample: Use G_DECLARE_FINAL_TYPENiels De Graef1-19/+3
2016-03-28audio-resampler: improve filter constructionWim Taymans1-0/+1
Remove some unused variables from the inner product functions. Make filter coefficients by interpolating if required. Rename some fields. Try hard to not recalculate filters when just chaging the rate. Add more proprties to audioresample.
2016-03-28audio-converter: more work on resamplingWim Taymans1-1/+1
- Fix the resampler in the audio converter - fix memory leaks
2016-03-28audio-converter: add resamplerWim Taymans1-20/+7
Add a resampler to the processing chain when needed. port the audio resampler to the new audioconverter library
2014-10-07audioresample: remove unused variablesPeter G. Baum1-3/+0
https://bugzilla.gnome.org/show_bug.cgi?id=738026
2012-11-03Fix FSF addressTim-Philipp Müller1-2/+2
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-10-25audioresample: sinc filter performance improvementsCarlos Rafael Giani1-0/+3
Original idea comes from Jyri Sarha ( http://lists.xiph.org/pipermail/speex-dev/2011-September/008243.html ). Patch was discovered by Branislav Katreniak ( branislav.katreniak@streamunlimited.com ) for StreamUnlimited ( http://streamunlimited.com/ ). Tests showed up to 5x speed increase in the resampler in the 44.1<->48kHz case. I added the sinc-filter-mode and sinc-filter-auto-threshold properties and the auto mode threshold tests, and adapted the code to GStreamer 1.0. Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
2011-08-18audio: rework audio caps.Wim Taymans1-6/+9
Rework the audio caps similar to the video caps. Remove width/depth/endianness/signed fields and replace with a simple string format and media type audio/x-raw. Create a GstAudioInfo and some helper methods to parse caps. Remove duplicate code from the ringbuffer and replace with audio info. Use AudioInfo in the base audio filter class. Port elements to new API.
2010-12-17audioresample: changed num_gap_samples, num_nongap_samples from guint32 to ↵Leo Singer1-2/+2
guint64 so that gaps of greater than or equal to 2^32 samples do not cause integer overflow
2010-12-17audioresample: renamed count_gap, count_nongap to more descriptive ↵Leo Singer1-2/+2
num_gap_samples, num_nongap_samples
2010-12-17Revert "Revert "audioresample: Add GAP flag support""Leo Singer1-0/+3
This reverts commit 35c76b3409dde7f2dcc8232388a47a1b99b661a7. Conflicts: gst/audioresample/gstaudioresample.c gst/audioresample/gstaudioresample.h
2010-12-13audioresample: provide as much valid output ts and offset as valid inputMark Nauwelaerts1-3/+3
... by independently tracking time and offset, rather than having no offset leading to no output ts.
2010-09-15Revert "audioresample: Add GAP flag support"Sebastian Dröge1-3/+0
This reverts commit 129af0d8e6a74e8edef3e77c3626616b674b7cc1. This shouldn't be committed at all, it isn't ready and apparently was in the wrong branch locally.
2010-09-15audioresample: Add GAP flag supportLeo Singer1-0/+3
Fixes bug #586570.
2009-08-26audioresample: Fix timestamp driftKipp Cannon1-3/+5
Fixes bug #591934.
2009-01-23Rename files and types from speexresample to audioresampleSebastian Dröge1-31/+42
Rename files and types from speexresample to audioresample to finish the move and to prevent any confusion.
2007-03-14gst/audioresample/gstaudioresample.c: Handle discontinuous streams.Julien Moutte1-0/+2
Original commit message from CVS: 2007-03-14 Julien MOUTTE <julien@moutte.net> * gst/audioresample/gstaudioresample.c: (gst_audioresample_init), (audioresample_transform_size), (audioresample_do_output), (audioresample_transform), (audioresample_pushthrough): Handle discontinuous streams. * gst/audioresample/gstaudioresample.h: * tests/check/elements/audioresample.c: (test_discont_stream_instance), (GST_START_TEST), (audioresample_suite): Add a test for discontinuous streams. * win32/common/config.h: Updated.
2006-06-01Fix more gobject macros: obj<->klass, GstXXX<->GstXXXClassStefan Kost1-2/+2
Original commit message from CVS: * ext/alsa/gstalsamixerelement.h: * ext/alsa/gstalsamixeroptions.h: * ext/alsa/gstalsamixertrack.h: * ext/gnomevfs/gstgnomevfssink.h: * ext/gnomevfs/gstgnomevfssrc.h: * ext/theora/gsttheoradec.h: * ext/theora/gsttheoraenc.h: * ext/theora/gsttheoraparse.h: * ext/vorbis/vorbisparse.h: * gst-libs/gst/audio/gstaudioclock.h: * gst-libs/gst/audio/gstaudiofilter.h: * gst-libs/gst/rtp/gstbasertpaudiopayload.h: * gst/audioconvert/gstaudioconvert.h: * gst/audioresample/gstaudioresample.h: * gst/audiotestsrc/gstaudiotestsrc.h: * gst/ffmpegcolorspace/gstffmpegcolorspace.h: * gst/playback/gststreamselector.h: * gst/tcp/gstmultifdsink.h: * gst/tcp/gsttcpclientsink.h: * gst/tcp/gsttcpclientsrc.h: * gst/tcp/gsttcpserversink.h: * gst/tcp/gsttcpserversrc.h: * gst/videorate/gstvideorate.h: * gst/videoscale/gstvideoscale.h: * gst/videotestsrc/gstvideotestsrc.h: * gst/volume/gstvolume.h: * sys/v4l/gstv4ljpegsrc.h: * sys/v4l/gstv4lmjpegsink.h: * sys/v4l/gstv4lmjpegsrc.h: * sys/v4l/gstv4lsrc.h: * sys/ximage/ximagesink.h: * sys/xvimage/xvimagesink.h: * tests/old/testsuite/alsa/sinesrc.h: Fix more gobject macros: obj<->klass, GstXXX<->GstXXXClass
2006-03-02docs/plugins/: Add audioresample to docs.Wim Taymans1-5/+5
Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-base-plugins-docs.sgml: * docs/plugins/gst-plugins-base-plugins-sections.txt: Add audioresample to docs. * gst/audioconvert/gstaudioconvert.c: Add revision date. * gst/audioresample/gstaudioresample.c: (gst_audioresample_base_init), (gst_audioresample_class_init), (gst_audioresample_init), (gst_audioresample_dispose), (audioresample_get_unit_size), (audioresample_transform_caps), (resample_set_state_from_caps), (audioresample_transform_size), (audioresample_set_caps), (audioresample_event), (audioresample_do_output), (audioresample_transform), (audioresample_pushthrough), (gst_audioresample_set_property), (gst_audioresample_get_property), (plugin_init): * gst/audioresample/gstaudioresample.h: Added docs. Small code cleanups.
2005-12-02gst/audioresample/: Fix audioresample, seek torture, new segments, reverse ↵Wim Taymans1-0/+2
negotiation etc.. work fine. Original commit message from CVS: * gst/audioresample/buffer.c: (audioresample_buffer_queue_flush): * gst/audioresample/buffer.h: * gst/audioresample/gstaudioresample.c: * gst/audioresample/gstaudioresample.h: * gst/audioresample/resample.c: (resample_input_flush), (resample_input_pushthrough), (resample_input_eos), (resample_get_output_size_for_input), (resample_get_input_size_for_output), (resample_get_output_size), (resample_get_output_data): * gst/audioresample/resample.h: * gst/audioresample/resample_ref.c: (resample_scale_ref): Fix audioresample, seek torture, new segments, reverse negotiation etc.. work fine.
2005-08-25check/: add a test for audioconvertThomas Vander Stichele1-1/+1
Original commit message from CVS: * check/Makefile.am: * check/elements/audioconvert.c: (setup_audioconvert), (cleanup_audioconvert), (get_int_caps), (verify_convert), (GST_START_TEST), (audioconvert_suite), (main): add a test for audioconvert * gst/audioresample/gstaudioresample.c: * gst/audioresample/gstaudioresample.h: set DURATION so that TIMESTAMP(a) + DURATION(a) == TIMESTAMP(b); note that for buffers of 1/3 sec this means DURATION(c) is one nanosecond more than for a and b
2005-08-24port audioresample to basetransformThomas Vander Stichele1-11/+12
Original commit message from CVS: port audioresample to basetransform
2005-08-23gst/audioresample/Makefile.am: Leet audioresampling codeDavid Schleef1-0/+74
Original commit message from CVS: * gst/audioresample/Makefile.am: Leet audioresampling code * gst/audioresample/buffer.c: * gst/audioresample/buffer.h: * gst/audioresample/debug.c: * gst/audioresample/debug.h: * gst/audioresample/functable.c: * gst/audioresample/functable.h: * gst/audioresample/gstaudioresample.c: * gst/audioresample/gstaudioresample.h: * gst/audioresample/resample.c: * gst/audioresample/resample.h: * gst/audioresample/resample_chunk.c: * gst/audioresample/resample_functable.c: * gst/audioresample/resample_ref.c: