AutoMovie API
    Preparing search index...

    Interface IAutoMoviePpmImageDecodeOptions

    Explicit allocation limits and sample interpretation for one raw P6 decode.

    The ingest decoder requires every field; it has no default budgets or transfer guess. Invalid limits, unsupported headers, incomplete rasters and trailing bytes throw before a result is returned. Limits bound parsing and the detached raster allocation, not the caller's already resident source buffer.

    interface IAutoMoviePpmImageDecodeOptions {
        maxHeaderBytes: number;
        maxPixels: number;
        transfer: "linear" | "srgb" | "bt709";
    }
    Index
    maxHeaderBytes: number

    Positive safe-integer byte ceiling from the P6 magic through the single whitespace byte immediately preceding the raster.

    maxPixels: number

    Positive safe-integer upper bound on width * height; checked before copying RGB bytes.

    transfer: "linear" | "srgb" | "bt709"

    Interpretation of fixed sample values; the decoder preserves this tag and performs no colour conversion.