imgA: merge ws/imgA-simple (tga, qoi, pnm, ico, hdr)

This commit is contained in:
4DBug committed 2026-10-31 08:58:09 -05:00
commit f0f1eb6c47
23 files changed
+3293

No files matched your search

+60
View File
@@ -26,6 +26,30 @@ local list: { Entry } = {
return require("@formats/image/gif")
end,
},
{
name = "hdr",
category = "image",
path = "image/hdr",
extensions = { "hdr", "pic", "rgbe" },
mime = { "image/vnd.radiance", "image/x-hdr" },
deps = { "core/Err", "core/Bytes", "Types" },
caps = { decode = true, encode = true, alpha = false, float = true, depths = { 32 } },
load = function()
return require("@formats/image/hdr")
end,
},
{
name = "ico",
category = "image",
path = "image/ico",
extensions = { "ico", "cur" },
mime = { "image/vnd.microsoft.icon", "image/x-icon" },
deps = { "core/Err", "core/Bytes", "Types" },
caps = { decode = true, encode = true, alpha = true, frames = true, depths = { 1, 4, 8, 16, 24, 32 } },
load = function()
return require("@formats/image/ico")
end,
},
{
name = "jpeg",
category = "image",
@@ -50,6 +74,42 @@ local list: { Entry } = {
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,
},
{
name = "tga",
category = "image",
path = "image/tga",
extensions = { "tga", "icb", "vda", "vst", "tpic" },
mime = { "image/x-tga", "image/x-targa" },
deps = { "core/Err", "core/Bytes", "Types" },
caps = { decode = true, encode = true, alpha = true, palette = true, depths = { 8, 15, 16, 24, 32 } },
load = function()
return require("@formats/image/tga")
end,
},
{
name = "tiff",
category = "image",