CameraFrame class

A raw camera frame emitted by the frame-processing stream. pixels is a zero-copy view into the native camera buffer (BGRA / RGBA). Process the frame synchronously inside the stream listener; do NOT hold a reference past that point.

Implementers
Available extensions
Annotations
  • @HybridStruct.new(zeroCopy: ['pixels'])

Constructors

CameraFrame({required Uint8List pixels, required int size, required int width, required int height, required int timestamp, required int orientation, required int textureId, int bytesPerRow = 0, int pixelFormat = 1, int isMirrored = 0})
const

Properties

bytesPerRow → int
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
final
isMirrored → int
final
orientation → int
final
pixelFormat → int
final
pixels → Uint8List
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
final
textureId → int
final
timestamp → int
final
width → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNative(Arena arena) → Pointer<CameraFrameFfi>

Available on CameraFrame, provided by the CameraFrameExt extension

toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited