- Replacement openmp_set_max_active_levels() takes an int argument
- In OpenMP 5.0 it can be set to openmp_get_supported_active_levels()
- Below 5.0, we just set it to our processor count
- Move configuration of OpenMP from ad-hoc locations to constructors
for FFmpegWriter/Reader and Timeline
Fixes issue for clip being rendered as black rectangle even if the
has_video at the frame is set to zero.
Co-authored-by: Frank Dana <ferdnyc@users.noreply.github.com>
- Parsing from string to Json::Value is now done by utility function
openshot::stringToJson() in Json.cpp, all SetJson() methods call it.
- Expand use of const member functions and args where appropriate.
- Use std::to_string() to format int/float values as strings.
- Correct mentions of nonexistent Json::JsonValue type in docstrings
The Values vector should only be accessed from the outside through the
GetValue() function. The Points vector should only be accessed using
the AddPoint(), RemovePoint(), .. functions.
This helps maintain internal invariants (e.g. keeping Points sorted)
and allows for future removal / lazy evaluation of Values.
The size() of the vectors had been accessed from various parts of the
code; the GetLength() (for Values) and GetCount() (for Points) member
functions provide access to this information and are already part of
the public API.