projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fbbdb5
)
gaudi: remove floor variable in solarize
author
Luis de Bethencourt
<luis.bg@samsung.com>
Wed, 22 Apr 2015 13:15:13 +0000
(14:15 +0100)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Wed, 22 Apr 2015 13:15:17 +0000
(14:15 +0100)
Floor variable has no effect and it isn't worth it to have it adjustable.
gst/gaudieffects/gstsolarize.c
patch
|
blob
|
history
diff --git
a/gst/gaudieffects/gstsolarize.c
b/gst/gaudieffects/gstsolarize.c
index
e73f4af
..
a45feb2
100644
(file)
--- a/
gst/gaudieffects/gstsolarize.c
+++ b/
gst/gaudieffects/gstsolarize.c
@@
-303,11
+303,8
@@
transform (guint32 * src, guint32 * dest, gint video_area,
gint period = 1, up_length = 1, down_length = 1;
gint x, c;
gint param;
- static const guint floor = 0;
static const guint ceiling = 255;
-
-
if (end != start)
period = end - start;
@@
-335,12
+332,10
@@
transform (guint32 * src, guint32 * dest, gint video_area,
if (param < up_length) {
color[c] = param * ceiling;
color[c] /= up_length;
- color[c] += floor;
} else {
color[c] = down_length - (param - up_length);
color[c] *= ceiling;
color[c] /= down_length;
- color[c] += floor;
}
}