#define DALI_INTERNAL_ADAPTOR_PIXEL_BUFFER_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
unsigned char* GetBuffer() const;
/**
+ * @copydoc Devel::PixelBuffer::GetBuffer()
+ */
+ const unsigned char* const GetConstBuffer() const;
+
+ /**
* Get the size of the buffer in bytes
* @return The size of the buffer
*/
/**
* @copydoc Devel::PixelBuffer::Rotate()
*/
- void Rotate( Degree angle );
+ bool Rotate( Degree angle );
+
+ /**
+ * @copydoc Devel::PixelBuffer::IsAlphaPreMultiplied()
+ */
+ bool IsAlphaPreMultiplied() const;
private:
/*
unsigned int mWidth; ///< Buffer width in pixels
unsigned int mHeight; ///< Buffer height in pixels
Pixel::Format mPixelFormat; ///< Pixel format
+ bool mPreMultiplied; ///< PreMultiplied
};
} // namespace Adaptor
} // namespace Dali
-#endif // __DALI_INTERNAL_ADAPTOR_PIXEL_BUFFER_H__
+#endif // DALI_INTERNAL_ADAPTOR_PIXEL_BUFFER_H