MiniAVVideoBuffer class

Video payload of a MiniAVBuffer.

Use MiniAVBuffer.contentType — not planes — to tell the CPU and GPU layouts apart. On the GPU paths planes[0] is a non-null but empty Uint8List (its strideBytes[0] is 0, so the FFI wrapper materialises a zero-length view), so planes[0] != null takes the wrong branch.

Constructors

MiniAVVideoBuffer({required int width, required int height, required MiniAVPixelFormat pixelFormat, required List<int> strideBytes, required List<Uint8List?> planes, List<Object?> nativeHandles = const [], List<int> dmabufFds = const [], List<int> drmFormatModifiers = const []})

Properties

dmabufFds → List<int>
Per-plane DMA-BUF file descriptors (-1 if not applicable).
final
drmFormatModifiers → List<int>
Per-plane DRM format modifiers (0 = LINEAR).
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
final
nativeHandles → List<Object?>
Platform GPU handle per plane, valid when MiniAVBuffer.contentType != MiniAVBufferContentType.cpu.
final
pixelFormat → MiniAVPixelFormat
final
planes → List<Uint8List?>
CPU pixel data per plane — only meaningful when MiniAVBuffer.contentType == MiniAVBufferContentType.cpu.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strideBytes → List<int>
Row stride in bytes per plane. 0 on the GPU paths (no CPU rows).
final
width → int
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