下面示例内容是,在imageReader的回调里面,实时的将yuv420_888转为bitmap。 代码语言:javascript 复制 mYuvImageReader=ImageReader.newInstance(1920,1080,ImageFormat.YUV_420_888,4);privatefinal ImageReader.OnImageAvailableListener mOnYuvImageAvailableListener=newImageReader.OnImageAvailableListener(){@Overridepublicvoi...
mBitMap = YUV_420_888_toRGBIntrinsics(image,getActivity()); mHandler.post(new Runnable() { @Override public void run() { showImage(mBitMap); } }); Log.e(TAG,"YUV_420_888_toRGBIntrinsics end"); } } }; private static RenderScript rs; private static Bitmap YUV_420_888_toRGBIntrins...