Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
conversionutils.cc File Reference
#include "ion/image/conversionutils.h"
#include "ion/base/logging.h"
#include "base/port.h"
#include "ion/base/allocationmanager.h"
#include "ion/base/datacontainer.h"
#include "ion/math/range.h"
#include "third_party/image_compression/image_compression/public/compressed_image.h"
#include "third_party/image_compression/image_compression/public/dxtc_compressor.h"
#include "third_party/image_compression/image_compression/public/etc_compressor.h"
#include "third_party/image_compression/image_compression/public/pvrtc_compressor.h"
#include "third_party/lodepng/lodepng.h"
#include "third_party/stblib/stb_image.h"
#include "third_party/stblib/stb_image_write.h"
Include dependency graph for conversionutils.cc:

Go to the source code of this file.

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::image
 

Macros

#define LODEPNG_NO_COMPILE_ENCODER
 Copyright 2016 Google Inc. More...
 
#define LODEPNG_NO_COMPILE_DISK
 
#define LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS
 
#define LODEPNG_NO_COMPILE_ERROR_TEXT
 
#define LODEPNG_NO_COMPILE_CPP
 

Functions

unsigned char * stbi_write_png_to_mem (unsigned char *, int, int, int, int, int *)
 This function is not declared as extern in the header, but it is accessible. More...
 
const ImagePtr ION_API ion::image::ConvertImage (const ImagePtr &image, Image::Format target_format, bool is_wipeable, const base::AllocatorPtr &allocator, const base::AllocatorPtr &temporary_allocator)
 Public functions. More...
 
const ImagePtr ION_API ion::image::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. More...
 
bool ION_API ion::image::IsIonRawImageFormat (const void *data, size_t data_size)
 Returns true if "Ion raw" format header is detected in data. More...
 
const std::vector< uint8 > ION_API ion::image::ConvertToExternalImageData (const ImagePtr &image, ExternalImageFormat external_format, bool flip_vertically)
 
const ImagePtr ION_API ion::image::DownsampleImage2x (const ImagePtr &image, bool is_wipeable, const base::AllocatorPtr &allocator)
 
const gfx::ImagePtr ion::image::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. More...
 
ION_API void ion::image::FlipImage (const gfx::ImagePtr &image)
 Flips an image vertically in place. More...
 
ION_API void ion::image::FlipImageHorizontally (const gfx::ImagePtr &image)
 Flips an image horizontally in place. More...
 
ION_API void ion::image::StraightAlphaFromPremultipliedAlpha (const gfx::ImagePtr &image)
 Converts a "pre-multiplied alpha" RGBA image into a "straight alpha" RGBA image. More...
 

Macro Definition Documentation

#define LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS

Definition at line 32 of file conversionutils.cc.

#define LODEPNG_NO_COMPILE_CPP

Definition at line 34 of file conversionutils.cc.

#define LODEPNG_NO_COMPILE_DISK

Definition at line 31 of file conversionutils.cc.

#define LODEPNG_NO_COMPILE_ENCODER

Copyright 2016 Google Inc.

All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 30 of file conversionutils.cc.

#define LODEPNG_NO_COMPILE_ERROR_TEXT

Definition at line 33 of file conversionutils.cc.

Function Documentation

unsigned char* stbi_write_png_to_mem ( unsigned char *  ,
int  ,
int  ,
int  ,
int  ,
int *   
)

This function is not declared as extern in the header, but it is accessible.