diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-15 19:32:27 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-15 19:32:27 +0000 |
commit | 6cc1c73d2baa95c46edc04f57cbe9ed690dc2f21 (patch) | |
tree | 82b5546809a42a56a7bc18bacf8ed6e209ad006e /gst/effectv | |
parent | d07ec45fa47fbd0e36224e11bcd8ba2faee1a78c (diff) |
don't mix tabs and spaces
Original commit message from CVS:
don't mix tabs and spaces
Diffstat (limited to 'gst/effectv')
-rw-r--r-- | gst/effectv/gstaging.c | 46 | ||||
-rw-r--r-- | gst/effectv/gstdice.c | 99 | ||||
-rw-r--r-- | gst/effectv/gstedge.c | 24 | ||||
-rw-r--r-- | gst/effectv/gsteffectv.c | 2 | ||||
-rw-r--r-- | gst/effectv/gstquark.c | 44 | ||||
-rw-r--r-- | gst/effectv/gstrev.c | 12 | ||||
-rw-r--r-- | gst/effectv/gstshagadelic.c | 20 | ||||
-rw-r--r-- | gst/effectv/gstvertigo.c | 22 | ||||
-rw-r--r-- | gst/effectv/gstwarp.c | 17 |
9 files changed, 145 insertions, 141 deletions
diff --git a/gst/effectv/gstaging.c b/gst/effectv/gstaging.c index 44683546..ee264119 100644 --- a/gst/effectv/gstaging.c +++ b/gst/effectv/gstaging.c @@ -60,7 +60,8 @@ typedef struct _scratch gint x; gint dx; gint init; -} scratch; +} +scratch; static int dx[8] = { 1, 1, 0, -1, -1, -1, 0, 1 }; static int dy[8] = { 0, -1, -1, -1, 0, 1, 1, 1 }; @@ -129,8 +130,9 @@ gst_agingtv_get_type (void) 0, gst_agingtv_init, }; + agingtv_type = g_type_register_static (GST_TYPE_VIDEOFILTER, - "GstAgingTV", &agingtv_info, 0); + "GstAgingTV", &agingtv_info, 0); } return agingtv_type; } @@ -155,7 +157,7 @@ gst_agingtv_base_init (gpointer g_class) for (i = 0; i < G_N_ELEMENTS (gst_agingtv_formats); i++) { gst_videofilter_class_add_format (videofilter_class, - gst_agingtv_formats + i); + gst_agingtv_formats + i); } gst_videofilter_class_add_pad_templates (GST_VIDEOFILTER_CLASS (g_class)); @@ -173,7 +175,7 @@ gst_agingtv_class_init (gpointer g_class, gpointer class_data) #if 0 g_object_class_install_property (gobject_class, ARG_METHOD, g_param_spec_enum ("method", "method", "method", - GST_TYPE_AGINGTV_METHOD, GST_AGINGTV_METHOD_1, G_PARAM_READWRITE)); + GST_TYPE_AGINGTV_METHOD, GST_AGINGTV_METHOD_1, G_PARAM_READWRITE)); #endif gobject_class->set_property = gst_agingtv_set_property; @@ -249,35 +251,35 @@ scratching (scratch * scratches, gint scratch_lines, guint32 * dest, gint width, scratch->x = scratch->x + scratch->dx; if (scratch->x < 0 || scratch->x > width * 256) { - scratch->life = 0; - break; + scratch->life = 0; + break; } p = dest + (scratch->x >> 8); if (scratch->init) { - y1 = scratch->init; - scratch->init = 0; + y1 = scratch->init; + scratch->init = 0; } else { - y1 = 0; + y1 = 0; } scratch->life--; if (scratch->life) { - y2 = height; + y2 = height; } else { - y2 = fastrand () % height; + y2 = fastrand () % height; } for (y = y1; y < y2; y++) { - a = *p & 0xfefeff; - a += 0x202020; - b = a & 0x1010100; - *p = a | (b - (b >> 8)); - p += width; + a = *p & 0xfefeff; + a += 0x202020; + b = a & 0x1010100; + *p = a | (b - (b >> 8)); + p += width; } } else { if ((fastrand () & 0xf0000000) == 0) { - scratch->life = 2 + (fastrand () >> 27); - scratch->x = fastrand () % (width * 256); - scratch->dx = ((int) fastrand ()) >> 23; - scratch->init = (fastrand () % (height - 1)) + 1; + scratch->life = 2 + (fastrand () >> 27); + scratch->x = fastrand () % (width * 256); + scratch->dx = ((int) fastrand ()) >> 23; + scratch->init = (fastrand () % (height - 1)) + 1; } } } @@ -311,7 +313,7 @@ dusts (guint32 * dest, gint width, gint height, gint dust_interval, x += dx[d]; if (y >= height || x >= width) - break; + break; d = (d + fastrand () % 3 - 1) & 7; } @@ -350,7 +352,7 @@ pits (guint32 * dest, gint width, gint height, gint area_scale, y = y + fastrand () % 3 - 1; if (y >= height || x >= width) - break; + break; dest[y * width + x] = 0xc0c0c0; } diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c index a7cbbc36..f77a4539 100644 --- a/gst/effectv/gstdice.c +++ b/gst/effectv/gstdice.c @@ -41,7 +41,8 @@ typedef enum _dice_dir DICE_RIGHT = 1, DICE_DOWN = 2, DICE_LEFT = 3 -} DiceDir; +} +DiceDir; struct _GstDiceTV { @@ -112,8 +113,8 @@ gst_dicetv_get_type (void) }; dicetv_type = - g_type_register_static (GST_TYPE_VIDEOFILTER, "GstDiceTV", &dicetv_info, - 0); + g_type_register_static (GST_TYPE_VIDEOFILTER, "GstDiceTV", &dicetv_info, + 0); } return dicetv_type; } @@ -146,7 +147,7 @@ gst_dicetv_base_init (gpointer g_class) for (i = 0; i < G_N_ELEMENTS (gst_dicetv_formats); i++) { gst_videofilter_class_add_format (videofilter_class, - gst_dicetv_formats + i); + gst_dicetv_formats + i); } gst_videofilter_class_add_pad_templates (GST_VIDEOFILTER_CLASS (g_class)); @@ -174,7 +175,7 @@ gst_dicetv_class_init (gpointer g_class, gpointer class_data) g_object_class_install_property (gobject_class, ARG_CUBE_BITS, g_param_spec_int ("square_bits", "Square Bits", "The size of the Squares", - MIN_CUBE_BITS, MAX_CUBE_BITS, DEFAULT_CUBE_BITS, G_PARAM_READWRITE)); + MIN_CUBE_BITS, MAX_CUBE_BITS, DEFAULT_CUBE_BITS, G_PARAM_READWRITE)); gobject_class->set_property = gst_dicetv_set_property; gobject_class->get_property = gst_dicetv_get_property; @@ -255,50 +256,50 @@ gst_dicetv_draw (GstVideofilter * videofilter, void *d, void *s) base = (map_y << g_cube_bits) * video_width + (map_x << g_cube_bits); switch (filter->dicemap[map_i]) { - case DICE_UP: - for (dy = 0; dy < g_cube_size; dy++) { - i = base + dy * video_width; - for (dx = 0; dx < g_cube_size; dx++) { - dest[i] = src[i]; - i++; - } - } - break; - case DICE_LEFT: - for (dy = 0; dy < g_cube_size; dy++) { - i = base + dy * video_width; - - for (dx = 0; dx < g_cube_size; dx++) { - di = base + (dx * video_width) + (g_cube_size - dy - 1); - dest[di] = src[i]; - i++; - } - } - break; - case DICE_DOWN: - for (dy = 0; dy < g_cube_size; dy++) { - di = base + dy * video_width; - i = base + (g_cube_size - dy - 1) * video_width + g_cube_size; - for (dx = 0; dx < g_cube_size; dx++) { - i--; - dest[di] = src[i]; - di++; - } - } - break; - case DICE_RIGHT: - for (dy = 0; dy < g_cube_size; dy++) { - i = base + (dy * video_width); - for (dx = 0; dx < g_cube_size; dx++) { - di = base + dy + (g_cube_size - dx - 1) * video_width; - dest[di] = src[i]; - i++; - } - } - break; - default: - g_assert_not_reached (); - break; + case DICE_UP: + for (dy = 0; dy < g_cube_size; dy++) { + i = base + dy * video_width; + for (dx = 0; dx < g_cube_size; dx++) { + dest[i] = src[i]; + i++; + } + } + break; + case DICE_LEFT: + for (dy = 0; dy < g_cube_size; dy++) { + i = base + dy * video_width; + + for (dx = 0; dx < g_cube_size; dx++) { + di = base + (dx * video_width) + (g_cube_size - dy - 1); + dest[di] = src[i]; + i++; + } + } + break; + case DICE_DOWN: + for (dy = 0; dy < g_cube_size; dy++) { + di = base + dy * video_width; + i = base + (g_cube_size - dy - 1) * video_width + g_cube_size; + for (dx = 0; dx < g_cube_size; dx++) { + i--; + dest[di] = src[i]; + di++; + } + } + break; + case DICE_RIGHT: + for (dy = 0; dy < g_cube_size; dy++) { + i = base + (dy * video_width); + for (dx = 0; dx < g_cube_size; dx++) { + di = base + dy + (g_cube_size - dx - 1) * video_width; + dest[di] = src[i]; + i++; + } + } + break; + default: + g_assert_not_reached (); + break; } map_i++; } diff --git a/gst/effectv/gstedge.c b/gst/effectv/gstedge.c index 1e9002bf..6f07153a 100644 --- a/gst/effectv/gstedge.c +++ b/gst/effectv/gstedge.c @@ -102,8 +102,8 @@ gst_edgetv_get_type (void) }; edgetv_type = - g_type_register_static (GST_TYPE_VIDEOFILTER, "GstEdgeTV", &edgetv_info, - 0); + g_type_register_static (GST_TYPE_VIDEOFILTER, "GstEdgeTV", &edgetv_info, + 0); } return edgetv_type; } @@ -130,7 +130,7 @@ gst_edgetv_base_init (gpointer g_class) for (i = 0; i < G_N_ELEMENTS (gst_edgetv_formats); i++) { gst_videofilter_class_add_format (videofilter_class, - gst_edgetv_formats + i); + gst_edgetv_formats + i); } gst_videofilter_class_add_pad_templates (GST_VIDEOFILTER_CLASS (g_class)); @@ -214,15 +214,15 @@ gst_edgetv_rgb32 (GstVideofilter * videofilter, void *d, void *s) r *= r; g *= g; b *= b; - r = r >> 5; /* To lack the lower bit for saturated addition, */ - g = g >> 5; /* devide the value with 32, instead of 16. It is */ - b = b >> 4; /* same as `v2 &= 0xfefeff' */ + r = r >> 5; /* To lack the lower bit for saturated addition, */ + g = g >> 5; /* devide the value with 32, instead of 16. It is */ + b = b >> 4; /* same as `v2 &= 0xfefeff' */ if (r > 127) - r = 127; + r = 127; if (g > 127) - g = 127; + g = 127; if (b > 255) - b = 255; + b = 255; v2 = (r << 17) | (g << 9) | b; /* difference between the current pixel and upper neighbor. */ @@ -237,11 +237,11 @@ gst_edgetv_rgb32 (GstVideofilter * videofilter, void *d, void *s) g = g >> 5; b = b >> 4; if (r > 127) - r = 127; + r = 127; if (g > 127) - g = 127; + g = 127; if (b > 255) - b = 255; + b = 255; v3 = (r << 17) | (g << 9) | b; v0 = filter->map[(y - 1) * filter->map_width * 2 + x * 2]; diff --git a/gst/effectv/gsteffectv.c b/gst/effectv/gsteffectv.c index 71f51c55..c05e151c 100644 --- a/gst/effectv/gsteffectv.c +++ b/gst/effectv/gsteffectv.c @@ -73,7 +73,7 @@ plugin_init (GstPlugin * plugin) while (_elements[i].name) { if (!gst_element_register (plugin, _elements[i].name, - GST_RANK_NONE, (_elements[i].type) ())) + GST_RANK_NONE, (_elements[i].type) ())) return FALSE; i++; } diff --git a/gst/effectv/gstquark.c b/gst/effectv/gstquark.c index 42683212..fc73aa3d 100644 --- a/gst/effectv/gstquark.c +++ b/gst/effectv/gstquark.c @@ -128,8 +128,8 @@ gst_quarktv_get_type (void) }; quarktv_type = - g_type_register_static (GST_TYPE_ELEMENT, "GstQuarkTV", &quarktv_info, - 0); + g_type_register_static (GST_TYPE_ELEMENT, "GstQuarkTV", &quarktv_info, + 0); } return quarktv_type; } @@ -160,7 +160,7 @@ gst_quarktv_class_init (GstQuarkTVClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PLANES, g_param_spec_int ("planes", "Planes", "Number of frames in the buffer", - 1, 32, PLANES, G_PARAM_READWRITE)); + 1, 32, PLANES, G_PARAM_READWRITE)); gobject_class->set_property = gst_quarktv_set_property; gobject_class->get_property = gst_quarktv_get_property; @@ -258,8 +258,8 @@ gst_quarktv_chain (GstPad * pad, GstData * _data) /* pick a random buffer */ rand = - filter->planetable[(filter->current_plane + - (fastrand () >> 24)) & (filter->planes - 1)]; + filter->planetable[(filter->current_plane + + (fastrand () >> 24)) & (filter->planes - 1)]; dest[area] = (rand ? ((guint32 *) GST_BUFFER_DATA (rand))[area] : 0); } @@ -283,9 +283,9 @@ gst_quarktv_change_state (GstElement * element) gint i; for (i = 0; i < filter->planes; i++) { - if (filter->planetable[i]) - gst_buffer_unref (filter->planetable[i]); - filter->planetable[i] = NULL; + if (filter->planetable[i]) + gst_buffer_unref (filter->planetable[i]); + filter->planetable[i] = NULL; } g_free (filter->planetable); filter->planetable = NULL; @@ -319,20 +319,20 @@ gst_quarktv_set_property (GObject * object, guint prop_id, const GValue * value, /* If the number of planes changed, copy across any existing planes */ if (new_n_planes != filter->planes) { - new_planetable = - (GstBuffer **) g_malloc (new_n_planes * sizeof (GstBuffer *)); - - for (i = 0; (i < new_n_planes) && (i < filter->planes); i++) { - new_planetable[i] = filter->planetable[i]; - } - for (; i < filter->planes; i++) { - if (filter->planetable[i]) - gst_buffer_unref (filter->planetable[i]); - } - g_free (filter->planetable); - filter->planetable = new_planetable; - filter->current_plane = filter->planes - 1; - filter->planes = new_n_planes; + new_planetable = + (GstBuffer **) g_malloc (new_n_planes * sizeof (GstBuffer *)); + + for (i = 0; (i < new_n_planes) && (i < filter->planes); i++) { + new_planetable[i] = filter->planetable[i]; + } + for (; i < filter->planes; i++) { + if (filter->planetable[i]) + gst_buffer_unref (filter->planetable[i]); + } + g_free (filter->planetable); + filter->planetable = new_planetable; + filter->current_plane = filter->planes - 1; + filter->planes = new_n_planes; } } break; diff --git a/gst/effectv/gstrev.c b/gst/effectv/gstrev.c index 32752107..fb953d34 100644 --- a/gst/effectv/gstrev.c +++ b/gst/effectv/gstrev.c @@ -129,8 +129,8 @@ gst_revtv_get_type (void) }; revtv_type = - g_type_register_static (GST_TYPE_VIDEOFILTER, "GstRevTV", &revtv_info, - 0); + g_type_register_static (GST_TYPE_VIDEOFILTER, "GstRevTV", &revtv_info, + 0); } return revtv_type; } @@ -173,13 +173,13 @@ gst_revtv_class_init (gpointer klass, gpointer class_data) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DELAY, g_param_spec_int ("delay", "Delay", "Delay in frames between updates", - 1, 100, 1, G_PARAM_READWRITE)); + 1, 100, 1, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_LINESPACE, g_param_spec_int ("linespace", "Linespace", "Control line spacing", - 1, 100, 6, G_PARAM_READWRITE)); + 1, 100, 6, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_GAIN, g_param_spec_int ("gain", "Gain", "Control gain", - 1, 200, 50, G_PARAM_READWRITE)); + 1, 200, 50, G_PARAM_READWRITE)); gobject_class->set_property = gst_revtv_set_property; gobject_class->get_property = gst_revtv_get_property; @@ -243,7 +243,7 @@ gst_revtv_rgb32 (GstVideofilter * videofilter, void *d, void *s) yval = y - ((short) (R + G + B) / filter->vscale); if (yval > 0) { - dest[x + (yval * width)] = THE_COLOR; + dest[x + (yval * width)] = THE_COLOR; } } } diff --git a/gst/effectv/gstshagadelic.c b/gst/effectv/gstshagadelic.c index 345f2762..14de2572 100644 --- a/gst/effectv/gstshagadelic.c +++ b/gst/effectv/gstshagadelic.c @@ -111,8 +111,8 @@ gst_shagadelictv_get_type (void) }; shagadelictv_type = - g_type_register_static (GST_TYPE_VIDEOFILTER, "GstShagadelicTV", - &shagadelictv_info, 0); + g_type_register_static (GST_TYPE_VIDEOFILTER, "GstShagadelicTV", + &shagadelictv_info, 0); } return shagadelictv_type; } @@ -140,7 +140,7 @@ gst_shagadelictv_base_init (gpointer g_class) for (i = 0; i < G_N_ELEMENTS (gst_shagadelictv_formats); i++) { gst_videofilter_class_add_format (videofilter_class, - gst_shagadelictv_formats + i); + gst_shagadelictv_formats + i); } gst_videofilter_class_add_pad_templates (GST_VIDEOFILTER_CLASS (g_class)); @@ -237,13 +237,13 @@ gst_shagadelic_initialize (GstShagadelicTV * filter) xx = x - filter->width / 2; #ifdef PS2 filter->spiral[i++] = ((unsigned int) - ((atan2f (xx, - yy) / ((float) M_PI) * 256 * 9) + (sqrtf (xx * xx + - yy * yy) * 5))) & 255; + ((atan2f (xx, + yy) / ((float) M_PI) * 256 * 9) + (sqrtf (xx * xx + + yy * yy) * 5))) & 255; #else filter->spiral[i++] = ((unsigned int) - ((atan2 (xx, yy) / M_PI * 256 * 9) + (sqrt (xx * xx + - yy * yy) * 5))) & 255; + ((atan2 (xx, yy) / M_PI * 256 * 9) + (sqrt (xx * xx + + yy * yy) * 5))) & 255; #endif /* Here is another Swinger! * ((atan2(xx, yy)/M_PI*256) + (sqrt(xx*xx+yy*yy)*10))&255; @@ -289,10 +289,10 @@ gst_shagadelictv_rgb32 (GstVideofilter * videofilter, void *d, void *s) * *dest++ = v & ((r<<16)|(g<<8)|b); */ r = (gchar) (filter->ripple[(filter->ry + y) * width * 2 + filter->rx + - x] + filter->phase * 2) >> 7; + x] + filter->phase * 2) >> 7; g = (gchar) (filter->spiral[y * width + x] + filter->phase * 3) >> 7; b = (gchar) (filter->ripple[(filter->by + y) * width * 2 + filter->bx + - x] - filter->phase) >> 7; + x] - filter->phase) >> 7; *dest++ = v & ((r << 16) | (g << 8) | b); } } diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c index 6faa8cb2..eba0df88 100644 --- a/gst/effectv/gstvertigo.c +++ b/gst/effectv/gstvertigo.c @@ -116,8 +116,8 @@ gst_vertigotv_get_type (void) }; vertigotv_type = - g_type_register_static (GST_TYPE_VIDEOFILTER, "GstVertigoTV", - &vertigotv_info, 0); + g_type_register_static (GST_TYPE_VIDEOFILTER, "GstVertigoTV", + &vertigotv_info, 0); } return vertigotv_type; } @@ -143,7 +143,7 @@ gst_vertigotv_base_init (gpointer g_class) for (i = 0; i < G_N_ELEMENTS (gst_vertigotv_formats); i++) { gst_videofilter_class_add_format (videofilter_class, - gst_vertigotv_formats + i); + gst_vertigotv_formats + i); } gst_videofilter_class_add_pad_templates (GST_VIDEOFILTER_CLASS (g_class)); @@ -171,10 +171,10 @@ gst_vertigotv_class_init (GstVertigoTVClass * klass, gpointer class_data) g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SPEED, g_param_spec_float ("speed", "Speed", "Control the speed of movement", - 0.01, 100.0, 0.02, G_PARAM_READWRITE)); + 0.01, 100.0, 0.02, G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ZOOM_SPEED, g_param_spec_float ("zoom_speed", "Zoom Speed", - "Control the rate of zooming", 1.01, 1.1, 1.01, G_PARAM_READWRITE)); + "Control the rate of zooming", 1.01, 1.1, 1.01, G_PARAM_READWRITE)); gobject_class->set_property = gst_vertigotv_set_property; gobject_class->get_property = gst_vertigotv_get_property; @@ -246,22 +246,22 @@ gst_vertigotv_set_parms (GstVertigoTV * filter) if (filter->width > filter->height) { if (dizz >= 0) { if (dizz > x) - dizz = x; + dizz = x; vx = (x * (x - dizz) + y * y) / t; } else { if (dizz < -x) - dizz = -x; + dizz = -x; vx = (x * (x + dizz) + y * y) / t; } vy = (dizz * y) / t; } else { if (dizz >= 0) { if (dizz > y) - dizz = y; + dizz = y; vx = (x * x + y * (y - dizz)) / t; } else { if (dizz < -y) - dizz = -y; + dizz = -y; vx = (x * x + y * (y + dizz)) / t; } vy = (dizz * x) / t; @@ -307,9 +307,9 @@ gst_vertigotv_rgb32 (GstVideofilter * videofilter, void *d, void *s) for (x = width; x > 0; x--) { i = (oy >> 16) * width + (ox >> 16); if (i < 0) - i = 0; + i = 0; if (i >= area) - i = area; + i = area; v = filter->current_buffer[i] & 0xfcfcff; v = (v * 3) + ((*src++) & 0xfcfcff); diff --git a/gst/effectv/gstwarp.c b/gst/effectv/gstwarp.c index 4eb81a65..e056b893 100644 --- a/gst/effectv/gstwarp.c +++ b/gst/effectv/gstwarp.c @@ -125,8 +125,9 @@ gst_warptv_get_type (void) 0, gst_warptv_init, }; + warptv_type = g_type_register_static (GST_TYPE_VIDEOFILTER, - "GstWarpTV", &warptv_info, 0); + "GstWarpTV", &warptv_info, 0); } return warptv_type; } @@ -157,7 +158,7 @@ gst_warptv_base_init (gpointer g_class) for (i = 0; i < G_N_ELEMENTS (gst_warptv_formats); i++) { gst_videofilter_class_add_format (videofilter_class, - gst_warptv_formats + i); + gst_warptv_formats + i); } gst_videofilter_class_add_pad_templates (GST_VIDEOFILTER_CLASS (g_class)); @@ -175,7 +176,7 @@ gst_warptv_class_init (gpointer g_class, gpointer class_data) #if 0 g_object_class_install_property (gobject_class, ARG_METHOD, g_param_spec_enum ("method", "method", "method", - GST_TYPE_WARPTV_METHOD, GST_WARPTV_METHOD_1, G_PARAM_READWRITE)); + GST_TYPE_WARPTV_METHOD, GST_WARPTV_METHOD_1, G_PARAM_READWRITE)); #endif gobject_class->set_property = gst_warptv_set_property; @@ -351,7 +352,7 @@ gst_warptv_rgb32 (GstVideofilter * videofilter, void *d, void *s) sintable = warptv->sintable; ctable = warptv->ctable; - skip = 0; /* video_width*sizeof(RGB32)/4 - video_width;; */ + skip = 0; /* video_width*sizeof(RGB32)/4 - video_width;; */ c = 0; for (x = 0; x < 512; x++) { @@ -370,14 +371,14 @@ gst_warptv_rgb32 (GstVideofilter * videofilter, void *d, void *s) dy = ctable[i] + y; if (dx < 0) - dx = 0; + dx = 0; else if (dx > maxx) - dx = maxx; + dx = maxx; if (dy < 0) - dy = 0; + dy = 0; else if (dy > maxy) - dy = maxy; + dy = maxy; *dest++ = src[warptv->offstable[dy] + dx]; } dest += skip; |