diff options
author | N.N. <sevyves@users.sourceforge.net> | 2004-05-18 00:50:40 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2004-05-18 00:50:40 +0000 |
commit | 6a708e3b1d4acb456f24bcd1e3d09a83d1070243 (patch) | |
tree | 32a03d05e53a64fecaaeb6763288e128dbf50994 /modules/pdp_canvas.c | |
parent | ec1b4435c82dd4613724c8d891e52894c918334f (diff) |
PiDiP 0.12.14
svn path=/trunk/externals/pidip/; revision=1734
Diffstat (limited to 'modules/pdp_canvas.c')
-rw-r--r-- | modules/pdp_canvas.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/pdp_canvas.c b/modules/pdp_canvas.c index a099da1..587811e 100644 --- a/modules/pdp_canvas.c +++ b/modules/pdp_canvas.c @@ -41,6 +41,7 @@ typedef struct pdp_canvas_struct t_int x_queue_id; t_int x_opacket; + t_int x_lastpacket; t_int x_current; t_float x_xmouse; @@ -139,6 +140,7 @@ static void pdp_canvas_process_yv12(t_pdp_canvas *x) memcpy( pV+((py>>1)*(x->x_owidth>>1))+((t_int)(x->x_xoffsets[ii]+mx)>>1), ppV+((py-(t_int)x->x_yoffsets[ii])>>1)*(x->x_widths[ii]>>1)+(mx>>1), dx ); } + } } @@ -241,10 +243,10 @@ static void pdp_canvas_input(t_pdp_canvas *x, t_symbol *s, t_floatarg f, t_int n if (s== gensym("register_rw")) { - /* release the packet */ if ( x->x_packets[ni] != -1 ) - { - pdp_packet_mark_unused(x->x_packets[ni]); + { + // delete the packet + pdp_packet_delete(x->x_packets[ni]); x->x_packets[ni] = -1; } x->x_dropped = pdp_packet_convert_ro_or_drop(&x->x_packets[ni], (int)f, pdp_gensym("image/YCrCb/*") ); |