diff --git a/veejay-current/veejay-server/libvje/effects/alphadampen.c b/veejay-current/veejay-server/libvje/effects/alphadampen.c index 24f695f6..826ad296 100644 --- a/veejay-current/veejay-server/libvje/effects/alphadampen.c +++ b/veejay-current/veejay-server/libvje/effects/alphadampen.c @@ -17,9 +17,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA. */ -#include -#include -#include + +#include "common.h" #include #include "alphadampen.h" @@ -46,13 +45,13 @@ vj_effect *alphadampen_init(int w, int h) void alphadampen_apply( VJFrame *frame, int b1) { - size_t i; - const size_t len = frame->len; - uint8_t tmp; - uint8_t *A = frame->data[3]; + size_t i; + const unsigned int len = frame->len; + uint8_t tmp; + uint8_t *A = frame->data[3]; const int base = (const int) b1; - for( i = 0 ; i < len ; i ++ ) + for( i = 0 ; i < len ; i ++ ) { tmp = A[i]; A[i] = (tmp / base) * base; // loose fractional part diff --git a/veejay-current/veejay-server/libvje/effects/alphadampen.h b/veejay-current/veejay-server/libvje/effects/alphadampen.h index 84ddb999..cde3cede 100644 --- a/veejay-current/veejay-server/libvje/effects/alphadampen.h +++ b/veejay-current/veejay-server/libvje/effects/alphadampen.h @@ -20,10 +20,6 @@ #ifndef ALPHA_DAMPEN_H #define ALPHA_DAMPEN_H -#include -#include -#include - vj_effect *alphadampen_init(int w, int h); void alphadampen_apply( VJFrame *frame, int b1); #endif