3 ms·
Android has had ColorMatrixColorFilter[1] since the beginning and YUV -> RGB conversion is actually an example use case they specify. Problem is, however, that
by grishka 5y ago
Android has had ColorMatrixColorFilter[1] since the beginning and YUV -> RGB conversion is actually an example use case they specify. Problem is, however, that many YUV formats do chroma subsampling, and you can't exactly put that into a regular bitmap without shuffling a lot of bytes around, which kinda defeats the purpose.
[1] https://developer.android.com/reference/android/graphics/ColorMatrixColorFilter https://developer.android.com/reference/android/graphics/Col...