Code

Update build.xml for Cairo devlibs upgrade
[inkscape.git] / src / display / pixblock-scaler.h
index 1e30d0a34a7fe9907c66801ed7b6e4e7328bb660..f7cbcb0be6a04e1be893eb8297bfa98ead5d733b 100644 (file)
@@ -1,11 +1,29 @@
 #ifndef __NR_PIXBLOCK_SCALER_H__
 #define __NR_PIXBLOCK_SCALER_H__
 
+/*
+ * Functions for blitting pixblocks using scaling
+ *
+ * Author:
+ *   Niko Kiirala <niko@kiirala.com>
+ *
+ * Copyright (C) 2006 Niko Kiirala
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
 #include "libnr/nr-pixblock.h"
+#include <2geom/forward.h>
 
 namespace NR {
 
-void scale_bicubic(NRPixBlock *to, NRPixBlock *from);
+/** Blits the second pixblock to the first.
+ * Image in source pixblock is scaled to the size of destination pixblock
+ * using bicubic interpolation.
+ * Source pixblock is not modified in process.
+ * Only works for 32-bpp images.
+ */
+void scale_bicubic(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &trans);
 
 } /* namespace NR */
 
@@ -19,4 +37,4 @@ void scale_bicubic(NRPixBlock *to, NRPixBlock *from);
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :