18 #ifndef ION_IMAGE_CONVERSIONUTILS_H_
19 #define ION_IMAGE_CONVERSIONUTILS_H_
32 #include "base/integral_types.h"
122 const void* data,
size_t data_size,
bool flip_vertically,
bool is_wipeable,
134 bool flip_vertically);
170 #endif // ION_IMAGE_CONVERSIONUTILS_H_
Format
Supported image formats.
bool ION_API IsIonRawImageFormat(const void *data, size_t data_size)
Returns true if "Ion raw" format header is detected in data.
const ImagePtr ION_API ConvertImage(const ImagePtr &image, Image::Format target_format, bool is_wipeable, const base::AllocatorPtr &allocator, const base::AllocatorPtr &temporary_allocator)
Public functions.
ExternalImageFormat
External image formats supported by ConvertToExternalImageData().
const ImagePtr ION_API DownsampleImage2x(const ImagePtr &image, bool is_wipeable, const base::AllocatorPtr &allocator)
const ImagePtr ION_API ConvertFromExternalImageData(const void *data, size_t data_size, bool flip_vertically, bool is_wipeable, const base::AllocatorPtr &allocator)
Converts external image data to an ImagePtr with data in canonical format.
ION_API void StraightAlphaFromPremultipliedAlpha(const gfx::ImagePtr &image)
Converts a "pre-multiplied alpha" RGBA image into a "straight alpha" RGBA image.
ION_API void FlipImageHorizontally(const gfx::ImagePtr &image)
Flips an image horizontally in place.
const Grid & image
The original monochrome image data, as doubles (0 - 1).
A SharedPtr is a smart shared pointer to an instance of some class that implements reference counting...
const std::vector< uint8 > ION_API ConvertToExternalImageData(const ImagePtr &image, ExternalImageFormat external_format, bool flip_vertically)
ION_API void FlipImage(const gfx::ImagePtr &image)
Flips an image vertically in place.
const gfx::ImagePtr ResizeImage(const gfx::ImagePtr &image, uint32 out_width, uint32 out_height, bool is_wipeable, const base::AllocatorPtr &allocator)
Returns a copy of image scaled to the specified dimensions.