Get maximum frame number of the frame range FrameRange* pFrameRange, the specified frame rang return: maximum frame number of the frame range, if it's unlimited range, the return will be SCREEN_SHOT_FRAMES_UNLIMITED
| 282 | // maximum frame number of the frame range, |
| 283 | // if it's unlimited range, the return will be SCREEN_SHOT_FRAMES_UNLIMITED |
| 284 | int getEndFrameOfRange(const FrameRange *pFrameRange) { |
| 285 | int endFrameOfRange = SCREEN_SHOT_FRAMES_UNLIMITED; |
| 286 | if (pFrameRange->count != SCREEN_SHOT_FRAMES_UNLIMITED) { |
| 287 | endFrameOfRange = pFrameRange->startFrame + (pFrameRange->count - 1) * pFrameRange->interval; |
| 288 | } |
| 289 | return endFrameOfRange; |
| 290 | } |
| 291 | |
| 292 | bool Settings::isFrameToCapture(int frame) const { |
| 293 | if (screenShotFrameRange.valid) { |
no outgoing calls
no test coverage detected