I am processing Android camera2 preview frames which are encoded in YUV_420 _888, by calling the method I420ToARGB from the Libyuv library but I get images in wrong colors.
libyuv::I420ToARGB(
ysrc, //const uint8* src_y,
ystride, //int src_stride_y,
usrc, //const uint8* src_u,
ustride, ///int src_stride_u,
vsrc, //const uint8* src_v,
vstride, //int src_stride_v,
argb, //uint8* dst_argb,
w*4, //int dst_stride_argb,
w, //int width,
h //int height
);