RawFrame class final

One captured frame: raw RGBA8888 pixels plus the metadata the encoder needs to place them in the stream.

The bytes are exactly what Image.toByteData(format: rawRgba) produced — row-major, four bytes per pixel, no padding — so rgba can be appended to the frames file verbatim. Construction validates that the byte length matches width * height * 4; a mismatch is a programming error (ArgumentError), not a render failure.

Value equality covers the metadata and the pixel bytes, which is what lets determinism tests assert "same frame twice" directly on RawFrames.

Annotations

Constructors

RawFrame({required int frameIndex, required int width, required int height, required Uint8List rgba})
Creates a frame at frameIndex with widthxheight pixels in rgba.

Properties

byteLength int
The pixel payload size in bytes (width * height * 4).
no setter
frameIndex int
The zero-based index of this frame in the render.
final
hashCode int
The hash code for this object.
no setteroverride
height int
Frame height in pixels.
final
rgba Uint8List
Raw RGBA8888 pixel data, row-major, width * height * 4 bytes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Frame width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override