unsigned int width,
unsigned int height,
Dali::Pixel::Format pixelFormat )
-: mMetadata(),
- mBuffer( buffer ),
+: mBuffer( buffer ),
mBufferSize( bufferSize ),
mWidth( width ),
mHeight( height ),
}
-void PixelBuffer::SetMetadata( const Property::Map& map )
-{
- mMetadata.reset(new Property::Map(map));
-}
-
-bool PixelBuffer::GetMetadata(Property::Map& outMetadata) const
-{
- if( !mMetadata )
- {
- return false;
- }
- outMetadata = *mMetadata;
- return true;
-}
-
-void PixelBuffer::SetMetadata(std::unique_ptr<Property::Map> metadata)
-{
- mMetadata = std::move(metadata);
-}
-
void PixelBuffer::Resize( ImageDimensions outDimensions )
{
if( mWidth != outDimensions.GetWidth() || mHeight != outDimensions.GetHeight() )