Commit graph

183 commits

Author SHA1 Message Date
Michael Fabian 'Xaymar' Dirks
8177f4c5b2 cmake: Fix TRANSFORM typo 2021-02-14 13:33:45 +01:00
Michael Fabian 'Xaymar' Dirks
fbe35d15c4 project: Version 0.10.0a1
- #437 Use 'git describe --tags' for versioning.
- #439 Add support for overriding the automatically detected version.
- #454 Fixed new versioning code breaking when the tag is on the current commit.
- #427, #428 Fix Qt interaction before OBS Studio is actually ready.
- #452 Fixed building without updater but with UI.
- #447 Redesigned Color Grading to support two rendering modes:
    - Direct Rendering applies the entire color grading function to every single pixel, and is thus more accurate, but much slower.
    - #-Bit LUT Rendering first applies the color grading function to a LUT that varies in accuracy, and then uses that LUT to render the actual output instead, which is much faster but less accurate.
- #447 Optimized Direct Rendering in Color Grading to be up to 25% faster, while using 50% less VRAM.
- #440 Removed support for Ubuntu 18.04 as it ships seriously outdated versions of libraries we use.
2021-02-06 16:52:25 +01:00
Michael Fabian 'Xaymar' Dirks
b632d6eff5 cmake: Always use long git describe 2021-02-06 16:29:22 +01:00
Michael Fabian 'Xaymar' Dirks
e436d22367 filters/color-grade: Redesign for use with LUTs
There is hardly any reason for us to recalculate everything all the time. LUTs can cache the work once, and then re-use it every time necessary, drastically reducing the impact of Color Grading by almost 60% (on some GPUs even more). Additionally this fixes the negative gamma issue, which plagued the filter for a while.

In the future, once PR 4199 (https://github.com/obsproject/obs-studio/pull/4199) has been merged, we can cut away one intermediate rendering step currently required to make the effect work. Hopefully this will be with the 27.x release of OBS Studio.
2021-02-06 16:22:22 +01:00
Michael Fabian 'Xaymar' Dirks
f396f52054 gfx/lut: Add a simple but efficient LUT producer and consumer
For simple image and video editing, LUTs (Look-Up Tables) are vastly superior to running the entire editing operation on each pixel - especially if all the processing can be done inside a single shader.

Due to the post-processing requirements for our LUTs, we are limited to 8 bits per channel - though clever use of the unused Alpha channel may result in additional space. For our purposes however, this is definitely enough.
2021-02-06 16:22:22 +01:00
Michael Fabian 'Xaymar' Dirks
92e0c03008 effects: Add RGB, HSV, and YUV conversion functions 2021-02-06 16:22:22 +01:00
Michael Fabian 'Xaymar' Dirks
6d1d85ae2b effects: Add generic shared header with common code 2021-02-06 16:22:22 +01:00
Michael Fabian 'Xaymar' Dirks
2e24c783ae cmake: Add packaging support for Windows, Linux and Mac
Also adds packaging for the proposed unified plugin format.
2021-02-02 11:53:32 +01:00
Michael Fabian 'Xaymar' Dirks
239e01558d cmake: Refactor component and dependency system
A complete redesign of the component and dependency system is necessary in order to support additional platforms, such as MacOS and other Linux platforms. Additionally it results in a much cleaner code base, which is less confusing overall.

Eventually it might be necessary to push components of StreamFX into their own CMake projects, as it is getting kind of complex now. Especially with the push for a proper plugin manager, things get dicey for big plugins like StreamFX.
2021-02-02 11:53:32 +01:00
Michael Fabian 'Xaymar' Dirks
8f43dd9598 cmake: Add proper version override support 2021-01-31 17:30:50 +01:00
Michael Fabian 'Xaymar' Dirks
171c73d4b4 cmake: Improve versioning system 2021-01-31 16:23:41 +01:00
Michael Fabian 'Xaymar' Dirks
b2073a5862 project: Version 0.10.0a
* encoders/ffmpeg: Implement AMF H.264 and H.265 handlers
* locale: New Crowdin updates (Turkish) (#373)
* examples: Added adjustable luminance to hexagon size (#364)
* cmake: Add option to override download versions and hashes
2021-01-21 00:59:49 +01:00
Michael Fabian 'Xaymar' Dirks
cbd75767fa encoders/ffmpeg: Implement AMF H.264 and H.265 handlers
Adds support for the AMD Advanced Media Framework H.264 and H.265 encoders via FFmpeg. The majority of settings are supported, and the UI/UX experience mimics that of the NVENC implementation. Various settings are left out due to their complexity and should be controlled via the custom parameters field.
2020-12-04 08:32:20 +01:00
Michael Fabian 'Xaymar' Dirks
43c754171e cmake: Add option to override download versions and hashes
Allows users to override the built-in download values with custom ones, in order to build with different versions of OBS or the depencencies used.
2020-11-28 15:35:30 +01:00
Michael Fabian 'Xaymar' Dirks
a0ce296085 util/bitmask: Move bitmask functionality its own file 2020-11-08 03:39:40 +01:00
Xaymar
c70840dd92 cmake: Restore default visibility
The MODULE_EXPORT and EXPORT macros in libOBS do not correctly mark a function or type as visible on GCC, which results in the newly added flag hiding everything from view, instead of just what should be hidden.
2020-11-07 09:43:05 +01:00
Michael Fabian 'Xaymar' Dirks
43a8305630 cmake: Update to libOBS 26.0.x 2020-11-01 17:01:45 +01:00
Michael Fabian 'Xaymar' Dirks
f6f4531f86 cmake: Check for "Darwin" instead of "Mac" to support MacOS 2020-11-01 12:24:00 +01:00
Xaymar
92d3d4bfca cmake: Set correct flags when building with obs-studio
The commit 8163e3e917 introduced a complete refactor of the CMake script in order to improve future updates, but accidentally broke building with OBS Studio due to only testing the standalone model. By correctly adjusting the option name again, this should work again with this change.

Fixed: #351
2020-11-01 12:24:00 +01:00
Michael Fabian 'Xaymar' Dirks
8163e3e917 cmake: Refactor to modernize and improve readability
Refactors the entire file to be more readable while also improving the possibility of future improvements. Components are now resolved in one go instead of being all over the place, and shared dependencies are now only resolved once instead of multiple times.

For future compatibility sake, all features now default to enabled and will instead show a warning if they can't be enabled, or if their dependencies can't be found. Pay attention to the build log if you encounter this, as it should hint you towards what is missing. Some features are also now optional, instead of being required.

Furthermore the "Reference" and "Package" mode for building have been removed as supporting them has been a problematic thing from the start. While their structure technically matches the one that is downloaded, effectively they can result in unpredictable issues.

A number of other issues have also been fixed, like Qt being invoked for non-Qt source files.
2020-09-30 03:59:29 +02:00
Michael Fabian 'Xaymar' Dirks
ec372f5668 cmake: Upgrade C/C++ compiler adjustments to modern CMake 2020-09-30 03:59:29 +02:00
Michael Fabian 'Xaymar' Dirks
9cfa12e174 cmake: Set proper CMake policies by version 2020-09-30 03:59:29 +02:00
Michael Fabian 'Xaymar' Dirks
ff58a9bc41 cmake: Improve readability 2020-09-30 03:59:29 +02:00
Michael Fabian 'Xaymar' Dirks
23cb20a268 project: Version 0.9.0 2020-09-25 21:33:09 +02:00
Michael Fabian 'Xaymar' Dirks
81a970473f updater: Add functionality to check for updates
Implements a manual and automatic update checker with support for both release and testing update channels, allowing users to stay as up to date as possible. It is fully compliant with privacy regulations around the world, as it stays completely silent and inactive until the user gives the Ok to connect to GitHub for the latest releases.
2020-09-24 02:01:40 +02:00
Michael Fabian 'Xaymar' Dirks
08b2847fec cmake: Add optional dependency nlohmann::json 2020-09-24 02:01:40 +02:00
Michael Fabian 'Xaymar' Dirks
34ae5dd64b util/curl: Add C++ wrapper for CURL 2020-09-24 02:01:40 +02:00
Michael Fabian 'Xaymar' Dirks
99bf4542d0 project: Version 0.9.0a3
* #307 Fix MSVC exclusive strcmp crash in FFmpeg Encoders.
* #310 Add shadertoy effect.
* #311 Move template files to custom directory.
* #312 Hide encoders that the current system does not support.
* #313 Enable FFmpeg Encoders on Linux.
2020-08-30 18:44:10 +02:00
Michael Fabian 'Xaymar' Dirks
53d3f1ae6c util/library: Cross-platform handler for library loading
Adds a utility class and functions to load libraries and symbols from libraries somewhat safely. Libraries are immediately unloaded when the last reference to them is lost, so the shared_ptr should be stored if the library is actually needed.
2020-08-10 20:39:08 +02:00
Michael Fabian 'Xaymar' Dirks
dd9bbbcfe2 cmake: Enable FFmpeg Encoders on Linux 2020-08-10 19:51:21 +02:00
Michael Fabian 'Xaymar' Dirks
9b98f5e756 templates: Add generated configuration file 2020-08-10 02:33:54 +02:00
Michael Fabian 'Xaymar' Dirks
c78ba5b2ec templates: Move template files to better directory 2020-08-10 02:33:54 +02:00
Michael Fabian Dirks
e9b6f72b59
project: Version 0.9.0a2
* #270 Add additional shadertoy effects (by Oncorporation/Surn).
* #275 Improve installer user experience.
* #277 Add CI caching to improve build speeds.
* #286 Rename LOG_ to DLOG_ to avoid macro confusion.
* #287 Add new 'Thank You' entries.
* #288 Fix memory leaks caused by obs::source_tracker.
* #289 Fix memory leaks caused by configuration and UI.
* #290 Don't use namespaces that don't exist.
* #292 Fix/Work around a memory leak in gs::vertex_buffer.
* #293 Fix missing include in plugin.hpp.
* #294 Fix Clang toolset integration.
* #296 Fix FFmpeg encoder fallback support.
* #298 Fix NVENC logging incorrect values.
* #300 Remove level 5.2 from NVENC H.264.
* #301 Show warnings for exceptions thrown from tasks in a threadpool.
* #302 Clean up code to fix all warnings and reapply formatting.
* #304 Update Ubuntu 19.10 to 20.04 and revert to system-installed clang.
2020-07-29 06:29:17 +02:00
Michael Fabian 'Xaymar' Dirks
2a4f771d85 cmake: Don't enable useless warnings on GCC
Using '-Wpedantic' on any GCC warnings enables a lot of annoying warnings that don't actually warn about anything. Some of the warnings seem to exist purely for maintaining a certain code style, and have no actual effect on the program itself. Since there is no way to selectively disable warnings like on MSVC, removing it is the easiest choice.
2020-07-29 05:17:42 +02:00
Michael Fabian 'Xaymar' Dirks
d332007ae0 project: Code cleanup and reapply formatting
Changes applied:

* Moved utility files to /util/.
* Removed unused #includes.
* Removed unused ::ffmpeg::tools function.
* Removed unused variables.
* Fixed missing parentheses in the version macro.
* Fixed missing override on virtual function overrides and removed unnecessary virtual keyword from them.
* Disabled additional warning for ATL headers on MSVC only.
* Replaced direct printf parameters with their macro equivalent.
* Replaced C-style casts with C++-style casts.
* Applied clang-format again after an earlier change to the CMake file broke the integration for it.
2020-07-29 05:17:42 +02:00
Michael Fabian 'Xaymar' Dirks
2ac306aa31 cmake: Fix Clang toolset support 2020-07-27 08:52:21 +02:00
Michael Fabian 'Xaymar' Dirks
d4206f3a92 cmake, ci: Add caching support to speed up builds 2020-07-15 23:07:54 +02:00
Michael Fabian 'Xaymar' Dirks
6aaf3b2071 project: Improve user experience in the Installer
Adds a BeforeInstall step to the InnoSetup installer which uses the msvc-redist-helper tool to automatically check for the necessary DLLs and install the required redistributable if some are found to be missing.

Additionally slightly modernized the installer with a design that isn't from the 90s, and paves the way for preventing updating StreamFX while OBS Studio is still running.
2020-07-15 20:00:31 +02:00
Michael Fabian 'Xaymar' Dirks
8e7b9adaa8 project: Version 0.9.0a1 2020-07-06 01:38:16 +02:00
Michael Fabian 'Xaymar' Dirks
77bf25d8fb encoders/ffmpeg: Rename files to match naming scheme 2020-06-21 19:24:59 +02:00
Michael Fabian 'Xaymar' Dirks
18980b8863 obs/encoder-factory: Factory to create encoder instances 2020-06-21 19:24:58 +02:00
Michael Fabian 'Xaymar' Dirks
8a06d82acc cmake: Add support for code signing 2020-06-14 04:51:16 +02:00
Michael Fabian 'Xaymar' Dirks
40a1648378 cmake: Fix generated version resource file 2020-06-14 04:18:36 +02:00
Michael Fabian 'Xaymar' Dirks
e343e4cb9d project: Version 0.8.0 2020-05-31 20:30:06 +02:00
Michael Fabian 'Xaymar' Dirks
dd89a7c8f3 cmake: Don't set version for Mac dynamic libraries 2020-05-31 19:01:31 +02:00
Michael Fabian 'Xaymar' Dirks
16d45a03ca cmake: Add an option to turn off clang integration
This allows building the plugin with compilers that pretend to be clang but aren't actually clang, like Googles 'Depot Tools' and some Clang-like compiler tools.
2020-05-31 19:01:20 +02:00
Michael Fabian 'Xaymar' Dirks
7b8774b834 gfx/shader: Inlining, std::string_view and optimizations 2020-05-31 01:41:07 +02:00
Michael Fabian 'Xaymar' Dirks
c0ee969ed4 project: Version 0.8.0b3
* Fixed Linux distros not being able to load the plugin.
* Fixed vertex buffers not being zero initialized.
* Removed all unused mipmapping options and drastically optimized it.
* Added lots and lots of optional performance profiling.
* Optimize Dual Filtering Blur by re-using rendertargets.
* Optimized everything to use single fullscreen tri instead of quads.
* Removed broken effects.
2020-05-02 22:07:16 +02:00
Michael Fabian 'Xaymar' Dirks
7cd14daa1f examples: Remove broken effects 2020-05-02 21:43:14 +02:00
Michael Fabian 'Xaymar' Dirks
d72f6a3991 project: Improve performance profiling support
Adds a new CMake option "ENABLE_PROFILING" which enables all CPU and GPU performance profiling available in StreamFX for tracking what's actually causing things to be slow.
2020-05-01 11:37:24 +02:00