gaudieffects: clean solarize code
This commit is contained in:
parent
70cc73fd70
commit
b3ad336af1
@ -312,26 +312,22 @@ transform (guint32 * src, guint32 * dest, gint video_area,
|
|||||||
{
|
{
|
||||||
guint32 in;
|
guint32 in;
|
||||||
guint32 color[3];
|
guint32 color[3];
|
||||||
|
gint period = 1, up_length = 1, down_length = 1;
|
||||||
gint x, c;
|
gint x, c;
|
||||||
|
gint param;
|
||||||
static const guint floor = 0;
|
static const guint floor = 0;
|
||||||
static const guint ceiling = 255;
|
static const guint ceiling = 255;
|
||||||
|
|
||||||
gint period, up_length, down_length, param;
|
|
||||||
|
|
||||||
|
|
||||||
|
if (end != start)
|
||||||
period = end - start;
|
period = end - start;
|
||||||
if (period == 0) {
|
|
||||||
period = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (threshold != start)
|
||||||
up_length = threshold - start;
|
up_length = threshold - start;
|
||||||
if (up_length == 0) {
|
|
||||||
up_length = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (threshold != end)
|
||||||
down_length = end - threshold;
|
down_length = end - threshold;
|
||||||
if (down_length == 0) {
|
|
||||||
down_length = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Loop through pixels. */
|
/* Loop through pixels. */
|
||||||
for (x = 0; x < video_area; x++) {
|
for (x = 0; x < video_area; x++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user