开发者

Android Camera JpegPictureCallback with varying input data size problem when takePicture() is called

开发者 https://www.devze.com 2022-12-21 21:41 出处:网络
I called takePicture() and pass it a PictureCallback as a JpegPictureCallback. I\'m seeing byte[] data input varies in size within onPictureTaken(). Can someone explain why this byte[]\'s content size

I called takePicture() and pass it a PictureCallback as a JpegPictureCallback. I'm seeing byte[] data input varies in size within onPictureTaken(). Can someone explain why this byte[]'s content size varies? I'm already setting picture size to a constant size with Camera.Paramet开发者_C百科ers.setPictureSize();

Thanks!


That's just because the bytes array is the compressed jpg stream. As usually, jpg images' size vary depending on the image.

0

精彩评论

暂无评论...
验证码 换一张
取 消