diff options
Diffstat (limited to 'src/post')
-rw-r--r-- | src/post/goom/filters.c | 7 | ||||
-rw-r--r-- | src/post/goom/goom_core.c | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/post/goom/filters.c b/src/post/goom/filters.c index 47c42751e..5cc5e1af0 100644 --- a/src/post/goom/filters.c +++ b/src/post/goom/filters.c @@ -18,6 +18,7 @@ #include <stdlib.h> #include <math.h> #include <stdio.h> +#include <stdint.h> #ifdef HAVE_MMX #define USE_ASM @@ -559,15 +560,15 @@ zoomFilterFastRGB (Uint * pix1, freebrutS = (unsigned int *) calloc (resx * resy * 2 + 128, sizeof(unsigned int)); - brutS = (guint32 *) ((1 + ((unsigned int) (freebrutS)) / 128) * 128); + brutS = (guint32 *) ((1 + ((uintptr_t) (freebrutS)) / 128) * 128); freebrutD = (unsigned int *) calloc (resx * resy * 2 + 128, sizeof(unsigned int)); - brutD = (guint32 *) ((1 + ((unsigned int) (freebrutD)) / 128) * 128); + brutD = (guint32 *) ((1 + ((uintptr_t) (freebrutD)) / 128) * 128); freebrutT = (unsigned int *) calloc (resx * resy * 2 + 128, sizeof(unsigned int)); - brutT = (guint32 *) ((1 + ((unsigned int) (freebrutT)) / 128) * 128); + brutT = (guint32 *) ((1 + ((uintptr_t) (freebrutT)) / 128) * 128); /** modif here by jeko : plus de multiplications **/ { diff --git a/src/post/goom/goom_core.c b/src/post/goom/goom_core.c index e14513156..c2a901780 100644 --- a/src/post/goom/goom_core.c +++ b/src/post/goom/goom_core.c @@ -1,6 +1,7 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> +#include <stdint.h> #include "goom_core.h" #include "goom_tools.h" #include "filters.h" @@ -107,8 +108,8 @@ goom_init (guint32 resx, guint32 resy, int cinemascope) cycle = 0; - p1 = (guint32 *) ((1 + ((unsigned int) (pixel)) / 128) * 128); - p2 = (guint32 *) ((1 + ((unsigned int) (back)) / 128) * 128); + p1 = (guint32 *) ((1 + ((uintptr_t) (pixel)) / 128) * 128); + p2 = (guint32 *) ((1 + ((uintptr_t) (back)) / 128) * 128); init_ifs (resx, c_resoly); gmline1 = goom_lines_init (resx, c_resoly, @@ -149,8 +150,8 @@ goom_set_resolution (guint32 resx, guint32 resy, int cinemascope) bzero (pixel, buffsize * sizeof (guint32) + 128); back = (guint32 *) malloc (buffsize * sizeof (guint32) + 128); bzero (back, buffsize * sizeof (guint32) + 128); - p1 = (guint32 *) ((1 + ((unsigned int) (pixel)) / 128) * 128); - p2 = (guint32 *) ((1 + ((unsigned int) (back)) / 128) * 128); + p1 = (guint32 *) ((1 + ((uintptr_t) (pixel)) / 128) * 128); + p2 = (guint32 *) ((1 + ((uintptr_t) (back)) / 128) * 128); init_ifs (resx, c_resoly); goom_lines_set_res (gmline1, resx, c_resoly); |