FramePayload class

A container for a pointer to a native buffer that can be sent across isolates.

Sending a buffer across isolates would mean that data is copied, which is not ideal for buffers containing an entire JPG image, from multiple isolates, multiple frames per second. Since we cannot yet send FFI pointers across isolates, we have to send its raw address.

Inheritance

Constructors

FramePayload({required CameraDetails details, required OpenCVImage image})
A const constructor.

Properties

address int
The address in FFI memory this frame starts at.
final
details → CameraDetails
The details of the camera this frame came from.
final
frame → OpenCVImage
The underlying data held at address.
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
The length of this frame in bytes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Frees the data in this frame.
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.
inherited