| 290 | } |
| 291 | |
| 292 | bool Settings::isFrameToCapture(int frame) const { |
| 293 | if (screenShotFrameRange.valid) { |
| 294 | if (frame < screenShotFrameRange.startFrame) return false; |
| 295 | if ((frame - screenShotFrameRange.startFrame) % screenShotFrameRange.interval > 0) return false; |
| 296 | int rangeLastFrame = getEndFrameOfRange(&screenShotFrameRange); |
| 297 | if (rangeLastFrame != SCREEN_SHOT_FRAMES_UNLIMITED && frame > rangeLastFrame) return false; |
| 298 | return true; |
| 299 | } |
| 300 | return screenshotFrames.find(frame) != screenshotFrames.end(); |
| 301 | } |
| 302 | |
| 303 | bool Settings::isFrameAfterEndOfCaptureRange(int frame) const { |
| 304 | if (screenShotFrameRange.valid) { |
no test coverage detected