/** * Parses and accumulates received parameter sets, and manages their activation * * @module */ import { SPS } from "./SPS.js"; import { PPS } from "./PPS.js"; import { parseNALU } from "./NalUnits.js"; export default class SetManager { /** * Processes the given NALU, if applicable. * Returns true if the NALU was handled, false if it was ignored. */ processNALU(nalu: ReturnType): boolean; /** SPS received so far */ receivedSPS: { [id: number]: SPS; }; /** PPS received so far */ receivedPPS: { [id: number]: PPS; }; /** * Parses and stores the specified SPS, given the *encoded* RBSP. * You typically want to use {@link processNALU} instead. */ processSPS(rbsp: Uint8Array): void; /** * Parses and stores the specified SPS, given the *encoded* RBSP. * You typically want to use {@link processNALU} instead. */ processPPS(rbsp: Uint8Array): void; /** Currently active SPS, if any */ currentSPS?: SPS; /** Currently active PPS, if any */ currentPPS?: PPS; /** Activate the specified PPS */ activate(ppsId: number): void; }