Sunday, April 1, 2012

[android-developers] saving camera preview frames to a file with minimum slow-down

hi list

I'd like to get some advice on optimizing file IO of a camera-frame
processing code I am working on.

I used the setPreviewCallbackWithBuffer() method to capture each
preview frame and do some processing in the real-time. The processed
frame (an int array) is then save to the sdcard. I found that by
commenting out the file io block, my frame rate can go up to 30fps for
a 512x512 preview size. However, with the data saving, the frame rate
is only around 10 fps or less.

Any suggestions to speed up this?

Qianqian

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate