corevm-codec
    Preparing search index...

    Class VideoDecoder

    Video decoder.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Creates new video decoder using the provided byte array as the input.

      Parameters

      • input: Uint8Array

      Returns VideoDecoder

    Accessors

    • get height(): number

      Returns video frame height.

      Returns number

    • get width(): number

      Returns video frame width.

      Returns number

    Methods

    • Returns true if the input contains more frames.

      Returns boolean

    • Decode next frame as RGBA8888.

      Returns decoded frame as Uint8Array. Throws an error if there are no more frames in the input.

      All pixels are fully opaque.

      Returns Uint8Array