skip overlay processing when no overlay is specified
This commit is contained in:
@@ -138,9 +138,14 @@ int main(int argc, char *argv[])
|
|||||||
std::cout << "Rotation Time: " << rotationSeconds << std::endl;
|
std::cout << "Rotation Time: " << rotationSeconds << std::endl;
|
||||||
std::cout << "Overlay input: " << overlay << std::endl;
|
std::cout << "Overlay input: " << overlay << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
Overlay o(overlay);
|
Overlay o(overlay);
|
||||||
o.setDebugMode(debugMode);
|
o.setDebugMode(debugMode);
|
||||||
w.setOverlay(&o);
|
if (!overlay.empty())
|
||||||
|
{
|
||||||
|
w.setOverlay(&o);
|
||||||
|
}
|
||||||
|
|
||||||
w.setAspect(aspect);
|
w.setAspect(aspect);
|
||||||
w.setDebugMode(debugMode);
|
w.setDebugMode(debugMode);
|
||||||
w.setFitAspectAxisToWindow(fitAspectAxisToWindow);
|
w.setFitAspectAxisToWindow(fitAspectAxisToWindow);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ private:
|
|||||||
bool debugMode = false;
|
bool debugMode = false;
|
||||||
bool fitAspectAxisToWindow = false;
|
bool fitAspectAxisToWindow = false;
|
||||||
|
|
||||||
Overlay* overlay;
|
Overlay* overlay = NULL;
|
||||||
|
|
||||||
void drawText(QPixmap& image, int margin, int fontsize, QString text, int alignment);
|
void drawText(QPixmap& image, int margin, int fontsize, QString text, int alignment);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user