aboutsummaryrefslogtreecommitdiff
path: root/modules/pdp_erode.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pdp_erode.c')
-rw-r--r--modules/pdp_erode.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/modules/pdp_erode.c b/modules/pdp_erode.c
index a843308..5974dd1 100644
--- a/modules/pdp_erode.c
+++ b/modules/pdp_erode.c
@@ -32,17 +32,17 @@ typedef struct pdp_erode_struct
{
t_object x_obj;
- t_int x_packet0;
- t_int x_packet1;
- t_int x_queue_id;
- t_int x_dropped;
-
- t_int x_vwidth;
- t_int x_vheight;
- t_int x_vsize;
- t_int x_kernelw; // width of the (square) kernel
- t_int x_kernelh; // height of the square kernel
- t_int x_nbpasses; // number of passes
+ int x_packet0;
+ int x_packet1;
+ int x_queue_id;
+ int x_dropped;
+
+ int x_vwidth;
+ int x_vheight;
+ int x_vsize;
+ int x_kernelw; // width of the (square) kernel
+ int x_kernelh; // height of the square kernel
+ int x_nbpasses; // number of passes
short int *x_frame; // keep a copy of current frame for transformations
t_outlet *x_pdp_output; // output packets
@@ -53,7 +53,7 @@ static void pdp_erode_nbpasses(t_pdp_erode *x, t_floatarg fpasses )
{
if ( fpasses>=1.)
{
- x->x_nbpasses = (t_int)fpasses;
+ x->x_nbpasses = (int)fpasses;
}
}
@@ -61,7 +61,7 @@ static void pdp_erode_kernelw(t_pdp_erode *x, t_floatarg fkernelw )
{
if ( fkernelw>=0.)
{
- x->x_kernelw = (t_int)fkernelw;
+ x->x_kernelw = (int)fkernelw;
}
}
@@ -69,7 +69,7 @@ static void pdp_erode_kernelh(t_pdp_erode *x, t_floatarg fkernelh )
{
if ( fkernelh>=0.)
{
- x->x_kernelh = (t_int)fkernelh;
+ x->x_kernelh = (int)fkernelh;
}
}
@@ -95,10 +95,10 @@ static void pdp_erode_process_yv12(t_pdp_erode *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 i;
- t_int px=0, py=0;
+ int i;
+ int px=0, py=0;
short int *pfY, *pfU, *pfV;
- t_int ppx, ppy, ix, iy, pn, kx, ky;
+ int ppx, ppy, ix, iy, pn, kx, ky;
// allocate all ressources
if ( ( (int)header->info.image.width != x->x_vwidth ) ||