OSDN Git Service

CameraHardware: fix FPS problem
authorMichael Goffioul <michael.goffioul@gmail.com>
Fri, 8 Jun 2018 20:02:21 +0000 (13:02 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 10 Jun 2018 23:36:17 +0000 (07:36 +0800)
commit8cf00b64f942376f1bf5e3f5a39c2086c4d51246
tree514b01301c57a6ef8099e21002e82096e8183a0e
parent44e6c6679aef553d2576cabe596b2beaf46c6481
CameraHardware: fix FPS problem

The values reported by Camera.Parameters.getSupportedPreviewFpsRange()
are in actual FPS, while the API expects value to be multiplied by 1000.
This creates a problem in an app that is using Chrome/53 webview,
whereby the webcam is limited to 1fps. The patch fixes it.
CameraHardware.cpp
CameraHardware.h