summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-10-13 19:00:41 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-10-13 19:00:41 +0000
commitb956a7ca6709a383ea20eaeeb1952cb2d19d5869 (patch)
tree223d7705b5a113864a89445349b33d58b10572ec
parente5c5f6be80792dbfc5db2906cc1564fb08d6aa41 (diff)
downloadgst-plugins-bad-b956a7ca6709a383ea20eaeeb1952cb2d19d5869.tar.gz
gst-plugins-bad-b956a7ca6709a383ea20eaeeb1952cb2d19d5869.tar.bz2
gst-plugins-bad-b956a7ca6709a383ea20eaeeb1952cb2d19d5869.zip
Removed unused code, fixed a bug
Original commit message from CVS: Removed unused code, fixed a bug
-rw-r--r--gst/smpte/paint.c15
-rw-r--r--gst/smpte/paint.h3
2 files changed, 2 insertions, 16 deletions
diff --git a/gst/smpte/paint.c b/gst/smpte/paint.c
index 3ccfc23f..7cc51dd4 100644
--- a/gst/smpte/paint.c
+++ b/gst/smpte/paint.c
@@ -64,20 +64,9 @@ gst_smpte_paint_hbox (guint32 *dest, gint stride,
for (i = 0; i < height; i++) {
guint32 value = (c1 * i + c0 * (height - i)) / height;
for (j = 0; j < width; j++) {
- *dest++ = value;
- }
- }
-}
-
-void
-gst_smpte_paint_rect16 (guint16 * dest, gint depth, gint w, gint h)
-{
- gint i, j;
-
- for (i = 0; i < h; i++) {
- for (j = 0; j < w; j++) {
- *dest++ = (guint16) ((double) (1 << depth) * j / w);
+ dest[j] = value;
}
+ dest += stride;
}
}
diff --git a/gst/smpte/paint.h b/gst/smpte/paint.h
index 224ded7d..d57e84b9 100644
--- a/gst/smpte/paint.h
+++ b/gst/smpte/paint.h
@@ -29,9 +29,6 @@ void gst_smpte_paint_hbox (guint32 *dest, gint stride,
gint x0, gint y0, gint c0,
gint x1, gint y1, gint c1);
-void gst_smpte_paint_rect16 (guint16 *dest, gint depth, gint width, gint height);
-
-
void gst_smpte_paint_triangle_linear (guint32 *dest, gint stride,
gint x0, gint y0, gint c0,
gint x1, gint y1, gint c1,