import type { CamIsoFramePosition, CamIsoStreamFlag } from "./enum.js"; export declare const HEADER_BYTES = 12; /** Parsed ISO packet */ export type CamIsoPacket = { magic: number; stream: CamIsoStreamFlag; segment: CamIsoFramePosition; sequence: number; packetSize: number; time: number; body: ArrayBuffer; }; /** Parses ISO packets from USB isochronous transfers */ export declare class CamIsoStream implements Transformer { private readonly streamFlag; /** * @param streamFlag Stream type to filter for */ constructor(streamFlag: CamIsoStreamFlag); transform(usbResult: USBIsochronousInTransferResult, cont: TransformStreamDefaultController): Promise; /** * The isochronous packet header is 12 bytes of various big endian values. * * | index | field | type | value | * |-------|-------------|---------|---------------------------------------------------------------| * | 0 | magic | u16 | {@link CamIsoMagic} | * | 2 | unknown | | | * | 3 | flags | u8 | high {@link CamIsoFramePosition} low {@link CamIsoStreamFlag} | * | 4 | unknown | | | * | 5 | sequence | u8 | monotonic incrementing 0 to 255 | * | 6 | packetSize | u16 | total size in bytes including header | * | 8 | time | u32 | timestamp | * */ private parseHeader; } //# sourceMappingURL=iso-parser.d.ts.map