Integration of resvg SVG library (optional during build) (#185)

* Integration of libresvg SVG library (optional during build)

* Major refactor of max_width and max_height for preview optimization

* Fixed many bugs related to preview resizing, with regards to cached frames

* Updating gitlab CI to find RESVGDIR correctly for windows, and adding svgz support

* Updating cmake findresvg module to search for windows locations first, to prevent an issue on our windows builders and updating some CMake output.

* Removing folder path from resvg header, since it could be installed in different named folders. This is an attempt to fix Windows include issues.

* Making call to AV_FREE_FRAME conditional for non windows systems (because it crashes on Windows for seemingly no reason). Needs more investigation.
This commit is contained in:
Jonathan Thomas
2019-01-19 02:18:52 -06:00
committed by GitHub
parent 64a53283c9
commit 7b6eb9c21b
21 changed files with 331 additions and 173 deletions

View File

@@ -352,9 +352,6 @@ std::shared_ptr<Frame> FrameMapper::GetOrCreateFrame(int64_t number)
// Debug output
ZmqLogger::Instance()->AppendDebugMethod("FrameMapper::GetOrCreateFrame (from reader)", "number", number, "samples_in_frame", samples_in_frame, "", -1, "", -1, "", -1, "", -1);
// Set max image size (used for performance optimization)
reader->SetMaxSize(max_width, max_height);
// Attempt to get a frame (but this could fail if a reader has just been closed)
new_frame = reader->GetFrame(number);