/*
* 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
* 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>
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);
/** 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 )