mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
20 lines
471 B
JavaScript
20 lines
471 B
JavaScript
|
|
let infile = sys.malloc(752704)
|
|
let imagearea = sys.malloc(560*448*3)
|
|
|
|
con.clear()
|
|
|
|
for (let f = 1; f <= 52; f++) {
|
|
let fname = `/movtestimg/${(''+f).padStart(3,'0')}.jpg`
|
|
filesystem.open("A", fname, "R")
|
|
let fileLen = filesystem.getFileLen("A")
|
|
dma.comToRam(0, 0, infile, fileLen)
|
|
|
|
graphics.decodeImageTo(infile, fileLen, imagearea)
|
|
|
|
graphics.imageToDisplayableFormat(imagearea, -1048577, 560, 448, 3, 2)
|
|
|
|
}
|
|
|
|
sys.free(imagearea)
|
|
sys.free(infile) |