[android-developers] Re: How to obtain bitmap from data in onPreviewFrame method of previewCallback and display on surface using canvas

2009-07-10 Thread newbyca
you need to tell me a little more about the issue ... but my guess is you were seeing something like Bitmap to big for allocated memory or something or other? i forgot exactly, but i've seen an error like that before trying to write to bitmaps. again, this is just a guess, but are you creating a

[android-developers] Re: How to obtain bitmap from data in onPreviewFrame method of previewCallback and display on surface using canvas

2009-07-04 Thread lori
thanks for the reply, I tried to convert the YUV data in first preview frame in onPreviewFrame() to RGB and then convert it to bitmap using the YUV conversion provided. But I get an out of memory issue within a second. Can you please help me out? On Jul 2, 3:15 am, newbyca newb...@gmail.com

[android-developers] Re: How to obtain bitmap from data in onPreviewFrame method of previewCallback and display on surface using canvas

2009-07-01 Thread newbyca
i'm working with the camera preview in my current project ... one thing that has helped me out *a lot* is the zebra crossing (zx) code: http://code.google.com/p/zxing/source/browse/ specifically, zx parses a small region from the preview data to determine if it contains a barcode. if a barcode

[android-developers] Re: How to obtain bitmap from data in onPreviewFrame method of previewCallback and display on surface using canvas

2009-07-01 Thread newbyca
here's an example of the YUV conversion: http://blog.tomgibara.com/post/132956174/yuv420-to-rgb565-conversion-in-android On Jul 1, 2:30 am, newbyca newb...@gmail.com wrote: i'm working with the camera preview in my current project ... one thing that has helped me out *a lot* is the zebra