17#include "AUI/Common/AByteBufferView.h"
18#include "AUI/Image/IAnimatedImageFactory.h"
20typedef struct nsgif nsgif_t;
28 AImage provideImage(
const glm::ivec2& size)
override;
30 bool isNewImageAvailable()
override;
38 std::chrono::time_point<std::chrono::high_resolution_clock> mLastFrameStarted;
39 size_t mCurrentFrameIndex = -1;
43 uint32_t mCurrentFrameLength;
44 bool mAnimationFinished =
false;
46 uint8_t* mLastFrameBuffer =
nullptr;
Acts like std::string_view but for AByteBuffer.
Definition AByteBufferView.h:24
std::vector-like growing array for byte storage.
Definition AByteBuffer.h:31
Owning image representation.
Definition AImage.h:25
glm::ivec2 getSizeHint() override
bool hasAnimationFinished() override
Returns true, if last provided frame was last (within one cycle of animation)
Produces images related to an animation.
Definition IAnimatedImageFactory.h:19