Surface

data class Surface(val kind: HwSurfaceKind, val pixelFormat: PlayerPixelFormat) : FrameShape

Frames that live on a hardware surface of kind, as VideoFrame.hardwareSurface will report it, with no copy in main memory: only a renderer that presents that surface can show them. A hardware decoder whose frames can also be read as planes does not declare this shape, because a renderer without the surface can still show them.

Constructors

Link copied to clipboard
constructor(kind: HwSurfaceKind, pixelFormat: PlayerPixelFormat)

Properties

Link copied to clipboard
Link copied to clipboard
open override val pixelFormat: PlayerPixelFormat

How the pixels are laid out, as VideoFrame.pixelFormat will report them.