mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-18 02:14:04 +09:00
video delta encoding wip
This commit is contained in:
@@ -7,11 +7,11 @@ let PATHFUN = (i) => `/ddol/${(''+i).padStart(5,'0')}.png`
|
||||
|
||||
|
||||
const FBUF_SIZE = WIDTH * HEIGHT
|
||||
let infile = sys.malloc(512000) // somewhat arbitrary
|
||||
let imagearea = sys.malloc(FBUF_SIZE*3)
|
||||
let decodearea = sys.malloc(FBUF_SIZE)
|
||||
let ipfarea = sys.malloc(FBUF_SIZE)
|
||||
let gzippedImage = sys.malloc(512000) // somewhat arbitrary
|
||||
let infile = sys.malloc(512000) // allocate somewhat arbitrary amount of memory
|
||||
let imagearea = sys.malloc(FBUF_SIZE*3) // allocate exact amount of memory
|
||||
let decodearea = sys.malloc(FBUF_SIZE) // allocate exact amount of memory
|
||||
let ipfarea = sys.malloc(FBUF_SIZE) // allocate exact amount of memory
|
||||
let gzippedImage = sys.malloc(512000) // allocate somewhat arbitrary amount of memory
|
||||
|
||||
let outfilename = exec_args[1]
|
||||
|
||||
@@ -69,6 +69,7 @@ for (let f = 1; f <= TOTAL_FRAMES; f++) {
|
||||
print(` ${gzlen} bytes\n`)
|
||||
}
|
||||
|
||||
// free all the memory that has been allocated
|
||||
sys.free(infile)
|
||||
sys.free(imagearea)
|
||||
sys.free(decodearea)
|
||||
|
||||
Reference in New Issue
Block a user