Created
February 2, 2022 15:09
-
-
Save x-labz/a06c2c0b60dc57211b398e9acd96dbff to your computer and use it in GitHub Desktop.
webgl-transformer-canvas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gl.readPixels(0, 0, W, H, gl.RGBA, gl.UNSIGNED_BYTE, bufferRGB); | |
const init = { | |
timestamp: videoFrame.timestamp, | |
codedWidth: W, | |
codedHeight: H, | |
format: "RGBA", | |
}; | |
//const newFrame = new VideoFrame(bufferRGB, init); | |
const newFrame = new VideoFrame(gl.canvas, init); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment