Dali 3D User Interface Engine
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
image-loader.cpp File Reference
#include "image-loader.h"
#include <dali/devel-api/common/ref-counted-dali-vector.h>
#include <dali/integration-api/bitmap.h>
#include <dali/integration-api/debug.h>
#include "loader-astc.h"
#include "loader-bmp.h"
#include "loader-gif.h"
#include "loader-ico.h"
#include "loader-jpeg.h"
#include "loader-ktx.h"
#include "loader-png.h"
#include "loader-wbmp.h"
#include "image-operations.h"
#include "image-loader-input.h"
#include "portable/file-closer.h"
Include dependency graph for image-loader.cpp:

Go to the source code of this file.

Classes

struct  Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::BitmapLoader
 Stores the magic bytes, and the loader and header functions used for each image loader. More...
 
struct  Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FormatExtension
 This code tries to predict the file format from the filename to help with format picking. More...
 

Namespaces

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

Typedefs

typedef bool(* Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::LoadBitmapFunction )(const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 
typedef bool(* Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::LoadBitmapHeaderFunction )(const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 

Enumerations

enum  Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FileFormats {
  Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_UNKNOWN = -1, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_PNG = 0, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_JPEG, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_BMP,
  Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_GIF, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_KTX, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_ASTC, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_ICO,
  Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_MAGIC_BYTE_COUNT, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_WBMP = FORMAT_MAGIC_BYTE_COUNT, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_TOTAL_COUNT
}
 Enum for file formats, has to be in sync with BITMAP_LOADER_LOOKUP_TABLE. More...
 

Functions

FileFormats Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::GetFormatHint (const std::string &filename)
 
bool Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::GetBitmapLoaderFunctions (FILE *fp, FileFormats format, LoadBitmapFunction &loader, LoadBitmapHeaderFunction &header, Bitmap::Profile &profile)
 Checks the magic bytes of the file first to determine which Image decoder to use to decode the bitmap. More...
 
bool Dali::TizenPlatform::ImageLoader::ConvertStreamToBitmap (const Integration::ResourceType &resourceType, std::string path, FILE *const fp, const ResourceLoadingClient &client, Integration::BitmapPtr &ptr)
 Convert a file stream into a bitmap. More...
 
ResourcePointer Dali::TizenPlatform::ImageLoader::LoadResourceSynchronously (const Integration::ResourceType &resourceType, const std::string &resourcePath)
 
ImageDimensions Dali::TizenPlatform::ImageLoader::GetClosestImageSize (const std::string &filename, ImageDimensions size, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, bool orientationCorrection)
 : Rename GetClosestImageSize() functions. Make them use the orientation correction and scaling information. Requires jpeg loader to tell us about reorientation. [Is there still a requirement for this functionality at all?] More...
 
ImageDimensions Dali::TizenPlatform::ImageLoader::GetClosestImageSize (Integration::ResourcePointer resourceBuffer, ImageDimensions size, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, bool orientationCorrection)
 

Variables

const BitmapLoader Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::BITMAP_LOADER_LOOKUP_TABLE [FORMAT_TOTAL_COUNT]
 A lookup table containing all the bitmap loaders with the appropriate information. More...
 
const unsigned int Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::MAGIC_LENGTH = 2
 
const FormatExtension Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_EXTENSIONS []
 
const unsigned int Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::FORMAT_EXTENSIONS_COUNT = sizeof(FORMAT_EXTENSIONS) / sizeof(FormatExtension)
 
Dali Docs Home
Read more about Dali