[4.0] PixelBuffer::Rotate() amendments.
[platform/core/uifw/dali-adaptor.git] / adaptors / common / pixel-buffer-impl.h
index ae899be..e8eb98e 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_ADAPTOR_PIXEL_BUFFER_H
 
 /*
- * Copyright (c) 2017 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.
@@ -206,6 +206,17 @@ public:
    */
   void SetMetadata(std::unique_ptr<Property::Map> metadata);
 
+  /**
+   * Allocates fixed amount of memory for the pixel data. Used by compressed formats.
+   * @param[in] size Size of memory to be allocated
+   */
+  void AllocateFixedSize( uint32_t size );
+
+  /**
+   * @copydoc Devel::PixelBuffer::Rotate()
+   */
+  bool Rotate( Degree angle );
+
 private:
   /*
    * Undefined copy constructor.
@@ -259,7 +270,6 @@ private:
    */
   static PixelBufferPtr NewResize( const PixelBuffer& inBuffer, ImageDimensions outDimensions );
 
-
 private:
 
   std::unique_ptr<Property::Map>  mMetadata;         ///< Metadata fields