[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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] saving camera preview frames to a file with minimum slow-down
On Mon, Apr 2, 2012 at 10:42 AM, Qianqian Fang wrote: > 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? Offload saving to a worker thread? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en