MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getFrameRange

Method getFrameRange

Engine/ViewerInstance.cpp:277–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void
278ViewerInstance::getFrameRange(double *first,
279 double *last)
280{
281 double inpFirst = 1, inpLast = 1;
282 int activeInputs[2];
283
284 getActiveInputs(activeInputs[0], activeInputs[1]);
285 EffectInstPtr n1 = getInput(activeInputs[0]);
286 if (n1) {
287 n1->getFrameRange_public(n1->getRenderHash(), &inpFirst, &inpLast);
288 }
289 *first = inpFirst;
290 *last = inpLast;
291
292 inpFirst = 1;
293 inpLast = 1;
294
295 EffectInstPtr n2 = getInput(activeInputs[1]);
296 if (n2) {
297 n2->getFrameRange_public(n2->getRenderHash(), &inpFirst, &inpLast);
298 if (inpFirst < *first) {
299 *first = inpFirst;
300 }
301
302 if (inpLast > *last) {
303 *last = inpLast;
304 }
305 }
306}
307
308void
309ViewerInstance::executeDisconnectTextureRequestOnMainThread(int index,bool clearRoD)

Callers

nothing calls this directly

Calls 2

getFrameRange_publicMethod · 0.80
getRenderHashMethod · 0.80

Tested by

no test coverage detected