XVideoThumbnail class

A single frame extracted from a video file. pngBytes is the encoded PNG ready to embed in a thumbnail proto / paint via Image.memory; width / height describe the encoded image, which may be smaller than the source video due to the maxWidth constraint at extraction.

Constructors

XVideoThumbnail({required Uint8List pngBytes, required int width, required int height})
Binds the encoded frame to the size it decodes at.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → int
Pixel height of the encoded image.
final
pngBytes → Uint8List
Encoded PNG of the frame.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
Pixel width of the encoded image.
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