views:

253

answers:

0

Hi there,

I'm new to Android and am trying to create a custom camera filter. My initial thought was to access the frame data directly but this does not seem possible in 2.1 Eclair (I don't have access to Froyo hardware yet) - please correct me if I'm wrong.

Instead, I am now trying to reproduce the camera preview by creating and displaying bitmaps using onPreviewFrame(). This would allow me to edit each bitmap before displaying to the surface. However, I can't seem to get this working so I was wondering if anyone out there can offer any advice.

Alternatively, access to the raw byte arrays for each frame would be good enough - BitmapFactory should be able to generate the corresponding images.

Thanks in advance!