From 5094080f7725212f6b58b21155e49c4e0861f6dc Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 5 Jan 2010 16:16:31 +0000 Subject: [PATCH] fix class names botched in r1509 merge from 0.7 branch --- include/mapnik/png_io.hpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/mapnik/png_io.hpp b/include/mapnik/png_io.hpp index 1e8c5e595..13d8535f1 100644 --- a/include/mapnik/png_io.hpp +++ b/include/mapnik/png_io.hpp @@ -109,7 +109,7 @@ namespace mapnik { } template - void reduce_8 (T const& in, ImageData8 & out, octree trees[], unsigned limits[], std::vector &alpha) + void reduce_8 (T const& in, image_data_8 & out, octree trees[], unsigned limits[], std::vector &alpha) { unsigned width = in.width(); unsigned height = in.height(); @@ -123,8 +123,8 @@ namespace mapnik { for (unsigned y = 0; y < height; ++y) { - mapnik::ImageData32::pixel_type const * row = in.getRow(y); - mapnik::ImageData8::pixel_type * row_out = out.getRow(y); + mapnik::image_data_32::pixel_type const * row = in.getRow(y); + mapnik::image_data_8::pixel_type * row_out = out.getRow(y); for (unsigned x = 0; x < width; ++x) { unsigned val = row[x]; @@ -153,7 +153,7 @@ namespace mapnik { } template - void reduce_4 (T const& in, ImageData8 & out, octree trees[], unsigned limits[], std::vector &alpha) + void reduce_4 (T const& in, image_data_8 & out, octree trees[], unsigned limits[], std::vector &alpha) { unsigned width = in.width(); unsigned height = in.height(); @@ -167,8 +167,8 @@ namespace mapnik { for (unsigned y = 0; y < height; ++y) { - mapnik::ImageData32::pixel_type const * row = in.getRow(y); - mapnik::ImageData8::pixel_type * row_out = out.getRow(y); + mapnik::image_data_32::pixel_type const * row = in.getRow(y); + mapnik::image_data_8::pixel_type * row_out = out.getRow(y); for (unsigned x = 0; x < width; ++x) { @@ -200,14 +200,14 @@ namespace mapnik { // 1-bit but only one color. template - void reduce_1(T const&, ImageData8 & out, octree trees[], unsigned limits[], std::vector &alpha) + void reduce_1(T const&, image_data_8 & out, octree trees[], unsigned limits[], std::vector &alpha) { out.set(0); // only one color!!! } template void save_as_png(T & file, std::vector & palette, - mapnik::ImageData8 const& image, + mapnik::image_data_8 const& image, unsigned width, unsigned height, unsigned color_depth, @@ -394,7 +394,7 @@ namespace mapnik { if (palette.size() > 16 ) { // >16 && <=256 colors -> write 8-bit color depth - ImageData8 reduced_image(width,height); + image_data_8 reduced_image(width,height); reduce_8(image,reduced_image,trees, limits, alphaTable); save_as_png(file,palette,reduced_image,width,height,8,alphaTable); } @@ -403,7 +403,7 @@ namespace mapnik { // 1 color image -> write 1-bit color depth PNG unsigned image_width = (int(0.125*width) + 7)&~7; unsigned image_height = height; - ImageData8 reduced_image(image_width,image_height); + image_data_8 reduced_image(image_width,image_height); reduce_1(image,reduced_image,trees, limits, alphaTable); if (meanAlpha<255 && cols[0]==0) { alphaTable.resize(1); @@ -416,7 +416,7 @@ namespace mapnik { // <=16 colors -> write 4-bit color depth PNG unsigned image_width = (int(0.5*width) + 3)&~3; unsigned image_height = height; - ImageData8 reduced_image(image_width,image_height); + image_data_8 reduced_image(image_width,image_height); reduce_4(image,reduced_image,trees, limits, alphaTable); save_as_png(file,palette,reduced_image,width,height,4,alphaTable); }