summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-07-23 22:00:31 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-07-23 22:00:31 +0000
commit703a0cb1d2ce00692c10f33a095a3b99c1e28554 (patch)
treec6286e703ce6065a884c40cf0f288fd09f49e7cb /src
parentDisplacement map filter (diff)
downloadinkscape-703a0cb1d2ce00692c10f33a095a3b99c1e28554.tar.gz
inkscape-703a0cb1d2ce00692c10f33a095a3b99c1e28554.zip
Remove nr-filter-getalpha.(h|cpp) - no longer needed
(bzr r9508.1.31)
Diffstat (limited to 'src')
-rw-r--r--src/display/Makefile_insert2
-rw-r--r--src/display/nr-filter-getalpha.cpp56
-rw-r--r--src/display/nr-filter-getalpha.h35
3 files changed, 0 insertions, 93 deletions
diff --git a/src/display/Makefile_insert b/src/display/Makefile_insert
index 621dc43d5..3e8b6ff91 100644
--- a/src/display/Makefile_insert
+++ b/src/display/Makefile_insert
@@ -62,8 +62,6 @@ ink_common_sources += \
display/nr-filter-flood.h \
display/nr-filter-gaussian.cpp \
display/nr-filter-gaussian.h \
- display/nr-filter-getalpha.cpp \
- display/nr-filter-getalpha.h \
display/nr-filter.h \
display/nr-filter-image.cpp \
display/nr-filter-image.h \
diff --git a/src/display/nr-filter-getalpha.cpp b/src/display/nr-filter-getalpha.cpp
deleted file mode 100644
index 0b71e28c8..000000000
--- a/src/display/nr-filter-getalpha.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Functions for extracting alpha channel from NRPixBlocks.
- *
- * Author:
- * Niko Kiirala <niko@kiirala.com>
- *
- * Copyright (C) 2007 Niko Kiirala
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#include "display/nr-filter-getalpha.h"
-#include "libnr/nr-blit.h"
-#include "libnr/nr-pixblock.h"
-
-namespace Inkscape {
-namespace Filters {
-
-NRPixBlock *filter_get_alpha(NRPixBlock *src)
-{
- NRPixBlock *dst = new NRPixBlock;
- nr_pixblock_setup_fast(dst, NR_PIXBLOCK_MODE_R8G8B8A8P,
- src->area.x0, src->area.y0,
- src->area.x1, src->area.y1, false);
- if (!dst || (dst->size != NR_PIXBLOCK_SIZE_TINY && dst->data.px == NULL)) {
- g_warning("Memory allocation failed in filter_get_alpha");
- delete dst;
- return NULL;
- }
- nr_blit_pixblock_pixblock(dst, src);
-
- unsigned char *data = NR_PIXBLOCK_PX(dst);
- int end = dst->rs * (dst->area.y1 - dst->area.y0);
- for (int i = 0 ; i < end ; i += 4) {
- data[i + 0] = 0;
- data[i + 1] = 0;
- data[i + 2] = 0;
- }
- dst->empty = false;
-
- return dst;
-}
-
-} /* namespace Filters */
-} /* namespace Inkscape */
-
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
diff --git a/src/display/nr-filter-getalpha.h b/src/display/nr-filter-getalpha.h
deleted file mode 100644
index fca645776..000000000
--- a/src/display/nr-filter-getalpha.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef __NR_FILTER_GETALPHA_H__
-#define __NR_FILTER_GETALPHA_H__
-
-/*
- * Functions for extracting alpha channel from NRPixBlocks.
- *
- * Author:
- * Niko Kiirala <niko@kiirala.com>
- *
- * Copyright (C) 2007 Niko Kiirala
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#include "libnr/nr-pixblock.h"
-
-namespace Inkscape {
-namespace Filters {
-
-NRPixBlock *filter_get_alpha(NRPixBlock *src);
-
-} /* namespace Filters */
-} /* namespace Inkscape */
-
-#endif /* __NR_FILTER_GETALPHA_H__ */
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :