Something went wrong. Try again.
Zig bindings to Google's WUFFS image decoders for PNG, JPEG, GIF and Netpbm
Something went wrong. Try again.
123456789101112131415161718// SPDX-FileCopyrightText: © 2024 Mitchell Hashimoto, Ghostty contributors// SPDX-FileCopyrightText: © 2024-2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
const std = @import("std");
const c = @import("wuffs_c");
pub const Error = std.mem.Allocator.Error || error{WuffsError};
pub fn check(log: anytype, status: *const c.struct_wuffs_base__status__struct) error{WuffsError}!void { if (!c.wuffs_base__status__is_ok(status)) { const e = c.wuffs_base__status__message(status); log.warn("decode err={s}", .{e}); return error.WuffsError; }}