decode method
Implementation
Image? decode() {
if (!_getHeaders()) {
return null;
}
output = Image(webp.width, webp.height);
// Will allocate memory and prepare everything.
if (!_initFrame()) {
return null;
}
// Main decoding loop
if (!_parseFrame()) {
return null;
}
return output;
}