Almar Klein
Almar Klein
Thanks for the suggestions 👍
Would be nice if we could stream from an actual video file, so we can also comparethe performance of a shader-based approach with just reading frames as rgb. Here's a...
Even easier: I added a yuv420 version of cockatoo.mp4 to the imageio standard images: https://github.com/imageio/imageio/pull/1103
I made an attempt to load the data into an texture with two layers. Basically this: ``` ________ | | | y | |_________| | u | | |---------| |_v__|____|...
Tweaked the example and code. Now also possible to do some benchmarking. I'm measuring an easy 2x performance improvement. And this is with a video that is not in yuv420p...
> I can try to create videos with both limited range and full range YUV. I think it is important to have that option, mostly for documenting what the difference...
I did some benchmarks. The videos are 1280x720, rendering into a canvas of 640x360 (internal render texture is 1280x720). | saved-format | read-format | FPS | |-|-|-| | yuv444p (cockatoo.mp4)...
BTW: for those who, like me, wondered what `p` means in `yuv420p`: it means planar. So we can also have `rgbp`, which would have the colors in planes instead of...
> I love that I got you hooked on this performance deep dive. Hehe. This turned out to be very interesting and insightful.
This is ready from my end. BTW: this PR also makes it easier to use multi-layer textures for other things, like #882.