X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fkdenlive%2Ffilter_wave.c;h=d01944f1521107f4c3081561ec6abef4599fc019;hb=70933f360aa7d16e5140267ce2f716de924464c7;hp=cae183e97c0325a797b1ec34ca2dadac1be40872;hpb=b5bf7e90101c8ff6efd2a1e993673e4f56735caf;p=melted diff --git a/src/modules/kdenlive/filter_wave.c b/src/modules/kdenlive/filter_wave.c index cae183e..d01944f 100644 --- a/src/modules/kdenlive/filter_wave.c +++ b/src/modules/kdenlive/filter_wave.c @@ -1,6 +1,7 @@ /* * wave.c -- wave filter - * Author: Leny Grisel + * Copyright (C) ?-2007 Leny Grisel + * Copyright (C) 2007 Jean-Baptiste Mardelle * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -17,13 +18,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "filter_wave.h" - +#include #include #include #include #include +#include // this is a utility function used by DoWave below static uint8_t getPoint(uint8_t *src, int w, int h, int x, int y, int z) @@ -74,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); @@ -120,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 )