X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Fpublic-api%2Fimages%2Fpixel-data.cpp;h=b4e7cb31bbbb4c7a13308316c8dd6af7a13cec8d;hp=1432b5da3ec0080efd326e96a1eab3377c740df3;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hpb=b41db98148be41ef5928f4335e985bf62252dde7 diff --git a/dali/public-api/images/pixel-data.cpp b/dali/public-api/images/pixel-data.cpp index 1432b5d..b4e7cb3 100644 --- a/dali/public-api/images/pixel-data.cpp +++ b/dali/public-api/images/pixel-data.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 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. @@ -16,10 +16,7 @@ */ // CLASS HEADER -#include "pixel-data.h" - -// EXTERNAL INLCUDES -#include +#include // INTERNAL INCLUDES #include @@ -27,12 +24,12 @@ namespace Dali { -PixelData PixelData::New(unsigned char* buffer, - unsigned int bufferSize, - unsigned int width, - unsigned int height, - Pixel::Format pixelFormat, - ReleaseFunction releaseFunction) +PixelData PixelData::New( uint8_t* buffer, + uint32_t bufferSize, + uint32_t width, + uint32_t height, + Pixel::Format pixelFormat, + ReleaseFunction releaseFunction ) { IntrusivePtr internal = Internal::PixelData::New( buffer, bufferSize, width, height, pixelFormat, releaseFunction ); return PixelData( internal.Get() ); @@ -62,12 +59,12 @@ PixelData& PixelData::operator=(const PixelData& rhs) return *this; } -unsigned int PixelData::GetWidth() const +uint32_t PixelData::GetWidth() const { return GetImplementation(*this).GetWidth(); } -unsigned int PixelData::GetHeight() const +uint32_t PixelData::GetHeight() const { return GetImplementation(*this).GetHeight(); }