mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-11 05:31:51 +09:00
gpu: reading image will return its actual channel count and mov encoder will actually use it
This commit is contained in:
@@ -105,7 +105,7 @@ infile = sys.malloc(fileLen)
|
||||
dma.comToRam(0, 0, infile, fileLen)
|
||||
|
||||
// decode
|
||||
const [imgw, imgh, imageData, channels] = graphics.decodeImage(infile, fileLen) // stored as [R | G | B | (A)]
|
||||
const [imgw, imgh, channels, imageData] = graphics.decodeImage(infile, fileLen) // stored as [R | G | B | (A)]
|
||||
sys.free(infile)
|
||||
let hasAlpha = (4 == channels) && configUseAlpha
|
||||
let outBlock = sys.malloc(64)
|
||||
|
||||
Reference in New Issue
Block a user