-#ifndef __DALI_PIXEL_H__
-#define __DALI_PIXEL_H__
+#ifndef DALI_PIXEL_H
+#define DALI_PIXEL_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
*/
+// EXTERNAL INCLUDES
+#include <cstdint> // uint32_t
+
// INTERNAL INCLUDES
#include <dali/public-api/common/dali-common.h>
RGB16F, ///< Color depth 48-bit, 16-16-16 half floating point. @SINCE_1_2.60
RGB32F, ///< Color depth 96-bit, 32-32-32 floating point. @SINCE_1_2.60
+ DEPTH_UNSIGNED_INT, ///< Unsigned int depth format 32-bit. @SINCE_1_5_9
+ DEPTH_FLOAT, ///< Float depth format 32-bit. @SINCE_1_5_9
+
+ DEPTH_STENCIL ///< Depth stencil 32-bit, 24 bit for depth, 8 bit for stencil. @SINCE_1_5_9
///! Update LAST_VALID_PIXEL_FORMAT below if you add an enum value here.
};
*
* Sync it to the last value above.
*/
-const Format LAST_VALID_PIXEL_FORMAT = RGB32F;
+const Format LAST_VALID_PIXEL_FORMAT = DEPTH_STENCIL;
/**
* @brief Whether specified pixel format contains an alpha value.
* @param[in] pixelFormat The pixel format
* @return The number of bytes per pixel
*/
-DALI_CORE_API unsigned int GetBytesPerPixel(Format pixelFormat);
+DALI_CORE_API uint32_t GetBytesPerPixel(Format pixelFormat);
/**
* @brief Returns the offset of the byte containing the alpha value from the start of the pixel data
*/
} // namespace Dali
-#endif // __DALI_PIXEL_H__
+#endif // DALI_PIXEL_H