From 49ce0fea6bbba3cc1b6644d3092de3d2c922e009 Mon Sep 17 00:00:00 2001 From: "[d.j.a.y] Jerome Blanchi" Date: Sat, 30 Jul 2016 15:58:46 +0200 Subject: [PATCH] Libvje / refactor : reflection (fix) * clean headers --- .../veejay-server/libvje/effects/reflection.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/veejay-current/veejay-server/libvje/effects/reflection.c b/veejay-current/veejay-server/libvje/effects/reflection.c index 5fc1ad5b..045d6a1d 100644 --- a/veejay-current/veejay-server/libvje/effects/reflection.c +++ b/veejay-current/veejay-server/libvje/effects/reflection.c @@ -41,14 +41,9 @@ /* orignal code for RGB, define INTENSITY( r + b + g / 3 ), this effect works in YCbCr space now. */ -#include -#include -#include -#include -#include -#include -#include "reflection.h" #include "common.h" +#include +#include "reflection.h" static short reflect_aSin[2048]; static int reflection_map[2048][256]; @@ -120,8 +115,8 @@ void reflection_apply(VJFrame *frame, int index1, int index2, int move) { unsigned int normalx, normaly, x, y; unsigned int lightx, lighty, temp; - const int width = frame->width; - const int height = frame->height; + const unsigned int width = frame->width; + const unsigned int height = frame->height; int uv_height = frame->uv_height; int uv_width = frame->uv_width; uint8_t *row = frame->data[0] + width + 1;