mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
initial image_data_any read(...) implementation - always read into image_data_32
This commit is contained in:
parent
1df9d89a70
commit
802428712e
@ -316,7 +316,9 @@ void jpeg_reader<T>::read(unsigned x0, unsigned y0, image_data_32& image)
|
||||
template <typename T>
|
||||
image_data_any jpeg_reader<T>::read(unsigned x, unsigned y, unsigned width, unsigned height)
|
||||
{
|
||||
return image_data_any();
|
||||
image_data_32 data(width,height);
|
||||
read(x, y, data);
|
||||
return image_data_any(std::move(data));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -306,7 +306,9 @@ void png_reader<T>::read(unsigned x0, unsigned y0,image_data_32& image)
|
||||
template <typename T>
|
||||
image_data_any png_reader<T>::read(unsigned x, unsigned y, unsigned width, unsigned height)
|
||||
{
|
||||
return image_data_any();
|
||||
image_data_32 data(width,height);
|
||||
read(x, y, data);
|
||||
return image_data_any(std::move(data));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -300,7 +300,9 @@ void tiff_reader<T>::read(unsigned x,unsigned y,image_data_32& image)
|
||||
template <typename T>
|
||||
image_data_any tiff_reader<T>::read(unsigned x, unsigned y, unsigned width, unsigned height)
|
||||
{
|
||||
return image_data_any();
|
||||
image_data_32 data(width,height);
|
||||
read(x, y, data);
|
||||
return image_data_any(std::move(data));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
@ -264,7 +264,9 @@ void webp_reader<T>::read(unsigned x0, unsigned y0,image_data_32& image)
|
||||
template <typename T>
|
||||
image_data_any webp_reader<T>::read(unsigned x, unsigned y, unsigned width, unsigned height)
|
||||
{
|
||||
return image_data_any();
|
||||
image_data_32 data(width,height);
|
||||
read(x, y, data);
|
||||
return image_data_any(std::move(data));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user