Hierarchy

  • default

Constructors

Properties

currentPPS?: PPS

Currently active PPS, if any

currentSPS?: SPS

Currently active SPS, if any

receivedPPS: {
    [id: number]: PPS;
} = {}

PPS received so far

Type declaration

  • [id: number]: PPS
receivedSPS: {
    [id: number]: SPS;
} = {}

SPS received so far

Type declaration

  • [id: number]: SPS

Methods

  • Activate the specified PPS

    Parameters

    • ppsId: number

    Returns void

  • Processes the given NALU, if applicable. Returns true if the NALU was handled, false if it was ignored.

    Parameters

    • nalu: {
          forbidden_zero_bit: number;
          nal_ref_idc: number;
          nal_unit_type: number;
          rbsp: Uint8Array;
      }
      • forbidden_zero_bit: number
      • nal_ref_idc: number
      • nal_unit_type: number
      • rbsp: Uint8Array

    Returns boolean

  • Parses and stores the specified SPS, given the encoded RBSP. You typically want to use processNALU instead.

    Parameters

    • rbsp: Uint8Array

    Returns void

  • Parses and stores the specified SPS, given the encoded RBSP. You typically want to use processNALU instead.

    Parameters

    • rbsp: Uint8Array

    Returns void

Generated using TypeDoc