An open API service indexing awesome lists of open source software.

https://github.com/bookzhan/bzyuvlib

Support YUV conversion to RGBA / BGRA, also adapted to YUV conversion of Camera1 and Camera2
https://github.com/bookzhan/bzyuvlib

android camera1 camera2 libyuv yuv-conversion yuv2rgb

Last synced: about 1 month ago
JSON representation

Support YUV conversion to RGBA / BGRA, also adapted to YUV conversion of Camera1 and Camera2

Awesome Lists containing this project

README

          

I previously wrote a YUV to RGBA project based on RenderScript, address: https://blog.raoyunsoft.com/post/yuv-conversion-renderscript-nv21-yv12-yuv420 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:

1. yuv420pToRGBA/yuv420pToBGRA
2. preHandleYUV
3. yv12ToRGBA/yv12ToBGRA
4. nv21ToRGBA/nv21ToBGRA
5. cropNV21/cropYUV420
6. zoomYUV420
7. bitmapToYUV420
8. yuvToGrey
9. greyToRGBA
10. translationSingleChannel
11. Support RGBA rotation and mirroring
12. yuvI420ToNV21
13. yuvI420ToNV12

#### How to use:

##### 1.First add mavenCentral() as shown below

```
allprojects {
repositories {
maven { url "https://nexus.raoyunsoft.com/repository/maven-releases/" }
}
}
```

##### 2. implementation 'com.guaishou.bzlib:bzyuv:1.1.22@aar'

If it helps you, please give me a start

[中文文档(Chinese DOC)](https://github.com/bookzhan/bzyuvlib/blob/master/README_cn.md)