import type { AVOFormatContext } from "../AVFormatContext.ts"; import OFormat from "./OFormat.ts"; import type { PagePayload } from "./ogg/OggPage.ts"; import { AVFormat, AVCodecID, type AVPacket } from "@libmedia/avutil"; export default class OOggFormat extends OFormat { type: AVFormat; private checksumTable; headerPagesPayload: PagePayload[]; private cacheWriter; private page; constructor(); private initChecksumTab; private getChecksum; init(formatContext: AVOFormatContext): number; private writePage; writeHeader(formatContext: AVOFormatContext): number; writeAVPacket(formatContext: AVOFormatContext, avpacket: pointer): number; writeTrailer(formatContext: AVOFormatContext): number; flush(formatContext: AVOFormatContext): number; getCapabilities(): AVCodecID[]; static Capabilities: AVCodecID[]; }