You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Main problem is just that I could not be ensured that the order is what I needed
so I needed to add a lot more code to make sure, eg. that all data was interleaved RGB(A)
maybe a toInterleaved8 and toInterleaved16 function pair that does the heavy lifting would make it easier...
together with a format parameter to specify whether conversion to RGB/RGBA should happen
you get:
channel count
bits per channel (8 or 16)
functions for auto-converting to the format you need if need be
Of course, for GPU-side compressed formats I'd rather need the raw binary blob together with width and height
imgformats makes it really easy to get the pixels out
All the extra flags you need to pass does make the API slightly more hard to wrap ones head around I'll be honest
The text was updated successfully, but these errors were encountered:
// Note about gamut: would be way easier to use if there was a way to copy a single channel from another image,
// to fill a single channel with 255, to resize from an image to another, to easily crop a rectangle.
downallocation should not reallocate down until shrinkToFit is called? Else, it makes reusing a buffer with various size a realtime hazard, much like realloc vs Vec => rare case that would necessitate a .reserve call instead
Emulate the
imageformats
functions as public API.The text was updated successfully, but these errors were encountered: