Files
rosetta/src/Formats/Registry.luau
T

56 lines
1.7 KiB
Luau

--!strict
-- Registry: GENERATED by tools/gen_registry.py from the format folders - do not edit.
-- One entry per format: the contract metadata (copied from its init.luau) and load(), which requires the format
-- module on first use (a static require, as Roblox needs). Order: category, then name.
export type Entry = {
name: string,
category: string,
path: string,
extensions: { string },
mime: { string },
deps: { string },
caps: { [string]: any },
load: () -> any,
}
local list: { Entry } = {
{
name = "png",
category = "image",
path = "image/png",
extensions = { "png", "apng" },
mime = { "image/png", "image/apng" },
deps = { "core/Err", "core/Bytes", "core/Crc32", "codecs/Deflate", "Types" },
caps = { decode = true, encode = true, animation = false, alpha = true, depths = { 1, 2, 4, 8, 16 } },
load = function()
return require("@formats/image/png")
end,
},
{
name = "pnm",
category = "image",
path = "image/pnm",
extensions = { "pnm", "pbm", "pgm", "ppm", "pam", "pfm" },
mime = { "image/x-portable-anymap", "image/x-portable-bitmap", "image/x-portable-graymap", "image/x-portable-pixmap", "image/x-portable-arbitrarymap", "image/x-portable-floatmap" },
deps = { "core/Err", "core/Bytes", "Types" },
caps = { decode = true, encode = true, alpha = true, depths = { 1, 8, 16, 32 }, float = true },
load = function()
return require("@formats/image/pnm")
end,
},
{
name = "qoi",
category = "image",
path = "image/qoi",
extensions = { "qoi" },
mime = { "image/qoi", "image/x-qoi" },
deps = { "core/Err", "core/Bytes", "Types" },
caps = { decode = true, encode = true, alpha = true, depths = { 8 } },
load = function()
return require("@formats/image/qoi")
end,
},
}
return list