| 256 | } // ViewerTabPrivate::getOverlayTransform |
| 257 | |
| 258 | static double |
| 259 | transformTimeForNode(EffectInstance* currentNode, |
| 260 | int inputNb, |
| 261 | double inTime) |
| 262 | { |
| 263 | U64 nodeHash = currentNode->getHash(); |
| 264 | FramesNeededMap framesNeeded = currentNode->getFramesNeeded_public(nodeHash, inTime, ViewIdx(0), 0); |
| 265 | FramesNeededMap::iterator foundInput0 = framesNeeded.find(inputNb /*input*/); |
| 266 | |
| 267 | if ( foundInput0 == framesNeeded.end() ) { |
| 268 | return inTime; |
| 269 | } |
| 270 | |
| 271 | FrameRangesMap::iterator foundView0 = foundInput0->second.find( ViewIdx(0) ); |
| 272 | if ( foundView0 == foundInput0->second.end() ) { |
| 273 | return inTime; |
| 274 | } |
| 275 | |
| 276 | if ( foundView0->second.empty() ) { |
| 277 | return inTime; |
| 278 | } else { |
| 279 | return (foundView0->second.front().min); |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | bool |
| 284 | ViewerTabPrivate::getTimeTransform(double time, |
no test coverage detected