Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gordinmitya committed Jan 20, 2022
1 parent a3fef06 commit 0f15b62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

![](https://github.com/gordinmitya/yuv2buf/workflows/Android%20CI/badge.svg)

## OUTDATED!
7 years passed since CameraApi 2 was introduced in Android 5.
So Google decided that it's time to make convenient way to get RGB images from it.

ImageAnalysis from CaemraX now supports setOutputImageFormat(ImageAnalysis.OUTPUT_IMAGE_FORMAT_RGBA_8888) [developer.android.com](https://developer.android.com/training/camerax/analyze#create-analyzer)

Hovewer if you do not use CameraX for some reason - welcome!

**Motivation:**

When you're attempting to get an `Image` from `ImageReader` or `ImageAnalysis.Analyzer` you actually get 3 separate `ByteBuffers` which you can't pass to further processing. You have to merge them but that also is not easy because they are full of row and pixel strides.
Expand Down

0 comments on commit 0f15b62

Please sign in to comment.