video/smk: Smacker (SMK2 / SMK4) with its video codec and audio

containers into containers/Demux (palette updates ride on each video packet as packet.palette); the Smacker video
codec (header Huffman trees with the escape cache, MONO / FULL (+ SMK4 doubled modes) / SKIP / FILL blocks) lives in
codecs/video/Legacy/Smacker and registers as 'smackvid'; Smacker's packed DPCM-Huffman audio (8 / 16-bit, mono /
stereo) and raw PCM tracks decode in video/smk/Audio, the Decoder built by the format over codecs/audio/Stream
(Smk.openAudio; open() installs it as the openAudio hook). Fixtures encoded by tools/fixtures/smk.py: video and
audio bit-exact with ffmpeg.
This commit is contained in:
4DBug committed 2026-10-31 14:37:39 -05:00
1 parent a1d2e7218c
commit bf639260e4
8 files changed
+1522 -3

No files matched your search

+12
View File
@@ -362,6 +362,18 @@ local list: { Entry } = {
return require("@formats/video/mpegts")
end,
},
{
name = "smk",
category = "video",
path = "video/smk",
extensions = { "smk" },
mime = { "video/vnd.radgamettools.smacker" },
deps = { "core/Err", "core/Bytes", "Types", "containers/Demux", "codecs/video/Video", "codecs/audio/Stream", "codecs/video/Legacy/Smacker" },
caps = { decode = true, encode = false, streaming = true, video = { "smackvid" }, audio = { "smackaudio", "pcm_u8", "pcm_s16le" } },
load = function()
return require("@formats/video/smk")
end,
},
{
name = "y4m",
category = "video",