#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.
void Resize( ImageDimensions outDimensions );
/**
+ * Multiplies the image's color values by the alpha value. This provides better
+ * blending capability.
+ */
+ void MultiplyColorByAlpha();
+
+ /**
* @brief Sets image metadata
*
* @param map Property map containing Exif fields
*/
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.
*/
static PixelBufferPtr NewResize( const PixelBuffer& inBuffer, ImageDimensions outDimensions );
-
private:
std::unique_ptr<Property::Map> mMetadata; ///< Metadata fields