diff --git a/src/Rosetta/containers/AudioWrap.luau b/src/Rosetta/containers/AudioWrap.luau index 9983e29..4f82bd4 100644 --- a/src/Rosetta/containers/AudioWrap.luau +++ b/src/Rosetta/containers/AudioWrap.luau @@ -339,7 +339,8 @@ local function adts(track: Types.Track, packets: { Types.Packet }): (buffer?, Er return w:finish(), nil end --- trim: a container's codec delay (Matroska CodecDelay, an MP4 edit's media time for MP2 / MP3 / AAC, as ffmpeg) and end padding +-- trim: a container's codec delay (Matroska CodecDelay, an MP4 edit's media time for MP2 / MP3 / AAC, as ffmpeg) +-- and end padding function AudioWrap.trim(dec: any, skip: number, length: number?): any if skip <= 0 and length == nil then return dec diff --git a/src/Rosetta/containers/Zip/init.luau b/src/Rosetta/containers/Zip/init.luau index 6f0fab8..1b4fff8 100644 --- a/src/Rosetta/containers/Zip/init.luau +++ b/src/Rosetta/containers/Zip/init.luau @@ -1,8 +1,8 @@ --!strict --!optimize 2 --- containers/Zip: ZIP (PKWARE APPNOTE 6.3), read and written. The reader is absorbed from zip-luau 121d4b0 (same author, --- no third-party code): EOCD search, ZIP64, prefix shifts (self-extractor stubs), stored / deflated entries, data --- descriptors. The writer is new: stored / deflated, UTF-8 names, DOS times, raw entry copies, ZIP64 when needed. +-- containers/Zip: ZIP (PKWARE APPNOTE 6.3), read and written. The reader is absorbed from zip-luau 121d4b0 (same +-- author, no third-party code): EOCD search, ZIP64, prefix shifts (self-extractor stubs), stored / deflated entries, +-- data descriptors. The writer is new: stored / deflated, UTF-8 names, DOS times, raw entry copies, ZIP64 when needed. -- Never throws: corrupt archives and bad arguments return nil, Err. local Err = require("@rosetta/core/Err") local Types = require("@rosetta/Types") @@ -306,7 +306,8 @@ local function extract(b: buffer, e: Entry, dataStart: number): (buffer?, any) return out end --- data offset candidates: the local header's lengths, then the central directory's (some writers get the local extra wrong) +-- data offset candidates: the local header's lengths, then the central directory's (some writers get the local +-- extra length wrong) function Zip._starts(b: buffer, e: Entry): { number } local o = e.offset local starts = {} diff --git a/src/Rosetta/ops/ImageOps/Kernels.luau b/src/Rosetta/ops/ImageOps/Kernels.luau index b4f979f..467c4e4 100644 --- a/src/Rosetta/ops/ImageOps/Kernels.luau +++ b/src/Rosetta/ops/ImageOps/Kernels.luau @@ -374,7 +374,8 @@ function K.nearest(src: buffer, w: number, h: number, bpp: number, dst: buffer, end end --- affine: dst pixel centres through m = { a, b, c, d, e, f } (xin = a x + b y + c), bilinear with clamped neighbours; centres outside the source -> zeros (Pillow) +-- affine: dst pixel centres through m = { a, b, c, d, e, f } (xin = a x + b y + c), bilinear with clamped +-- neighbours; centres outside the source -> zeros (Pillow) function K.affine(src: buffer, w: number, h: number, ch: number, kind: number, dst: buffer, ow: number, oh: number, m: { number }) local a, b, c, d, e, f = m[1], m[2], m[3], m[4], m[5], m[6] local size = kind diff --git a/src/Rosetta/ops/MusicOps.luau b/src/Rosetta/ops/MusicOps.luau index 1d20dd8..a3f1f10 100644 --- a/src/Rosetta/ops/MusicOps.luau +++ b/src/Rosetta/ops/MusicOps.luau @@ -183,7 +183,8 @@ export type SampleSpec = { local LOOPS: { [string]: number } = { none = 0, forward = 1, pingpong = 2 } --- tuning: c5speed for S3M / IT; relativeNote + finetune (1/128 semitone from 8363 Hz) for MOD / XM (MOD stores only the finetune, -1..+7/8 semitone) +-- tuning: c5speed for S3M / IT; relativeNote + finetune (1/128 semitone from 8363 Hz) for MOD / XM (MOD stores +-- only the finetune, -1..+7/8 semitone) function MusicOps.addSample(m: any, spec: SampleSpec): (number?, Err.Err?) if not isModule(m) then return bad("addSample: needs a tracker Module")