comments: drop the last signature prefixes
This commit is contained in:
1 parent
1cdc76a339
commit
31f977ab95
5 files changed
+5
-6
No files matched your search
@@ -92,7 +92,7 @@ export type Decoder = {
|
||||
duration: number, -- seconds
|
||||
bitrate: number, -- bits per second (average)
|
||||
tags: Tags,
|
||||
-- read(n, out?) -> interleaved f32 buffer, frames read (0 at the end); out (if given) is reused when big enough
|
||||
-- read: interleaved f32, frames read (0 at the end); out is reused when big enough
|
||||
read: (self: any, n: number, out: buffer?) -> (buffer, number),
|
||||
seek: (self: any, seconds: number) -> (),
|
||||
position: (self: any) -> number, -- seconds
|
||||
|
||||
@@ -89,7 +89,7 @@ local function num(b: buffer, o: number, n: number, base: number): number?
|
||||
return tonumber(s, base)
|
||||
end
|
||||
|
||||
-- checksum(buf, offset, n) -> the crc format's sum of the data bytes (mod 2^32)
|
||||
-- the crc format's checksum: the sum of the data bytes mod 2^32
|
||||
function Cpio.checksum(b: buffer, o: number, n: number): number
|
||||
local s = 0
|
||||
local i = o
|
||||
|
||||
@@ -135,7 +135,7 @@ function IsoBmff.demux(r: Bytes.Reader, opts: Demux.Options?): (any, Err.Err?)
|
||||
return packet(best, i)
|
||||
end
|
||||
end
|
||||
-- seek(seconds): every track to its last sync sample at or before the time
|
||||
-- every track to its last sync sample at or before the time
|
||||
function dmx.seek(_self: any, seconds: number)
|
||||
for _, t in movie.tracks do
|
||||
local target = seconds * t.timescale
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user