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

Method getFrameRange

Engine/ViewerInstance.cpp:271–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void
272ViewerInstance::getFrameRange(double *first,
273 double *last)
274{
275 double inpFirst = 1, inpLast = 1;
276 int activeInputs[2];
277
278 getActiveInputs(activeInputs[0], activeInputs[1]);
279 EffectInstancePtr n1 = getInput(activeInputs[0]);
280 if (n1) {
281 n1->getFrameRange_public(n1->getRenderHash(), &inpFirst, &inpLast);
282 }
283 *first = inpFirst;
284 *last = inpLast;
285
286 inpFirst = 1;
287 inpLast = 1;
288
289 EffectInstancePtr n2 = getInput(activeInputs[1]);
290 if (n2) {
291 n2->getFrameRange_public(n2->getRenderHash(), &inpFirst, &inpLast);
292 if (inpFirst < *first) {
293 *first = inpFirst;
294 }
295
296 if (inpLast > *last) {
297 *last = inpLast;
298 }
299 }
300}
301
302void
303ViewerInstance::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