gpu: reading image will return its actual channel count and mov encoder will actually use it

This commit is contained in:
minjaesong
2022-05-06 10:52:07 +09:00
parent 7aee0d8a52
commit 9df0f9ddba
8 changed files with 183 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ dma.comToRam(0, 0, infile, fileLen)
println("decoding")
// decode
const [imgw, imgh, imageData] = graphics.decodeImageResample(infile, fileLen, -1, -1)
const [imgw, imgh, channels, imageData] = graphics.decodeImageResample(infile, fileLen, -1, -1)
println(`dim: ${imgw}x${imgh}`)
println(`converting to displayable format...`)