Dali 3D User Interface Engine
Classes | Functions
Dali::TizenPlatform::anonymous_namespace{loader-png.cpp} Namespace Reference

Classes

struct  auto_png
 

Functions

bool LoadPngHeader (FILE *fp, unsigned int &width, unsigned int &height, png_structp &png, png_infop &info)
 
void 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 FlushData (png_structp png_ptr)
 Override the flush with a NOP to prevent libpng trying cstdlib file io. More...
 

Function Documentation

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.

Definition at line 386 of file loader-png.cpp.

References Dali::Integration::Log::DebugInfo, and Dali::Integration::Log::LogMessage().

Referenced by Dali::TizenPlatform::EncodeToPng().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::LoadPngHeader ( FILE *  fp,
unsigned int &  width,
unsigned int &  height,
png_structp &  png,
png_infop &  info 
)

Definition at line 66 of file loader-png.cpp.

References DALI_LOG_WARNING.

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++.

See Also
http://stackoverflow.com/a/2594222

Definition at line 355 of file loader-png.cpp.

References Dali::Vector< T, IsTrivialType >::Begin(), Dali::VectorBase::Count(), DALI_ASSERT_DEBUG, DALI_LOG_ERROR, and Dali::Vector< T, IsTrivialType >::Reserve().

Referenced by Dali::TizenPlatform::EncodeToPng().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali