| 355 | } |
| 356 | |
| 357 | int64_t VideoCacheThread::resolveTimelineEnd() const |
| 358 | { |
| 359 | if (!reader) { |
| 360 | return 0; |
| 361 | } |
| 362 | int64_t timeline_end = reader->info.video_length; |
| 363 | if (auto* timeline = dynamic_cast<Timeline*>(reader)) { |
| 364 | const int64_t timeline_max = timeline->GetMaxFrame(); |
| 365 | if (timeline_max > 0) { |
| 366 | timeline_end = timeline_max; |
| 367 | } |
| 368 | } |
| 369 | return timeline_end; |
| 370 | } |
| 371 | |
| 372 | int64_t VideoCacheThread::clampToTimelineRange(int64_t frame, int64_t timeline_end) const |
| 373 | { |
nothing calls this directly
no test coverage detected