read method
Implementation
void read(List<int> bytes) {
input = InputBuffer(bytes, bigEndian: true);
_read();
if (frames.length != 1) {
throw ImageException('Only single frame JPEGs supported');
}
for (var i = 0; i < frame!.componentsOrder.length; ++i) {
final component = frame!.components[frame!.componentsOrder[i]]!;
components.add(ComponentData(
component.hSamples,
frame!.maxHSamples,
component.vSamples,
frame!.maxVSamples,
_buildComponentData(frame, component)));
}
}