Note that there are some explanatory texts on larger screens.

plurals
  1. USEricOops
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COIn fact I get the specification of **setPreviewFpsRange(int min, int max)** in **<http:///developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewFpsRange(int, int)>** . It said this API can "Sets the maximum and maximum preview fps. This controls the rate of preview frames received in Camera.PreviewCallback." So I think maybe by using this API I can get more than 15 frames per second. Does my assumption feasible? By the way, the supported preview Fps range of my device is (1000,15000) and (5000,30000) by issuing **parameters.getSupportedPreviewFpsRange()** API.
      singulars
    2. COIn fact I just record system time in the onPreviewFrame to calculate the time gap between every callback. It finishes very quickly. So I think no frame will be skipped. And I tried your advice. I added 20, 30 and even more buffers, but the result remained the same. In the log, there is a few garbage-collector statements, and I think it's not related to this part.
      singulars
    3. COI also have a doubt about the effect of this API. But no matter I setPreviewFpsRange(**1000**,**1000**) or setPreviewFpsRange(**20000**,**30000**), I get the same log. So I am quite confused. Does this API totally not work on my device? Or does this API not works as the way I assumed. Or Did I miss some factor or some statements? So I try to fix this problem by sticking this API at first. I will try your advice if I can not get through. Thank you very much. :)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload