this is a known issue with some one. OnPreviewFrame will not start until a valid surface is given
On Friday, August 31, 2012 10:01:33 AM UTC+2, cpares wrote: > > Hello! > > Do you know if OnPreviewFrame (as of Android 4.0.3) is correctly > implemented in Samsung Galaxy Nexus? I have programmed some code that works > perfectly on a Galaxy S3, but in the Nexus, the byte[] buffer, which comes > with the call to OnPreviewFrame and should have the YUV data, has 0s in all > the Y channel, and -128 in U and V (that is, plain green, if I'm correct). > > getPreviewFormat() is returning a 17 as expected, meaning that the preview > mode is actually NV21 (the same as the S3 on which it works). > > I know there are some hardware-dependent issues with raw camera data, so > maybe that is the explanation? I have been searching but I have found > nothing related. > > Thank you for your time! > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en