Implements fl::IDecoder.
Definition at line 72 of file software_decoder.cpp.hpp.
72 {
75 }
76
80 }
81
84 }
85
86
89
94 setError(
"Failed to convert bitmap to frame");
96 }
99
102
105 }
106 }
109
113
120 default:
123 }
124}
fl::u32 currentFrameIndex_
void setError(const fl::string &message) FL_NOEXCEPT
fl::DecodeResult decode() FL_NOEXCEPT override
bool loadMoreData() FL_NOEXCEPT
fl::shared_ptr< fl::Frame > currentFrame_
fl::shared_ptr< fl::Frame > convertBitmapToFrame(nsgif_bitmap_t *bitmap) FL_NOEXCEPT
nsgif_error
LibNSGIF return codes.
@ NSGIF_ERR_DATA_COMPLETE
Can't supply more data after calling nsgif_data_complete.
@ NSGIF_ERR_OOM
Out of memory error.
@ NSGIF_ERR_BAD_FRAME
Frame number is not valid.
@ NSGIF_ERR_END_OF_DATA
Unexpected end of GIF source data.
@ NSGIF_ERR_ANIMATION_END
Indicates an animation is complete, and nsgif_reset must be called to restart the animation from the ...
@ NSGIF_ERR_DATA_FRAME
GIF source data contained an error in a frame.
@ NSGIF_ERR_DATA
GIF source data is invalid, and no frames are recoverable.
@ NSGIF_ERR_FRAME_DISPLAY
The current frame cannot be displayed.
nsgif_error nsgif_frame_decode(nsgif_t *gif, fl::u32 frame, nsgif_bitmap_t **bitmap) FL_NOEXCEPT
Decodes a GIF frame.
const char * nsgif_strerror(nsgif_error err) FL_NOEXCEPT
Convert an error code to a string.
void nsgif_bitmap_t
Client bitmap type.
expected< T, E > result
Alias for expected (Rust-style naming)
References convertBitmapToFrame(), currentFrame_, currentFrameIndex_, dataComplete_, decode(), fl::EndOfStream, endOfStream_, fl::Error, FL_NOEXCEPT, gif_, hasError_, loadMoreData(), fl::third_party::NSGIF_ERR_ANIMATION_END, fl::third_party::NSGIF_ERR_BAD_FRAME, fl::third_party::NSGIF_ERR_DATA, fl::third_party::NSGIF_ERR_DATA_COMPLETE, fl::third_party::NSGIF_ERR_DATA_FRAME, fl::third_party::NSGIF_ERR_END_OF_DATA, fl::third_party::NSGIF_ERR_FRAME_DISPLAY, fl::third_party::NSGIF_ERR_OOM, fl::third_party::nsgif_frame_decode(), fl::third_party::NSGIF_OK, fl::third_party::nsgif_strerror(), ready_, setError(), and fl::Success.
Referenced by decode().