implement yuv and other colorspaces and "bufferless" TextureArray#1033
Merged
kushalkolar merged 19 commits intondwidgetfastplotlib/fastplotlib:ndwidgetfrom Apr 17, 2026
Merged
implement yuv and other colorspaces and "bufferless" TextureArray#1033kushalkolar merged 19 commits intondwidgetfastplotlib/fastplotlib:ndwidgetfrom
TextureArray#1033kushalkolar merged 19 commits intondwidgetfastplotlib/fastplotlib:ndwidgetfrom
Conversation
Member
Author
|
ok I'm going to benchmark the unpacked YUV with larger data and more vids simultaneously and see if we really need it. If not I will just keep the packed since it's easier to deal with. |
Member
Author
|
OK I'm going to add an entirely new |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
colorspaces. ExistingImageGraphicuses rgb colorspaces.ImageYUVGraphicfor yuv colorspacesyuv420pandyuv444pImageBasethat is inherited byImageGraphicandImageYUVGraphicTextureArrayusing thecpu_buffer=Falsekwarg. Behaves exactly the same from the perspective of theImageGraphicAPI! Soimage_graphic.data = new_datacan be done just like before, but with bufferless it's much faster.ImageYUVGraphicis always bufferless.NDImagecan handle bothImageGraphicandImageYUVGraphicNDImageProcessorsubclass calledVideoProcessorwhich can handle the tuple of arrays for(y, u, v)ndw_subplot.add_video()which just callsadd_nd_image()with withprocessor_type=VideoProcessorpyav.Frame.planeswithout creating an array which creates a copy.This gives us easy ~80fps on Gily's gerbil stuff which we were previously getting ~15fps on 🥳
even-more-epic-fps-2026-04-13_16.10.25.mp4