mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 13:13:26 +08:00
fix typo in FpsMeter.java
'mFramesCouner' -> 'mFramesCounter'
This commit is contained in:
parent
4fea6179a0
commit
9b9f38afc8
@ -14,7 +14,7 @@ public class FpsMeter {
|
|||||||
private static final int STEP = 20;
|
private static final int STEP = 20;
|
||||||
private static final DecimalFormat FPS_FORMAT = new DecimalFormat("0.00");
|
private static final DecimalFormat FPS_FORMAT = new DecimalFormat("0.00");
|
||||||
|
|
||||||
private int mFramesCouner;
|
private int mFramesCounter;
|
||||||
private double mFrequency;
|
private double mFrequency;
|
||||||
private long mprevFrameTime;
|
private long mprevFrameTime;
|
||||||
private String mStrfps;
|
private String mStrfps;
|
||||||
@ -24,7 +24,7 @@ public class FpsMeter {
|
|||||||
int mHeight = 0;
|
int mHeight = 0;
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
mFramesCouner = 0;
|
mFramesCounter = 0;
|
||||||
mFrequency = Core.getTickFrequency();
|
mFrequency = Core.getTickFrequency();
|
||||||
mprevFrameTime = Core.getTickCount();
|
mprevFrameTime = Core.getTickCount();
|
||||||
mStrfps = "";
|
mStrfps = "";
|
||||||
@ -39,8 +39,8 @@ public class FpsMeter {
|
|||||||
init();
|
init();
|
||||||
mIsInitialized = true;
|
mIsInitialized = true;
|
||||||
} else {
|
} else {
|
||||||
mFramesCouner++;
|
mFramesCounter++;
|
||||||
if (mFramesCouner % STEP == 0) {
|
if (mFramesCounter % STEP == 0) {
|
||||||
long time = Core.getTickCount();
|
long time = Core.getTickCount();
|
||||||
double fps = STEP * mFrequency / (time - mprevFrameTime);
|
double fps = STEP * mFrequency / (time - mprevFrameTime);
|
||||||
mprevFrameTime = time;
|
mprevFrameTime = time;
|
||||||
|
Loading…
Reference in New Issue
Block a user