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. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
50e270086d
commit
4b098276e2
8 files changed
+1522
-3
No files matched your search
@@ -0,0 +1,493 @@
|
||||
# Smacker fixtures (tools/fixtures.py): ffmpeg cannot write Smacker, so this encodes SMK2 / SMK4 files: the four
|
||||
# header trees (8-bit low / high byte trees, escape leaves used through the recent-value cache, absent trees), every
|
||||
# block type (MONO, FULL with the SMK4 doubled modes, SKIP, FILL) with block runs, palette updates (new entries, skips,
|
||||
# copies from the old palette), a ring frame, both frame-time units, and audio tracks: packed DPCM 16-bit stereo and
|
||||
# 8-bit mono, raw s16le and u8. The reference is ffmpeg's decode: the CRC-32 of each video frame as rgba and of each
|
||||
# audio track as f32le.
|
||||
# tests/gen/smk_cases.luau { { name, data, width, height, rate, frames = { crc }, audio = { { rate, channels,
|
||||
# bits, codec, frames, crc } } } }
|
||||
import heapq, importlib.util, math, os, random, struct, tempfile, zlib
|
||||
|
||||
_spec = importlib.util.spec_from_file_location("_video_helpers", os.path.join(os.path.dirname(os.path.abspath(__file__)), "_video.py"))
|
||||
V = importlib.util.module_from_spec(_spec)
|
||||
_spec.loader.exec_module(V)
|
||||
|
||||
INPUTS = ["tools/fixtures/_video.py"]
|
||||
|
||||
RUNS = list(range(1, 60)) + [128, 256, 512, 1024, 2048]
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------- bits / trees
|
||||
class Bits:
|
||||
def __init__(self):
|
||||
self.bits = []
|
||||
|
||||
def put(self, v, n):
|
||||
for i in range(n):
|
||||
self.bits.append((v >> i) & 1)
|
||||
|
||||
def code(self, c):
|
||||
self.bits.extend(c)
|
||||
|
||||
def bytes(self):
|
||||
out = bytearray((len(self.bits) + 7) // 8)
|
||||
for i, b in enumerate(self.bits):
|
||||
out[i >> 3] |= b << (i & 7)
|
||||
return bytes(out)
|
||||
|
||||
|
||||
def huffman(freqs, maxdepth):
|
||||
"""a Huffman tree over freqs {value: count}: nested (left, right) tuples / ('leaf', value)"""
|
||||
f = dict(freqs)
|
||||
while True:
|
||||
heap = [(c, i, ("leaf", v)) for i, (v, c) in enumerate(sorted(f.items()))]
|
||||
heapq.heapify(heap)
|
||||
k = len(heap)
|
||||
while len(heap) > 1:
|
||||
a = heapq.heappop(heap)
|
||||
b = heapq.heappop(heap)
|
||||
heapq.heappush(heap, (a[0] + b[0], k, (a[2], b[2])))
|
||||
k += 1
|
||||
tree = heap[0][2]
|
||||
if depth(tree) <= maxdepth:
|
||||
return tree
|
||||
f = {v: c // 2 + 1 for v, c in f.items()}
|
||||
|
||||
|
||||
def depth(t):
|
||||
return 0 if t[0] == "leaf" else 1 + max(depth(t[0]), depth(t[1]))
|
||||
|
||||
|
||||
def codes(t, prefix=(), out=None):
|
||||
out = {} if out is None else out
|
||||
if t[0] == "leaf":
|
||||
out[t[1]] = list(prefix)
|
||||
else:
|
||||
codes(t[0], prefix + (0,), out)
|
||||
codes(t[1], prefix + (1,), out)
|
||||
return out
|
||||
|
||||
|
||||
def write_tree8(bw, t):
|
||||
if t[0] == "leaf":
|
||||
bw.put(0, 1)
|
||||
bw.put(t[1], 8)
|
||||
else:
|
||||
bw.put(1, 1)
|
||||
write_tree8(bw, t[0])
|
||||
write_tree8(bw, t[1])
|
||||
|
||||
|
||||
class BigTree:
|
||||
"""a header tree: values (16-bit) with three escape leaves for the recent-value cache"""
|
||||
|
||||
def __init__(self, freqs, rnd, absent_ok=True):
|
||||
self.absent = not freqs
|
||||
if self.absent:
|
||||
return
|
||||
lo = {}
|
||||
hi = {}
|
||||
for v, c in freqs.items():
|
||||
lo[v & 255] = lo.get(v & 255, 0) + c
|
||||
hi[v >> 8] = hi.get(v >> 8, 0) + c
|
||||
# three escape values made of bytes the byte trees have, not used as values (a high-byte tree of only 0 is
|
||||
# left out: absent byte trees decode as 0)
|
||||
esc = []
|
||||
for l in sorted(lo):
|
||||
for h in sorted(hi):
|
||||
v = l | h << 8
|
||||
if v not in freqs and len(esc) < 3:
|
||||
esc.append(v)
|
||||
while len(esc) < 3: # every combination used: widen the low byte tree
|
||||
nl = next(x for x in range(256) if x not in lo)
|
||||
lo[nl] = 1
|
||||
esc.append(nl | sorted(hi)[0] << 8)
|
||||
self.esc = esc
|
||||
self.lo = huffman(lo, 27)
|
||||
self.hi = huffman(hi, 27)
|
||||
allv = dict(freqs)
|
||||
for i, e in enumerate(esc):
|
||||
allv[e] = max(1, sum(freqs.values()) // (8 + i))
|
||||
self.tree = huffman(allv, 200)
|
||||
self.lcodes, self.hcodes, self.vcodes = codes(self.lo), codes(self.hi), codes(self.tree)
|
||||
self.entries = count_entries(self.tree)
|
||||
self.hi_absent = len(hi) == 1 and 0 in hi
|
||||
self.rnd = rnd
|
||||
|
||||
def write(self, bw):
|
||||
if self.absent:
|
||||
bw.put(0, 1)
|
||||
return
|
||||
bw.put(1, 1)
|
||||
bw.put(1, 1)
|
||||
write_tree8(bw, self.lo)
|
||||
bw.put(0, 1)
|
||||
if self.hi_absent:
|
||||
bw.put(0, 1)
|
||||
else:
|
||||
bw.put(1, 1)
|
||||
write_tree8(bw, self.hi)
|
||||
bw.put(0, 1)
|
||||
for e in self.esc:
|
||||
bw.put(e, 16)
|
||||
self._write_big(bw, self.tree)
|
||||
bw.put(0, 1)
|
||||
|
||||
def _write_big(self, bw, t):
|
||||
if t[0] == "leaf":
|
||||
bw.put(0, 1)
|
||||
v = t[1]
|
||||
bw.code(self.lcodes[v & 255])
|
||||
if not self.hi_absent:
|
||||
bw.code(self.hcodes[v >> 8])
|
||||
else:
|
||||
bw.put(1, 1)
|
||||
self._write_big(bw, t[0])
|
||||
self._write_big(bw, t[1])
|
||||
|
||||
def size(self):
|
||||
return 0 if self.absent else (self.entries + 3) * 4
|
||||
|
||||
def reset(self):
|
||||
self.cache = [0, 0, 0]
|
||||
|
||||
def emit(self, bw, v):
|
||||
if self.absent:
|
||||
assert v == 0
|
||||
return
|
||||
hit = [k for k in range(3) if self.cache[k] == v]
|
||||
if hit and self.rnd.random() < 0.7:
|
||||
bw.code(self.vcodes[self.esc[hit[0]]])
|
||||
else:
|
||||
bw.code(self.vcodes[v])
|
||||
if v != self.cache[0]:
|
||||
self.cache[2] = self.cache[1]
|
||||
self.cache[1] = self.cache[0]
|
||||
self.cache[0] = v
|
||||
|
||||
|
||||
def count_entries(t):
|
||||
return 1 if t[0] == "leaf" else 1 + count_entries(t[0]) + count_entries(t[1])
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------- video
|
||||
def blocks_of(img, w, h):
|
||||
return [[[img[by * 4 + r][bx * 4 + x] for x in range(4)] for r in range(4)] for by in range(h // 4) for bx in range(w // 4)]
|
||||
|
||||
|
||||
def classify(b, prev, v4):
|
||||
if prev is not None and b == prev:
|
||||
return ("skip",)
|
||||
flat = [p for r in b for p in r]
|
||||
cols = sorted(set(flat))
|
||||
if len(cols) == 1:
|
||||
return ("fill", cols[0])
|
||||
if len(cols) == 2:
|
||||
lo, hi = cols
|
||||
m = 0
|
||||
for i, p in enumerate(flat):
|
||||
if p == hi:
|
||||
m |= 1 << i
|
||||
return ("mono", hi << 8 | lo, m)
|
||||
if v4 and b[0] == b[1] and b[2] == b[3] and b[0][0] == b[0][1] and b[0][2] == b[0][3] and b[2][0] == b[2][1] and b[2][2] == b[2][3]:
|
||||
return ("full", 1)
|
||||
if v4 and b[0] == b[1] and b[2] == b[3]:
|
||||
return ("full", 2)
|
||||
return ("full", 0)
|
||||
|
||||
|
||||
def full_codes(b, mode):
|
||||
if mode == 0:
|
||||
out = []
|
||||
for r in b:
|
||||
out += [r[2] | r[3] << 8, r[0] | r[1] << 8]
|
||||
return out
|
||||
if mode == 1:
|
||||
return [b[0][0] | b[0][2] << 8, b[2][0] | b[2][2] << 8]
|
||||
return [b[0][2] | b[0][3] << 8, b[0][0] | b[0][1] << 8, b[2][2] | b[2][3] << 8, b[2][0] | b[2][1] << 8]
|
||||
|
||||
|
||||
def plan(frames, w, h, v4):
|
||||
"""per frame the list of runs: (kind, extra, [blocks])"""
|
||||
out = []
|
||||
prev = None
|
||||
for img in frames:
|
||||
bl = blocks_of(img, w, h)
|
||||
cls = [classify(b, prev[i] if prev else None, v4) for i, b in enumerate(bl)]
|
||||
runs = []
|
||||
i = 0
|
||||
while i < len(bl):
|
||||
c = cls[i]
|
||||
key = c[:2] if c[0] in ("fill", "full") else c[:1]
|
||||
j = i
|
||||
while j + 1 < len(bl) and (cls[j + 1][:2] if cls[j + 1][0] in ("fill", "full") else cls[j + 1][:1]) == key:
|
||||
j += 1
|
||||
n = j - i + 1
|
||||
# the largest run length of the table that fits
|
||||
k = max(r for r in RUNS if r <= n)
|
||||
runs.append((c, [bl[x] for x in range(i, i + k)], [cls[x] for x in range(i, i + k)], RUNS.index(k)))
|
||||
i += k
|
||||
out.append(runs)
|
||||
prev = bl
|
||||
return out
|
||||
|
||||
|
||||
def type_value(c, ri):
|
||||
kind = {"mono": 0, "full": 1, "skip": 2, "fill": 3}[c[0]]
|
||||
v = kind | ri << 2
|
||||
if c[0] == "fill":
|
||||
v |= c[1] << 8
|
||||
return v
|
||||
|
||||
|
||||
def stats(plans, v4):
|
||||
f = {"type": {}, "mclr": {}, "mmap": {}, "full": {}}
|
||||
|
||||
def add(t, v):
|
||||
f[t][v] = f[t].get(v, 0) + 1
|
||||
|
||||
for runs in plans:
|
||||
for c, bl, cl, ri in runs:
|
||||
add("type", type_value(c, ri))
|
||||
if c[0] == "mono":
|
||||
for x in cl:
|
||||
add("mclr", x[1])
|
||||
add("mmap", x[2])
|
||||
elif c[0] == "full":
|
||||
for b in bl:
|
||||
for v in full_codes(b, c[1]):
|
||||
add("full", v)
|
||||
return f
|
||||
|
||||
|
||||
def encode_video(frames, w, h, v4, rnd):
|
||||
plans = plan(frames, w, h, v4)
|
||||
f = stats(plans, v4)
|
||||
trees = {k: BigTree(f[k], rnd) for k in ("mmap", "mclr", "full", "type")}
|
||||
tb = Bits()
|
||||
for k in ("mmap", "mclr", "full", "type"):
|
||||
trees[k].write(tb)
|
||||
treebytes = tb.bytes()
|
||||
out = []
|
||||
for runs in plans:
|
||||
for t in trees.values():
|
||||
t.reset()
|
||||
bw = Bits()
|
||||
for c, bl, cl, ri in runs:
|
||||
trees["type"].emit(bw, type_value(c, ri))
|
||||
if c[0] == "mono":
|
||||
for x in cl:
|
||||
trees["mclr"].emit(bw, x[1])
|
||||
trees["mmap"].emit(bw, x[2])
|
||||
elif c[0] == "full":
|
||||
if v4:
|
||||
bw.code([1] if c[1] == 1 else [0, 1] if c[1] == 2 else [0, 0])
|
||||
for b in bl:
|
||||
for v in full_codes(b, c[1]):
|
||||
trees["full"].emit(bw, v)
|
||||
out.append(bw.bytes() or b"\0")
|
||||
return treebytes, [trees[k].size() for k in ("mmap", "mclr", "full", "type")], out
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------- palettes
|
||||
def pal_chunk(new, old, first):
|
||||
"""a palette update: new / old are lists of 256 6-bit (r, g, b)"""
|
||||
body = bytearray()
|
||||
i = 0
|
||||
while i < 256:
|
||||
if not first and new[i] == old[i]:
|
||||
j = i
|
||||
while j < 256 and j - i < 128 and new[j] == old[j]:
|
||||
j += 1
|
||||
body.append(0x80 | (j - i - 1))
|
||||
i = j
|
||||
continue
|
||||
# a copy from the old palette when the next entries appear there in a row
|
||||
if not first:
|
||||
for off in range(256):
|
||||
n = 0
|
||||
while i + n < 256 and off + n < 256 and n < 64 and new[i + n] == old[off + n]:
|
||||
n += 1
|
||||
if n >= 2:
|
||||
body += bytes([0x40 | (n - 1), off])
|
||||
i += n
|
||||
break
|
||||
else:
|
||||
off = None
|
||||
if off is not None:
|
||||
continue
|
||||
body += bytes(new[i])
|
||||
i += 1
|
||||
size = 1 + len(body)
|
||||
size = (size + 3) // 4 * 4
|
||||
return bytes([size // 4]) + bytes(body) + bytes(size - 1 - len(body))
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------- audio
|
||||
def pack_audio(samples, ch, bits):
|
||||
"""one packed (SMKA) chunk body: samples interleaved (s16 or u8)"""
|
||||
nb = bits // 8
|
||||
bw = Bits()
|
||||
bw.put(1, 1)
|
||||
bw.put(1 if ch == 2 else 0, 1)
|
||||
bw.put(1 if bits == 16 else 0, 1)
|
||||
mod = 65536 if bits == 16 else 256
|
||||
pred = list(samples[:ch])
|
||||
deltas = []
|
||||
for i in range(ch, len(samples)):
|
||||
c = i % ch
|
||||
d = (samples[i] - pred[c]) % mod
|
||||
pred[c] = samples[i]
|
||||
deltas.append((c, d))
|
||||
ntrees = (2 if bits == 16 else 1) * ch
|
||||
freqs = [dict() for _ in range(ntrees)]
|
||||
for c, d in deltas:
|
||||
if bits == 16:
|
||||
freqs[2 * c][d & 255] = freqs[2 * c].get(d & 255, 0) + 1
|
||||
freqs[2 * c + 1][d >> 8] = freqs[2 * c + 1].get(d >> 8, 0) + 1
|
||||
else:
|
||||
freqs[c][d] = freqs[c].get(d, 0) + 1
|
||||
trees = [huffman(f or {0: 1}, 27) for f in freqs]
|
||||
cds = [codes(t) for t in trees]
|
||||
for t in trees:
|
||||
bw.put(1, 1)
|
||||
write_tree8(bw, t)
|
||||
bw.put(0, 1)
|
||||
for c in range(ch - 1, -1, -1):
|
||||
v = samples[c] % mod
|
||||
if bits == 16:
|
||||
v = ((v & 255) << 8) | (v >> 8) # stored byte-swapped
|
||||
bw.put(v, bits)
|
||||
for c, d in deltas:
|
||||
if bits == 16:
|
||||
bw.code(cds[2 * c][d & 255])
|
||||
bw.code(cds[2 * c + 1][d >> 8])
|
||||
else:
|
||||
bw.code(cds[c][d])
|
||||
return struct.pack("<I", len(samples) * nb) + bw.bytes()
|
||||
|
||||
|
||||
def tone(n, ch, bits, rate, seed, f0):
|
||||
rnd = random.Random(seed)
|
||||
out = []
|
||||
for i in range(n):
|
||||
for c in range(ch):
|
||||
v = 0.5 * math.sin(2 * math.pi * f0 * (c + 1) * i / rate) + 0.05 * (rnd.random() - 0.5)
|
||||
if bits == 16:
|
||||
out.append(int(v * 30000))
|
||||
else:
|
||||
out.append(int(128 + v * 120))
|
||||
return out
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------- files
|
||||
def idx_frames(w, h, n, seed):
|
||||
rnd = random.Random(seed)
|
||||
out = []
|
||||
for t in range(n):
|
||||
img = [[(x // 8 + y // 8 * 3) % 40 for x in range(w)] for y in range(h)]
|
||||
for y in range(8, 24):
|
||||
for x in range(8 + t * 4, 24 + t * 4):
|
||||
img[y][x] = 100 + (x + y) % 2 # two colours: MONO blocks
|
||||
for y in range(h - 16, h - 8):
|
||||
for x in range(0, w):
|
||||
img[y][x] = 50 + ((x // 2) % 5) if (t % 2 == 0) else 60 # doubled pixels: SMK4 modes
|
||||
for y in range(28, 36):
|
||||
for x in range(w // 2, w // 2 + 12):
|
||||
img[y][x] = rnd.randrange(256)
|
||||
out.append(img)
|
||||
return out
|
||||
|
||||
|
||||
def smk_file(version, w, h, nframes, pts_inc, tracks, ring, seed):
|
||||
"""version 2 / 4; tracks = [(kind, rate, ch, bits)] kind "packed" / "raw"; returns bytes, track info"""
|
||||
rnd = random.Random(seed)
|
||||
frames = idx_frames(w, h, nframes, seed)
|
||||
if ring:
|
||||
frames = frames + [frames[0]]
|
||||
treebytes, sizes, video = encode_video(frames, w, h, version == 4, rnd)
|
||||
total = len(frames)
|
||||
# palettes (6-bit), changing on some frames
|
||||
pals = []
|
||||
cur = [(rnd.randrange(64), rnd.randrange(64), rnd.randrange(64)) for _ in range(256)]
|
||||
for t in range(total):
|
||||
if t in (3, 5):
|
||||
cur = list(cur)
|
||||
for k in range(20 + t, 40 + t):
|
||||
cur[k] = (rnd.randrange(64), rnd.randrange(64), rnd.randrange(64))
|
||||
cur[200:210] = pals[0][10:20] # a copy from the old palette
|
||||
pals.append(list(cur))
|
||||
# audio per frame
|
||||
seconds = (pts_inc / 1000.0 if pts_inc > 0 else -pts_inc / 100000.0)
|
||||
achunks = []
|
||||
for ti, (kind, rate, ch, bits) in enumerate(tracks):
|
||||
per = []
|
||||
done = 0
|
||||
for t in range(total):
|
||||
n = int(round((t + 1) * seconds * rate)) - done
|
||||
done += n
|
||||
s = tone(n, ch, bits, rate, seed * 10 + ti * 100 + t, 440 + 110 * ti)
|
||||
if kind == "packed":
|
||||
per.append(pack_audio(s, ch, bits))
|
||||
else:
|
||||
per.append(b"".join(struct.pack("<h", v) if bits == 16 else bytes([v]) for v in s))
|
||||
achunks.append(per)
|
||||
data = []
|
||||
flags = []
|
||||
for t in range(total):
|
||||
body = b""
|
||||
fl = 0
|
||||
if t == 0 or pals[t] != pals[t - 1]:
|
||||
body += pal_chunk(pals[t], pals[t - 1] if t else None, t == 0)
|
||||
fl |= 1
|
||||
for ti in range(len(tracks)):
|
||||
a = achunks[ti][t]
|
||||
body += struct.pack("<I", 4 + len(a)) + a
|
||||
fl |= 2 << ti
|
||||
body += video[t]
|
||||
body += bytes((-len(body)) % 4)
|
||||
data.append(body)
|
||||
flags.append(fl)
|
||||
hd = b"SMK%d" % version + struct.pack("<IIIiI", w, h, nframes, pts_inc, 1 if ring else 0)
|
||||
hd += struct.pack("<7I", *[max(len(a) for a in achunks[i]) if i < len(tracks) else 0 for i in range(7)])
|
||||
hd += struct.pack("<I", len(treebytes)) + struct.pack("<4I", *sizes)
|
||||
for i in range(7):
|
||||
if i < len(tracks):
|
||||
kind, rate, ch, bits = tracks[i]
|
||||
f = 0x40 | (0x80 if kind == "packed" else 0) | (0x20 if bits == 16 else 0) | (0x10 if ch == 2 else 0)
|
||||
hd += struct.pack("<I", rate | f << 24)
|
||||
else:
|
||||
hd += struct.pack("<I", 0)
|
||||
hd += struct.pack("<I", 0)
|
||||
hd += b"".join(struct.pack("<I", len(d) | (1 if t == 0 else 0)) for t, d in enumerate(data))
|
||||
hd += bytes(flags)
|
||||
return hd + treebytes + b"".join(data)
|
||||
|
||||
|
||||
def generate(ctx):
|
||||
tmp = tempfile.mkdtemp(prefix="smkfx_")
|
||||
specs = [
|
||||
("smk2_audio.smk", 2, 64, 48, 8, 100, [("packed", 22050, 2, 16), ("packed", 11025, 1, 8)], False, 1),
|
||||
("smk4_ring.smk", 4, 96, 64, 9, -6667, [("raw", 16000, 1, 16), ("raw", 8000, 2, 8)], True, 2),
|
||||
("smk4_mono.smk", 4, 64, 48, 6, 80, [("packed", 22050, 1, 16), ("packed", 11025, 2, 8)], False, 3),
|
||||
("smk2_silent.smk", 2, 128, 64, 5, 66, [], False, 4),
|
||||
]
|
||||
cases = []
|
||||
for name, ver, w, h, n, pts, tracks, ring, seed in specs:
|
||||
data = smk_file(ver, w, h, n, pts, tracks, ring, seed)
|
||||
path = os.path.join(tmp, name)
|
||||
open(path, "wb").write(data)
|
||||
raw = V.ffmpeg(["-i", path, "-map", "0:v:0", "-fps_mode", "passthrough", "-f", "rawvideo", "-pix_fmt", "rgba", "-"])
|
||||
sz = w * h * 4
|
||||
crcs = [zlib.crc32(raw[i:i + sz]) & 0xffffffff for i in range(0, len(raw) - sz + 1, sz)]
|
||||
assert len(crcs) == n + (1 if ring else 0), (name, len(crcs))
|
||||
audio = []
|
||||
for i, (kind, rate, ch, bits) in enumerate(tracks):
|
||||
pcm = V.ffmpeg(["-i", path, "-map", "0:a:%d" % i, "-f", "f32le", "-"])
|
||||
audio.append({"rate": rate, "channels": ch, "bits": bits,
|
||||
"codec": "smackaudio" if kind == "packed" else ("pcm_s16le" if bits == 16 else "pcm_u8"),
|
||||
"frames": len(pcm) // (4 * ch), "crc": zlib.crc32(pcm) & 0xffffffff})
|
||||
rate = 1000 / pts if pts > 0 else 100000 / -pts
|
||||
cases.append({"name": name, "data": data, "width": w, "height": h, "rate": rate, "frames": crcs, "audio": audio,
|
||||
"ring": ring})
|
||||
ctx.emit("smk_cases", cases)
|
||||
Reference in new issue
Block a user