summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d432825)
raw | patch | inline | side by side (parent: d432825)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 1 Jan 2009 23:40:56 +0000 (23:40 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 1 Jan 2009 23:40:56 +0000 (23:40 +0000) |
index c26d56ad64d50fc3746ea7e8aa168393703c4afc..eafe1423f9ad0efe5ce16ff704616f04dc9c40b2 100644 (file)
#include <glib.h>
#include "display/nr-filter-units.h"
-#include "libnr/nr-matrix.h"
-#include "libnr/nr-matrix-fns.h"
-#include "libnr/nr-matrix-ops.h"
-#include "libnr/nr-matrix-scale-ops.h"
-#include "libnr/nr-rect.h"
#include "libnr/nr-rect-l.h"
-#include "libnr/nr-scale.h"
#include "sp-filter-units.h"
#include <2geom/transforms.h>
index 36ba3704e64e633345cfd29f9d268ccf026b5eb1..a6c5df036cef32a6d1c68134ad1e446c5231c44e 100644 (file)
#include "display/nr-arena-item.h"
#include "libnr/nr-pixblock.h"
#include "libnr/nr-blit.h"
-#include "libnr/nr-matrix.h"
-#include "libnr/nr-scale.h"
-#include "2geom/rect.h"
+#include <2geom/matrix.h>
+#include <2geom/rect.h>
#include "svg/svg-length.h"
#include "sp-filter-units.h"
#include "preferences.h"
index 74ded2ae0bf24731cc6fe5ae92d525360d7bf9c2..daf27582a8bd63e76c05abca153513c5e6d3c1d1 100644 (file)
#include "libnr/nr-blit.h"
#include "libnr/nr-pixblock.h"
-#include "libnr/nr-matrix.h"
+#include <2geom/matrix.h>
namespace NR {
}
}
-void transform_nearest(NRPixBlock *to, NRPixBlock *from, Matrix &trans)
+void transform_nearest(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &trans)
{
if (NR_PIXBLOCK_BPP(from) != 4 || NR_PIXBLOCK_BPP(to) != 4) {
g_warning("A non-32-bpp image passed to transform_nearest: scaling aborted.");
int to_width = to->area.x1 - to->area.x0;
int to_height = to->area.y1 - to->area.y0;
- Matrix itrans = trans.inverse();
+ Geom::Matrix itrans = trans.inverse();
// Loop through every pixel of destination image, a line at a time
for (int to_y = 0 ; to_y < to_height ; to_y++) {
@@ -155,7 +155,7 @@ inline static int samplex(const int a, const int b, const int c, const int d, co
return sum / 256;
}
-void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Matrix &trans)
+void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &trans)
{
if (NR_PIXBLOCK_BPP(from) != 4 || NR_PIXBLOCK_BPP(to) != 4) {
g_warning("A non-32-bpp image passed to transform_bicubic: scaling aborted.");
int to_width = to->area.x1 - to->area.x0;
int to_height = to->area.y1 - to->area.y0;
- Matrix itrans = trans.inverse();
+ Geom::Matrix itrans = trans.inverse();
// Loop through every pixel of destination image, a line at a time
for (int to_y = 0 ; to_y < to_height ; to_y++) {
index fd28567af9e629d49171b5044e9f3100e9ed8c33..3ba00a08f5c751190e8a245ebc9527e41c067c75 100644 (file)
*/
#include "libnr/nr-pixblock.h"
-#include "libnr/nr-matrix.h"
+#include <2geom/forward.h>
namespace NR {
-void transform_nearest(NRPixBlock *to, NRPixBlock *from, Matrix &trans);
-void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Matrix &trans);
+void transform_nearest(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &trans);
+void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &trans);
} /* namespace NR */