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.h
diff --git
a/dali/public-api/images/pixel.h
b/dali/public-api/images/pixel.h
index
bb80167
..
f699af4
100644
(file)
--- a/
dali/public-api/images/pixel.h
+++ b/
dali/public-api/images/pixel.h
@@
-18,6
+18,9
@@
*
*/
*
*/
+// EXTERNAL INCLUDES
+#include <cstdint> // uint32_t
+
// INTERNAL INCLUDES
#include <dali/public-api/common/dali-common.h>
// INTERNAL INCLUDES
#include <dali/public-api/common/dali-common.h>
@@
-144,7
+147,7
@@
DALI_CORE_API bool HasAlpha(Format pixelformat);
* @param[in] pixelFormat The pixel format
* @return The number of bytes per pixel
*/
* @param[in] pixelFormat The pixel format
* @return The number of bytes per pixel
*/
-DALI_CORE_API u
nsigned in
t GetBytesPerPixel(Format pixelFormat);
+DALI_CORE_API u
int32_
t GetBytesPerPixel(Format pixelFormat);
/**
* @brief Returns the offset of the byte containing the alpha value from the start of the pixel data
/**
* @brief Returns the offset of the byte containing the alpha value from the start of the pixel data