Skip to content

bookzhan/bzyuvlib

Repository files navigation

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:

  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://www.raoyunsoft.com/nexus/repository/maven-releases/" }
    }
}
2. implementation 'com.guaishou.bzlib:bzyuv:1.1.19@aar'

If it helps you, please give me a start

中文文档(Chinese DOC)

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published