X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-image%2Frolling-animated-image-cache.h;h=8281c323f45a52fc9e3f85c152377b0babb91c1b;hb=HEAD;hp=c827e40f79e567c1819b19531d3361db4a51e0d1;hpb=6b372c8365cebe08e21d887b15db195d9ddc9327;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h b/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h index c827e40..dde53b8 100644 --- a/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_ROLLING_ANIMATED_IMAGE_CACHE_H /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 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. @@ -116,14 +116,25 @@ private: bool IsFrontReady() const; /** + * @brief Request to Load a frame asynchronously + * + * @param[in] frameIndex index of frame to be loaded. + * + * @return the texture set currently loaded. + */ + TextureSet RequestFrameLoading(uint32_t frameIndex); + + /** * @brief Request to Load a frame * - * @param[in] frameIndex index of frame to be loaded. - * @param[in] synchronousLoading true if the frame should be loaded synchronously + * @param[in] frameIndex Index of frame to be loaded. + * @param[in] synchronousLoading True if the frame should be loaded synchronously + * @param[in,out] preMultiplyOnLoad True if the image color should be multiplied by it's alpha. Set to false if the + * image has no alpha channel * * @return the texture set currently loaded. */ - TextureSet RequestFrameLoading(uint32_t frameIndex, bool synchronousLoading); + TextureSet RequestFrameLoading(uint32_t frameIndex, bool synchronousLoading, TextureManager::MultiplyOnLoad& preMultiplyOnLoading); /** * @brief Load the next batch of images @@ -158,9 +169,11 @@ private: * * @param[in] loadSuccess whether the loading is succeded or not. * @param[in] textureSet textureSet for this frame. + * @param[in] frameCount Total frame count for this image. * @param[in] interval interval between this frame and next frame. + * @param[in] preMultiplied whether the texture is premultied alpha or not. */ - void MakeFrameReady(bool loadSuccess, TextureSet textureSet, uint32_t interval); + void MakeFrameReady(bool loadSuccess, TextureSet textureSet, uint32_t frameCount, uint32_t interval, bool preMultiplied); /** * @brief Pop front entity of Cache. @@ -195,7 +208,6 @@ private: Dali::WrapMode::Type mWrapModeU : 3; Dali::WrapMode::Type mWrapModeV : 3; bool mIsSynchronousLoading; - bool mPreMultiplyOnLoad; }; } // namespace Internal