So try to measure it by yourself in Camera.onPreviewFrame

вторник, 1 октября 2013 г., 21:07:56 UTC+3 пользователь TimeManx написал:
>
> I need the fps that I'm getting at the moment. I don't need the range.
>
> On Tuesday, 1 October 2013 14:33:44 UTC+5:30, Piren wrote:
>>
>>
>> http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getPreviewFpsRange(int[])
>>
>> On Monday, September 30, 2013 9:19:41 PM UTC+3, TimeManx wrote:
>>>
>>> I'm having a very hard time figuring this out. I'm using a SurfaceView 
>>> to display the camera preview using camera.setPreviewDisplay(surfaceview).
>>>
>>> But I can't figure out how to get the frame rate. I've tried using the 
>>> Camera.PreviewCallback interface but it seems it's onPreviewCallback() 
>>> method calls lag behind the actual preview. In other words, even with a 
>>> smooth preview I only get about 15 calls to onPreviewCallback().
>>>
>>> Is there any way to get the frame rate directly from the camera? Maybe 
>>> there's an NDK solution?
>>>
>>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to