14#include "AUI/Image/IAnimatedImageFactory.h"
15#include <webp/mux_types.h>
17struct WebPAnimDecoder;
28 AImage provideImage(
const glm::ivec2& size)
override;
30 bool isNewImageAvailable()
override;
43 size_t mCurrentFrame = -1;
46 size_t mLoopsPassed = 0;
48 bool mAnimationFinished =
false;
49 std::chrono::time_point<std::chrono::system_clock> mLastTimeFrameStarted;
56 WebPAnimDecoder* mDecoder =
nullptr;
57 uint8_t* mDecodedFrameBuffer =
nullptr;
58 int mDecodedFrameTimestamp = 0;
Acts like std::string_view but for AByteBuffer.
Definition AByteBufferView.h:24
Owning image representation.
Definition AImage.h:25
A std::vector with AUI extensions.
Definition AVector.h:39
Produces images related to an animation.
Definition IAnimatedImageFactory.h:19
bool hasAnimationFinished() override
Returns true, if last provided frame was last (within one cycle of animation)
glm::ivec2 getSizeHint() override