[gegl] gegl: more efficient 0 pixel in u8 boxfilter
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: more efficient 0 pixel in u8 boxfilter
- Date: Sun, 21 Jan 2018 14:39:40 +0000 (UTC)
commit 135285eb6119159bb20b4a48594e37d50b48bfdc
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Jan 21 00:21:43 2018 +0100
gegl: more efficient 0 pixel in u8 boxfilter
gegl/gegl-algorithms.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-algorithms.c b/gegl/gegl-algorithms.c
index 66201ce..f71ccde 100644
--- a/gegl/gegl-algorithms.c
+++ b/gegl/gegl-algorithms.c
@@ -252,7 +252,7 @@ gegl_boxfilter_u8_nl (guchar *dest_buf,
src[6][3] == 0 &&
src[7][3] == 0)
{
- dst[0] = dst[1] = dst[2] = dst[3] = 0;
+ (*(uint32_t*)(dst)) = 0;
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]