From cf737746d4d50a58b484b5aec9cfdecede9b443b Mon Sep 17 00:00:00 2001 From: 4DBug Date: Sat, 31 Oct 2026 13:56:33 -0500 Subject: [PATCH] ws-video2: Dsp header --- docs/FORMATS.md | 1 + src/Formats/codecs/video/Dsp.luau | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/FORMATS.md b/docs/FORMATS.md index 0a41a66..f36b9a6 100644 --- a/docs/FORMATS.md +++ b/docs/FORMATS.md @@ -132,6 +132,7 @@ Codecs (layer 3, shared by formats; not loadable on their own), by domain: - codecs/text/Url: RFC 3986 reference resolution (section 5.2), the classification of a playlist / manifest location (URL, - codecs/text/Xml: XML 1.0 parse (DOM and pull events) and serialize, the engine data/xml, SVG, DAE, 3MF, TMX, plist, ... - **video** + - codecs/video/Dsp: block DSP shared by the MPEG-style video codecs (MPEG-1 / MPEG-2, H.263 / Sorenson Spark): the - codecs/video/H264: an H.264 / AVC (ITU-T H.264 | ISO/IEC 14496-10) video decoder in pure Luau. A codec (layer 1): the - codecs/video/Mpeg1: an MPEG-1 video decoder (ISO/IEC 11172-2) for the MPEG-TS / MPEG-PS video formats. Absorbed from - codecs/video/Video: the video codec registry and the generic VideoDecoder. New in formats-luau. diff --git a/src/Formats/codecs/video/Dsp.luau b/src/Formats/codecs/video/Dsp.luau index f449f53..6bdc215 100644 --- a/src/Formats/codecs/video/Dsp.luau +++ b/src/Formats/codecs/video/Dsp.luau @@ -3,7 +3,8 @@ --!optimize 2 -- codecs/video/Dsp: the 8x8 IDCT (bit-exact with ffmpeg -idct int) and half-pel motion compensation of MPEG codecs. -- Block DSP shared by the MPEG-style video codecs (MPEG-1 / MPEG-2, H.263 / Sorenson Spark): the IDCT put or added --- into 8-bit planes, constant (DC-only) blocks, -- half-pel motion compensation four samples at a time. Native, never throws (the caller keeps offsets in range). +-- into 8-bit planes, constant (DC-only) blocks, half-pel motion compensation four samples at a time. Native, never +-- throws (the caller keeps offsets in range). -- -- The IDCT is the Independent JPEG Group's jrevdct.c (the LL&M integer IDCT, CONST_BITS 13, PASS1_BITS 2) as ffmpeg -- ships it (libavcodec/jrevdct.c, IJG licence: licenses/libjpeg-README.ijg), translated mechanically: rows first, then