I previously wrote a YUV to RGBA project based on RenderScript, address: https://www.raoyunsoft.com/wordpress/index.php/2020/01/19/yuvrenderscript/ If you like it, you can go here to find it, than Android native ScriptIntrinsicYuvToRGB is much more powerful, but recently found that RenderScript is much slower than Google ’s libyuv, so I wrote a YUV conversion project based on libyuv, and also supported the YUV conversion of Camera1 and Camera2 output, and the YUV mirror , Rotation, supported functions are as follows:
- yuv420pToRGBA/yuv420pToBGRA
- preHandleYUV
- yv12ToRGBA/yv12ToBGRA
- nv21ToRGBA/nv21ToBGRA
- cropNV21/cropYUV420
- zoomYUV420
- bitmapToYUV420
- yuvToGrey
- greyToRGBA
- translationSingleChannel
- Support RGBA rotation and mirroring
- yuvI420ToNV21
- yuvI420ToNV12
allprojects {
repositories {
maven { url "https://www.raoyunsoft.com/nexus/repository/maven-releases/" }
}
}
If it helps you, please give me a start