| 134 | } |
| 135 | |
| 136 | ItemLoadingState playlistItemWithVideo::needsLoading(int frameIdx, bool loadRawValues) |
| 137 | { |
| 138 | // See if the item has so many frames |
| 139 | auto range = this->properties().startEndRange; |
| 140 | if (frameIdx < range.first || frameIdx > range.second) |
| 141 | return ItemLoadingState::LoadingNotNeeded; |
| 142 | |
| 143 | if (video) |
| 144 | return video->needsLoading(frameIdx, loadRawValues); |
| 145 | return ItemLoadingState::LoadingNotNeeded; |
| 146 | } |
| 147 | |
| 148 | QList<int> playlistItemWithVideo::getCachedFrames() const |
| 149 | { |