Skip to main content

Module texture_ingestion

Module texture_ingestion 

Source
Expand description

Production texture ingestion for external/data URI and embedded images.

Enforces strict MIME/magic signature checks, safe arithmetic, dimension and byte-budget ceilings, and failure-safe rollback.

Structs§

IngestedTexture
A content-addressed, signature-verified ingested texture.

Enums§

TextureIngestionError

Constants§

JPEG_SIGNATURE
PNG_SIGNATURE
WEBP_MAGIC
WEBP_RIFF

Functions§

ingest_texture_payload
Ingest a texture from either a Data URI or raw encoded bytes with strict signature validation.
parse_data_uri
Parse a data:[mediatype][;base64],<data> URI and decode the inner payload.
validate_image_signature
Validate the binary file header against the declared MIME type.