aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/pkg/wuffs/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libghostty-vt/pkg/wuffs/src/main.zig')
-rw-r--r--vendor/libghostty-vt/pkg/wuffs/src/main.zig20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/pkg/wuffs/src/main.zig b/vendor/libghostty-vt/pkg/wuffs/src/main.zig
new file mode 100644
index 00000000..207d83f9
--- /dev/null
+++ b/vendor/libghostty-vt/pkg/wuffs/src/main.zig
@@ -0,0 +1,20 @@
+const std = @import("std");
+
+pub const png = @import("png.zig");
+pub const jpeg = @import("jpeg.zig");
+pub const swizzle = @import("swizzle.zig");
+pub const Error = @import("error.zig").Error;
+
+/// The maximum image size, based on the 4G limit of Ghostty's
+/// `image-storage-limit` config.
+pub const maximum_image_size = 4 * 1024 * 1024 * 1024;
+
+pub const ImageData = struct {
+ width: u32,
+ height: u32,
+ data: []u8,
+};
+
+test {
+ std.testing.refAllDeclsRecursive(@This());
+}