Constness changes
[melted] / src / modules / kdenlive / filter_wave.c
index 06300e3..d01944f 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * wave.c -- wave filter
- * Author: Leny Grisel <leny.grisel@laposte.net>
+ * Copyright (C) ?-2007 Leny Grisel <leny.grisel@laposte.net>
+ * Copyright (C) 2007 Jean-Baptiste Mardelle <jb@ader.ch>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -17,8 +18,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include "filter_wave.h"
-
+#include <framework/mlt_filter.h>
 #include <framework/mlt_frame.h>
 
 #include <stdio.h>
@@ -75,7 +75,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                int deformY = mlt_properties_get_int( MLT_FRAME_PROPERTIES( this ), "deformY" );
                if (factor != 0) {
                        int image_size = *width * (*height + 1) * 2;
-                       int8_t *dest = mlt_pool_alloc (image_size);
+                       uint8_t *dest = mlt_pool_alloc (image_size);
                        DoWave(*image, *width, (*height + 1), dest, position, speed, factor, deformX, deformY);
                        memcpy(*image, dest, image_size);
                        mlt_pool_release(dest);
@@ -121,7 +121,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame )
 /** Constructor for the filter.
 */
 
-mlt_filter filter_wave_init( char *arg )
+mlt_filter filter_wave_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        mlt_filter this = mlt_filter_new( );
        if ( this != NULL )