import Surface from '../Surface'; import { DecodedFrame, DualPlaneYUVAArrayBuffer, DualPlaneRGBAImageBitmap, DualPlaneRGBAArrayBuffer, DualPlaneRGBAVideoFrame } from './DecodedFrame'; import { EncodedFrame } from './EncodedFrame'; export interface H264DecoderContext { decode(bufferContents: EncodedFrame): Promise; destroy(): void; } export interface FrameDecoder { decode(surface: Surface, encodedFrame: EncodedFrame): Promise; createH264DecoderContext(surface: Surface, contextId: string): H264DecoderContext; }