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

@@ -58,8 +58,9 @@ ReaderBase::ReaderBase()
info.channel_layout = LAYOUT_MONO;
info.audio_stream_index = -1;
info.audio_timebase = Fraction();
max_width = 0;
max_height = 0;
// Init parent clip
parent = NULL;
}
// Display file information
@@ -246,3 +247,13 @@ void ReaderBase::SetJsonValue(Json::Value root) {
}
}
}
/// Parent clip object of this reader (which can be unparented and NULL)
ClipBase* ReaderBase::GetClip() {
return parent;
}
/// Set parent clip object of this reader
void ReaderBase::SetClip(ClipBase* clip) {
parent = clip;
}