From 34a5c986ebab45f06258b6da12e0258ad570a67b Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 11 Dec 2006 23:14:28 +0000 Subject: fixed warnings and added newer quicktime svn path=/trunk/externals/pidip/; revision=6809 --- modules/pdp_cache.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'modules/pdp_cache.c') diff --git a/modules/pdp_cache.c b/modules/pdp_cache.c index a2460e2..320b846 100644 --- a/modules/pdp_cache.c +++ b/modules/pdp_cache.c @@ -33,10 +33,10 @@ static char *pdp_cache_version = "pdp_cache: version 0.1 : video cache object typedef struct _triangle { - t_int used; - t_int x1, y1; - t_int x2, y2; - t_int x3, y3; + int used; + int x1, y1; + int x2, y2; + int x3, y3; t_float a1, b1; t_float a2, b2; t_float a3, b3; @@ -47,24 +47,24 @@ typedef struct pdp_cache_struct t_object x_obj; t_float x_f; - t_int x_packet0; - t_int x_packet1; - t_int x_dropped; - t_int x_queue_id; + int x_packet0; + int x_packet1; + int x_dropped; + int x_queue_id; t_outlet *x_outlet0; - t_int x_vwidth; - t_int x_vheight; - t_int x_vsize; + int x_vwidth; + int x_vheight; + int x_vsize; t_triangle x_hiddenzones[ MAX_ZONES ]; // hide these parts of the image unsigned char *x_mask; } t_pdp_cache; -static t_int pdp_cache_isinzone(t_pdp_cache *x, t_int px, t_int py, t_int index) +static int pdp_cache_isinzone(t_pdp_cache *x, int px, int py, int index) { - t_int c1=0, c2=0, c3=0; + int c1=0, c2=0, c3=0; if ( !x->x_hiddenzones[index].used ) { @@ -187,9 +187,9 @@ static t_int pdp_cache_isinzone(t_pdp_cache *x, t_int px, t_int py, t_int index) return c1 && c2 && c3; } -static t_int pdp_cache_ishidden(t_pdp_cache *x, t_int px, t_int py) +static int pdp_cache_ishidden(t_pdp_cache *x, int px, int py) { - t_int ti; + int ti; for ( ti=0; tix_vheight; py++ ) { @@ -232,7 +232,7 @@ static void pdp_cache_update_mask(t_pdp_cache *x ) static void pdp_cache_hide(t_pdp_cache *x, t_symbol *s, int argc, t_atom *argv) { - t_int ti; + int ti; t_float fx1, fy1, fx2, fy2, fx3, fy3; if ( argc != 6 ) @@ -427,7 +427,7 @@ static void pdp_cache_process_yv12(t_pdp_cache *x) short int *data = (short int *)pdp_packet_data(x->x_packet0); t_pdp *newheader = pdp_packet_header(x->x_packet1); short int *newdata = (short int *)pdp_packet_data(x->x_packet1); - t_int px, py; + int px, py; t_float alpha, factor; unsigned char y, u, v; short int *pY, *pU, *pV; -- cgit v1.2.1