X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fimages%2Fpixel-data.h;h=19ffe3091642f370f5df1d7dc49a31497d1f898c;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hp=fd830d837e0793525ca5c32cd6fd4aa3ee4fd7f6;hpb=b461bf8aff79358fc27202f9ae79bd383570a9f5;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/images/pixel-data.h b/dali/public-api/images/pixel-data.h index fd830d8..19ffe30 100644 --- a/dali/public-api/images/pixel-data.h +++ b/dali/public-api/images/pixel-data.h @@ -2,7 +2,7 @@ #define DALI_PIXEL_DATA_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -18,6 +18,10 @@ * */ +// EXTERNAL INCLUDES +#include // uint8_t, uint32_t + +// INTERNAL INCLUDES #include #include @@ -36,10 +40,14 @@ class PixelData; * * @SINCE_1_1.43 */ -class DALI_IMPORT_API PixelData : public BaseHandle +class DALI_CORE_API PixelData : public BaseHandle { public: + /** + * @brief Enumeration for Function to release the pixel buffer. + * @SINCE_1_1.43 + */ enum ReleaseFunction { FREE, ///< Use free function to release the pixel buffer @SINCE_1_1.43 @@ -47,25 +55,26 @@ public: }; /** - * @brief Create a PixelData object. + * @brief Creates a PixelData object. * * @SINCE_1_1.43 - * @param[in] buffer The raw pixel data. - * @param[in] bufferSize The size of the buffer in bytes - * @param[in] width Buffer width in pixels - * @param[in] height Buffer height in pixels - * @param[in] pixelFormat The pixel format - * @param[in] releaseFunction The function used to release the memory. + * @param[in] buffer The raw pixel data + * @param[in] bufferSize The size of the buffer in bytes + * @param[in] width Buffer width in pixels + * @param[in] height Buffer height in pixels + * @param[in] pixelFormat The pixel format + * @param[in] releaseFunction The function used to release the memory + * @return A handle to the PixelData */ - static PixelData New( unsigned char* buffer, - unsigned int bufferSize, - unsigned int width, - unsigned int height, + static PixelData New( uint8_t* buffer, + uint32_t bufferSize, + uint32_t width, + uint32_t height, Pixel::Format pixelFormat, ReleaseFunction releaseFunction); /** - * @brief Create an empty handle. + * @brief Creates an empty handle. * Use PixelData::New() to create an initialized object. * * @SINCE_1_1.43 @@ -73,7 +82,7 @@ public: PixelData(); /** - * Destructor + * @brief Destructor. * * @SINCE_1_1.43 */ @@ -97,23 +106,23 @@ public: PixelData& operator=(const PixelData& rhs); /** - * Get the width of the buffer in pixels. + * @brief Gets the width of the buffer in pixels. * * @SINCE_1_1.43 * @return The width of the buffer in pixels */ - unsigned int GetWidth() const; + uint32_t GetWidth() const; /** - * Get the height of the buffer in pixels + * @brief Gets the height of the buffer in pixels. * * @SINCE_1_1.43 * @return The height of the buffer in pixels */ - unsigned int GetHeight() const; + uint32_t GetHeight() const; /** - * Get the pixel format + * @brief Gets the pixel format. * * @SINCE_1_1.43 * @return The pixel format @@ -123,7 +132,7 @@ public: public: /** - * @brief The constructor + * @brief The constructor. * @note Not intended for application developers. * @SINCE_1_1.43 * @param[in] pointer A pointer to a newly allocated PixelData