euv-core 0.48.2

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Default maximum RGBA8 canvas allocation budget in bytes (`64 MiB`).
pub const GIF_DEFAULT_MAX_CANVAS_BYTES: usize = 64 * 1024 * 1024;
/// Default maximum bounded pre-decode RGBA8 cache budget in bytes (`16 MiB`).
pub const GIF_DEFAULT_MAX_CACHE_BYTES: usize = 16 * 1024 * 1024;
/// Default maximum number of pre-decoded composited frames retained in the bounded cache.
pub const GIF_DEFAULT_MAX_PREDECODE_FRAMES: usize = 16;
/// Default minimum clamped frame delay in milliseconds when strict delays are disabled.
pub const GIF_DEFAULT_MIN_DELAY_MS: u32 = 20;
/// Browser-compatible fallback frame delay in milliseconds when a GIF frame declares `0` or `1` centiseconds.
pub const GIF_DEFAULT_ZERO_DELAY_FALLBACK_MS: u32 = 100;

pub(crate) const GIF_TRAILER: u8 = 0x3B;
pub(crate) const GIF_EXT_INTRO: u8 = 0x21;
pub(crate) const GIF_IMG_INTRO: u8 = 0x2C;
pub(crate) const GIF_EXT_GCE: u8 = 0xF9;
pub(crate) const GIF_EXT_APP: u8 = 0xFF;
pub(crate) const GIF_LZW_MAX_BITS: u8 = 12;
pub(crate) const GIF_LZW_MAX_TABLE: usize = 4096;
pub(crate) const GIF_VER_87A: &str = "GIF87a";
pub(crate) const GIF_VER_89A: &str = "GIF89a";
pub(crate) const GIF_NETSCAPE_20: &[u8] = b"NETSCAPE2.0";
pub(crate) const GIF_ANIMEXTS_10: &[u8] = b"ANIMEXTS1.0";
pub(crate) const GIF_ERR_HEADER: &str = "invalid GIF87a/GIF89a header";
pub(crate) const GIF_ERR_ZERO_DIM: &str = "GIF logical screen dimensions must be non-zero";
pub(crate) const GIF_ERR_BUDGET: &str = "GIF canvas exceeds configured byte budget";
pub(crate) const GIF_ERR_TRUNC_GCT: &str = "truncated GIF global color table";
pub(crate) const GIF_ERR_TRUNC_LCT: &str = "truncated GIF local color table";
pub(crate) const GIF_ERR_TRUNC_IMG: &str = "truncated GIF image descriptor";
pub(crate) const GIF_ERR_TRUNC_SUB: &str = "truncated GIF data sub-block";
pub(crate) const GIF_ERR_NO_FRAMES: &str = "GIF stream contained zero decodable image frames";
pub(crate) const GIF_ERR_NO_PALETTE: &str = "GIF frame has neither local nor global color table";
pub(crate) const GIF_ERR_LZW_MIN: &str = "invalid GIF LZW minimum code size (expected 2..=8)";
pub(crate) const GIF_ERR_LZW_CODE: &str = "corrupt GIF LZW code out of dictionary bounds";
pub(crate) const GIF_ERR_LZW_EMPTY: &str = "empty or truncated GIF LZW pixel stream";
pub(crate) const GIF_ERR_FRAME_OOB: &str = "requested GIF frame index out of range";
pub(crate) const GIF_INTERLACE_STARTS: [usize; 4] = [0, 4, 2, 1];
pub(crate) const GIF_INTERLACE_STEPS: [usize; 4] = [8, 8, 4, 2];
pub(crate) const GIF_LZW_HASH_TABLE_SIZE: usize = 8192;
pub(crate) const GIF_LZW_HASH_TABLE_MASK: usize = GIF_LZW_HASH_TABLE_SIZE - 1;
pub(crate) const GIF_LZW_HASH_MULT: u32 = 0x9E37_79B1;
pub(crate) const GIF_LZW_HASH_SHIFT: u32 = 19;
pub(crate) const GIF_LZW_KEY_MASK: u64 = 0x000F_FFFF;
pub(crate) const GIF_LZW_CODE_MASK: u64 = 0x0FFF;