I'm pretty sure I have looked into this in the past and found that a
different object reference is supplied on each call.
Tom.

2009/5/26 Robert Green <rbgrn....@gmail.com>

>
> Are you talking about the method Camera.PreviewCallback.onPreviewFrame
> (byte[] arg0, anrdoid.hardware.Camera arg1) ?
>
> Is it allocating a new byte[] for every call?
>
> I would think it would keep its same byte[] and reuse it for each
> call.
>
> Posting more code may help.  Thanks
>
> On May 25, 9:30 pm, Karan Parikh <karan.n...@gmail.com> wrote:
> > Hey All,
> >       I am developing a camera application , where the frame rate is
> > important. However, camera uses a preview callback function which
> > allocates a byte[] array of 230400 bytes, which makes it necessary for
> > the garbage collection to step in. Can someone suggest me a way to
> > avoid garbage collection stepping in ?
> > Thanks in advance.
> > Regards,
> > Karan.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to