In most platform specific APIs, there is an option to read the video frame as it's native pixel format, YUV.
However, the DOM Video Element wrapped with a
THREE.Texture, always returns RGB.
Is there a way to get textures in the native pixel format of YUV?
I am using JS and THREE.js, but if it's possible in WebGL, that's also good.
Read more here: https://stackoverflow.com/questions/64390092/is-there-a-way-for-webgl-three-js-to-read-a-video-dom-element-into-yuv-textures
This content was originally published by ofer rubinstein at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.