bitmap - Android Take screen shot of view continuously so video can be created -


i using below code take screen shot of view continuously have images in it. able take 12-13 images(bitmap) per second creating video 12-13 images not result in quality. want know how can take 24-25 images(bitmap) per second. can 1 tell me other android related library 24-25 images(bitmaps) can taken in 1 second.

below code running 125 times can 24-25 images per second getting 12-13 images. trying 5 seconds check < 126:

    private void putcapturedbitmaptoqueue()     {                   llcapturearea.setdrawingcacheenabled(true);        llcapturearea.builddrawingcache();         bitmap objbitmap = bitmap.createbitmap(llcapturearea.getdrawingcache());         llcapturearea.setdrawingcacheenabled(false);         quebitmap.add(new savebitmap(integer.tostring(icountindex), objbitmap.copy(config.rgb_565, false)));         objbitmap.recycle();         icountindex++;         if(icountindex < 126)        {            objbitmap = null;            putcapturedbitmaptoqueue();        }     } 

i imagine in optimal "lab" conditions, code should work.

but, in order take many screen captures per second - bound hardware issues - camera speed, memory card speed, cpu speed, memory , on..

so, in more powerful devices might higher fps, can't know ahead how work on different devices.

if able - might want in screen recording (kitkat+)

look here

happy coding!


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -