RealtimeExternalVideoFrame class final

Upright pixels supplied by an external source.

Orientation and mirroring must already be applied to the pixels. NV12 planes use the same row stride and are contiguous, with the UV plane immediately after Y.

Constructors

RealtimeExternalVideoFrame({required Uint8List data, required int width, required int height, required RealtimeExternalVideoPixelFormat pixelFormat, int? bytesPerRow})
Creates a frame referencing caller-owned pixels until sink submission copies them.
const

Properties

bytesPerRow → int?
The row stride, in bytes; defaults to width × 4 for BGRA or width for NV12.
final
data → Uint8List
The pixel bytes, including row padding when present.
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
The visible height, in pixels.
final
pixelFormat → RealtimeExternalVideoPixelFormat
The layout and range of the pixel data.
final
rowBytes → int
The resolved row stride, in bytes.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
The visible 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.
inherited