Created
November 29, 2010 22:26
-
-
Save springmeyer/720762 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/image_util.cpp b/src/image_util.cpp | |
index 1718d79..0e8ed06 100644 | |
--- a/src/image_util.cpp | |
+++ b/src/image_util.cpp | |
@@ -329,7 +329,7 @@ scaling_method_e get_scaling_method_by_name (std::string name) | |
} | |
template <typename Image> | |
-void scale_image_bilinear8 (Image& target,const Image& source, double x_off_f=0, double y_off_f=0) | |
+void scale_image_bilinear8 (Image& target,const Image& source, double x_off_f, double y_off_f) | |
{ | |
int source_width=source.width(); | |
@@ -404,7 +404,7 @@ void scale_image_bilinear8 (Image& target,const Image& source, double x_off_f=0, | |
} | |
template <typename Image> | |
-void scale_image_agg (Image& target,const Image& source, scaling_method_e scaling_method, double scale_factor, double x | |
+void scale_image_agg (Image& target,const Image& source, scaling_method_e scaling_method, double scale_factor, double x | |
{ | |
// most of this is copied from http://www.antigrain.com/demo/image_filters2.cpp.html | |
typedef agg::pixfmt_rgba32 pixfmt; | |
@@ -493,8 +493,8 @@ void scale_image_agg (Image& target,const Image& source, scaling_method_e scalin | |
agg::render_scanlines_aa(ras, sl, rb_dst, sa, sg); | |
} | |
-template void scale_image_agg<image_data_32> (image_data_32& target,const image_data_32& source, scaling_method_e scali | |
+template void scale_image_agg<image_data_32> (image_data_32& target,const image_data_32& source, scaling_method_e scali | |
-template void scale_image_bilinear8<image_data_32> (image_data_32& target,const image_data_32& source, double x_off_f=0 | |
+template void scale_image_bilinear8<image_data_32> (image_data_32& target,const image_data_32& source, double x_off_f, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment