X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftexture-manager%2Ftexture-manager-type.h;h=514e544e053eb7a1ee6379fb8a608022941a3f69;hb=83f07832660fe04b89a0e20945041721bff43748;hp=5f07c1fee6d509c42a09930bc0ef5862e2e36202;hpb=68c18cf776be4010ffa0a70209deb465a21a269c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/texture-manager/texture-manager-type.h b/dali-toolkit/internal/texture-manager/texture-manager-type.h index 5f07c1f..514e544 100644 --- a/dali-toolkit/internal/texture-manager/texture-manager-type.h +++ b/dali-toolkit/internal/texture-manager/texture-manager-type.h @@ -153,6 +153,8 @@ struct TextureInfo storageType(StorageType::UPLOAD_TO_TEXTURE), animatedImageLoading(animatedImageLoading), frameIndex(frameIndex), + frameCount(0u), + frameInterval(0u), useAtlas(useAtlas), loadSynchronously(loadSynchronously), cropToMask(cropToMask), @@ -160,6 +162,7 @@ struct TextureInfo preMultiplyOnLoad(preMultiplyOnLoad), preMultiplied(false) { + isAnimatedImageFormat = (animatedImageLoading) ? true : false; } /** @@ -185,7 +188,9 @@ struct TextureInfo Dali::SamplingMode::Type samplingMode : 3; ///< The requested SamplingMode StorageType storageType; ///< CPU storage / GPU upload; Dali::AnimatedImageLoading animatedImageLoading; ///< AnimatedImageLoading that contains animated image information. - std::uint32_t frameIndex; ///< frame index that be loaded, in case of animated image + uint32_t frameIndex; ///< Frame index that be loaded, in case of animated image + uint32_t frameCount; ///< Total frame count of input animated image. If this variable is not 0, this textureInfo is for animated image file format. + uint32_t frameInterval; ///< Time interval between this frame and next frame of animated image. UseAtlas useAtlas; ///< USE_ATLAS if an atlas was requested. bool loadSynchronously : 1; ///< True if synchronous loading was requested @@ -193,6 +198,7 @@ struct TextureInfo bool orientationCorrection : 1; ///< True if the image should be rotated to match exif orientation data bool preMultiplyOnLoad : 1; ///< True if the image's color should be multiplied by it's alpha bool preMultiplied : 1; ///< True if the image's color was multiplied by it's alpha + bool isAnimatedImageFormat : 1; ///< true if the image is requested from animated image visual. }; } // namespace TextureManagerType