projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git]
/
dali
/
public-api
/
images
/
pixel-data.h
diff --git
a/dali/public-api/images/pixel-data.h
b/dali/public-api/images/pixel-data.h
index
2347433
..
19ffe30
100644
(file)
--- a/
dali/public-api/images/pixel-data.h
+++ b/
dali/public-api/images/pixel-data.h
@@
-18,6
+18,10
@@
*
*/
*
*/
+// EXTERNAL INCLUDES
+#include <cstdint> // uint8_t, uint32_t
+
+// INTERNAL INCLUDES
#include <dali/public-api/images/pixel.h>
#include <dali/public-api/object/base-handle.h>
#include <dali/public-api/images/pixel.h>
#include <dali/public-api/object/base-handle.h>
@@
-62,10
+66,10
@@
public:
* @param[in] releaseFunction The function used to release the memory
* @return A handle to the PixelData
*/
* @param[in] releaseFunction The function used to release the memory
* @return A handle to the PixelData
*/
- static PixelData New( u
nsigned char
* buffer,
- u
nsigned in
t bufferSize,
- u
nsigned in
t width,
- u
nsigned in
t height,
+ static PixelData New( u
int8_t
* buffer,
+ u
int32_
t bufferSize,
+ u
int32_
t width,
+ u
int32_
t height,
Pixel::Format pixelFormat,
ReleaseFunction releaseFunction);
Pixel::Format pixelFormat,
ReleaseFunction releaseFunction);
@@
-107,7
+111,7
@@
public:
* @SINCE_1_1.43
* @return The width of the buffer in pixels
*/
* @SINCE_1_1.43
* @return The width of the buffer in pixels
*/
- u
nsigned in
t GetWidth() const;
+ u
int32_
t GetWidth() const;
/**
* @brief Gets the height of the buffer in pixels.
/**
* @brief Gets the height of the buffer in pixels.
@@
-115,7
+119,7
@@
public:
* @SINCE_1_1.43
* @return The height of the buffer in pixels
*/
* @SINCE_1_1.43
* @return The height of the buffer in pixels
*/
- u
nsigned in
t GetHeight() const;
+ u
int32_
t GetHeight() const;
/**
* @brief Gets the pixel format.
/**
* @brief Gets the pixel format.