be very very care full to call .release() { or whatever the actual release call is named } then what the others are telling you will get you an efficiency improvement
for what you want to do the ICS [14] is exactly what that is for On Nov 16, 11:40 am, New Developer <secur...@isscp.com> wrote: > Thanks Daniel > > Iam trying to call it every 5ms But I would settle for as fast as possible. > > I have tried so somehow buffer, thus trying to do all the I/O first and > then just view > but this has failed hopelessly I can only load 15 frames into memory and > then get an OutOfMemory > > Do you by any chance know how to find the bandwidth of the Xoom and Sony > S bus what is it capable of > If I have to call every 20ms but get a smoother flowing video playback > that would be fine. > > It's just right now I read every 327 or 327000 frames > frame is not incremented by 1 but by 327 this works for the timing it > now takes 15 sec to play a 15 sec video > BUT you are skipping so much that it is obviously jerky and does not > flow. Would love to > increment frame by 10, but then then the handle cycle to be faster. > > any ideas ? > > thanks in advance > > On 11/16/2011 12:18 PM, Daniel Drozdzewski wrote: > > > > > > > > > On 16 November 2011 16:45, New Developer<secur...@isscp.com> wrote: > >> Thanks to all > > >> It is a video player I'm using the MediaMetadataRetriever so that I can > >> load and if necessary stop and edit a bitmap > > >> I've tried (obviously unsuccessfully to read the bitmap and make it smaller > >> (for the purpose of memory) > >> the original video is 1280 x 720 I was trying to save this as a 320 x 180 > >> bitmap so as to use up less memory > > >> mBitmap = Bitmap.createScaledBitmap(retriever.getFrameAtTime(frame*1000) , > >> 320 , 180 , false); > >> Item.setImageBitmap(mBitmap); // 1280 x 720 > > Here ^^^ mBitmap is 320x180, however retriever.getFrameAtTime() > > returns the full thing... > > > How often is this code called? Do you know, that retriever does I/O to > > pull the frame out? > > > Are you trying to have it running every 5ms? > > > Do you appreciate that 1280 x 720 x 4B = 3.5MiB and if you want that > > every 5ms, then your I/O bus and memory bus would have to have > > bandwidth of 700MiB (assuming processing takes zero time in the 5ms > > slot, which obviously it doesn't). > > > That is a big ask for any mobile phone. -- 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