X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftexture-manager%2Ftexture-async-loading-helper.h;h=a8fddbff30b66bb4f9ecea0067780629433094a3;hp=d9937374894002385894dcee2998f270369a661b;hb=HEAD;hpb=202977df185e9e9d1e53ea30f10a4fb0c0f53c8c diff --git a/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h b/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h index d993737..a8fddbf 100644 --- a/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h +++ b/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXTURE_ASYNC_LOADING_HELPER_H /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -19,7 +19,6 @@ // EXTERNAL INCLUDES #include -#include // INTERNAL INCLUDES #include @@ -31,7 +30,6 @@ namespace Toolkit { namespace Internal { - /** * @brief Helper class to keep the relation between AsyncImageLoader and corresponding LoadingInfo container */ @@ -49,12 +47,19 @@ public: * @param[in] textureId TextureId to reference the texture that will be loaded * @param[in] animatedImageLoading The AnimatedImageLoading to load animated image * @param[in] frameIndex The frame index of a frame to be loaded frame + * @param[in] desiredSize The size the image is likely to appear at. + * This can be set to 0,0 for automatic + * @param[in] fittingMode The FittingMode to use + * @param[in] samplingMode The SamplingMode to use * @param[in] preMultiplyOnLoad if the image's color should be multiplied by it's alpha. Set to OFF if there is no alpha or if the image need to be applied alpha mask. */ - void LoadAnimatedImage(const TextureManager::TextureId& textureId, - Dali::AnimatedImageLoading animatedImageLoading, - const std::uint32_t& frameIndex, - const DevelAsyncImageLoader::PreMultiplyOnLoad& preMultiplyOnLoad); + void LoadAnimatedImage(const TextureManager::TextureId textureId, + Dali::AnimatedImageLoading animatedImageLoading, + const uint32_t frameIndex, + const Dali::ImageDimensions& desiredSize, + const Dali::FittingMode::Type fittingMode, + const Dali::SamplingMode::Type samplingMode, + const DevelAsyncImageLoader::PreMultiplyOnLoad preMultiplyOnLoad); /** * @brief Load a new texture. @@ -69,14 +74,14 @@ public: * @param[in] preMultiplyOnLoad if the image's color should be multiplied by it's alpha. Set to OFF if there is no alpha or if the image need to be applied alpha mask. * @param[in] loadYuvPlanes True if the image should be loaded as yuv planes */ - void Load(const TextureManager::TextureId& textureId, - const VisualUrl& url, - const Dali::ImageDimensions& desiredSize, - const Dali::FittingMode::Type& fittingMode, - const Dali::SamplingMode::Type& samplingMode, - const bool& orientationCorrection, - const DevelAsyncImageLoader::PreMultiplyOnLoad& preMultiplyOnLoad, - const bool& loadYuvPlanes); + void Load(const TextureManager::TextureId textureId, + const VisualUrl& url, + const Dali::ImageDimensions& desiredSize, + const Dali::FittingMode::Type fittingMode, + const Dali::SamplingMode::Type samplingMode, + const bool orientationCorrection, + const DevelAsyncImageLoader::PreMultiplyOnLoad preMultiplyOnLoad, + const bool loadYuvPlanes); /** * @brief Apply mask @@ -87,12 +92,12 @@ public: * @param [in] cropToMask Whether to crop the content to the mask size * @param [in] preMultiplyOnLoad if the image's color should be multiplied by it's alpha. Set to OFF if there is no alpha. */ - void ApplyMask(const TextureManager::TextureId& textureId, - Devel::PixelBuffer pixelBuffer, - Devel::PixelBuffer maskPixelBuffer, - const float& contentScale, - const bool& cropToMask, - const DevelAsyncImageLoader::PreMultiplyOnLoad& preMultiplyOnLoad); + void ApplyMask(const TextureManager::TextureId textureId, + Devel::PixelBuffer pixelBuffer, + Devel::PixelBuffer maskPixelBuffer, + const float contentScale, + const bool cropToMask, + const DevelAsyncImageLoader::PreMultiplyOnLoad preMultiplyOnLoad); public: TextureAsyncLoadingHelper(const TextureAsyncLoadingHelper&) = delete;