X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fcommon%2Fpixel-buffer-impl.h;h=ae899beac6eec0da49db7b1070321e0c28c8d554;hb=f4b05fe51ddba1d7d2035103ef3cfcd1d4741d3c;hp=2b5782300bcdbb497e0717be574983ca5fe8a311;hpb=78a2c1b92f3933c6441e571f6fa7f241012118db;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/common/pixel-buffer-impl.h b/adaptors/common/pixel-buffer-impl.h old mode 100644 new mode 100755 index 2b57823..ae899be --- a/adaptors/common/pixel-buffer-impl.h +++ b/adaptors/common/pixel-buffer-impl.h @@ -23,6 +23,10 @@ #include // For ImageDimensions #include #include +#include + +// EXTERNAL INCLUDES +#include namespace Dali { @@ -181,6 +185,27 @@ public: */ void MultiplyColorByAlpha(); + /** + * @brief Sets image metadata + * + * @param map Property map containing Exif fields + */ + void SetMetadata( const Property::Map& map ); + + /** + * @brief Returns image metadata as a property map + * @param[out] outMetadata Property map to copy the data into + * @return True on success + */ + bool GetMetadata(Property::Map& outMetadata) const; + + /** + * @brief Sets metadata property map for the pixel buffer + * @note The function takes over the ownership of the property map + * @param[in] metadata Property map to copy the data into + */ + void SetMetadata(std::unique_ptr metadata); + private: /* * Undefined copy constructor. @@ -237,11 +262,12 @@ private: private: - unsigned char* mBuffer; ///< The raw pixel data - unsigned int mBufferSize; ///< Buffer sized in bytes - unsigned int mWidth; ///< Buffer width in pixels - unsigned int mHeight; ///< Buffer height in pixels - Pixel::Format mPixelFormat; ///< Pixel format + std::unique_ptr mMetadata; ///< Metadata fields + unsigned char* mBuffer; ///< The raw pixel data + unsigned int mBufferSize; ///< Buffer sized in bytes + unsigned int mWidth; ///< Buffer width in pixels + unsigned int mHeight; ///< Buffer height in pixels + Pixel::Format mPixelFormat; ///< Pixel format }; } // namespace Adaptor