comments: drop the last signature prefixes

This commit is contained in:
4DBug committed 2026-11-01 01:57:14 -05:00
1 parent 1cdc76a339
commit 31f977ab95
5 files changed
+5 -6

No files matched your search

+1 -1
View File
@@ -180,7 +180,7 @@ local TO_STEREO: { [string]: { number } } = {
SR = { 0, H }, BC = { 0.5, 0.5 },
}
-- matrix(from, to) -> m[o][i]: output channel o = sum m[o][i] * input i
-- m[o][i]: output channel o = sum m[o][i] * input i
local function matrix(from: number, to: number): { { number } }
local m: { { number } } = table.create(to) :: any
for o = 1, to do
+1 -2
View File
@@ -374,8 +374,7 @@ function K.nearest(src: buffer, w: number, h: number, bpp: number, dst: buffer,
end
end
-- affine(src, w, h, ch, kind, dst, ow, oh, m): dst pixel centres mapped through m = { a, b, c, d, e, f } to src
-- coordinates (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