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

Namespaces

namespace  anonymous_namespace{file-download.cpp}
 
namespace  anonymous_namespace{http-utils.cpp}
 
namespace  anonymous_namespace{image-loader.cpp}
 
namespace  anonymous_namespace{loader-astc.cpp}
 
namespace  anonymous_namespace{loader-bmp.cpp}
 
namespace  anonymous_namespace{loader-gif.cpp}
 
namespace  anonymous_namespace{loader-ico.cpp}
 
namespace  anonymous_namespace{loader-jpeg-turbo.cpp}
 
namespace  anonymous_namespace{loader-ktx.cpp}
 
namespace  anonymous_namespace{loader-png.cpp}
 
namespace  anonymous_namespace{loader-wbmp.cpp}
 
namespace  anonymous_namespace{resource-bitmap-requester.cpp}
 
namespace  anonymous_namespace{resource-thread-base.cpp}
 
namespace  anonymous_namespace{resource-thread-image.cpp}
 
namespace  Astc
 
namespace  Bmp
 
namespace  DataCompression
 
namespace  Gif
 
namespace  Ico
 
namespace  ImageLoader
 
namespace  Jpeg
 
namespace  Ktx
 
namespace  Network
 
namespace  Png
 

Classes

struct  AutoPngWrite
 
class  ResourceBitmapRequester
 Class to own request threads and manage resource requests for bitmaps. More...
 
struct  LoadedResource
 Contains information about a successfully loaded resource. More...
 
struct  FailedResource
 Contains information about a failed resource load/save request. More...
 
class  ResourceLoader
 This implements the resource loading part of the PlatformAbstraction API. More...
 
class  ResourceLoadingClient
 Abstract interface to the caller of a low-level resource loading function such as a loader for an image format. More...
 
class  StubbedResourceLoadingClient
 Default implementation of a caller of a low-level resource loading function which does nothing. More...
 
class  ResourceRequesterBase
 Base class to handle resource requests. More...
 
class  CancelRequestException
 Thrown by InterruptionPoint() to abort a request early. More...
 
class  ResourceThreadBase
 Resource loader worker thread. More...
 
class  ResourceThreadImage
 
class  TizenPlatformAbstraction
 Concrete implementation of the platform abstraction class. More...
 

Functions

bool LoadAstcHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a ASTC file and fills in the width and height appropriately. More...
 
bool LoadBitmapFromAstc (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads a compressed bitmap image from a ASTC file without decoding it. More...
 
bool LoadBmpHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a BMP file and fills in the width and height appropriately. More...
 
bool LoadBitmapFromBmp (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads the bitmap from an BMP file. More...
 
bool LoadGifHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a GIF file and fills in the width and height appropriately. More...
 
bool LoadBitmapFromGif (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads the bitmap from a GIF file. More...
 
bool LoadIcoHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 
bool LoadBitmapFromIco (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 
bool JpegRotate90 (unsigned char *buffer, int width, int height, int bpp)
 : Move all these rotation functions to portable/image-operations and take "Jpeg" out of their names. More...
 
bool JpegRotate180 (unsigned char *buffer, int width, int height, int bpp)
 
bool JpegRotate270 (unsigned char *buffer, int width, int height, int bpp)
 
JPGFORM_CODE ConvertExifOrientation (ExifData *exifData)
 
bool TransformSize (int requiredWidth, int requiredHeight, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, JPGFORM_CODE transform, int &preXformImageWidth, int &preXformImageHeight, int &postXformImageWidth, int &postXformImageHeight)
 
bool LoadJpegHeader (FILE *fp, unsigned int &width, unsigned int &height)
 
bool LoadBitmapFromJpeg (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads the bitmap from an JPEG file. More...
 
bool EncodeToJpeg (const unsigned char *pixelBuffer, Vector< unsigned char > &encodedPixels, std::size_t width, std::size_t height, Pixel::Format pixelFormat, unsigned quality=80)
 Encode raw pixel data to JPEG format. More...
 
ExifData * LoadExifData (FILE *fp)
 
bool LoadJpegHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a JPEG file and fills in the width and height appropriately. More...
 
bool LoadKtxHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a KTX file and fills in the width and height appropriately. More...
 
bool LoadBitmapFromKtx (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads a compressed bitmap from a KTX file without decoding it. More...
 
bool 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 LoadBitmapFromPng (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads the bitmap from an PNG file. More...
 
bool EncodeToPng (const unsigned char *const pixelBuffer, Vector< unsigned char > &encodedPixels, std::size_t width, std::size_t height, Pixel::Format pixelFormat)
 Potential improvements: More...
 
bool LoadBitmapFromWbmp (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 
bool LoadWbmpHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 
bool SupportsNonPowerOfTwoTextures ()
 Returns true if non power of two textures are supported. More...
 
unsigned int GetTextureDimension (unsigned int size)
 Returns the size that a textures dimension should have for a specific image size. More...
 
void LogMessage (Dali::Integration::Log::DebugPriority level, std::string &message)
  More...
 

Variables

struct
Dali::TizenPlatform::AutoPngWrite 
__attribute__
 

Function Documentation

JPGFORM_CODE Dali::TizenPlatform::ConvertExifOrientation ( ExifData *  exifData)
bool Dali::TizenPlatform::EncodeToJpeg ( const unsigned char *  pixelBuffer,
Vector< unsigned char > &  encodedPixels,
std::size_t  width,
std::size_t  height,
Pixel::Format  pixelFormat,
unsigned  quality = 80 
)

Encode raw pixel data to JPEG format.

Parameters
[in]pixelBufferPointer to raw pixel data to be encoded
[out]encodedPixelsEncoded pixel data. Existing contents will be overwritten
[in]widthImage width
[in]heightImage height
[in]pixelFormatInput pixel format (must be Pixel::RGB888)
[in]qualityJPEG quality on usual 1 to 100 scale.

Definition at line 509 of file loader-jpeg-turbo.cpp.

References Dali::Vector< T, IsTrivialType >::Begin(), Dali::Pixel::BGRA8888, DALI_ASSERT_DEBUG, DALI_LOG_ERROR, Dali::Vector< T, IsTrivialType >::Reserve(), Dali::Pixel::RGB888, and Dali::Pixel::RGBA8888.

Here is the call graph for this function:

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:

Encode raw pixel data to PNG format.

  1. Detect <= 256 colours and write in palette mode.
  2. Detect grayscale (will early-out quickly for colour images).
  3. Store colour space / gamma correction info related to the device screen? http://www.libpng.org/pub/png/book/chapter10.html
  4. Refactor with callers to write straight through to disk and save keeping a big buffer around.
  5. Prealloc buffer (reserve) to input size / <A number greater than 2 (expexcted few realloc but without using lots of memory) | 1 (expected zero reallocs but using a lot of memory)>.
  6. Set the modification time with png_set_tIME(png_ptr, info_ptr, mod_time);
  7. If caller asks for no compression, bypass libpng and blat raw data to disk, topped and tailed with header/tail blocks.
Parameters
[in]pixelBufferPointer to raw pixel data to be encoded
[out]encodedPixelsEncoded pixel data. Existing contents will be overwritten
[in]widthImage width
[in]heightImage height
[in]pixelFormatInput pixel format (must be Pixel::RGB888)

! No break: fall through:

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

References Dali::Pixel::BGRA8888, DALI_LOG_ERROR, Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::FlushData(), Dali::Pixel::RGB888, Dali::Pixel::RGBA8888, and Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::WriteData().

Here is the call graph for this function:

unsigned int Dali::TizenPlatform::GetTextureDimension ( unsigned int  size)
inline

Returns the size that a textures dimension should have for a specific image size.

Definition at line 45 of file platform-capabilities.h.

References Dali::NextPowerOfTwo().

Referenced by LoadBitmapFromJpeg(), and LoadBitmapFromPng().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::TizenPlatform::JpegRotate180 ( unsigned char *  buffer,
int  width,
int  height,
int  bpp 
)

Definition at line 430 of file loader-jpeg-turbo.cpp.

References height, and width.

Referenced by LoadBitmapFromJpeg().

Here is the caller graph for this function:

bool Dali::TizenPlatform::JpegRotate270 ( unsigned char *  buffer,
int  width,
int  height,
int  bpp 
)

Definition at line 463 of file loader-jpeg-turbo.cpp.

References Dali::Vector< T, IsTrivialType >::Begin(), height, Dali::Vector< T, IsTrivialType >::Reserve(), and width.

Referenced by LoadBitmapFromJpeg().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::TizenPlatform::JpegRotate90 ( unsigned char *  buffer,
int  width,
int  height,
int  bpp 
)

: Move all these rotation functions to portable/image-operations and take "Jpeg" out of their names.

Definition at line 387 of file loader-jpeg-turbo.cpp.

References Dali::Vector< T, IsTrivialType >::Begin(), height, Dali::Vector< T, IsTrivialType >::Reserve(), and width.

Referenced by LoadBitmapFromJpeg().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::TizenPlatform::LoadAstcHeader ( const ImageLoader::Input &  input,
unsigned int &  width,
unsigned int &  height 
)

Loads the header of a ASTC file and fills in the width and height appropriately.

Parameters
[in]inputInformation about the input image (including file pointer)
[out]widthIs set with the width of the image
[out]heightIs set with the height of the image
Returns
True if the header was read successfully, false otherwise

Definition at line 170 of file loader-astc.cpp.

References Dali::TizenPlatform::ImageLoader::Input::file.

Referenced by LoadBitmapFromAstc().

Here is the caller graph for this function:

bool Dali::TizenPlatform::LoadBitmapFromAstc ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)

Loads a compressed bitmap image from a ASTC file without decoding it.

This function checks the header first and if it is not a ASTC file, or the header contents are invalid, it will return a failure.

Parameters
[in]clienttodor
[in]inputInformation about the input image (including file pointer)
in/out]bitmap The bitmap class where the decoded image will be stored
Returns
True if file loaded successfully, false otherwise

Definition at line 177 of file loader-astc.cpp.

References DALI_LOG_ERROR, Dali::TizenPlatform::ImageLoader::Input::file, fileSize, Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::GetAstcPixelFormat(), Dali::Integration::Bitmap::GetCompressedProfile(), height, Dali::Pixel::INVALID, LoadAstcHeader(), Dali::Integration::Bitmap::CompressedProfile::ReserveBufferOfSize(), and width.

Here is the call graph for this function:

bool Dali::TizenPlatform::LoadBitmapFromBmp ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)

Loads the bitmap from an BMP file.

This function checks the header first and if it is not a BMP file, then it returns straight away.

Parameters
[in]fpPointer to the Image file
[in]bitmapThe bitmap class where the decoded image will be stored
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
Returns
true if file decoded successfully, false otherwise

Definition at line 1054 of file loader-bmp.cpp.

References Dali::Pixel::BGR8888, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_BITFIELDS32, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_BITFIELDS32V4, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_BITFIELDS555, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_NOTEXIST, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB1, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB24V5, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB4, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB555, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB8, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RLE4, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RLE8, DALI_ASSERT_DEBUG, DALI_LOG_ERROR, DALI_LOG_WARNING, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32V4(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF555(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF565(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB1(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB24V5(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB4(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB555(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB8(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE4(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE8(), Dali::TizenPlatform::ImageLoader::Input::file, Dali::Integration::Bitmap::GetPackedPixelsProfile(), height, LoadBmpHeader(), Dali::Integration::Bitmap::PackedPixelsProfile::ReserveBuffer(), Dali::Pixel::RGB565, Dali::Pixel::RGB888, Dali::Pixel::RGB8888, and width.

Here is the call graph for this function:

bool Dali::TizenPlatform::LoadBitmapFromGif ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)

Loads the bitmap from a GIF file.

This function checks the header first and if it is not a GIF file, then it returns straight away.

Note
For animated GIFs, only the first image is displayed
Parameters
[in]fpPointer to the Image file
[in]bitmapThe bitmap class where the decoded image will be stored
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
Returns
true if file decoded successfully, false otherwise

Definition at line 298 of file loader-gif.cpp.

References DALI_LOG_ERROR, Dali::TizenPlatform::ImageLoader::Input::file, Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::HandleExtensionRecordType(), Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::HandleImageDescriptionRecordType(), height, LoadGifHeader(), and width.

Here is the call graph for this function:

bool Dali::TizenPlatform::LoadBitmapFromIco ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)
bool Dali::TizenPlatform::LoadBitmapFromJpeg ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)

Loads the bitmap from an JPEG file.

This function checks the header first and if it is not a JPEG file, then it returns straight away.

Parameters
[in]fpPointer to the Image file
[in]bitmapThe bitmap class where the decoded image will be stored
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
Returns
true if file decoded successfully, false otherwise

Less-common orientation changes, since they don't correspond to a camera's

Definition at line 214 of file loader-jpeg-turbo.cpp.

References Dali::Vector< T, IsTrivialType >::Begin(), ConvertExifOrientation(), DALI_LOG_ERROR, DALI_LOG_WARNING, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::DECODED_PIXEL_LIBJPEG_TYPE, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::DECODED_PIXEL_SIZE, Dali::TizenPlatform::ImageLoader::ScalingParameters::dimensions, Dali::TizenPlatform::ImageLoader::Input::file, Dali::Uint16Pair::GetHeight(), Dali::Integration::Bitmap::GetPackedPixelsProfile(), GetTextureDimension(), Dali::Uint16Pair::GetWidth(), Dali::TizenPlatform::ResourceLoadingClient::InterruptionPoint(), JpegRotate180(), JpegRotate270(), JpegRotate90(), Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_FLIP_H, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_FLIP_V, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_NONE, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_ROT_180, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_ROT_270, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_ROT_90, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_TRANSPOSE, Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_TRANSVERSE, Dali::TizenPlatform::ImageLoader::Input::reorientationRequested, Dali::Vector< T, IsTrivialType >::Reserve(), Dali::Integration::Bitmap::PackedPixelsProfile::ReserveBuffer(), Dali::Pixel::RGB888, Dali::TizenPlatform::ImageLoader::ScalingParameters::samplingMode, Dali::TizenPlatform::ImageLoader::ScalingParameters::scalingMode, Dali::TizenPlatform::ImageLoader::Input::scalingParameters, and TransformSize().

Here is the call graph for this function:

bool Dali::TizenPlatform::LoadBitmapFromKtx ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)

Loads a compressed bitmap from a KTX file without decoding it.

This function checks the header first and if it is not a KTX file, then it returns straight away.

Parameters
[in]fpPointer to the Image file
[in]bitmapThe bitmap class where the decoded image will be stored
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
Returns
true if file loaded successfully, false otherwise

Definition at line 518 of file loader-ktx.cpp.

References Dali::TizenPlatform::anonymous_namespace{loader-ktx.cpp}::ConvertPixelFormat(), DALI_COMPILE_TIME_ASSERT, DALI_LOG_ERROR, Dali::TizenPlatform::ImageLoader::Input::file, Dali::Integration::Bitmap::GetCompressedProfile(), height, LoadKtxHeader(), Dali::Integration::Bitmap::CompressedProfile::ReserveBufferOfSize(), and width.

Here is the call graph for this function:

bool Dali::TizenPlatform::LoadBitmapFromPng ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)

Loads the bitmap from an PNG file.

This function checks the header first and if it is not a PNG file, then it returns straight away.

Parameters
[in]fpPointer to the Image file
[in]bitmapThe bitmap class where the decoded image will be stored
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
Returns
true if file decoded successfully, false otherwise
Todo:
: consider parameters
Todo:
is this correct for RGB16 5-6-5 ?

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

References DALI_ASSERT_DEBUG, DALI_LOG_WARNING, Dali::TizenPlatform::ImageLoader::Input::file, Dali::Pixel::GetBytesPerPixel(), Dali::Integration::Bitmap::GetPackedPixelsProfile(), GetTextureDimension(), height, Dali::Pixel::L8, Dali::Pixel::LA88, LoadPngHeader(), Dali::Integration::Bitmap::PackedPixelsProfile::ReserveBuffer(), Dali::Pixel::RGB565, Dali::Pixel::RGB888, Dali::Pixel::RGBA8888, and width.

Here is the call graph for this function:

bool Dali::TizenPlatform::LoadBitmapFromWbmp ( const ResourceLoadingClient &  client,
const ImageLoader::Input &  input,
Integration::Bitmap &  bitmap 
)
bool Dali::TizenPlatform::LoadBmpHeader ( const ImageLoader::Input &  input,
unsigned int &  width,
unsigned int &  height 
)

Loads the header of a BMP file and fills in the width and height appropriately.

Parameters
[in]fpPointer to the Image file
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
[out]widthIs set with the width of the image
[out]heightIs set with the height of the image
Returns
true if the file's header was read successully, false otherwise

Definition at line 1044 of file loader-bmp.cpp.

References Dali::TizenPlatform::ImageLoader::Input::file.

Referenced by LoadBitmapFromBmp().

Here is the caller graph for this function:

ExifData* Dali::TizenPlatform::LoadExifData ( FILE *  fp)

Definition at line 766 of file loader-jpeg-turbo.cpp.

References DALI_LOG_ERROR.

Referenced by LoadJpegHeader().

Here is the caller graph for this function:

bool Dali::TizenPlatform::LoadGifHeader ( const ImageLoader::Input &  input,
unsigned int &  width,
unsigned int &  height 
)

Loads the header of a GIF file and fills in the width and height appropriately.

Parameters
[in]fpPointer to the Image file
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
in/out]width Is set with the width of the image
in/out]height Is set with the height of the image
Returns
true if the file's header was read successully, false otherwise

Definition at line 289 of file loader-gif.cpp.

References Dali::TizenPlatform::ImageLoader::Input::file.

Referenced by LoadBitmapFromGif().

Here is the caller graph for this function:

bool Dali::TizenPlatform::LoadIcoHeader ( const ImageLoader::Input &  input,
unsigned int &  width,
unsigned int &  height 
)
bool Dali::TizenPlatform::LoadJpegHeader ( FILE *  fp,
unsigned int &  width,
unsigned int &  height 
)
bool Dali::TizenPlatform::LoadJpegHeader ( const ImageLoader::Input &  input,
unsigned int &  width,
unsigned int &  height 
)

Loads the header of a JPEG file and fills in the width and height appropriately.

If the width and height are set on entry, it will set the width and height to the closest scaled size (exactly as will be loaded by LoadBitmapFromJpeg with the same attributes)

Parameters
[in]fpPointer to the Image file
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
in/out]width Is set with the width of the image
in/out]height Is set with the height of the image
Returns
true if the file's header was read successully, false otherwise

Definition at line 800 of file loader-jpeg-turbo.cpp.

References ConvertExifOrientation(), Dali::TizenPlatform::ImageLoader::ScalingParameters::dimensions, Dali::TizenPlatform::ImageLoader::Input::file, Dali::Uint16Pair::GetHeight(), Dali::Uint16Pair::GetWidth(), Dali::TizenPlatform::anonymous_namespace{loader-jpeg-turbo.cpp}::JPGFORM_NONE, LoadExifData(), LoadJpegHeader(), Dali::TizenPlatform::ImageLoader::Input::reorientationRequested, Dali::TizenPlatform::ImageLoader::ScalingParameters::samplingMode, Dali::TizenPlatform::ImageLoader::ScalingParameters::scalingMode, Dali::TizenPlatform::ImageLoader::Input::scalingParameters, and TransformSize().

Here is the call graph for this function:

bool Dali::TizenPlatform::LoadKtxHeader ( const ImageLoader::Input &  input,
unsigned int &  width,
unsigned int &  height 
)

Loads the header of a KTX file and fills in the width and height appropriately.

Parameters
[in]fpPointer to the Image file
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
[out]widthIs set with the width of the image
[out]heightIs set with the height of the image
Returns
true if the file's header was read successully, false otherwise

Definition at line 508 of file loader-ktx.cpp.

References Dali::TizenPlatform::ImageLoader::Input::file.

Referenced by LoadBitmapFromKtx().

Here is the caller graph for this function:

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.

Parameters
[in]fpPointer to the Image file
[in]attributesDescribes the dimensions, pixel format and other details for loading the image data
[out]widthIs set with the width of the image
[out]heightIs set with the height of the image
Returns
true if the file's header was read successully, false otherwise

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

References Dali::TizenPlatform::ImageLoader::Input::file.

Referenced by LoadBitmapFromPng().

Here is the caller graph for this function:

bool Dali::TizenPlatform::LoadWbmpHeader ( const ImageLoader::Input &  input,
unsigned int &  width,
unsigned int &  height 
)
void Dali::TizenPlatform::LogMessage ( Dali::Integration::Log::DebugPriority  level,
std::string &  message 
)
bool Dali::TizenPlatform::SupportsNonPowerOfTwoTextures ( )
inline

Returns true if non power of two textures are supported.

Definition at line 32 of file platform-capabilities.h.

bool Dali::TizenPlatform::TransformSize ( int  requiredWidth,
int  requiredHeight,
FittingMode::Type  fittingMode,
SamplingMode::Type  samplingMode,
JPGFORM_CODE  transform,
int &  preXformImageWidth,
int &  preXformImageHeight,
int &  postXformImageWidth,
int &  postXformImageHeight 
)

Variable Documentation

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