ws-audio: merge ws/absorb (flac, bmp, zip)

This commit is contained in:
4DBug committed 2026-10-31 08:53:32 -05:00
commit 3dfe1e2cdd
125 files changed
+4625 -2

No files matched your search

+36
View File
@@ -14,6 +14,18 @@ export type Entry = {
}
local list: { Entry } = {
{
name = "bmp",
category = "image",
path = "image/bmp",
extensions = { "bmp", "dib" },
mime = { "image/bmp", "image/x-bmp", "image/x-ms-bmp" },
deps = { "core/Err", "core/Bytes", "Types" },
caps = { decode = true, encode = true, alpha = true, depths = { 1, 2, 4, 8, 16, 24, 32 }, rle = true },
load = function()
return require("@formats/image/bmp")
end,
},
{
name = "png",
category = "image",
@@ -50,6 +62,18 @@ local list: { Entry } = {
return require("@formats/audio/au")
end,
},
{
name = "flac",
category = "audio",
path = "audio/flac",
extensions = { "flac", "oga" },
mime = { "audio/flac", "audio/x-flac" },
deps = { "core/Err", "core/Bytes", "Types", "containers/Ogg" },
caps = { decode = true, encode = false, streaming = true, depths = { 4, 8, 12, 16, 20, 24, 32 }, ogg = true, seek = true },
load = function()
return require("@formats/audio/flac")
end,
},
{
name = "mp3",
category = "audio",
@@ -110,6 +134,18 @@ local list: { Entry } = {
return require("@formats/audio/wav")
end,
},
{
name = "zip",
category = "archive",
path = "archive/zip",
extensions = { "zip", "wsz" },
mime = { "application/zip", "application/x-zip-compressed" },
deps = { "core/Err", "core/Bytes", "Types", "containers/Zip" },
caps = { decode = true, encode = true, methods = { "store", "deflate" }, zip64 = true },
load = function()
return require("@formats/archive/zip")
end,
},
}
return list