I use my own decoder, but here you can find another one (December 2,
2008):
http://groups.google.com/group/android-developers/browse_thread/thread/c85e829ab209ceea/
Again, all of this is very slow under the currently available APIs.
On May 27, 9:43 am, lori lori wrote:
> So that means I cannot
So that means I cannot decode continuous frames of data to bitmap
in PreviewCallback because data is encoded in raw YCbCr which cannot be
decoded.The only way I can do this is using onPictureTaken method of
PictureCallback where data is encoded in jpeg format which can be easily
decoded.
This is h
See http://code.google.com/p/android/issues/detail?id=823
Android 1.5 still lacks support for decoding preview images, while data
[] is headerless. The first width x height bytes are just the Y
(brightness) component though, so you can easily decode the greyscale
part pixel-by-pixel. However, doi
sorry man, the data from the camera preview is encoded in raw YCbCr
from the camera hardware, it's not readable in any sensible time
frame by anything available in the Android SDK.
Sujay has the wrong end of the stick again, he's talking about the
image that's captured when the camera actually
Hi Sujoy,
Thanks for sharing this information. I have another doubt now - Can I get
continuous frames of data as bitmaps without user interaction using this
approach?
On Wed, May 27, 2009 at 10:46 AM, Sujay Krishna Suresh <
sujay.coold...@gmail.com> wrote:
> this should help u store the image...
this should help u store the image...
Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
values);
OutputStream outstream;
ContentResolver cr = null;
try {
outstream = getContentResolver().openOutputStream(uri);
x.compress(Bitmap.CompressFormat.JPEG, 70, outstream);
ou
i would recommend that u use the inbuilt camera application like,
Intent i = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(i, 0);
its faster n also is easier to use...
u can get the bitmap in onactivityresult with
Bitmap x = (Bitmap) data.getExtras().get("data");
On W
7 matches
Mail list logo