Re: [android-developers] onPreviewFrame() not being called the same number of times as the frame rate

2013-09-19 Thread TimeManx
I certainly am using setPreviewDisplay(). But I also need the frames to do 
some image processing.

On Thursday, 19 September 2013 05:29:30 UTC+5:30, Baodong Chen wrote:

 Though not sure why this happened,this is not a good way to show preview! 
 why not use setPreviewDisplay method?
 2013/09/18 18:41 TimeManx shubh...@gmail.com javascript::

 I've created a subclass of SurfaceView which also 
 implements Camera.PreviewCallback  SurfaceHolder.Callback. The time 
 difference between onPreviewFrame() calls is about 0.25 seconds which is 
 4/sec but the actual preview frame rate is definitely more than 25. I can't 
 figure out why this is happening
 The following are my classes
 https://dpaste.de/FP9QU/
 https://dpaste.de/as87Q/

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] onPreviewFrame() not being called the same number of times as the frame rate

2013-09-18 Thread TimeManx
I've created a subclass of SurfaceView which also 
implements Camera.PreviewCallback  SurfaceHolder.Callback. The time 
difference between onPreviewFrame() calls is about 0.25 seconds which is 
4/sec but the actual preview frame rate is definitely more than 25. I can't 
figure out why this is happening
The following are my classes
https://dpaste.de/FP9QU/
https://dpaste.de/as87Q/

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] onPreviewFrame() not being called the same number of times as the frame rate

2013-09-18 Thread Baodong Chen
Though not sure why this happened,this is not a good way to show preview!
why not use setPreviewDisplay method?
2013/09/18 18:41 TimeManx shubhade...@gmail.com:

 I've created a subclass of SurfaceView which also
 implements Camera.PreviewCallback  SurfaceHolder.Callback. The time
 difference between onPreviewFrame() calls is about 0.25 seconds which is
 4/sec but the actual preview frame rate is definitely more than 25. I can't
 figure out why this is happening
 The following are my classes
 https://dpaste.de/FP9QU/
 https://dpaste.de/as87Q/

 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.