Tizen Native API
5.0
|
EncodedBufferImage represents an image resource as a buffer of encoded pixel data. More...
Public Member Functions | |
EncodedBufferImage () DALI_DEPRECATED_API | |
Constructor which creates an uninitialized EncodedBufferImage object. | |
~EncodedBufferImage () DALI_DEPRECATED_API | |
Destructor. | |
EncodedBufferImage (const EncodedBufferImage &handle) DALI_DEPRECATED_API | |
This copy constructor is required for (smart) pointer semantics. | |
EncodedBufferImage & | operator= (const EncodedBufferImage &rhs) DALI_DEPRECATED_API |
This assignment operator is required for (smart) pointer semantics. | |
Static Public Member Functions | |
static EncodedBufferImage | New (const uint8_t *const encodedImage, std::size_t encodedImageByteCount) DALI_DEPRECATED_API |
Creates an initialized image object from an encoded image buffer in memory. | |
static EncodedBufferImage | New (const uint8_t *const encodedImage, std::size_t encodedImageByteCount, ImageDimensions size, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, bool orientationCorrection=true) DALI_DEPRECATED_API |
Creates an initialized image object from an encoded image buffer in memory. | |
static EncodedBufferImage | DownCast (BaseHandle handle) DALI_DEPRECATED_API |
Downcasts a handle to EncodedBufferImage handle. |
EncodedBufferImage represents an image resource as a buffer of encoded pixel data.
A memory buffer of encoded image data is provided by the application and decoded asynchronously on a background thread to fill the image's pixel data.
The buffer of data provided to an EncodedBufferImage factory function (New) should be filled with encoded image data in one of Dali's supported image file formats, with the sequence of bytes in the buffer exactly matching the sequence of bytes that a file in the file system holding the encoded image data would have.
The application may free the encoded image buffer passed to one of the New() static factory member functions as soon as they return.
Image::LoadingFinishedSignal is emitted when the decoding of the image data is completed, either successfully or not.
Image::UploadedSignal is emitted when the decoded image data gets uploaded to the OpenGL ES implementation.
Constructor which creates an uninitialized EncodedBufferImage object.
Use EncodedBufferImage::New to create an initialised object.
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::EncodedBufferImage::EncodedBufferImage | ( | const EncodedBufferImage & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
static EncodedBufferImage Dali::EncodedBufferImage::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to EncodedBufferImage handle.
If handle points to a EncodedBufferImage, the downcast produces valid handle. If not, the returned handle is left uninitialized.
[in] | handle | Handle to an object |
Reimplemented from Dali::Image.
static EncodedBufferImage Dali::EncodedBufferImage::New | ( | const uint8_t *const | encodedImage, |
std::size_t | encodedImageByteCount | ||
) | [static] |
Creates an initialized image object from an encoded image buffer in memory.
[in] | encodedImage | The encoded bytes of an image, in a supported image format such as PNG, JPEG, GIF, BMP, KTX, ICO, and WBMP, organised exactly as it would be as a file in the filesystem. The caller retains ownership of this buffer and is free to modify or discard it as soon as the function returns |
[in] | encodedImageByteCount | The size in bytes of the buffer pointed to by encodedImage. |
static EncodedBufferImage Dali::EncodedBufferImage::New | ( | const uint8_t *const | encodedImage, |
std::size_t | encodedImageByteCount, | ||
ImageDimensions | size, | ||
FittingMode::Type | fittingMode, | ||
SamplingMode::Type | samplingMode, | ||
bool | orientationCorrection = true |
||
) | [static] |
Creates an initialized image object from an encoded image buffer in memory.
[in] | encodedImage | The encoded bytes of an image, in a supported image format such as PNG, JPEG, GIF, BMP, KTX, ICO, and WBMP, organised exactly as it would be as a file in the filesystem. The caller retains ownership of this buffer and is free to modify or discard it as soon as the function returns |
[in] | encodedImageByteCount | The size in bytes of the buffer pointed to by encodedImage |
[in] | size | The width and height to fit the loaded image to |
[in] | fittingMode | The method used to fit the shape of the image before loading to the shape defined by the size parameter |
[in] | samplingMode | The filtering method used when sampling pixels from the input image while fitting it to desired size |
[in] | orientationCorrection | Reorient the image to respect any orientation metadata in its header policy is set, a reload will not be possible, so the Image should never be used once all actors using it have gone off-stage |
EncodedBufferImage& Dali::EncodedBufferImage::operator= | ( | const EncodedBufferImage & | rhs | ) |
This assignment operator is required for (smart) pointer semantics.
[in] | rhs | A reference to the copied handle |