video delta encoding wip

This commit is contained in:
minjaesong
2025-04-15 21:38:33 +09:00
parent 9ce7e3dfd2
commit 4c4f24be37
11 changed files with 466 additions and 29 deletions

View File

@@ -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)