Interpret raw image data from an Android camera onPictureTaken (byte [])

I use the Camera class to take a picture and want to do some image processing inside onPictureTaken. How can I interpret an array of bytes? Is it in RGB format or something else? Thank.

+3
source share
2 answers

the links say it depends on Camera.Parameters ( Camera.Parameters ), and in this post ( Re: FileOutPutstream code from onPictureTaken ) they say that you should use the jpeg callback, so I assume it is jpeg.

+1
source

mCamera.takePicture(null, null,mPictureCallbackRaw);

mPictureCallbackRaw - Camera.PictureCallback

, , :)

0

Source: https://habr.com/ru/post/1778444/


All Articles