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. |
Detailed Description
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.
- Since:
- 3.0, DALi version 1.1.43
Member Enumeration Documentation
Constructor & Destructor Documentation
Creates an empty handle. Use PixelData::New() to create an initialized object.
- Since:
- 3.0, DALi version 1.1.43
Destructor.
- Since:
- 3.0, DALi version 1.1.43
Dali::PixelData::PixelData | ( | const PixelData & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] handle A reference to the copied handle
Dali::PixelData::PixelData | ( | Internal::PixelData * | pointer | ) | [explicit] |
The constructor.
- Note:
- Not intended for application developers.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[in] pointer A pointer to a newly allocated PixelData
Member Function Documentation
uint32_t Dali::PixelData::GetHeight | ( | ) | const |
Gets the height of the buffer in pixels.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- The height of the buffer in pixels
Pixel::Format Dali::PixelData::GetPixelFormat | ( | ) | const |
Gets the pixel format.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- The pixel format
uint32_t Dali::PixelData::GetWidth | ( | ) | const |
Gets the width of the buffer in pixels.
- Since:
- 3.0, DALi version 1.1.43
- Returns:
- 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.
- Since:
- 3.0, DALi version 1.1.43
- Parameters:
-
[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
- Returns:
- A handle to the PixelData