X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-image%2Ffixed-image-cache.h;h=3eaac8a44a7df7efbbf6c0c65b157a444be1957f;hb=02557f62f8d171115d885c87c138faec2a3cb923;hp=72484a49b894d11ac9989c9faf17486299fe453c;hpb=4cc02f3e2045755c2c65e64a6f5e126a4c6208ea;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h b/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h index 72484a4..3eaac8a 100644 --- a/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h @@ -46,7 +46,13 @@ public: ImageCache::FrameReadyObserver& observer, unsigned int batchSize ); - virtual ~FixedImageCache(); + ~FixedImageCache() override; + + /** + * Get the Nth frame. If it's not ready, this will trigger the + * sending of FrameReady() when the image becomes ready. + */ + TextureSet Frame( uint32_t frameIndex ) override; /** * Get the first frame. If it's not ready, this will trigger the @@ -57,10 +63,25 @@ public: /** * Get the next frame. If it's not ready, this will trigger the * sending of FrameReady() when the image becomes ready. - * This will trigger the loading of the next batch. */ TextureSet NextFrame() override; + /** + * Get the interval of Nth frame. + */ + uint32_t GetFrameInterval( uint32_t frameIndex ) const override; + + /** + * Get the current rendered frame index. + * If there isn't any loaded frame, returns -1. + */ + int32_t GetCurrentFrameIndex() const override; + + /** + * Get total frame count of the animated image file. + */ + int32_t GetTotalFrameCount() const override; + private: /** * @return true if the front frame is ready