HwSurfaceKind
What kind of hardware surface a frame holds, so a renderer can say whether it can draw it.
Null VideoFrame.hardwareSurface means the pixels are CPU-readable or otherwise not tied to one of these platform surfaces. A hardware decoder may still report HwdecStatus.HardwareWithDownload while returning such frames, because it copied decoded pixels back to main memory.
Entries
Apple CVPixelBuffer backed by an IOSurface. Reaches Metal with no copy.
An Android MediaCodec output buffer.
An Android HardwareBuffer that a GPU renderer can sample without a CPU pixel copy.
A VA-API surface, reaching EGL through a dmabuf export.
A Direct3D 11 texture, used directly as a shader resource.
A CUDA device pointer.
A browser VideoFrame, drawn straight to a canvas.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.