ResizedFrameProxy class final

Zero-copy proxy for ResizedFrame. Extends ResizedFrame and overrides every getter to read lazily from native memory — no field is copied at construction time. Because ResizedFrameProxy <: ResizedFrame, a Stream<ResizedFrameProxy> satisfies Stream<ResizedFrame> via Dart covariant generics. Native memory is freed via a NativeFinalizer backed by the generated C symbol 'nitro_camera_release_ResizedFrame'. Ownership: this proxy owns the generated struct shell. Zero-copy field buffers remain owned by the native implementation and must stay valid until this proxy is released by the finalizer or toDartAndRelease.

Inheritance
Implemented types
Available extensions

Constructors

ResizedFrameProxy(Pointer<ResizedFrameFfi> _native)
Takes ownership of native. Super fields are zeroed and never read; all getters below are overridden to read from native memory instead. Do NOT call malloc.free on the struct shell after passing it here, and do not free zero-copy field buffers while the proxy may be read.

Properties

channels → int
no setteroverride
data → Uint8List
no setteroverride
dataType → int
no setteroverride
float32 → Float32List

Available on ResizedFrame, provided by the ResizedFrameTensor extension

The tensor as float32 values (0..1) — only for TensorDataType.float32. Borrowed: valid only inside the stream listener.
no setter
hashCode → int
The hash code for this object.
no setterinherited
height → int
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
no setteroverride
textureId → int
no setteroverride
timestamp → int
no setteroverride
type → TensorDataType

Available on ResizedFrame, provided by the ResizedFrameTensor extension

The tensor's value type.
no setter
uint8 → Uint8List

Available on ResizedFrame, provided by the ResizedFrameTensor extension

The tensor as uint8 values (0..255) — only for TensorDataType.uint8.
no setter
width → int
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDartAndRelease() → ResizedFrame
Eagerly copies all fields to a plain ResizedFrame value, detaches the finalizer, and frees native memory immediately. Use this only when you need an immutable snapshot; for streams prefer consuming the proxy fields lazily then letting it GC. Must not be called more than once.
toNative(Arena arena) → Pointer<ResizedFrameFfi>

Available on ResizedFrame, provided by the ResizedFrameExt extension

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

Operators

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