You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user