-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release branch for libopenshot 0.2.5 (SO 19) #452
Conversation
- 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
Bump version for development
FindRESVG: Modernize with targets
Travis: Add libjsoncpp-dev to apt package list
Fix Resvg image format
FindRESVG: Remove debugging messages
Use Codecov.io for coverage reporting
Add overloaded forms of SetVideoOptions() and SetAudioOptions() that apply some sensible defaults to rarely-changed parameters.
Optimized, parallelized Blur effect
Frame: Fix interlaced AddImage
FFmpegWriter: Overload Set___Options() methods
Behind-the-scenes code tidying for Json data handling
Bump version to 0.2.5-dev1 (and libopenshot-audio dependency to 0.2.0)
Codecov Report
@@ Coverage Diff @@
## master #452 +/- ##
=========================================
Coverage ? 43.22%
=========================================
Files ? 130
Lines ? 12932
Branches ? 0
=========================================
Hits ? 5590
Misses ? 7342
Partials ? 0
Continue to review full report at Codecov.
|
CMake: Add Features for docs, unit tests
@ferdnyc Looks like ColorShift is broken. The effect params do not affect the image. I'm digging into it now, but I know you've touched this effect a bit during some of your JSON refactoring. Now sure when it stopped working though. |
Did I? I thought I did, too, but now all I can find is #443 which only changes the initial values. I'm not home yet, but I will be in an hour or so. I'll take a look at the history, revert whatever needs reverting. (Or submit whatever unpushed commits I may have lying around, maybe I already fixed it locally! Who can say? (Certainly not me.) |
The other thing I did recently was correct the class name in its metadata. But there are still spots in both libopenshot and openshot-qt that refer to "Color Shift", two words. Maybe those need to be adjusted to follow the |
@jonoomph Yup, name just needed to be fixed in EffectInfo. All sorted out now. I'm surprised you even got the effect to apply at all. Before I fixed the name, I tried to drag a Color Shift effect onto a Clip and OpenShot threw this at me:
|
Well, now I'm so confused, because apparently you already did that in c7fe363. But I didn't see the change there, and my commit to do it again applied. (Then again, I made that change on another branch, so maybe it was already here.) At least in my testing, though, that does fix the effect. With EffectInfo edited to use |
@ferdnyc Yeah, I changed the name in this release branch, once I noticed that. But even after that, I'm not seeing any adjustment to the Frame's image when sliding the ColorShift params around. It's very odd, and I'm not sure why yet. It appears all the values are getting to the Effect instance just fine though. |
@ferdnyc Found my issue! In the Shift and ColorShift effects, abs() was truncating a value to 0. Needed |
I think I know how: It was the https://coliru.stacked-crooked.com/a/8ba393c42db0a49e Input#include <iostream>
#include <cmath>
int main()
{
std::cout << "\n\n";
std::cout << "abs(0.001) = " << abs(0.001) << '\n'
<< "std::abs(0.001) = " << std::abs(0.001);
using namespace std;
std::cout << "\n\n";
std::cout << "abs(0.001) = " << abs(0.001) << '\n'
<< "std::abs(0.001) = " << std::abs(0.001);
} Output
|
@ferdnyc it is strange that by applying |
Not at all. Remember that I don't like In fact, as I demonstrated, if the |
Highlights
Fixed Broken Color-Shift and Shift Effects
Updated Documentation and Examples (C++)
Saturation Effect: Optimize and Parallelize
Hue Effect: Optimize and Parallelize
Blur Effect: Optimize and Parallelize
Wave Effect: Optimize and Parallelize
Brightness Effect: Optimize and Parallelize
Pixelate Effect: Rewrite effect to use QPainter/QRect
Frame: Fix interlaced AddImage
Raise Preview Cache to CPUs X 8 Frames (max 64)
FindRESVG CMake: Modernize with Targets
Enhance Json Data Handling