Marijn Suijten
3ec795f613
audio: Move fill_silence into audio_format_info
...
With the function named gst_audio_format_fill_silence it would get
associated to the GstAudioFormat type in .gir which is incorrect and
confusing. See [1] for the discussion sparking this change.
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/630#note_694795
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/940 >
2020-11-25 19:18:25 +01:00
Guillaume Desmottes
02fd2f12f9
audio: add gst_audio_make_raw_caps()
...
More binding friendly version of GST_AUDIO_CAPS_MAKE().
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/676 >
2020-06-02 11:57:42 +00:00
Guillaume Desmottes
75411ce1e7
audio-format: add gst_audio_formats_raw()
...
The existing GST_AUDIO_FORMATS_ALL macro is not binding friendly.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/676 >
2020-06-02 11:57:42 +00:00
Sebastian Dröge
d3a35870a2
audio: const gpointer is not the same as gconstpointer/const void *
...
See https://bugzilla.gnome.org/show_bug.cgi?id=664491
2018-11-05 08:16:16 +00:00
Wim Taymans
801f7ca464
audio-format: add TRUNCATE_RANGE flag
...
Add a TRUNCATE_RANGE flag for unpack functions to fill the least
significate bits with 0 (as did the old code). Also add functions
that don't truncate. Use the TRUNC flag in audioconvert for
backwards compatibility for now.
2015-11-03 12:12:08 +01:00
Sebastian Dröge
564f001aa8
audio-format: Constify the audio format table
2015-01-21 09:39:30 +01:00
Philip Withnall
ba87655628
audio: Add a missing precondition to gst_audio_format_from_string()
...
https://bugzilla.gnome.org/show_bug.cgi?id=730874
2014-05-28 11:34:01 +02:00
Todd Agulnick
38d8fa12a5
Some compiler warning fixes to satisfy XCode compiler
...
https://bugzilla.gnome.org/show_bug.cgi?id=720513
2013-12-16 16:51:29 +01:00
Sebastian Dröge
081f009e25
audio-format: Use ORC for filling memory with silence samples
2013-11-03 15:58:35 +01:00
Tim-Philipp Müller
5f59b4f7ee
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 23:05:09 +00:00
Wim Taymans
40a0624e99
audio-format: fix shift for 18 bits samples
...
The 18bits of the sample are in the LSB so we need to shift them 14 positions to
bring them to 32 bits.
2012-07-26 15:42:38 +02:00
Wim Taymans
5ff002b47a
audio: prefix orc_* functions with audio_orc_*
...
To avoid potential conflicts in other modules when statically linking
2012-07-23 17:16:34 +02:00
Evan Nemerson
17815020fd
audio: add missing array and element-type annotations for binary data
2012-07-17 11:06:57 +02:00
Wim Taymans
3f8c5ea036
audio: add orc enabled pack and unpack functions
2012-06-08 17:57:43 +02:00
Wim Taymans
8e393d898a
audio: add flag to mark possible unpack formats
...
Make a new flag to mark formats that can be used in pack and unpack functions.
Mark S32NE and F64NE as those unpack formats
2012-06-08 17:57:43 +02:00
Wim Taymans
3da0b71876
audio: split audio header into logical parts
2012-06-08 10:10:08 +02:00