Tizen Native API
5.5
|
The PixelData object holds a pixel buffer . The PixelData takes over the ownership of the pixel buffer. The buffer memory must NOT be released outside of this class, instead, the PixelData object will release it automatically when the reference count falls to zero. More...
Public Types | |
enum | ReleaseFunction |
Enumeration for Function to release the pixel buffer. More... | |
Public Member Functions | |
PixelData () | |
Creates an empty handle. Use PixelData::New() to create an initialized object. | |
~PixelData () | |
Destructor. | |
PixelData (const PixelData &handle) | |
This copy constructor is required for (smart) pointer semantics. | |
PixelData & | operator= (const PixelData &rhs) |
This assignment operator is required for (smart) pointer semantics. | |
uint32_t | GetWidth () const |
Gets the width of the buffer in pixels. | |
uint32_t | GetHeight () const |
Gets the height of the buffer in pixels. | |
Pixel::Format | GetPixelFormat () const |
Gets the pixel format. | |
PixelData (Internal::PixelData *pointer) | |
The constructor. | |
Static Public Member Functions | |
static PixelData | New (uint8_t *buffer, uint32_t bufferSize, uint32_t width, uint32_t height, Pixel::Format pixelFormat, ReleaseFunction releaseFunction) |
Creates a PixelData object. |
The PixelData object holds a pixel buffer . The PixelData takes over the ownership of the pixel buffer. The buffer memory must NOT be released outside of this class, instead, the PixelData object will release it automatically when the reference count falls to zero.
Creates an empty handle. Use PixelData::New() to create an initialized object.
Destructor.
Dali::PixelData::PixelData | ( | const PixelData & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
Dali::PixelData::PixelData | ( | Internal::PixelData * | pointer | ) | [explicit] |
The constructor.
[in] | pointer | A pointer to a newly allocated PixelData |
uint32_t Dali::PixelData::GetHeight | ( | ) | const |
Gets the height of the buffer in pixels.
Pixel::Format Dali::PixelData::GetPixelFormat | ( | ) | const |
Gets the pixel format.
uint32_t Dali::PixelData::GetWidth | ( | ) | const |
Gets the width of the buffer in pixels.
static PixelData Dali::PixelData::New | ( | uint8_t * | buffer, |
uint32_t | bufferSize, | ||
uint32_t | width, | ||
uint32_t | height, | ||
Pixel::Format | pixelFormat, | ||
ReleaseFunction | releaseFunction | ||
) | [static] |
Creates a PixelData object.
[in] | buffer | The raw pixel data |
[in] | bufferSize | The size of the buffer in bytes |
[in] | width | Buffer width in pixels |
[in] | height | Buffer height in pixels |
[in] | pixelFormat | The pixel format |
[in] | releaseFunction | The function used to release the memory |