Dali 3D User Interface Engine
Classes | Functions
Dali::TizenPlatform::ImageLoader Namespace Reference

Classes

class  ScalingParameters
 A simple immutable struct to bundle together parameters for scaling an image. More...
 
struct  Input
 Bundle-up the data pushed into an image loader. More...
 

Functions

bool 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 LoadResourceSynchronously (const Integration::ResourceType &resourceType, const std::string &resourcePath)
 
ImageDimensions 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 GetClosestImageSize (Integration::ResourcePointer resourceBuffer, ImageDimensions size, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, bool orientationCorrection)
 
bool ConvertBitmapToStream (std::string path, FILE *const fp, Integration::BitmapPtr &ptr)
 Convert a bitmap and write to a file stream. More...
 

Function Documentation

bool Dali::TizenPlatform::ImageLoader::ConvertBitmapToStream ( std::string  path,
FILE *const  fp,
Integration::BitmapPtr &  ptr 
)

Convert a bitmap and write to a file stream.

Parameters
[in]pathThe path to the resource.
[in]fpFile Pointer. Closed on exit.
[out]bitmapPointer from which to read bitmap
Returns
true on success, false on failure
bool Dali::TizenPlatform::ImageLoader::ConvertStreamToBitmap ( const Integration::ResourceType &  resourceType,
std::string  path,
FILE *const  fp,
const ResourceLoadingClient &  client,
Integration::BitmapPtr &  ptr 
)
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?]

Definition at line 328 of file image-loader.cpp.

References DALI_LOG_WARNING, Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::GetBitmapLoaderFunctions(), Dali::Internal::Platform::FileCloser::GetFile(), Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::GetFormatHint(), and height.

Referenced by Dali::TizenPlatform::TizenPlatformAbstraction::GetClosestImageSize(), and Dali::Internal::ImageFactory::Reload().

Here is the call graph for this function:

Here is the caller graph for this function:

ImageDimensions Dali::TizenPlatform::ImageLoader::GetClosestImageSize ( Integration::ResourcePointer  resourceBuffer,
ImageDimensions  size,
FittingMode::Type  fittingMode,
SamplingMode::Type  samplingMode,
bool  orientationCorrection 
)
Integration::ResourcePointer Dali::TizenPlatform::ImageLoader::LoadResourceSynchronously ( const Integration::ResourceType &  resourceType,
const std::string &  resourcePath 
)
Dali Docs Home
Read more about Dali