[Tizen] Fix Coverity issues
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / pixel-buffer.h
index a63a623..2a9add4 100755 (executable)
@@ -134,6 +134,17 @@ public:
   unsigned char* GetBuffer();
 
   /**
+   * @brief Gets the pixel buffer. This is a pointer to the internal
+   * pixel buffer.
+   *
+   * @warning If there is no pixel buffer (e.g. this object has been
+   * converted to a PixelData), this method will return NULL.
+   *
+   * @return The pixel buffer, or NULL.
+   */
+  const unsigned char* const GetBuffer() const;
+
+  /**
    * @brief Gets the width of the buffer in pixels.
    *
    * @SINCE_1_2.46
@@ -231,6 +242,12 @@ public:
    */
   bool Rotate( Degree angle );
 
+  /**
+   * @brief Returns pixel-buffer is premultiplied or not.
+   * @return true if alpha is pre-multiplied.
+   */
+  bool IsAlphaPreMultiplied() const;
+
 public:
 
   /**