camera2 api convert yuv420 to rgb green out
问题 i trying convert image from YUV_420_888 to rgb and i have some trouble with output image. In ImageReader i get image in format YUV_420_888 (using camera 2 api for get this image preview). imageReader = ImageReader.newInstance(1920,1080,ImageFormat.YUV_420_888,10); In android sdk for YuvImage class writing, that YuvImage using only NV21, YUY2. as we can see difference between N21 and yuv420 not big and i try convert data to N21 YUV420: and N21: in onImageAvailable i get separately each Planes