Cleanup copyrights and attributions, and move Jean-Baptiste's services to a new kdenl...
[melted] / src / modules / core / factory.c
index 87b8ee4..c90a665 100644 (file)
@@ -3,19 +3,19 @@
  * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
  * Author: Charles Yates <charles.yates@pandora.be>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU 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 free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * 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 General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * You should have received a copy of the GNU Lesser 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
  */
 
 #include <string.h>
 #include "filter_greyscale.h"
 #include "filter_luma.h"
 #include "filter_mirror.h"
+#include "filter_mono.h"
 #include "filter_obscure.h"
 #include "filter_rescale.h"
 #include "filter_resize.h"
 #include "filter_region.h"
+#include "filter_transition.h"
 #include "filter_watermark.h"
 #include "transition_composite.h"
 #include "transition_luma.h"
@@ -43,6 +45,8 @@
 
 void *mlt_create_producer( char *id, void *arg )
 {
+       if ( !strcmp( id, "color" ) )
+               return producer_colour_init( arg );
        if ( !strcmp( id, "colour" ) )
                return producer_colour_init( arg );
        if ( !strcmp( id, "noise" ) )
@@ -70,6 +74,8 @@ void *mlt_create_filter( char *id, void *arg )
                return filter_luma_init( arg );
        if ( !strcmp( id, "mirror" ) )
                return filter_mirror_init( arg );
+       if ( !strcmp( id, "mono" ) )
+               return filter_mono_init( arg );
        if ( !strcmp( id, "obscure" ) )
                return filter_obscure_init( arg );
        if ( !strcmp( id, "region" ) )
@@ -78,6 +84,8 @@ void *mlt_create_filter( char *id, void *arg )
                return filter_rescale_init( arg );
        if ( !strcmp( id, "resize" ) )
                return filter_resize_init( arg );
+       else if ( !strcmp( id, "transition" ) )
+               return filter_transition_init( arg );
        if ( !strcmp( id, "watermark" ) )
                return filter_watermark_init( arg );
        return NULL;