views:

217

answers:

1

Hi,

How can I convert from NV21 to JPEG. Currently, NV21 is the only previewFormat that is supported by the camera on a Nexus One (running Android 2.2).

Thanks.

A: 

p.setPreviewFormat(PixelFormat.JPEG); no?

where p = Camera.getParameters();

Aidanc
No this doesn't work because `p.getSupportedPreviewFormats()` only returns a list of size 1 and contains the value that maps to `ImageFormat.NV21`.
Soumya Simanta
Are you positive? its working on my Nexus One :S
Aidanc
@Aidanc - can you please post the code ?
Soumya Simanta