startDecode method

  1. @override
BmpInfo? startDecode(
  1. List<int> bytes
)
override

Start decoding the data as an animation sequence, but don't actually process the frames until they are requested with decodeFrame.

Implementation

@override
BmpInfo? startDecode(List<int> bytes) {
  if (!isValidFile(bytes)) return null;
  _input = InputBuffer(bytes);
  info = BmpInfo(_input);
  return info;
}