"Fossies" - the Fresh Open Source Software Archive

Member "gst-plugins-good-1.20.3/gst/law/alaw.c" (15 Jun 2022, 1350 Bytes) of package /linux/misc/gst-plugins-good-1.20.3.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "alaw.c" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.18.6_vs_1.20.0.

    1 /* GStreamer PCM/A-Law conversions
    2  *
    3  * This library is free software; you can redistribute it and/or
    4  * modify it under the terms of the GNU Library General Public
    5  * License as published by the Free Software Foundation; either
    6  * version 2.1 of the License, or (at your option) any later version.
    7  *
    8  * This library is distributed in the hope that it will be useful,
    9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   11  * Library General Public License for more details.
   12  *
   13  * You should have received a copy of the GNU Library General Public
   14  * License along with this library; if not, write to the
   15  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
   16  * Boston, MA 02110-1301, USA.
   17  */
   18 
   19 #ifdef HAVE_CONFIG_H
   20 #include "config.h"
   21 #endif
   22 
   23 #include <gst/audio/audio.h>
   24 
   25 #include "alaw-encode.h"
   26 #include "alaw-decode.h"
   27 
   28 static gboolean
   29 plugin_init (GstPlugin * plugin)
   30 {
   31   gboolean ret = FALSE;
   32 
   33   ret |= GST_ELEMENT_REGISTER (alawenc, plugin);
   34   ret |= GST_ELEMENT_REGISTER (alawdec, plugin);
   35 
   36   return ret;
   37 }
   38 
   39 /* FIXME 0.11: merge alaw and mulaw into one plugin? */
   40 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
   41     GST_VERSION_MINOR,
   42     alaw,
   43     "ALaw audio conversion routines",
   44     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)