X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fimage-loader%2Fasync-image-loader-impl.h;h=69a7617b96e4cffce4692126bba66d54722e9d45;hb=c554768b59fa4b5becd9b809a583e9b3e9c56237;hp=92a16522d6e41232dddcac94840bc1c35909d1fa;hpb=7386b0e7cc501917168284f388353dab660db58f;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/image-loader/async-image-loader-impl.h b/dali-toolkit/internal/image-loader/async-image-loader-impl.h index 92a1652..69a7617 100644 --- a/dali-toolkit/internal/image-loader/async-image-loader-impl.h +++ b/dali-toolkit/internal/image-loader/async-image-loader-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_ASYNC_IMAGE_LOADER_IMPL_H /* - * Copyright (c) 2016 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. @@ -23,6 +23,7 @@ // INTERNAL INCLUDES #include +#include #include namespace Dali @@ -49,13 +50,27 @@ public: static IntrusivePtr New(); /** - * @copydoc Toolkit::AsyncImageLoader::Load( const std::string&, ImageDimensions, FittingMode::Type, SamplingMode::Type, bool ) + * @copydoc Toolkit::AsyncImageLoader::Load( const std::string&, ImageDimensions, FittingMode::Type, SamplingMode::Type, bool , DevelAsyncImageLoader::PreMultiplyOnLoad ) */ - uint32_t Load( const std::string& url, + uint32_t Load( const VisualUrl& url, ImageDimensions dimensions, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, - bool orientationCorrection ); + bool orientationCorrection, + DevelAsyncImageLoader::PreMultiplyOnLoad preMultiplyOnLoad ); + + /** + * @brief Starts an mask applying task. + * @param[in] pixelBuffer of the to be masked image + * @param[in] maskPixelBuffer of the mask image + * @param[in] contentScale The factor to scale the content + * @param[in] cropToMask Whether to crop the content to the mask size + * @return The loading task id + */ + uint32_t ApplyMask( Devel::PixelBuffer pixelBuffer, + Devel::PixelBuffer maskPixelBuffer, + float contentScale, + bool cropToMask ); /** * @copydoc Toolkit::AsyncImageLoader::ImageLoadedSignal @@ -63,6 +78,11 @@ public: Toolkit::AsyncImageLoader::ImageLoadedSignalType& ImageLoadedSignal(); /** + * @copydoc Toolkit::AsyncImageLoader::PixelBufferLoadedSignal + */ + Toolkit::DevelAsyncImageLoader::PixelBufferLoadedSignalType& PixelBufferLoadedSignal(); + + /** * @copydoc Toolkit::AsyncImageLoader::Cancel */ bool Cancel( uint32_t loadingTaskId ); @@ -85,14 +105,12 @@ protected: ~AsyncImageLoader(); private: - Toolkit::AsyncImageLoader::ImageLoadedSignalType mLoadedSignal; + Toolkit::DevelAsyncImageLoader::PixelBufferLoadedSignalType mPixelBufferLoadedSignal; ImageLoadThread mLoadThread; uint32_t mLoadTaskId; bool mIsLoadThreadStarted; - - }; } // namespace Internal