extractFrame abstract method

Future<RawFrame> extractFrame(
  1. Uri source,
  2. int frameIndex, {
  3. required int width,
  4. required int height,
})

The decoded pixels of source at frameIndex (in the source's own frame space), scaled to exactly width x height.

The caller pins the output size (from a prior probe) so the returned RawFrame always holds width * height * 4 bytes — deterministic and directly compositable. Throws a FluvieRenderException (or its FluvieEncodeException subtype) when the source or frame cannot be extracted.

Implementation

Future<RawFrame> extractFrame(
  Uri source,
  int frameIndex, {
  required int width,
  required int height,
});