On Jul 11, 4:50 pm, Streets Of Boston <[email protected]> wrote: > In the preview, the data is not RGB. It is yuv_420 or a similar format. > Query the camera-parameters for the exact format and decode the data > accordingly.
problem found! it was caused by endianness of the data. By inserting byteBuf.order(ByteOrder.LITTLE_ENDIAN); before saving the buffer, the results became reasonable. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

