mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
Removed unused code, fixed a bug
Original commit message from CVS: Removed unused code, fixed a bug
This commit is contained in:
parent
e5c5f6be80
commit
b956a7ca67
2 changed files with 2 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue