Dali 3D User Interface Engine
Classes | Namespaces | Functions | Variables
loader-png.cpp File Reference
#include "loader-png.h"
#include <cstring>
#include <cstdlib>
#include <zlib.h>
#include <png.h>
#include <dali/integration-api/bitmap.h>
#include <dali/integration-api/debug.h>
#include <dali/public-api/images/image.h>
#include "dali/public-api/math/math-utils.h"
#include "dali/public-api/math/vector2.h"
#include "platform-capabilities.h"
Include dependency graph for loader-png.cpp:

Go to the source code of this file.

Classes

struct  Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::auto_png
 
struct  Dali::TizenPlatform::AutoPngWrite
 

Namespaces

namespace  Dali
 The top level DALi namespace.
 
namespace  Dali::TizenPlatform
 
namespace  Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}
 

Functions

bool Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::LoadPngHeader (FILE *fp, unsigned int &width, unsigned int &height, png_structp &png, png_infop &info)
 
bool Dali::TizenPlatform::LoadPngHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a PNG file and fills in the width and height appropriately. More...
 
bool Dali::TizenPlatform::LoadBitmapFromPng (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads the bitmap from an PNG file. More...
 
void Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::WriteData (png_structp png_ptr, png_bytep data, png_size_t length)
 extern "C" linkage is used because this is a callback that we pass to a C library which is part of the underlying platform and so potentially compiled as C rather than C++. More...
 
void Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::FlushData (png_structp png_ptr)
 Override the flush with a NOP to prevent libpng trying cstdlib file io. More...
 
bool Dali::TizenPlatform::EncodeToPng (const unsigned char *const pixelBuffer, Vector< unsigned char > &encodedPixels, std::size_t width, std::size_t height, Pixel::Format pixelFormat)
 Potential improvements: More...
 

Variables

struct
Dali::TizenPlatform::AutoPngWrite 
Dali::TizenPlatform::__attribute__
 
Dali Docs Home
Read more about Dali