| 71 | } |
| 72 | |
| 73 | S32 VideoCapture::getMsPerFrame() |
| 74 | { |
| 75 | //Add accumulated error to ms per frame before rounding |
| 76 | F32 roundTime = mFloor(mMsPerFrame + mMsPerFrameError + 0.5f); |
| 77 | |
| 78 | //Accumulate the rounding errors |
| 79 | mMsPerFrameError += mMsPerFrame - roundTime; |
| 80 | |
| 81 | return (S32)roundTime; |
| 82 | } |
| 83 | |
| 84 | void VideoCapture::begin( GuiCanvas* canvas ) |
| 85 | { |
no test coverage detected