yuv2rgb icon indicating copy to clipboard operation
yuv2rgb copied to clipboard

rgb32 to YUV420

Open ktb92677 opened this issue 6 years ago • 5 comments

any plans for 32bpp to yuv420? My screen buffers are in 32bpp. I could convert to 24bpp, but the time it would take to convert every cycle would defeat the purpose of increasing the speed of the conversion itself.

ktb92677 avatar Dec 18 '18 01:12 ktb92677

That should not be too difficult to do, just a macro similar to the UNPACK_RGB24_32 macro to unpack rgba instead of rgb24. I will try to have a look at it this week

descampsa avatar Dec 18 '18 21:12 descampsa

Thanks a ton!!!

ktb92677 avatar Dec 18 '18 21:12 ktb92677

Il have added the function in the last commit.

Note to self : too much copy pasted code here, needs a clean up

descampsa avatar Dec 24 '18 13:12 descampsa

Thank you so much! I will test this out in a bit. On a side note... any plans for a YUV420 to RGB32?

ktb92677 avatar Dec 26 '18 16:12 ktb92677

YUV to RGBX/BGRX would be top, I'd be willing to buy @descampsa a beer (or many beers) if you by chance decide to implement it 🙂

aramg avatar Dec 10 '20 22:12 aramg