gst_plugins_base/gst/ffmpegcolorspace/gstffmpeg.c
changeset 0 0e761a78d257
child 10 6f340f756486
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /* GStreamer
       
     2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
       
     3  *
       
     4  * This library is free software; you can redistribute it and/or
       
     5  * modify it under the terms of the GNU Library General Public
       
     6  * License as published by the Free Software Foundation; either
       
     7  * version 2 of the License, or (at your option) any later version.
       
     8  *
       
     9  * This library is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12  * Library General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU Library General Public
       
    15  * License along with this library; if not, write to the
       
    16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17  * Boston, MA 02111-1307, USA.
       
    18  */
       
    19 
       
    20 /* First, include the header file for the plugin, to bring in the
       
    21  * object definition and other useful things.
       
    22  */
       
    23 
       
    24 #ifdef HAVE_CONFIG_H
       
    25 #include "config.h"
       
    26 #endif
       
    27 
       
    28 #include <gst/gst.h>
       
    29 
       
    30 #include "avcodec.h"
       
    31 
       
    32 extern gboolean gst_ffmpegcolorspace_register (GstPlugin * plugin);
       
    33 
       
    34 static gboolean
       
    35 plugin_init (GstPlugin * plugin)
       
    36 {
       
    37   avcodec_init ();
       
    38   gst_ffmpegcolorspace_register (plugin);
       
    39 
       
    40   /* Now we can return the pointer to the newly created Plugin object. */
       
    41   return TRUE;
       
    42 }
       
    43 
       
    44 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
       
    45     GST_VERSION_MINOR,
       
    46     "ffmpegcolorspace",
       
    47     "colorspace conversion copied from FFMpeg " FFMPEG_VERSION,
       
    48     plugin_init, VERSION, "LGPL", "FFMpeg", "http://ffmpeg.sourceforge.net/");
       
    49 
       
    50 
       
    51 #ifdef __SYMBIAN32__
       
    52 EXPORT_C 
       
    53 #endif
       
    54 GstPluginDesc* _GST_PLUGIN_DESC()
       
    55 {
       
    56     return &gst_plugin_desc;
       
    57 }
       
    58