Closed devguy22 closed 1 year ago
Thank you very much for your PR! :) I merged your changes and will release a new version ASAP.
I just released version 0.5.4 with YUV support. Thank you again for your contribution! :)
Much obliged! Glad I could contribute
This provides function calls to allow user to get planar YUV images from the jpeg their decoding. There's two functions:
decompressor.decompress_to_yuv
, and a helperyuv_frame_size
. There's also a simplerdecompress_to_yuv
that returns a fresh yuv image buffer, similar to thedecompress
method.These functions have passing rust doctest on them. Please let me know if I can alter any style/formatting/etc to be more in line with how this library does things.