//#region src/debug/pixel-convert.d.ts /** * Convert raw pixel data from any supported format + display mode to * RGBA8 for VP9 encoding or direct display. Runs on the bus worker * thread so the main thread pays zero conversion cost. * * Handles GPU row padding: WebGPU aligns `bytesPerRow` to 256 bytes, * so readback buffers are often larger than `width × height × bpp`. * The converter detects padding from the buffer size and reads with * the correct row stride. */ /** * Convert raw pixels to RGBA8. Handles all pixelType + display * combinations and GPU row padding. The output is always * `width × height × 4` bytes, suitable for `new VideoFrame(out, * { format: 'RGBA', ... })` or direct `putImageData`. */ declare function convertToRGBA8(src: ArrayBuffer, pixelType: string, display: string, width: number, height: number, dataByteLength?: number): Uint8Array; //#endregion export { convertToRGBA8 }; //# sourceMappingURL=pixel-convert.d.ts.map