void QtWriter::getFrameRange(double *first, double *last) { int index = _frameRangeChoosal->getValue(); if (index == 0) { EffectInstance* inp = getInput(0); if (inp) { inp->getFrameRange_public(inp->getRenderHash(), first, last); } else { *first = 0; *last = 0; } } else if (index == 1) { getApp()->getFrameRange(first, last); } else { *first = _firstFrameKnob->getValue(); *last = _lastFrameKnob->getValue(); } }
void QtWriter::getFrameRange(SequenceTime *first, SequenceTime *last) { int index = _frameRangeChoosal->getValue(); if (index == 0) { EffectInstance* inp = getInput(0); if (inp) { inp->getFrameRange_public(inp->getRenderHash(),first, last); } else { *first = 0; *last = 0; } } else if (index == 1) { *first = getApp()->getTimeLine()->leftBound(); *last = getApp()->getTimeLine()->rightBound(); } else { *first = _firstFrameKnob->getValue(); *last = _lastFrameKnob->getValue(); } }