summaryrefslogtreecommitdiffstats
path: root/gst/smpte/paint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/smpte/paint.c')
-rw-r--r--gst/smpte/paint.c15
1 files changed, 2 insertions, 13 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;
}
}