Projects
Multimedia
obs-studio
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 47
View file
obs-studio.changes
Changed
@@ -1,4 +1,47 @@ ------------------------------------------------------------------- +Thu Jun 22 19:41:10 UTC 2017 - jimmy@boombatower.com + +- Update to version 19.0.3: + * rtmp-services: Update Twitch ingests + * librtmp: Fix build error with ENODATA on FreeBSD + * rtmp-services: Rename Beam to Mixer + * UI/installer: Specify "source" in plugins section + * UI/installer: Fix broken realsense plugin install locations + * UI/installer: Update installer VC redist download link + * win-wasapi: Fix potential null pointer deref in enumeration + * UI: Look for plugins in ~/Library/Application Support/obs-studio/plugins/ + * libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7 + * win-capture: Limit OpenProcess flags to prevent A/C issues + * deps/media-playback: Output av_read_frame error string + * deps/media-playback: Start decoding regardless of keyframe + * obs-ffmpeg: Add network buffering property + * deps/media-playback: Call stop callback on failure + * deps/media-playback: Fix lockup issues + * Revert "rtmp-services: Rename Beam to Mixer" + * rtmp-services: Add new twitch.tv ingests + * UI/updater: Fix incorrect path in portable mode + * deps/media-playback: Add timeout when waiting for frames + * deps/media-playback: Fix AV_NOPTS_VALUE being used as timestamp + * deps/media-playback: Fix playback reset fail after stop + * obs-ffmpeg: Don't preload media frames if set to pause on end + * win-capture/graphics-hook: Fix D3D10/D3D11 detection + * UI: Ignore first 2.5 seconds of bandwidth test + * UI: Initialize Stats window values after OBSInit/reset + * win-capture: Add IDXGISwapChain1::Present1 hook support + * win-capture: Use PROCESS_QUERY_INFORMATION for game capture + * obs-ffmpeg: Do not precache if set to close when inactive + * UI: Use QT_TO_UTF8 with name dialog + * libobs-d3d11: Fix shader const array size miscalculation + * UI: Preserve source if audio settings device changed + * libobs: Update version to 19.0.3 + * UI: Set error mode to SEM_FAILCRITICALERRORS + * ffmpeg-mux: Set error mode to SEM_FAILCRITICALERRORS + * get-graphics-offsets: Set error mode to SEM_FAILCRITICALERRORS + * inject-helper: Set error mode to SEM_FAILCRITICALERRORS + * enc-amf: Version 2.1.6 + * obs-ffmpeg: Remove "Buffering (MS)" property + +------------------------------------------------------------------- Wed Jun 14 22:47:57 UTC 2017 - jimmy@boombatower.com - Update to version 19.0.2:
View file
obs-studio.spec
Changed
@@ -1,5 +1,5 @@ Name: obs-studio -Version: 19.0.2 +Version: 19.0.3 Release: 0 Summary: A recording/broadcasting program
View file
_service
Changed
@@ -1,7 +1,7 @@ <services> <service name="tar_scm" mode="disabled"> <param name="versionformat">@PARENT_TAG@</param> - <param name="revision">refs/tags/19.0.2</param> + <param name="revision">refs/tags/19.0.3</param> <param name="url">git://github.com/jp9000/obs-studio.git</param> <param name="scm">git</param> <param name="changesgenerate">enable</param>
View file
_servicedata
Changed
@@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/jp9000/obs-studio.git</param> - <param name="changesrevision">870bf6b6fca2940f8cf37f10339564d393ac41bf</param> + <param name="changesrevision">d295ad3ed3eafc7550ffa4280abcf116ec9bad14</param> </service> </servicedata>
View file
obs-studio-19.0.2.tar.xz/UI/installer/mp-installer.nsi -> obs-studio-19.0.3.tar.xz/UI/installer/mp-installer.nsi
Changed
@@ -105,7 +105,7 @@ vs2013Missing: MessageBox MB_YESNO|MB_ICONEXCLAMATION "Your system is missing runtime components that ${APPNAME} requires. Please make sure to install both vcredist_x64 and vcredist_x86. Would you like to download them?" IDYES vs2013true IDNO vs2013false vs2013true: - ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=40784" + ExecShell "open" "https://obsproject.com/visual-studio-2013-runtimes" vs2013false: Quit vs2013OK: @@ -273,7 +273,7 @@ !ifdef FULL SectionGroup /e "Plugins" SecPlugins - Section "Browser plugin" SecPlugins_Browser + Section "Browser Source" SecPlugins_Browser ; Set Section properties SetOverwrite on AllowSkipFiles off @@ -292,16 +292,16 @@ SectionEnd !ifdef REALSENSE_PLUGIN - Section /o "Realsense plugin" SecPlugins_Realsense + Section /o "Realsense Source" SecPlugins_Realsense SetOverwrite on AllowSkipFiles off SetShellVarContext all SetOutPath "$INSTDIR\obs-plugins" - File /r "new\realsense\32bit" + File /r "new\realsense\obs-plugins\32bit" ${if} ${RunningX64} - File /r "new\realsense\64bit" + File /r "new\realsense\obs-plugins\64bit" ${endif} SetOutPath "$INSTDIR\data\obs-plugins"
View file
obs-studio-19.0.2.tar.xz/UI/obs-app.cpp -> obs-studio-19.0.3.tar.xz/UI/obs-app.cpp
Changed
@@ -164,6 +164,7 @@ case Qt::Key_Return: if (dialog && pressed) return false; + /* Falls through. */ default: hotkey.key = obs_key_from_virtual_key( event->nativeVirtualKey()); @@ -1835,6 +1836,7 @@ #endif #ifdef _WIN32 + SetErrorMode(SEM_FAILCRITICALERRORS); load_debug_privilege(); base_set_crash_handler(main_crash_handler, nullptr); #endif
View file
obs-studio-19.0.2.tar.xz/UI/win-update/updater/updater.cpp -> obs-studio-19.0.3.tar.xz/UI/win-update/updater/updater.cpp
Changed
@@ -998,10 +998,11 @@ } StringCbCopy(lpAppDataPath, sizeof(lpAppDataPath), pOut); - StringCbCat(lpAppDataPath, sizeof(lpAppDataPath), - L"\\obs-studio"); } + StringCbCat(lpAppDataPath, sizeof(lpAppDataPath), + L"\\obs-studio"); + /* ------------------------------------- * * Get download path */
View file
obs-studio-19.0.2.tar.xz/UI/window-basic-auto-config-test.cpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-auto-config-test.cpp
Changed
@@ -356,6 +356,19 @@ Q_ARG(QString, QTStr(TEST_BW_SERVER) .arg(server.name.c_str()))); + /* ignore first 2.5 seconds due to possible buffering skewing + * the result */ + cv.wait_for(ul, chrono::milliseconds(2500)); + if (stopped) + continue; + if (cancel) { + ul.unlock(); + obs_output_force_stop(output); + return; + } + + /* continue test */ + int start_bytes = (int)obs_output_get_total_bytes(output); uint64_t t_start = os_gettime_ns(); cv.wait_for(ul, chrono::seconds(10)); @@ -372,7 +385,8 @@ uint64_t total_time = os_gettime_ns() - t_start; - int total_bytes = (int)obs_output_get_total_bytes(output); + int total_bytes = (int)obs_output_get_total_bytes(output) - + start_bytes; uint64_t bitrate = (uint64_t)total_bytes * 8 * 1000000000 / total_time / 1000;
View file
obs-studio-19.0.2.tar.xz/UI/window-basic-main.cpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-main.cpp
Changed
@@ -115,6 +115,11 @@ string path = (char*)base_module_dir; #if defined(__APPLE__) obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str()); + + BPtr<char> config_bin = os_get_config_path_ptr("obs-studio/plugins/%module%/bin"); + BPtr<char> config_data = os_get_config_path_ptr("obs-studio/plugins/%module%/data"); + obs_add_module_path(config_bin, config_data); + #elif ARCH_BITS == 64 obs_add_module_path((path + "/bin/64bit").c_str(), (path + "/data").c_str()); @@ -1458,6 +1463,8 @@ if (config_get_bool(basicConfig, "General", "OpenStatsOnStartup")) on_stats_triggered(); + + OBSBasicStats::InitializeValues(); } void OBSBasic::InitHotkeys() @@ -2767,6 +2774,8 @@ ResizeProgram(ovi.base_width, ovi.base_height); } + OBSBasicStats::InitializeValues(); + return ret; } @@ -2792,26 +2801,30 @@ void OBSBasic::ResetAudioDevice(const char *sourceId, const char *deviceId, const char *deviceDesc, int channel) { + bool disable = deviceId && strcmp(deviceId, "disabled") == 0; obs_source_t *source; obs_data_t *settings; - bool same = false; source = obs_get_output_source(channel); if (source) { - settings = obs_source_get_settings(source); - const char *curId = obs_data_get_string(settings, "device_id"); - - same = (strcmp(curId, deviceId) == 0); + if (disable) { + obs_set_output_source(channel, nullptr); + } else { + settings = obs_source_get_settings(source); + const char *oldId = obs_data_get_string(settings, + "device_id"); + if (strcmp(oldId, deviceId) != 0) { + obs_data_set_string(settings, "device_id", + deviceId); + obs_source_update(source, settings); + } + obs_data_release(settings); + } - obs_data_release(settings); obs_source_release(source); - } - - if (!same) - obs_set_output_source(channel, nullptr); - if (!same && strcmp(deviceId, "disabled") != 0) { - obs_data_t *settings = obs_data_create(); + } else if (!disable) { + settings = obs_data_create(); obs_data_set_string(settings, "device_id", deviceId); source = obs_source_create(sourceId, deviceDesc, settings, nullptr);
View file
obs-studio-19.0.2.tar.xz/UI/window-basic-stats.cpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-stats.cpp
Changed
@@ -217,6 +217,15 @@ static uint32_t first_rendered = 0xFFFFFFFF; static uint32_t first_lagged = 0xFFFFFFFF; +void OBSBasicStats::InitializeValues() +{ + video_t *video = obs_get_video(); + first_encoded = video_output_get_total_frames(video); + first_skipped = video_output_get_skipped_frames(video); + first_rendered = obs_get_total_frames(); + first_lagged = obs_get_lagged_frames(); +} + void OBSBasicStats::Update() { OBSBasic *main = reinterpret_cast<OBSBasic*>(App()->GetMainWindow());
View file
obs-studio-19.0.2.tar.xz/UI/window-basic-stats.hpp -> obs-studio-19.0.3.tar.xz/UI/window-basic-stats.hpp
Changed
@@ -57,4 +57,6 @@ public: OBSBasicStats(QWidget *parent = nullptr); ~OBSBasicStats(); + + static void InitializeValues(); };
View file
obs-studio-19.0.2.tar.xz/UI/window-namedialog.cpp -> obs-studio-19.0.3.tar.xz/UI/window-namedialog.cpp
Changed
@@ -16,6 +16,7 @@ ******************************************************************************/ #include "window-namedialog.hpp" +#include "qt-wrappers.hpp" #include "ui_NameDialog.h" #include "obs-app.hpp" @@ -46,7 +47,7 @@ bool accepted = (dialog.exec() == DialogCode::Accepted); if (accepted) { - str = dialog.ui->userText->text().toStdString(); + str = QT_TO_UTF8(dialog.ui->userText->text()); while (str.size() && IsWhitespace(str.back())) str.erase(str.end() - 1);
View file
obs-studio-19.0.2.tar.xz/deps/media-playback/media-playback/decode.c -> obs-studio-19.0.3.tar.xz/deps/media-playback/media-playback/decode.c
Changed
@@ -279,18 +279,6 @@ } } - if (!d->audio && d->m->is_network && !d->got_first_keyframe) { - if (d->pkt.flags & AV_PKT_FLAG_KEY) { - d->got_first_keyframe = true; - } else { - av_packet_unref(&d->orig_pkt); - av_init_packet(&d->orig_pkt); - av_init_packet(&d->pkt); - d->packet_pending = false; - return true; - } - } - ret = decode_packet(d, &got_frame); if (!got_frame && ret == 0) { @@ -332,9 +320,13 @@ if (d->frame_ready) { int64_t last_pts = d->frame_pts; - d->frame_pts = av_rescale_q(d->frame->best_effort_timestamp, - d->stream->time_base, - (AVRational){1, 1000000000}); + if (d->frame->best_effort_timestamp == AV_NOPTS_VALUE) + d->frame_pts = d->next_pts; + else + d->frame_pts = av_rescale_q( + d->frame->best_effort_timestamp, + d->stream->time_base, + (AVRational){1, 1000000000}); int64_t duration = d->frame->pkt_duration; if (!duration) @@ -343,6 +335,7 @@ duration = av_rescale_q(duration, d->stream->time_base, (AVRational){1, 1000000000}); + d->last_duration = duration; d->next_pts = d->frame_pts + duration; }
View file
obs-studio-19.0.2.tar.xz/deps/media-playback/media-playback/media.c -> obs-studio-19.0.3.tar.xz/deps/media-playback/media-playback/media.c
Changed
@@ -92,7 +92,8 @@ int ret = av_read_frame(media->fmt, &pkt); if (ret < 0) { if (ret != AVERROR_EOF) - blog(LOG_WARNING, "MP: av_read_frame failed: %d", ret); + blog(LOG_WARNING, "MP: av_read_frame failed: %s (%d)", + av_err2str(ret), ret); return ret; } @@ -356,6 +357,13 @@ frame->height = f->height; frame->flip = flip; + if (m->is_network && !d->got_first_keyframe) { + if (!f->key_frame) + return; + + d->got_first_keyframe = true; + } + if (preload) m->v_preload_cb(m->opaque, frame); else @@ -419,15 +427,15 @@ m->eof = false; m->base_ts += next_ts; - if (!mp_media_prepare_frames(m)) - return false; - pthread_mutex_lock(&m->mutex); stopping = m->stopping; active = m->active; m->stopping = false; pthread_mutex_unlock(&m->mutex); + if (!mp_media_prepare_frames(m)) + return false; + if (active) { if (!m->play_sys_ts) m->play_sys_ts = (int64_t)os_gettime_ns(); @@ -447,12 +455,25 @@ return true; } -static inline void mp_media_sleepto(mp_media_t *m) +static inline bool mp_media_sleepto(mp_media_t *m) { - if (!m->next_ns) + bool timeout = false; + + if (!m->next_ns) { m->next_ns = os_gettime_ns(); - else - os_sleepto_ns(m->next_ns); + } else { + uint64_t t = os_gettime_ns(); + const uint64_t timeout_ns = 200000000; + + if (m->next_ns > t && (m->next_ns - t) > timeout_ns) { + os_sleepto_ns(t + timeout_ns); + timeout = true; + } else { + os_sleepto_ns(m->next_ns); + } + } + + return timeout; } static inline bool mp_media_eof(mp_media_t *m) @@ -478,6 +499,23 @@ return eof; } +static int interrupt_callback(void *data) +{ + mp_media_t *m = data; + bool stop = false; + uint64_t ts = os_gettime_ns(); + + if ((ts - m->interrupt_poll_ts) > 20000000) { + pthread_mutex_lock(&m->mutex); + stop = m->kill || m->stopping; + pthread_mutex_unlock(&m->mutex); + + m->interrupt_poll_ts = ts; + } + + return stop; +} + static bool init_avformat(mp_media_t *m) { AVInputFormat *format = NULL; @@ -489,7 +527,18 @@ "'%s'", m->path); } - int ret = avformat_open_input(&m->fmt, m->path, format, NULL); + AVDictionary *opts = NULL; + if (m->buffering && m->is_network) + av_dict_set_int(&opts, "buffer_size", m->buffering, 0); + + m->fmt = avformat_alloc_context(); + m->fmt->interrupt_callback.callback = interrupt_callback; + m->fmt->interrupt_callback.opaque = m; + + int ret = avformat_open_input(&m->fmt, m->path, format, + opts ? &opts : NULL); + av_dict_free(&opts); + if (ret < 0) { blog(LOG_WARNING, "MP: Failed to open media: '%s'", m->path); return false; @@ -513,20 +562,20 @@ return true; } -static void *mp_media_thread(void *opaque) +static inline bool mp_media_thread(mp_media_t *m) { - mp_media_t *m = opaque; - os_set_thread_name("mp_media_thread"); if (!init_avformat(m)) { - return NULL; + return false; + } + if (!mp_media_reset(m)) { + return false; } - - mp_media_reset(m); for (;;) { bool reset, kill, is_active; + bool timeout = false; pthread_mutex_lock(&m->mutex); is_active = m->active; @@ -534,9 +583,9 @@ if (!is_active) { if (os_sem_wait(m->sem) < 0) - return NULL; + return false; } else { - mp_media_sleepto(m); + timeout = mp_media_sleepto(m); } pthread_mutex_lock(&m->mutex); @@ -557,14 +606,14 @@ } /* frames are ready */ - if (is_active) { + if (is_active && !timeout) { if (m->has_video) mp_media_next_video(m, false); if (m->has_audio) mp_media_next_audio(m); if (!mp_media_prepare_frames(m)) - return NULL; + return false; if (mp_media_eof(m)) continue; @@ -572,6 +621,19 @@ } } + return true; +} + +static void *mp_media_thread_start(void *opaque) +{ + mp_media_t *m = opaque; + + if (!mp_media_thread(m)) { + if (m->stop_cb) { + m->stop_cb(m->opaque); + } + } + return NULL; } @@ -593,7 +655,7 @@ m->format_name = format_name ? bstrdup(format_name) : NULL; m->hw = hw; - if (pthread_create(&m->thread, NULL, mp_media_thread, m) != 0) { + if (pthread_create(&m->thread, NULL, mp_media_thread_start, m) != 0) { blog(LOG_WARNING, "MP: Could not create media thread"); return false; } @@ -605,6 +667,7 @@ bool mp_media_init(mp_media_t *media, const char *path, const char *format, + int buffering, void *opaque, mp_video_cb v_cb, mp_audio_cb a_cb, @@ -621,6 +684,7 @@ media->stop_cb = stop_cb; media->v_preload_cb = v_preload_cb; media->force_range = force_range; + media->buffering = buffering; if (path && *path) media->is_network = !!strstr(path, "://"); @@ -666,9 +730,9 @@ mp_kill_thread(media); mp_decode_free(&media->v); mp_decode_free(&media->a); + avformat_close_input(&media->fmt); pthread_mutex_destroy(&media->mutex); os_sem_destroy(media->sem); - avformat_close_input(&media->fmt); sws_freeContext(media->swscale); av_freep(&media->scale_pic[0]); bfree(media->path);
View file
obs-studio-19.0.2.tar.xz/deps/media-playback/media-playback/media.h -> obs-studio-19.0.3.tar.xz/deps/media-playback/media-playback/media.h
Changed
@@ -53,6 +53,7 @@ char *path; char *format_name; + int buffering; enum AVPixelFormat scale_format; struct SwsContext *swscale; @@ -79,6 +80,8 @@ int64_t start_ts; int64_t base_ts; + uint64_t interrupt_poll_ts; + pthread_mutex_t mutex; os_sem_t *sem; bool stopping; @@ -96,6 +99,7 @@ extern bool mp_media_init(mp_media_t *media, const char *path, const char *format, + int buffering, void *opaque, mp_video_cb v_cb, mp_audio_cb a_cb,
View file
obs-studio-19.0.2.tar.xz/libobs-d3d11/d3d11-shader.cpp -> obs-studio-19.0.3.tar.xz/libobs-d3d11/d3d11-shader.cpp
Changed
@@ -149,6 +149,9 @@ continue; } + if (param.arrayCount) + size *= param.arrayCount; + /* checks to see if this constant needs to start at a new * register */ if (size && (constantSize & 15) != 0) {
View file
obs-studio-19.0.2.tar.xz/libobs/graphics/effect-parser.c -> obs-studio-19.0.3.tar.xz/libobs/graphics/effect-parser.c
Changed
@@ -228,12 +228,14 @@ case PARSE_UNEXPECTED_CONTINUE: cf_adderror_syntax_error(&ep->cfp); + /* Falls through. */ case PARSE_CONTINUE: ep_var_free(&var); continue; case PARSE_UNEXPECTED_BREAK: cf_adderror_syntax_error(&ep->cfp); + /* Falls through. */ case PARSE_BREAK: ep_var_free(&var); do_break = true;
View file
obs-studio-19.0.2.tar.xz/libobs/graphics/shader-parser.c -> obs-studio-19.0.3.tar.xz/libobs/graphics/shader-parser.c
Changed
@@ -277,12 +277,14 @@ case PARSE_UNEXPECTED_CONTINUE: cf_adderror_syntax_error(&sp->cfp); + /* Falls through. */ case PARSE_CONTINUE: shader_var_free(&var); continue; case PARSE_UNEXPECTED_BREAK: cf_adderror_syntax_error(&sp->cfp); + /* Falls through. */ case PARSE_BREAK: shader_var_free(&var); do_break = true;
View file
obs-studio-19.0.2.tar.xz/libobs/obs-config.h -> obs-studio-19.0.3.tar.xz/libobs/obs-config.h
Changed
@@ -41,7 +41,7 @@ * * Reset to zero each major or minor version */ -#define LIBOBS_API_PATCH_VER 2 +#define LIBOBS_API_PATCH_VER 3 #define MAKE_SEMANTIC_VERSION(major, minor, patch) \ ((major << 24) | \
View file
obs-studio-19.0.2.tar.xz/libobs/util/cf-lexer.c -> obs-studio-19.0.3.tar.xz/libobs/util/cf-lexer.c
Changed
@@ -123,6 +123,7 @@ start_token->type = BASETOKEN_DIGIT; break; } + /* Falls through. */ case BASETOKEN_NONE: return true;
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/#Resources/PATCH_NOTES.md -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/#Resources/PATCH_NOTES.md
Changed
@@ -1,10 +1,14 @@ -# 2.1.5 - Now with full-range colors! (Hotfix 2) +# 2.1.6 - Now with full-range colors! (Hotfix 2) Gone are the days of boring bland partial range recordings, here are the days of full range videos! With 2.1 the plugin implements several much wanted features, upgrading a few features from experimental to normal use and fixing a bunch of potential bugs. Hotfix 1: 'Encoding overloaded!' should no longer show up for systems which were perfectly capable recording at the same fps in versions before 2.x. Also fixed debug log lines showing up without the Debug option being checked. Hotfix 2: Added a workaround for a Driver-induced crash when running 32-bit OBS Studio. +Hotfix 3: Fixed a bug with the code handling the 'Enforce Streaming Service Settings' option which caused some settings to no longer work as intended. ## Changelog +### 2.1.6 +* Fixed a bug that causes 'Enforce Streaming Service Settings' to always be applied to Target Bitrate, Peak Bitrate, Rate Control Method, Profile, Quality Preset and Keyframe Interval. (#228) + ### 2.1.5 * Added a workaround for a 32-bit crash caused by AMD Driver 17.5.2 and earlier.
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/CMakeLists.txt -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/CMakeLists.txt
Changed
@@ -1,3 +1,20 @@ +# A Plugin that integrates the AMD AMF encoder into OBS Studio +# Copyright (C) 2016 - 2017 Michael Fabian Dirks +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + cmake_minimum_required(VERSION 2.8.12) PROJECT(enc-amf) @@ -6,7 +23,7 @@ ################################################################################ SET(enc-amf_VERSION_MAJOR 2) SET(enc-amf_VERSION_MINOR 1) -SET(enc-amf_VERSION_PATCH 5) +SET(enc-amf_VERSION_PATCH 6) configure_file( "${PROJECT_SOURCE_DIR}/#Resources/package.in.bat" "${PROJECT_SOURCE_DIR}/#Resources/package.bat"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/Version.h.in -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/Version.h.in
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-capabilities.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-capabilities.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-encoder-h264.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-encoder-h264.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-encoder-h265.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-encoder-h265.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf-encoder.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf-encoder.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/amf.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/amf.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-base.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-base.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-d3d11.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-d3d11.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-d3d9.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-d3d9.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-host.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-host.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/api-opengl.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/api-opengl.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/enc-h264.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/enc-h264.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/enc-h265.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/enc-h265.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/plugin.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/plugin.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/strings.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/strings.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Include/utility.h -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Include/utility.h
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/LICENSE -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/LICENSE
Changed
@@ -1,21 +1,278 @@ -The MIT License (MIT) - -Copyright (c) 2016-2017 Michael Fabian Dirks - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. \ No newline at end of file
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-capabilities.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-capabilities.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "amf-capabilities.h"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-encoder-h264.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-encoder-h264.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "amf-encoder-h264.h" @@ -948,7 +943,7 @@ void Plugin::AMD::EncoderH264::SetIDRPeriod(uint32_t v) { AMFTRACECALL; - AMF_RESULT res = m_AMFEncoder->SetProperty(AMF_VIDEO_ENCODER_IDR_PERIOD, (int64_t)v); + AMF_RESULT res = m_AMFEncoder->SetProperty(AMF_VIDEO_ENCODER_IDR_PERIOD, (int64_t)clamp(v, 1, 1000000)); if (res != AMF_OK) { QUICK_FORMAT_MESSAGE(errMsg, PREFIX "<" __FUNCTION_NAME__ "> Failed to set to %ld, error %ls (code %d)", m_UniqueId, v, m_AMF->GetTrace()->GetResultText(res), res); @@ -969,7 +964,7 @@ throw std::exception(errMsg.c_str()); } m_PeriodIDR = (uint32_t)e; - return (uint32_t)e; + return m_PeriodIDR; } void Plugin::AMD::EncoderH264::SetHeaderInsertionSpacing(uint32_t v) {
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-encoder-h265.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-encoder-h265.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "amf-encoder-h265.h"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf-encoder.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf-encoder.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "amf-encoder.h"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/amf.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/amf.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ //////////////////////////////////////////////////////////////////////////
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-base.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-base.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-d3d11.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-d3d11.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "api-d3d11.h"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-d3d9.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-d3d9.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "api-d3d9.h"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-host.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-host.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "api-host.h"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/api-opengl.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/api-opengl.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "api-opengl.h"
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/enc-h264.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/enc-h264.cpp
Changed
@@ -1,27 +1,23 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ + ////////////////////////////////////////////////////////////////////////// // New UI Design ////////////////////////////////////////////////////////////////////////// @@ -142,8 +138,8 @@ void Plugin::Interface::H264Interface::get_defaults(obs_data_t *data) { #pragma region OBS - Enforce Streaming Service Restrictions - obs_data_set_default_int(data, "bitrate", -1); - obs_data_set_default_int(data, "keyint_sec", -1); + obs_data_set_default_int(data, "bitrate", 0); + obs_data_set_default_int(data, "keyint_sec", 0); obs_data_set_default_string(data, "rate_control", ""); obs_data_set_default_string(data, "profile", ""); obs_data_set_default_string(data, "preset", ""); @@ -1385,24 +1381,6 @@ } else if (strcmp(p_str, "high")) { m_VideoEncoder->SetProfile(Profile::High); } - } else { - switch (m_VideoEncoder->GetProfile()) { - case Profile::ConstrainedBaseline: - obs_data_set_string(data, "profile", "constrained_baseline"); - break; - case Profile::Baseline: - obs_data_set_string(data, "profile", "baseline"); - break; - case Profile::Main: - obs_data_set_string(data, "profile", "main"); - break; - case Profile::ConstrainedHigh: - obs_data_set_string(data, "profile", "constrained_high"); - break; - case Profile::High: - obs_data_set_string(data, "profile", "high"); - break; - } } // Preset @@ -1416,18 +1394,6 @@ m_VideoEncoder->SetQualityPreset(QualityPreset::Quality); } obs_data_set_int(data, P_QUALITYPRESET, (int32_t)m_VideoEncoder->GetQualityPreset()); - } else { - switch (m_VideoEncoder->GetQualityPreset()) { - case QualityPreset::Speed: - obs_data_set_string(data, "preset", "speed"); - break; - case QualityPreset::Balanced: - obs_data_set_string(data, "preset", "balanced"); - break; - case QualityPreset::Quality: - obs_data_set_string(data, "preset", "quality"); - break; - } } } #pragma endregion OBS - Enforce Streaming Service Restrictions @@ -1504,7 +1470,7 @@ double_t framerate = (double_t)obsFPSnum / (double_t)obsFPSden; /// Keyframe Interval/Period { - uint32_t idrperiod = static_cast<uint32_t>(obs_data_get_int(data, P_PERIOD_IDR_H265)); + uint32_t idrperiod = static_cast<uint32_t>(obs_data_get_int(data, P_PERIOD_IDR_H264)); if (idrperiod == 0) { double_t keyinterv = obs_data_get_double(data, P_INTERVAL_KEYFRAME); idrperiod = static_cast<uint32_t>(ceil((keyinterv * framerate))); @@ -1584,50 +1550,28 @@ } obs_data_set_int(data, P_RATECONTROLMETHOD, (int32_t)m_VideoEncoder->GetRateControlMethod()); - } else { - if (m_VideoEncoder->GetUsage() != Usage::UltraLowLatency) - switch (m_VideoEncoder->GetRateControlMethod()) { - case RateControlMethod::ConstantBitrate: - obs_data_set_string(data, "rate_control", "CBR"); - break; - case RateControlMethod::PeakConstrainedVariableBitrate: - obs_data_set_string(data, "rate_control", "VBR"); - break; - case RateControlMethod::LatencyConstrainedVariableBitrate: - obs_data_set_string(data, "rate_control", "VBR_LAT"); - break; - case RateControlMethod::ConstantQP: - obs_data_set_string(data, "rate_control", "CQP"); - break; - } } // Bitrate uint64_t bitrateOvr = obs_data_get_int(data, "bitrate") * 1000; - if (bitrateOvr != -1) { + if (bitrateOvr > 0) { if (m_VideoEncoder->GetTargetBitrate() > bitrateOvr) m_VideoEncoder->SetTargetBitrate(static_cast<uint32_t>(bitrateOvr)); if (m_VideoEncoder->GetPeakBitrate() > bitrateOvr) m_VideoEncoder->SetPeakBitrate(static_cast<uint32_t>(bitrateOvr)); - obs_data_set_int(data, "bitrate", m_VideoEncoder->GetTargetBitrate() / 1000); - obs_data_set_int(data, P_BITRATE_TARGET, m_VideoEncoder->GetTargetBitrate() / 1000); obs_data_set_int(data, P_BITRATE_PEAK, m_VideoEncoder->GetPeakBitrate() / 1000); - } else { - obs_data_set_int(data, "bitrate", m_VideoEncoder->GetTargetBitrate() / 1000); } // IDR-Period (Keyframes) uint32_t fpsNum = m_VideoEncoder->GetFrameRate().first; uint32_t fpsDen = m_VideoEncoder->GetFrameRate().second; - if (obs_data_get_int(data, "keyint_sec") != -1) { + if (obs_data_get_int(data, "keyint_sec") > 0) { m_VideoEncoder->SetIDRPeriod(static_cast<uint32_t>(obs_data_get_int(data, "keyint_sec") * (static_cast<double_t>(fpsNum) / static_cast<double_t>(fpsDen)))); obs_data_set_double(data, P_INTERVAL_KEYFRAME, static_cast<double_t>(obs_data_get_int(data, "keyint_sec"))); obs_data_set_int(data, P_PERIOD_IDR_H264, static_cast<uint32_t>(obs_data_get_int(data, "keyint_sec") * (static_cast<double_t>(fpsNum) / static_cast<double_t>(fpsDen)))); - } else { - obs_data_set_int(data, "keyint_sec", static_cast<uint64_t>(m_VideoEncoder->GetIDRPeriod() / (static_cast<double_t>(fpsNum) / static_cast<double_t>(fpsDen)))); } } #pragma endregion OBS Enforce Streaming Service Settings
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/enc-h265.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/enc-h265.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ @@ -117,16 +112,11 @@ void Plugin::Interface::H265Interface::get_defaults(obs_data_t *data) { #pragma region OBS - Enforce Streaming Service Restrictions - obs_data_set_default_int(data, "bitrate", -1); - obs_data_set_default_int(data, "keyint_sec", -1); + obs_data_set_default_int(data, "bitrate", 0); + obs_data_set_default_int(data, "keyint_sec", 0); obs_data_set_default_string(data, "rate_control", ""); obs_data_set_default_string(data, "profile", ""); obs_data_set_default_string(data, "preset", ""); - obs_data_set_int(data, "bitrate", -1); - obs_data_set_int(data, "keyint_sec", -1); - obs_data_set_string(data, "rate_control", ""); - obs_data_set_string(data, "profile", ""); - obs_data_set_string(data, "preset", ""); #pragma endregion OBS - Enforce Streaming Service Restrictions // Static
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/plugin.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/plugin.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/enc-amf/Source/utility.cpp -> obs-studio-19.0.3.tar.xz/plugins/enc-amf/Source/utility.cpp
Changed
@@ -1,25 +1,20 @@ /* -MIT License - -Copyright (c) 2016-2017 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + * A Plugin that integrates the AMD AMF encoder into OBS Studio + * Copyright (C) 2016 - 2017 Michael Fabian Dirks + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #pragma once
View file
obs-studio-19.0.2.tar.xz/plugins/obs-ffmpeg/data/locale/en-US.ini -> obs-studio-19.0.3.tar.xz/plugins/obs-ffmpeg/data/locale/en-US.ini
Changed
@@ -23,6 +23,7 @@ Looping="Loop" Input="Input" InputFormat="Input Format" +BufferingMB="Network Buffering (MB)" HardwareDecode="Use hardware decoding when available" ClearOnMediaEnd="Hide source when playback ends" Advanced="Advanced"
View file
obs-studio-19.0.2.tar.xz/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c -> obs-studio-19.0.3.tar.xz/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c
Changed
@@ -646,6 +646,8 @@ #ifdef _WIN32 char **argv; + SetErrorMode(SEM_FAILCRITICALERRORS); + argv = malloc(argc * sizeof(char*)); for (int i = 0; i < argc; i++) { size_t len = wcslen(argv_w[i]);
View file
obs-studio-19.0.2.tar.xz/plugins/obs-ffmpeg/obs-ffmpeg-source.c -> obs-studio-19.0.3.tar.xz/plugins/obs-ffmpeg/obs-ffmpeg-source.c
Changed
@@ -51,6 +51,7 @@ char *input; char *input_format; + int buffering_mb; bool is_looping; bool is_local_file; bool is_hw_decoding; @@ -70,9 +71,11 @@ "input_format"); obs_property_t *local_file = obs_properties_get(props, "local_file"); obs_property_t *looping = obs_properties_get(props, "looping"); + obs_property_t *buffering = obs_properties_get(props, "buffering_mb"); obs_property_t *close = obs_properties_get(props, "close_when_inactive"); obs_property_set_visible(input, !enabled); obs_property_set_visible(input_format, !enabled); + obs_property_set_visible(buffering, !enabled); obs_property_set_visible(close, enabled); obs_property_set_visible(local_file, enabled); obs_property_set_visible(looping, enabled); @@ -89,6 +92,7 @@ #if defined(_WIN32) obs_data_set_default_bool(settings, "hw_decode", true); #endif + obs_data_set_default_int(settings, "buffering_mb", 2); } static const char *media_filter = @@ -210,7 +214,11 @@ static void preload_frame(void *opaque, struct obs_source_frame *f) { struct ffmpeg_source *s = opaque; - obs_source_preload_video(s->source, f); + if (s->close_when_inactive) + return; + + if (s->is_clear_on_media_end || s->is_looping) + obs_source_preload_video(s->source, f); } static void get_audio(void *opaque, struct obs_source_audio *a) @@ -234,6 +242,7 @@ if (s->input && *s->input) s->media_valid = mp_media_init(&s->media, s->input, s->input_format, + s->buffering_mb * 1024 * 1024, s, get_frame, get_audio, media_stopped, preload_frame, s->is_hw_decoding, s->range); } @@ -303,6 +312,7 @@ "restart_on_activate"); s->range = (enum video_range_type)obs_data_get_int(settings, "color_range"); + s->buffering_mb = (int)obs_data_get_int(settings, "buffering_mb"); s->is_local_file = is_local_file; if (s->media_valid) {
View file
obs-studio-19.0.2.tar.xz/plugins/obs-outputs/librtmp/cencode.c -> obs-studio-19.0.3.tar.xz/plugins/obs-outputs/librtmp/cencode.c
Changed
@@ -48,6 +48,7 @@ result = (fragment & 0x0fc) >> 2; *codechar++ = base64_encode_value(result); result = (fragment & 0x003) << 4; + /* Falls through. */ case step_B: if (plainchar == plaintextend) { @@ -59,6 +60,7 @@ result |= (fragment & 0x0f0) >> 4; *codechar++ = base64_encode_value(result); result = (fragment & 0x00f) << 2; + /* Falls through. */ case step_C: if (plainchar == plaintextend) {
View file
obs-studio-19.0.2.tar.xz/plugins/obs-outputs/librtmp/rtmp.c -> obs-studio-19.0.3.tar.xz/plugins/obs-outputs/librtmp/rtmp.c
Changed
@@ -729,6 +729,8 @@ // since we're handling multiple addresses internally, fake the correct error response #ifdef _WIN32 *socket_error = WSANO_DATA; +#elif __FreeBSD__ + *socket_error = ENOATTR; #else *socket_error = ENODATA; #endif
View file
obs-studio-19.0.2.tar.xz/plugins/rtmp-services/data/package.json -> obs-studio-19.0.3.tar.xz/plugins/rtmp-services/data/package.json
Changed
@@ -1,10 +1,10 @@ { "url": "https://obsproject.com/obs2_update/rtmp-services", - "version": 58, + "version": 60, "files": [ { "name": "services.json", - "version": 58 + "version": 60 } ] }
View file
obs-studio-19.0.2.tar.xz/plugins/rtmp-services/data/services.json -> obs-studio-19.0.3.tar.xz/plugins/rtmp-services/data/services.json
Changed
@@ -50,6 +50,10 @@ "url": "rtmp://live-lhr.twitch.tv/app" }, { + "name": "EU: Madrid, Spain", + "url": "rtmp://live-mad.twitch.tv/app" + }, + { "name": "EU: Milan, Italy", "url": "rtmp://live-mil.twitch.tv/app" }, @@ -66,6 +70,10 @@ "url": "rtmp://live-arn.twitch.tv/app" }, { + "name": "EU: Vienna, Austria", + "url": "rtmp://live-vie.twitch.tv/app" + }, + { "name": "EU: Warsaw, Poland", "url": "rtmp://live-waw.twitch.tv/app" }, @@ -95,21 +103,33 @@ }, { "name": "South America: Rio de Janeiro, Brazil", - "url": "rtmp://live-gig.twitch.tv/app" + "url": "rtmp://live-rio.twitch.tv/app" }, { "name": "South America: Sao Paulo, Brazil", - "url": "rtmp://live-gru.twitch.tv/app" + "url": "rtmp://live-sao.twitch.tv/app" }, { "name": "US Central: Dallas, TX", "url": "rtmp://live-dfw.twitch.tv/app" }, { + "name": "US Central: Denver, CO", + "url": "rtmp://live-den.twitch.tv/app" + }, + { + "name": "US Central: Houston, TX", + "url": "rtmp://live-hou.twitch.tv/app" + }, + { "name": "US East: Ashburn, VA", "url": "rtmp://live-iad.twitch.tv/app" }, { + "name": "US East: Atlanta, GA", + "url": "rtmp://live-atl.twitch.tv/app" + }, + { "name": "US East: Chicago", "url": "rtmp://live-ord.twitch.tv/app" }, @@ -126,6 +146,10 @@ "url": "rtmp://live-lax.twitch.tv/app" }, { + "name": "US West: Phoenix, AZ", + "url": "rtmp://live-phx.twitch.tv/app" + }, + { "name": "US West: San Jose, CA", "url": "rtmp://live-sjc.twitch.tv/app" },
View file
obs-studio-19.0.2.tar.xz/plugins/win-capture/game-capture.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/game-capture.c
Changed
@@ -622,7 +622,7 @@ static inline bool open_target_process(struct game_capture *gc) { gc->target_process = open_process( - PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, + PROCESS_QUERY_INFORMATION | SYNCHRONIZE, false, gc->process_id); if (!gc->target_process) { warn("could not open process: %s", gc->config.executable);
View file
obs-studio-19.0.2.tar.xz/plugins/win-capture/get-graphics-offsets/dxgi-offsets.cpp -> obs-studio-19.0.3.tar.xz/plugins/win-capture/get-graphics-offsets/dxgi-offsets.cpp
Changed
@@ -1,11 +1,13 @@ #include <windows.h> #include <d3d10.h> -#include <dxgi.h> +#include <VersionHelpers.h> +#include <dxgi1_2.h> #include "get-graphics-offsets.h" typedef HRESULT (WINAPI *d3d10create_t)(IDXGIAdapter*, D3D10_DRIVER_TYPE, HMODULE, UINT, UINT, DXGI_SWAP_CHAIN_DESC*, IDXGISwapChain**, IUnknown**); +typedef HRESULT (WINAPI *create_fac_t)(IID *id, void**); struct dxgi_info { HMODULE module; @@ -13,10 +15,16 @@ IDXGISwapChain *swap; }; +static const IID dxgiFactory2 = +{0x50c83a1c, 0xe072, 0x4c48, {0x87, 0xb0, 0x36, 0x30, 0xfa, 0x36, 0xa6, 0xd0}}; + static inline bool dxgi_init(dxgi_info &info) { HMODULE d3d10_module; d3d10create_t create; + create_fac_t create_factory; + IDXGIFactory1 *factory; + IDXGIAdapter1 *adapter; IUnknown *device; HRESULT hr; @@ -32,6 +40,9 @@ return false; } + create_factory = (create_fac_t)GetProcAddress(info.module, + "CreateDXGIFactory1"); + d3d10_module = LoadLibraryA("d3d10.dll"); if (!d3d10_module) { return false; @@ -43,6 +54,21 @@ return false; } + IID factory_iid = IsWindows8OrGreater() + ? dxgiFactory2 + : __uuidof(IDXGIFactory1); + + hr = create_factory(&factory_iid, (void**)&factory); + if (FAILED(hr)) { + return false; + } + + hr = factory->EnumAdapters1(0, &adapter); + factory->Release(); + if (FAILED(hr)) { + return false; + } + DXGI_SWAP_CHAIN_DESC desc = {}; desc.BufferCount = 2; desc.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; @@ -53,8 +79,9 @@ desc.SampleDesc.Count = 1; desc.Windowed = true; - hr = create(nullptr, D3D10_DRIVER_TYPE_NULL, nullptr, 0, + hr = create(adapter, D3D10_DRIVER_TYPE_HARDWARE, nullptr, 0, D3D10_SDK_VERSION, &desc, &info.swap, &device); + adapter->Release(); if (FAILED(hr)) { return false; } @@ -75,10 +102,20 @@ { dxgi_info info = {}; bool success = dxgi_init(info); + HRESULT hr; if (success) { offsets->present = vtable_offset(info.module, info.swap, 8); offsets->resize = vtable_offset(info.module, info.swap, 13); + + IDXGISwapChain1 *swap1; + hr = info.swap->QueryInterface(__uuidof(IDXGISwapChain1), + (void**)&swap1); + if (SUCCEEDED(hr)) { + offsets->present1 = + vtable_offset(info.module, swap1, 22); + swap1->Release(); + } } dxgi_free(info);
View file
obs-studio-19.0.2.tar.xz/plugins/win-capture/get-graphics-offsets/get-graphics-offsets.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/get-graphics-offsets/get-graphics-offsets.c
Changed
@@ -15,6 +15,8 @@ wc.lpfnWndProc = (WNDPROC)DefWindowProcA; wc.lpszClassName = DUMMY_WNDCLASS; + SetErrorMode(SEM_FAILCRITICALERRORS); + if (!RegisterClassA(&wc)) { printf("failed to register '%s'\n", DUMMY_WNDCLASS); return -1; @@ -34,6 +36,7 @@ printf("is_d3d9ex_clsoff=0x%"PRIx32"\n", d3d9.is_d3d9ex_clsoff); printf("[dxgi]\n"); printf("present=0x%"PRIx32"\n", dxgi.present); + printf("present1=0x%"PRIx32"\n", dxgi.present1); printf("resize=0x%"PRIx32"\n", dxgi.resize); (void)argc;
View file
obs-studio-19.0.2.tar.xz/plugins/win-capture/graphics-hook-info.h -> obs-studio-19.0.3.tar.xz/plugins/win-capture/graphics-hook-info.h
Changed
@@ -42,6 +42,8 @@ struct dxgi_offsets { uint32_t present; uint32_t resize; + + uint32_t present1; }; struct ddraw_offsets {
View file
obs-studio-19.0.2.tar.xz/plugins/win-capture/graphics-hook/dxgi-capture.cpp -> obs-studio-19.0.3.tar.xz/plugins/win-capture/graphics-hook/dxgi-capture.cpp
Changed
@@ -1,6 +1,6 @@ #include <d3d10_1.h> #include <d3d11.h> -#include <dxgi.h> +#include <dxgi1_2.h> #include <d3dcompiler.h> #include "d3d1x_shaders.hpp" @@ -14,9 +14,12 @@ typedef HRESULT (STDMETHODCALLTYPE *resize_buffers_t)(IDXGISwapChain*, UINT, UINT, UINT, DXGI_FORMAT, UINT); typedef HRESULT (STDMETHODCALLTYPE *present_t)(IDXGISwapChain*, UINT, UINT); +typedef HRESULT (STDMETHODCALLTYPE *present1_t)(IDXGISwapChain1*, UINT, UINT, + const DXGI_PRESENT_PARAMETERS *); static struct func_hook resize_buffers; static struct func_hook present; +static struct func_hook present1; struct dxgi_swap_data { IDXGISwapChain *swap; @@ -28,32 +31,32 @@ static bool setup_dxgi(IDXGISwapChain *swap) { - const char *process_name = get_process_name(); - bool ignore_d3d10 = false; IUnknown *device; HRESULT hr; - /* Call of duty ghosts allows the context to be queried as a d3d10 - * context when it's actually a d3d11 context. Why this is I don't - * quite know. */ - if (_strcmpi(process_name, "iw6sp64_ship.exe") == 0 || - _strcmpi(process_name, "iw6mp64_ship.exe") == 0 || - _strcmpi(process_name, "justcause3.exe") == 0 || - _strcmpi(process_name, "theHunterCotW_F.exe") == 0) { - ignore_d3d10 = true; - } + hr = swap->GetDevice(__uuidof(ID3D11Device), (void**)&device); + if (SUCCEEDED(hr)) { + ID3D11Device *d3d11 = reinterpret_cast<ID3D11Device*>(device); + D3D_FEATURE_LEVEL level = d3d11->GetFeatureLevel(); + device->Release(); - if (!ignore_d3d10) { - hr = swap->GetDevice(__uuidof(ID3D10Device), (void**)&device); - if (SUCCEEDED(hr)) { + if (level >= D3D_FEATURE_LEVEL_11_0) { data.swap = swap; - data.capture = d3d10_capture; - data.free = d3d10_free; - device->Release(); + data.capture = d3d11_capture; + data.free = d3d11_free; return true; } } + hr = swap->GetDevice(__uuidof(ID3D10Device), (void**)&device); + if (SUCCEEDED(hr)) { + data.swap = swap; + data.capture = d3d10_capture; + data.free = d3d10_free; + device->Release(); + return true; + } + hr = swap->GetDevice(__uuidof(ID3D11Device), (void**)&device); if (SUCCEEDED(hr)) { data.swap = swap; @@ -165,6 +168,53 @@ return hr; } +static HRESULT STDMETHODCALLTYPE hook_present1(IDXGISwapChain1 *swap, + UINT sync_interval, UINT flags, + const DXGI_PRESENT_PARAMETERS *params) +{ + IUnknown *backbuffer = nullptr; + bool capture_overlay = global_hook_info->capture_overlay; + bool test_draw = (flags & DXGI_PRESENT_TEST) != 0; + bool capture; + HRESULT hr; + + if (!data.swap && !capture_active()) { + setup_dxgi(swap); + } + + capture = !test_draw && swap == data.swap && !!data.capture; + if (capture && !capture_overlay) { + backbuffer = get_dxgi_backbuffer(swap); + + if (!!backbuffer) { + DXGI_SWAP_CHAIN_DESC1 desc; + swap->GetDesc1(&desc); + data.capture(swap, backbuffer, capture_overlay); + backbuffer->Release(); + } + } + + unhook(&present1); + present1_t call = (present1_t)present1.call_addr; + hr = call(swap, sync_interval, flags, params); + rehook(&present1); + + if (capture && capture_overlay) { + if (resize_buffers_called) { + resize_buffers_called = false; + } else { + backbuffer = get_dxgi_backbuffer(swap); + + if (!!backbuffer) { + data.capture(swap, backbuffer, capture_overlay); + backbuffer->Release(); + } + } + } + + return hr; +} + static pD3DCompile get_compiler(void) { pD3DCompile compile = nullptr; @@ -202,6 +252,7 @@ HRESULT hr; void *present_addr; void *resize_addr; + void *present1_addr = nullptr; if (!dxgi_module) { return false; @@ -251,14 +302,22 @@ global_hook_info->offsets.dxgi.present); resize_addr = get_offset_addr(dxgi_module, global_hook_info->offsets.dxgi.resize); + if (global_hook_info->offsets.dxgi.present1) + present1_addr = get_offset_addr(dxgi_module, + global_hook_info->offsets.dxgi.present1); hook_init(&present, present_addr, (void*)hook_present, "IDXGISwapChain::Present"); hook_init(&resize_buffers, resize_addr, (void*)hook_resize_buffers, "IDXGISwapChain::ResizeBuffers"); + if (present1_addr) + hook_init(&present1, present1_addr, (void*)hook_present1, + "IDXGISwapChain1::Present1"); rehook(&resize_buffers); rehook(&present); + if (present1_addr) + rehook(&present1); hlog("Hooked DXGI"); return true;
View file
obs-studio-19.0.2.tar.xz/plugins/win-capture/inject-helper/inject-helper.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/inject-helper/inject-helper.c
Changed
@@ -101,6 +101,7 @@ LPWSTR *argv; int ret = INJECT_ERROR_INVALID_PARAMS; + SetErrorMode(SEM_FAILCRITICALERRORS); load_debug_privilege(); pCommandLineW = GetCommandLineW();
View file
obs-studio-19.0.2.tar.xz/plugins/win-capture/load-graphics-offsets.c -> obs-studio-19.0.3.tar.xz/plugins/win-capture/load-graphics-offsets.c
Changed
@@ -36,6 +36,8 @@ offsets->dxgi.present = (uint32_t)config_get_uint(config, "dxgi", "present"); + offsets->dxgi.present1 = + (uint32_t)config_get_uint(config, "dxgi", "present1"); offsets->dxgi.resize = (uint32_t)config_get_uint(config, "dxgi", "resize");
View file
obs-studio-19.0.2.tar.xz/plugins/win-wasapi/enum-wasapi.cpp -> obs-studio-19.0.3.tar.xz/plugins/win-wasapi/enum-wasapi.cpp
Changed
@@ -20,7 +20,7 @@ PropVariantInit(&nameVar); res = store->GetValue(PKEY_Device_FriendlyName, &nameVar); - if (SUCCEEDED(res)) { + if (SUCCEEDED(res) && nameVar.pwszVal && *nameVar.pwszVal) { size_t len = wcslen(nameVar.pwszVal); size_t size;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.