obs-downstream-keyer-master/0000755000000000000000000000000014114476171015134 5ustar rootrootobs-downstream-keyer-master/README.md0000644000000000000000000000101114114476171016404 0ustar rootroot# Downstream Keyer for OBS Studio Plugin for OBS Studio to add a Downstream Keyer dock. Inspired by: https://github.com/obsproject/obs-studio/pull/4491/ # Download https://obsproject.com/forum/resources/downstream-keyer.1254/ # Build - Build OBS Studio: https://obsproject.com/wiki/Install-Instructions - Check out this repository to UI/frontend-plugins/downstream-keyer - Add `add_subdirectory(downstream-keyer)` to UI/frontend-plugins/CMakeLists.txt - Rebuild OBS Studio # Donations https://www.paypal.me/exeldro obs-downstream-keyer-master/downstream-keyer.hpp0000644000000000000000000000437414114476171021155 0ustar rootroot#pragma once #include #include #include #include #include #include #include #include "obs.h" class LockedCheckBox : public QCheckBox { Q_OBJECT public: LockedCheckBox(); explicit LockedCheckBox(QWidget *parent); }; enum transitionType { match, show, hide }; class DownstreamKeyer : public QWidget { Q_OBJECT private: int outputChannel; obs_source_t *transition; obs_source_t *showTransition; obs_source_t *hideTransition; QListWidget *scenesList; QToolBar *scenesToolbar; uint32_t transitionDuration; uint32_t showTransitionDuration; uint32_t hideTransitionDuration; LockedCheckBox *tie; obs_hotkey_id null_hotkey_id; obs_hotkey_pair_id tie_hotkey_id; static void source_rename(void *data, calldata_t *calldata); static void source_remove(void *data, calldata_t *calldata); static bool enable_DSK_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed); static bool disable_DSK_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed); static void null_hotkey(void *data, obs_hotkey_id id, obs_hotkey_t *hotkey, bool pressed); static bool enable_tie_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed); static bool disable_tie_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed); void ChangeSceneIndex(bool relative, int idx, int invalidIdx); private slots: void on_actionAddScene_triggered(); void on_actionRemoveScene_triggered(); void on_actionSceneUp_triggered(); void on_actionSceneDown_triggered(); void on_actionSceneNull_triggered(); void apply_selected_source(); void on_scenesList_itemSelectionChanged(); signals: public: DownstreamKeyer(int channel, QString name); ~DownstreamKeyer(); void Save(obs_data_t *data); void Load(obs_data_t *data); void SetTransition(const char *transition_name, enum transitionType transition_type = match); std::string GetTransition(enum transitionType transition_type = match); void SetTransitionDuration(int duration, enum transitionType transition_type = match); int GetTransitionDuration(enum transitionType transition_type = match); void SceneChanged(); }; obs-downstream-keyer-master/CMakeLists.txt0000644000000000000000000000245714114476171017704 0ustar rootrootproject(downstream-keyer VERSION 0.2.1) set(PROJECT_FULL_NAME "Downstream keyer") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/version.h) set(downstream-keyer_HEADERS downstream-keyer-dock.hpp downstream-keyer.hpp name-dialog.hpp version.h) set(downstream-keyer_SOURCES downstream-keyer-dock.cpp downstream-keyer.cpp name-dialog.cpp output-source.c) if(WIN32) get_filename_component(ISS_FILES_DIR "${CMAKE_BINARY_DIR}\\..\\package" ABSOLUTE) file(TO_NATIVE_PATH "${ISS_FILES_DIR}" ISS_FILES_DIR) get_filename_component(ISS_PACKAGE_DIR "${CMAKE_PACKAGE_PREFIX}\\.." ABSOLUTE) file(TO_NATIVE_PATH "${ISS_PACKAGE_DIR}" ISS_PACKAGE_DIR) get_filename_component(ISS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE) file(TO_NATIVE_PATH "${ISS_SOURCE_DIR}" ISS_SOURCE_DIR) configure_file("installer.iss.in" "${PROJECT_BINARY_DIR}/installer.iss" ) configure_file(resource.rc.in downstream-keyer.rc) list(APPEND downstream-keyer_SOURCES downstream-keyer.rc) endif() add_library(downstream-keyer MODULE ${downstream-keyer_HEADERS} ${downstream-keyer_SOURCES}) target_link_libraries(downstream-keyer obs-frontend-api Qt5::Widgets libobs) set_target_properties(downstream-keyer PROPERTIES FOLDER "plugins/exeldro") install_obs_plugin_with_data(downstream-keyer data) obs-downstream-keyer-master/output-source.c0000644000000000000000000000727514114476171020151 0ustar rootroot#include struct output_source_context { obs_source_t *source; bool rendering; uint32_t channel; obs_source_t *outputSource; uint32_t width; uint32_t height; struct vec4 color; bool recurring; }; static const char *output_source_get_name(void *type_data) { UNUSED_PARAMETER(type_data); return obs_module_text("OutputSource"); } static void output_source_update(void *data, obs_data_t *settings) { struct output_source_context *context = data; context->channel = (uint32_t)obs_data_get_int(settings, "channel"); vec4_from_rgba(&context->color, (uint32_t)obs_data_get_int(settings, "color")); } static void *output_source_create(obs_data_t *settings, obs_source_t *source) { struct output_source_context *context = bzalloc(sizeof(struct output_source_context)); context->source = source; output_source_update(context, settings); return context; } static void output_source_destroy(void *data) { struct output_source_context *context = data; bfree(context); } static obs_properties_t *output_source_properties(void *data) { obs_properties_t *ppts = obs_properties_create(); obs_properties_add_int(ppts, "channel", obs_module_text("Channel"), 0, MAX_CHANNELS - 1, 1); obs_properties_add_color(ppts, "color", obs_module_text("FallbackColor")); return ppts; } void output_source_defaults(obs_data_t *settings) {} static void output_source_video_render(void *data, gs_effect_t *effect) { struct output_source_context *context = data; if (context->rendering || context->recurring || !context->outputSource) { gs_effect_t *solid = obs_get_base_effect(OBS_EFFECT_SOLID); gs_eparam_t *color = gs_effect_get_param_by_name(solid, "color"); gs_technique_t *tech = gs_effect_get_technique(solid, "Solid"); gs_effect_set_vec4(color, &context->color); gs_technique_begin(tech); gs_technique_begin_pass(tech, 0); gs_draw_sprite(0, 0, context->width, context->height); gs_technique_end_pass(tech); gs_technique_end(tech); return; } context->rendering = true; obs_source_video_render(context->outputSource); context->rendering = false; } static uint32_t output_source_getwidth(void *data) { struct output_source_context *context = data; return context->width; } static uint32_t output_source_getheight(void *data) { struct output_source_context *context = data; return context->height; } static void check_recursion(obs_source_t *parent, obs_source_t *child, void *data) { struct output_source_context *context = data; if (child == context->source) { context->recurring = true; } } static void output_source_video_tick(void *data, float seconds) { struct output_source_context *context = data; obs_source_t *source = obs_get_output_source(context->channel); if (!source) { if (context->outputSource) { context->outputSource = NULL; context->recurring = false; } return; } context->recurring = false; obs_source_enum_active_tree(source, check_recursion, data); context->outputSource = source; context->width = obs_source_get_width(source); context->height = obs_source_get_height(source); obs_source_release(source); } struct obs_source_info output_source_info = { .id = "ouput_source", .type = OBS_SOURCE_TYPE_INPUT, .output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW, .get_name = output_source_get_name, .create = output_source_create, .destroy = output_source_destroy, .load = output_source_update, .update = output_source_update, .get_properties = output_source_properties, .get_defaults = output_source_defaults, .video_render = output_source_video_render, .video_tick = output_source_video_tick, .get_width = output_source_getwidth, .get_height = output_source_getheight, .icon_type = OBS_ICON_TYPE_UNKNOWN, }; obs-downstream-keyer-master/name-dialog.hpp0000644000000000000000000000045314114476171020024 0ustar rootroot#pragma once #include #include #include #include #include class NameDialog : public QDialog { Q_OBJECT public: static bool AskForName(QWidget *parent, std::string &name); private: NameDialog(QWidget *parent); QLineEdit *userText; }; obs-downstream-keyer-master/downstream-keyer.cpp0000644000000000000000000004765214114476171021156 0ustar rootroot#include "downstream-keyer.hpp" #include #include #include #include #include #include #include #include #include #include <../UI/obs-frontend-api/obs-frontend-api.h> #include "obs-module.h" #define QT_UTF8(str) QString::fromUtf8(str) #define QT_TO_UTF8(str) str.toUtf8().constData() DownstreamKeyer::DownstreamKeyer(int channel, QString name) : outputChannel(channel), transition(nullptr), showTransition(nullptr), hideTransition(nullptr), transitionDuration(300), showTransitionDuration(300), hideTransitionDuration(300) { setObjectName(name); auto layout = new QVBoxLayout(this); layout->setSpacing(0); layout->setContentsMargins(0, 0, 0, 0); scenesList = new QListWidget(this); scenesList->setObjectName(QStringLiteral("scenes")); QSizePolicy sizePolicy6(QSizePolicy::Preferred, QSizePolicy::Expanding); sizePolicy6.setHorizontalStretch(0); sizePolicy6.setVerticalStretch(0); sizePolicy6.setHeightForWidth( scenesList->sizePolicy().hasHeightForWidth()); scenesList->setSizePolicy(sizePolicy6); scenesList->setContextMenuPolicy(Qt::CustomContextMenu); scenesList->setFrameShape(QFrame::NoFrame); scenesList->setFrameShadow(QFrame::Plain); scenesList->setProperty("showDropIndicator", QVariant(true)); scenesList->setDragEnabled(true); scenesList->setDragDropMode(QAbstractItemView::InternalMove); scenesList->setDefaultDropAction(Qt::TargetMoveAction); connect(scenesList, SIGNAL(itemSelectionChanged()), this, SLOT(on_scenesList_itemSelectionChanged())); layout->addWidget(scenesList); scenesToolbar = new QToolBar(this); scenesToolbar->setObjectName(QStringLiteral("scenesToolbar")); scenesToolbar->setIconSize(QSize(16, 16)); scenesToolbar->setFloatable(false); auto actionAddScene = new QAction(this); actionAddScene->setObjectName(QStringLiteral("actionAddScene")); actionAddScene->setProperty("themeID", "addIconSmall"); actionAddScene->setText(QT_UTF8(obs_module_text("Add"))); connect(actionAddScene, SIGNAL(triggered()), this, SLOT(on_actionAddScene_triggered())); scenesToolbar->addAction(actionAddScene); auto actionRemoveScene = new QAction(this); actionRemoveScene->setObjectName(QStringLiteral("actionRemoveScene")); actionRemoveScene->setShortcutContext(Qt::WidgetWithChildrenShortcut); actionRemoveScene->setProperty("themeID", "removeIconSmall"); actionRemoveScene->setText(QT_UTF8(obs_module_text("Remove"))); connect(actionRemoveScene, SIGNAL(triggered()), this, SLOT(on_actionRemoveScene_triggered())); scenesToolbar->addAction(actionRemoveScene); scenesToolbar->addSeparator(); auto actionSceneUp = new QAction(this); actionSceneUp->setObjectName(QStringLiteral("actionSceneUp")); actionSceneUp->setProperty("themeID", "upArrowIconSmall"); actionSceneUp->setText(QT_UTF8(obs_module_text("MoveUp"))); connect(actionSceneUp, SIGNAL(triggered()), this, SLOT(on_actionSceneUp_triggered())); scenesToolbar->addAction(actionSceneUp); auto actionSceneDown = new QAction(this); actionSceneDown->setObjectName(QStringLiteral("actionSceneDown")); actionSceneDown->setProperty("themeID", "downArrowIconSmall"); actionSceneDown->setText(QT_UTF8(obs_module_text("MoveDown"))); connect(actionSceneDown, SIGNAL(triggered()), this, SLOT(on_actionSceneDown_triggered())); scenesToolbar->addAction(actionSceneDown); scenesToolbar->addSeparator(); auto actionSceneNull = new QAction(this); actionSceneNull->setObjectName(QStringLiteral("actionSceneNull")); actionSceneNull->setProperty("themeID", "pauseIconSmall"); actionSceneNull->setText(QT_UTF8(obs_module_text("None"))); connect(actionSceneNull, SIGNAL(triggered()), this, SLOT(on_actionSceneNull_triggered())); scenesToolbar->addAction(actionSceneNull); scenesToolbar->addSeparator(); tie = new LockedCheckBox(this); tie->setObjectName(QStringLiteral("tie")); tie->setToolTip(QT_UTF8(obs_module_text("Tie"))); scenesToolbar->addWidget(tie); // Themes need the QAction dynamic properties for (QAction *x : scenesToolbar->actions()) { QWidget *temp = scenesToolbar->widgetForAction(x); for (QByteArray &y : x->dynamicPropertyNames()) { temp->setProperty(y, x->property(y)); } } layout->addWidget(scenesToolbar); layout->addItem(new QSpacerItem(150, 0, QSizePolicy::Fixed, QSizePolicy::Minimum)); const auto sh = obs_get_signal_handler(); signal_handler_connect(sh, "source_rename", source_rename, this); signal_handler_connect(sh, "source_remove", source_remove, this); setLayout(layout); QString disableDskHotkeyName = QT_UTF8(obs_module_text("DisableDSK")); disableDskHotkeyName += " "; disableDskHotkeyName += name; null_hotkey_id = obs_hotkey_register_frontend( QT_TO_UTF8(disableDskHotkeyName), QT_TO_UTF8(disableDskHotkeyName), null_hotkey, this); QString enableTieHotkeyName = QT_UTF8(obs_module_text("EnableTie")); enableTieHotkeyName += " "; enableTieHotkeyName += name; QString disableTieHotkeyName = QT_UTF8(obs_module_text("DisableTie")); disableTieHotkeyName += " "; disableTieHotkeyName += name; tie_hotkey_id = obs_hotkey_pair_register_frontend( QT_TO_UTF8(enableTieHotkeyName), QT_TO_UTF8(enableTieHotkeyName), QT_TO_UTF8(disableTieHotkeyName), QT_TO_UTF8(disableTieHotkeyName), enable_tie_hotkey, disable_tie_hotkey, this, this); } DownstreamKeyer::~DownstreamKeyer() { obs_set_output_source(outputChannel, nullptr); obs_hotkey_unregister(null_hotkey_id); obs_hotkey_pair_unregister(tie_hotkey_id); if (transition) { obs_transition_clear(transition); obs_source_release(transition); transition = nullptr; } if (showTransition) { obs_transition_clear(showTransition); obs_source_release(showTransition); showTransition = nullptr; } if (hideTransition) { obs_transition_clear(hideTransition); obs_source_release(hideTransition); hideTransition = nullptr; } const auto sh = obs_get_signal_handler(); signal_handler_disconnect(sh, "source_rename", source_rename, this); signal_handler_disconnect(sh, "source_remove", source_remove, this); while (scenesList->count()) { const auto item = scenesList->item(0); scenesList->removeItemWidget(item); obs_hotkey_pair_unregister(item->data(Qt::UserRole).toUInt()); delete item; } delete scenesList; delete scenesToolbar; } void DownstreamKeyer::on_actionAddScene_triggered() { obs_source_t *scene = obs_frontend_preview_program_mode_active() ? obs_frontend_get_current_preview_scene() : obs_frontend_get_current_scene(); auto sceneName = QT_UTF8(obs_source_get_name(scene)); if (scenesList->findItems(sceneName, Qt::MatchFixedString).count() == 0) { const auto item = new QListWidgetItem(sceneName); scenesList->addItem(item); std::string enable_hotkey = obs_module_text("EnableDSK"); enable_hotkey += " "; enable_hotkey += QT_TO_UTF8(objectName()); std::string disable_hotkey = obs_module_text("DisableDSK"); disable_hotkey += " "; disable_hotkey += QT_TO_UTF8(objectName()); uint64_t h = obs_hotkey_pair_register_source( scene, enable_hotkey.c_str(), enable_hotkey.c_str(), disable_hotkey.c_str(), disable_hotkey.c_str(), enable_DSK_hotkey, disable_DSK_hotkey, this, this); if (h != OBS_INVALID_HOTKEY_PAIR_ID) { item->setData(Qt::UserRole, static_cast(h)); } } obs_source_release(scene); } void DownstreamKeyer::on_actionRemoveScene_triggered() { auto item = scenesList->currentItem(); if (!item) return; scenesList->removeItemWidget(item); obs_hotkey_pair_unregister(item->data(Qt::UserRole).toUInt()); delete item; } void DownstreamKeyer::on_actionSceneUp_triggered() { ChangeSceneIndex(true, -1, 0); } void DownstreamKeyer::on_actionSceneDown_triggered() { ChangeSceneIndex(true, 1, scenesList->count() - 1); } void DownstreamKeyer::on_actionSceneNull_triggered() { for (int i = 0; i < scenesList->count(); i++) { auto item = scenesList->item(i); item->setSelected(false); } scenesList->setCurrentRow(-1); } void DownstreamKeyer::apply_selected_source() { const auto l = scenesList->selectedItems(); const auto newSource = l.count() ? obs_get_source_by_name(QT_TO_UTF8(l.value(0)->text())) : nullptr; obs_source_t *prevSource = obs_get_output_source(outputChannel); obs_source_t *prevTransition = nullptr; if (prevSource && obs_source_get_type(prevSource) == OBS_SOURCE_TYPE_TRANSITION) { prevTransition = prevSource; prevSource = obs_transition_get_active_source(prevSource); } obs_source_t *newTransition = nullptr; uint32_t newTransitionDuration = transitionDuration; if (prevSource == newSource) { } else if (!prevSource && newSource && showTransition) { newTransition = showTransition; newTransitionDuration = showTransitionDuration; } else if (prevSource && !newSource && hideTransition) { newTransition = hideTransition; newTransitionDuration = hideTransitionDuration; } else if (transition) { newTransition = transition; } if (prevSource == newSource) { //skip if nothing changed } else if (!newTransition) { obs_set_output_source(outputChannel, newSource); } else { obs_transition_set(newTransition, prevSource); obs_transition_start(newTransition, OBS_TRANSITION_MODE_AUTO, newTransitionDuration, newSource); if (prevTransition != newTransition) obs_set_output_source(outputChannel, newTransition); } obs_source_release(prevSource); obs_source_release(prevTransition); obs_source_release(newSource); } void DownstreamKeyer::on_scenesList_itemSelectionChanged() { if (tie->isChecked()) return; apply_selected_source(); } void DownstreamKeyer::ChangeSceneIndex(bool relative, int offset, int invalidIdx) { int idx = scenesList->currentRow(); if (idx == -1 || idx == invalidIdx) return; scenesList->blockSignals(true); QListWidgetItem *item = scenesList->takeItem(idx); if (!relative) idx = 0; scenesList->insertItem(idx + offset, item); scenesList->setCurrentRow(idx + offset); item->setSelected(true); scenesList->blockSignals(false); } void DownstreamKeyer::Save(obs_data_t *data) { obs_data_set_string(data, "transition", transition ? obs_source_get_name(transition) : ""); obs_data_set_int(data, "transition_duration", transitionDuration); obs_data_set_string(data, "show_transition", showTransition ? obs_source_get_name(showTransition) : ""); obs_data_set_int(data, "show_transition_duration", showTransitionDuration); obs_data_set_string(data, "hide_transition", hideTransition ? obs_source_get_name(hideTransition) : ""); obs_data_set_int(data, "hide_transition_duration", hideTransitionDuration); obs_data_array_t *sceneArray = obs_data_array_create(); for (int i = 0; i < scenesList->count(); i++) { auto item = scenesList->item(i); if (!item) continue; auto sceneData = obs_data_create(); obs_data_set_string(sceneData, "name", QT_TO_UTF8(item->text())); obs_data_array_push_back(sceneArray, sceneData); obs_data_release(sceneData); } obs_data_set_array(data, "scenes", sceneArray); obs_data_set_string( data, "scene", scenesList->currentItem() ? QT_TO_UTF8(scenesList->currentItem()->text()) : ""); obs_data_array_release(sceneArray); obs_data_array_t *nh = obs_hotkey_save(null_hotkey_id); obs_data_set_array(data, "null_hotkey", nh); obs_data_array_release(nh); obs_data_array_t *eth = nullptr; obs_data_array_t *dth = nullptr; obs_hotkey_pair_save(tie_hotkey_id, ð, &dth); obs_data_set_array(data, "enable_tie_hotkey", eth); obs_data_set_array(data, "disable_tie_hotkey", dth); obs_data_array_release(eth); obs_data_array_release(dth); } std::string DownstreamKeyer::GetTransition(enum transitionType transition_type) { if (transition_type == transitionType::match && transition) return obs_source_get_name(transition); if (transition_type == transitionType::show && showTransition) return obs_source_get_name(showTransition); if (transition_type == transitionType::hide && hideTransition) return obs_source_get_name(hideTransition); return ""; } void DownstreamKeyer::SetTransition(const char *transition_name, enum transitionType transition_type) { obs_source_t *oldTransition = transition; if (transition_type == transitionType::show) oldTransition = showTransition; else if (transition_type == transitionType::hide) oldTransition = hideTransition; if (!oldTransition && (!transition_name || !strlen(transition_name))) return; obs_source_t *newTransition = nullptr; obs_frontend_source_list transitions = {0}; obs_frontend_get_transitions(&transitions); for (size_t i = 0; i < transitions.sources.num; i++) { const char *n = obs_source_get_name(transitions.sources.array[i]); if (!n) continue; if (strcmp(transition_name, n) == 0) { newTransition = obs_source_duplicate( transitions.sources.array[i], obs_source_get_name( transitions.sources.array[i]), true); break; } } obs_frontend_source_list_free(&transitions); if (transition_type == transitionType::show) showTransition = newTransition; else if (transition_type == transitionType::hide) hideTransition = newTransition; else transition = newTransition; if (oldTransition && obs_get_output_source(outputChannel) == oldTransition) { if (newTransition) { //swap transition obs_transition_swap_begin(newTransition, oldTransition); obs_set_output_source(outputChannel, newTransition); obs_transition_swap_end(newTransition, oldTransition); } else { auto item = scenesList->currentItem(); if (item) { auto scene = obs_get_source_by_name( QT_TO_UTF8(item->text())); obs_set_output_source(outputChannel, scene); obs_source_release(scene); } else { obs_set_output_source(outputChannel, nullptr); } } } if (oldTransition) { obs_transition_clear(oldTransition); obs_source_release(oldTransition); } } void DownstreamKeyer::SetTransitionDuration(int duration, enum transitionType transition_type) { if (transition_type == match) transitionDuration = duration; else if (transition_type == transitionType::show) showTransitionDuration = duration; else if (transition_type == transitionType::hide) hideTransitionDuration = duration; } int DownstreamKeyer::GetTransitionDuration(enum transitionType transition_type) { if (transition_type == transitionType::show) return showTransitionDuration; if (transition_type == transitionType::hide) return hideTransitionDuration; return transitionDuration; } void DownstreamKeyer::SceneChanged() { if (!tie->isChecked()) return; apply_selected_source(); } void DownstreamKeyer::Load(obs_data_t *data) { SetTransition(obs_data_get_string(data, "transition")); transitionDuration = obs_data_get_int(data, "transition_duration"); SetTransition(obs_data_get_string(data, "show_transition"), transitionType::show); showTransitionDuration = obs_data_get_int(data, "show_transition_duration"); SetTransition(obs_data_get_string(data, "hide_transition"), transitionType::hide); hideTransitionDuration = obs_data_get_int(data, "hide_transition_duration"); scenesList->clear(); obs_data_array_t *sceneArray = obs_data_get_array(data, "scenes"); const auto sceneName = QT_UTF8(obs_data_get_string(data, "scene")); if (sceneArray) { auto count = obs_data_array_count(sceneArray); for (size_t i = 0; i < count; i++) { const auto sceneData = obs_data_array_item(sceneArray, i); const auto source_name = obs_data_get_string(sceneData, "name"); const auto item = new QListWidgetItem(QT_UTF8(source_name)); scenesList->addItem(item); obs_source_t *source = obs_get_source_by_name(source_name); if (item->text() == sceneName) { if (source) obs_set_output_source(outputChannel, source); scenesList->setCurrentItem(item); item->setSelected(true); } obs_data_release(sceneData); if (source) { std::string enable_hotkey = obs_module_text("EnableDSK"); enable_hotkey += " "; enable_hotkey += QT_TO_UTF8(objectName()); std::string disable_hotkey = obs_module_text("DisableDSK"); disable_hotkey += " "; disable_hotkey += QT_TO_UTF8(objectName()); uint64_t h = obs_hotkey_pair_register_source( source, enable_hotkey.c_str(), enable_hotkey.c_str(), disable_hotkey.c_str(), disable_hotkey.c_str(), enable_DSK_hotkey, disable_DSK_hotkey, this, this); if (h != OBS_INVALID_HOTKEY_PAIR_ID) { item->setData(Qt::UserRole, static_cast(h)); } obs_source_release(source); } } obs_data_array_release(sceneArray); } obs_data_array_t *nh = obs_data_get_array(data, "null_hotkey"); obs_hotkey_load(null_hotkey_id, nh); obs_data_array_release(nh); obs_data_array_t *eth = obs_data_get_array(data, "enable_tie_hotkey"); obs_data_array_t *dth = obs_data_get_array(data, "disable_tie_hotkey"); obs_hotkey_pair_load(tie_hotkey_id, eth, dth); obs_data_array_release(eth); obs_data_array_release(dth); } void DownstreamKeyer::source_rename(void *data, calldata_t *calldata) { const auto downstreamKeyer = static_cast(data); const auto newName = QT_UTF8(calldata_string(calldata, "new_name")); const auto prevName = QT_UTF8(calldata_string(calldata, "prev_name")); const auto count = downstreamKeyer->scenesList->count(); for (int i = 0; i < count; i++) { const auto item = downstreamKeyer->scenesList->item(i); if (item->text() == prevName) item->setText(newName); } } void DownstreamKeyer::source_remove(void *data, calldata_t *calldata) { const auto downstreamKeyer = static_cast(data); const auto name = QT_UTF8(obs_source_get_name( static_cast(calldata_ptr(calldata, "source")))); const auto count = downstreamKeyer->scenesList->count(); for (int i = count - 1; i >= 0; i--) { const auto item = downstreamKeyer->scenesList->item(i); if (item->text() == name) { downstreamKeyer->scenesList->removeItemWidget(item); obs_hotkey_pair_unregister( item->data(Qt::UserRole).toUInt()); delete item; } } } bool DownstreamKeyer::enable_DSK_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed) { if (!pressed) return false; const auto downstreamKeyer = static_cast(data); bool changed = false; for (int i = 0; i < downstreamKeyer->scenesList->count(); i++) { auto item = downstreamKeyer->scenesList->item(i); if (!item) continue; if (item->data(Qt::UserRole).toUInt() == id) { if (!item->isSelected()) { item->setSelected(true); changed = true; } } } return changed; } bool DownstreamKeyer::disable_DSK_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed) { if (!pressed) return false; const auto downstreamKeyer = static_cast(data); bool changed = false; for (int i = 0; i < downstreamKeyer->scenesList->count(); i++) { auto item = downstreamKeyer->scenesList->item(i); if (!item) continue; if (item->data(Qt::UserRole).toUInt() == id) { if (item->isSelected()) { item->setSelected(false); changed = true; } } } return changed; } void DownstreamKeyer::null_hotkey(void *data, obs_hotkey_id id, obs_hotkey_t *hotkey, bool pressed) { if (!pressed) return; const auto downstreamKeyer = static_cast(data); QMetaObject::invokeMethod(downstreamKeyer, "on_actionSceneNull_triggered", Qt::QueuedConnection); } bool DownstreamKeyer::enable_tie_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed) { if (!pressed) return false; const auto downstreamKeyer = static_cast(data); if (downstreamKeyer->tie->isChecked()) return false; downstreamKeyer->tie->setChecked(true); return true; } bool DownstreamKeyer::disable_tie_hotkey(void *data, obs_hotkey_pair_id id, obs_hotkey_t *hotkey, bool pressed) { if (!pressed) return false; const auto downstreamKeyer = static_cast(data); if (!downstreamKeyer->tie->isChecked()) return false; downstreamKeyer->tie->setChecked(false); return true; } LockedCheckBox::LockedCheckBox() {} LockedCheckBox::LockedCheckBox(QWidget *parent) : QCheckBox(parent) {} obs-downstream-keyer-master/downstream-keyer-dock.cpp0000644000000000000000000002020414114476171022054 0ustar rootroot#include "downstream-keyer-dock.hpp" #include #include #include #include #include #include #include "downstream-keyer.hpp" #include "name-dialog.hpp" #include "version.h" #define QT_UTF8(str) QString::fromUtf8(str) #define QT_TO_UTF8(str) str.toUtf8().constData() OBS_DECLARE_MODULE() OBS_MODULE_AUTHOR("Exeldro"); OBS_MODULE_USE_DEFAULT_LOCALE("downstream-keyer", "en-US") MODULE_EXTERN struct obs_source_info output_source_info; bool obs_module_load() { blog(LOG_INFO, "[Downstream Keyer] loaded version %s", PROJECT_VERSION); obs_register_source(&output_source_info); const auto main_window = static_cast(obs_frontend_get_main_window()); obs_frontend_push_ui_translation(obs_module_get_string); obs_frontend_add_dock(new DownstreamKeyerDock(main_window)); obs_frontend_pop_ui_translation(); return true; } void obs_module_unload() {} MODULE_EXPORT const char *obs_module_description(void) { return obs_module_text("Description"); } MODULE_EXPORT const char *obs_module_name(void) { return obs_module_text("DownstreamKeyer"); } void DownstreamKeyerDock::frontend_save_load(obs_data_t *save_data, bool saving, void *data) { auto downstreamKeyerDock = static_cast(data); if (saving) { downstreamKeyerDock->Save(save_data); } else { downstreamKeyerDock->Load(save_data); downstreamKeyerDock->loaded = true; } } void DownstreamKeyerDock::frontend_event(enum obs_frontend_event event, void *data) { auto downstreamKeyerDock = static_cast(data); if (event == OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP && downstreamKeyerDock->loaded) { downstreamKeyerDock->ClearKeyers(); downstreamKeyerDock->AddDefaultKeyer(); } else if (event == OBS_FRONTEND_EVENT_EXIT) { downstreamKeyerDock->ClearKeyers(); } else if (event == OBS_FRONTEND_EVENT_SCENE_CHANGED) { downstreamKeyerDock->SceneChanged(); } } DownstreamKeyerDock::DownstreamKeyerDock(QWidget *parent) : QDockWidget(parent), outputChannel(7), loaded(false) { setFeatures(DockWidgetMovable | DockWidgetFloatable); setWindowTitle(QT_UTF8(obs_module_text("DownstreamKeyer"))); setObjectName("DownstreamKeyerDock"); setFloating(true); hide(); tabs = new QTabWidget(this); tabs->setMovable(true); auto config = new QPushButton(this); config->setProperty("themeID", "configIconSmall"); connect(config, &QAbstractButton::clicked, this, &DownstreamKeyerDock::ConfigClicked); tabs->setCornerWidget(config); setWidget(tabs); obs_frontend_add_save_callback(frontend_save_load, this); obs_frontend_add_event_callback(frontend_event, this); } DownstreamKeyerDock::~DownstreamKeyerDock() { obs_frontend_remove_save_callback(frontend_save_load, this); obs_frontend_remove_event_callback(frontend_event, this); ClearKeyers(); } void DownstreamKeyerDock::Save(obs_data_t *data) { obs_data_set_int(data, "downstream_keyers_channel", outputChannel); obs_data_array_t *keyers = obs_data_array_create(); int count = tabs->count(); for (int i = 0; i < count; i++) { auto w = dynamic_cast(tabs->widget(i)); const auto keyerData = obs_data_create(); obs_data_set_string(keyerData, "name", QT_TO_UTF8(tabs->tabText(i))); w->Save(keyerData); obs_data_array_push_back(keyers, keyerData); obs_data_release(keyerData); } obs_data_set_array(data, "downstream_keyers", keyers); obs_data_array_release(keyers); } void DownstreamKeyerDock::Load(obs_data_t *data) { outputChannel = obs_data_get_int(data, "downstream_keyers_channel"); if (outputChannel < 7) outputChannel = 7; ClearKeyers(); obs_data_array_t *keyers = obs_data_get_array(data, "downstream_keyers"); if (keyers) { auto count = obs_data_array_count(keyers); if (count == 0) { AddDefaultKeyer(); } for (size_t i = 0; i < count; i++) { auto keyerData = obs_data_array_item(keyers, i); auto keyer = new DownstreamKeyer( outputChannel + i, QT_UTF8(obs_data_get_string( keyerData, "name"))); keyer->Load(keyerData); tabs->addTab(keyer, keyer->objectName()); obs_data_release(keyerData); } obs_data_array_release(keyers); } else { AddDefaultKeyer(); } } void DownstreamKeyerDock::ClearKeyers() { while (tabs->count()) { auto w = dynamic_cast(tabs->widget(0)); tabs->removeTab(0); delete w; } } void DownstreamKeyerDock::AddDefaultKeyer() { if (outputChannel < 7) outputChannel = 7; auto keyer = new DownstreamKeyer( outputChannel, QT_UTF8(obs_module_text("DefaultName"))); tabs->addTab(keyer, keyer->objectName()); } void DownstreamKeyerDock::SceneChanged() { const int count = tabs->count(); for (int i = 0; i < count; i++) { auto w = dynamic_cast(tabs->widget(i)); if (w) w->SceneChanged(); } } void DownstreamKeyerDock::AddTransitionMenu(QMenu *tm, enum transitionType transition_type) { std::string transition; int transition_duration = 300; auto w = dynamic_cast(tabs->currentWidget()); if (w) { transition = w->GetTransition(transition_type); transition_duration = w->GetTransitionDuration(transition_type); } auto setTransition = [this, transition_type](std::string name) { auto w = dynamic_cast(tabs->currentWidget()); if (w) w->SetTransition(name.c_str(), transition_type); }; auto a = tm->addAction(QT_UTF8(obs_module_text("None"))); a->setCheckable(true); a->setChecked(transition.empty()); connect(a, &QAction::triggered, [setTransition, transition_type] { return setTransition(""); }); tm->addSeparator(); obs_frontend_source_list transitions = {0}; obs_frontend_get_transitions(&transitions); for (size_t i = 0; i < transitions.sources.num; i++) { const char *n = obs_source_get_name(transitions.sources.array[i]); if (!n) continue; a = tm->addAction(QT_UTF8(n)); a->setCheckable(true); a->setChecked(strcmp(transition.c_str(), n) == 0); connect(a, &QAction::triggered, [setTransition, n] { return setTransition(n); }); } obs_frontend_source_list_free(&transitions); tm->addSeparator(); QSpinBox *duration = new QSpinBox(tm); duration->setMinimum(50); duration->setSuffix("ms"); duration->setMaximum(20000); duration->setSingleStep(50); duration->setValue(transition_duration); auto setDuration = [this, transition_type](int duration) { auto w = dynamic_cast(tabs->currentWidget()); if (w) w->SetTransitionDuration(duration, transition_type); }; connect(duration, (void (QSpinBox::*)(int)) & QSpinBox::valueChanged, setDuration); QWidgetAction *durationAction = new QWidgetAction(tm); durationAction->setDefaultWidget(duration); tm->addAction(durationAction); } void DownstreamKeyerDock::ConfigClicked() { QMenu popup; auto *a = popup.addAction(QT_UTF8(obs_module_text("Add"))); connect(a, SIGNAL(triggered()), this, SLOT(Add())); a = popup.addAction(QT_UTF8(obs_module_text("Rename"))); connect(a, SIGNAL(triggered()), this, SLOT(Rename())); a = popup.addAction(QT_UTF8(obs_module_text("Remove"))); connect(a, SIGNAL(triggered()), this, SLOT(Remove())); auto tm = popup.addMenu(QT_UTF8(obs_module_text("Transition"))); AddTransitionMenu(tm, transitionType::match); tm = popup.addMenu(QT_UTF8(obs_module_text("ShowTransition"))); AddTransitionMenu(tm, transitionType::show); tm = popup.addMenu(QT_UTF8(obs_module_text("HideTransition"))); AddTransitionMenu(tm, transitionType::hide); popup.exec(QCursor::pos()); } void DownstreamKeyerDock::Add() { std::string name = obs_module_text("DefaultName"); if (NameDialog::AskForName(this, name)) { if (outputChannel < 7) outputChannel = 7; auto keyer = new DownstreamKeyer(outputChannel + tabs->count(), QT_UTF8(name.c_str())); tabs->addTab(keyer, keyer->objectName()); } } void DownstreamKeyerDock::Rename() { int i = tabs->currentIndex(); if (i < 0) return; std::string name = QT_TO_UTF8(tabs->tabText(i)); if (NameDialog::AskForName(this, name)) { tabs->setTabText(i, QT_UTF8(name.c_str())); } } void DownstreamKeyerDock::Remove() { int i = tabs->currentIndex(); if (i < 0) return; auto w = tabs->widget(i); tabs->removeTab(i); delete w; if (tabs->count() == 0) { AddDefaultKeyer(); } } obs-downstream-keyer-master/resource.rc.in0000644000000000000000000000165314114476171017723 0ustar rootroot1 VERSIONINFO FILEVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0 PRODUCTVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0 FILEFLAGSMASK 0x0L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x0L FILETYPE 0x2L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "CompanyName", "Exeldro" VALUE "FileDescription", "${PROJECT_FULL_NAME}" VALUE "FileVersion", "${PROJECT_VERSION}" VALUE "InternalName", "${PROJECT_NAME}" VALUE "LegalCopyright", "(C) Exeldro" VALUE "OriginalFilename", "${PROJECT_NAME}" VALUE "ProductName", "${PROJECT_FULL_NAME}" VALUE "ProductVersion", "${PROJECT_VERSION}" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1200 END END obs-downstream-keyer-master/LICENSE0000644000000000000000000004325414114476171016151 0ustar rootroot 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 Lesser 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. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. obs-downstream-keyer-master/downstream-keyer-dock.hpp0000644000000000000000000000151314114476171022063 0ustar rootroot#pragma once #include #include #include #include #include <../UI/obs-frontend-api/obs-frontend-api.h> #include "downstream-keyer.hpp" class DownstreamKeyerDock : public QDockWidget { Q_OBJECT private: QTabWidget *tabs; int outputChannel; bool loaded; static void frontend_event(enum obs_frontend_event event, void *data); static void frontend_save_load(obs_data_t *save_data, bool saving, void *data); void Save(obs_data_t *data); void Load(obs_data_t *data); void ClearKeyers(); void AddDefaultKeyer(); void ConfigClicked(); void SceneChanged(); void AddTransitionMenu(QMenu *tm, enum transitionType transition_type); private slots: void Add(); void Rename(); void Remove(); public: DownstreamKeyerDock(QWidget *parent = nullptr); ~DownstreamKeyerDock(); }; obs-downstream-keyer-master/CI/0000755000000000000000000000000014114476171015427 5ustar rootrootobs-downstream-keyer-master/CI/macos/0000755000000000000000000000000014114476171016531 5ustar rootrootobs-downstream-keyer-master/CI/macos/downstream-keyer.pkgproj0000644000000000000000000004731414114476171023440 0ustar rootroot PROJECT PACKAGE_FILES DEFAULT_INSTALL_LOCATION / HIERARCHY CHILDREN CHILDREN CHILDREN CHILDREN CHILDREN CHILDREN CHILDREN CHILDREN GID 80 PATH ../../../../../build/UI/frontend-plugins/downstream-keyer/downstream-keyer.so PATH_TYPE 3 PERMISSIONS 493 TYPE 3 UID 0 GID 80 PATH bin PATH_TYPE 0 PERMISSIONS 493 TYPE 2 UID 0 CHILDREN GID 80 PATH ../../data PATH_TYPE 1 PERMISSIONS 493 TYPE 3 UID 0 GID 80 PATH downstream-keyer PATH_TYPE 0 PERMISSIONS 493 TYPE 2 UID 0 GID 80 PATH plugins PATH_TYPE 0 PERMISSIONS 493 TYPE 2 UID 0 GID 80 PATH obs-studio PATH_TYPE 0 PERMISSIONS 493 TYPE 2 UID 0 GID 80 PATH Application Support PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Automator PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Documentation PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Extensions PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Filesystems PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Frameworks PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Input Methods PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Internet Plug-Ins PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH LaunchAgents PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH LaunchDaemons PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH PreferencePanes PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Preferences PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 80 PATH Printers PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH PrivilegedHelperTools PATH_TYPE 0 PERMISSIONS 1005 TYPE 1 UID 0 CHILDREN GID 0 PATH QuickLook PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH QuickTime PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Screen Savers PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Scripts PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Services PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 0 PATH Widgets PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 GID 0 PATH Library PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN CHILDREN GID 0 PATH Shared PATH_TYPE 0 PERMISSIONS 1023 TYPE 1 UID 0 GID 80 PATH Users PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 CHILDREN GID 80 PATH Applications PATH_TYPE 0 PERMISSIONS 509 TYPE 1 UID 0 GID 0 PATH / PATH_TYPE 0 PERMISSIONS 493 TYPE 1 UID 0 PAYLOAD_TYPE 0 PRESERVE_EXTENDED_ATTRIBUTES SHOW_INVISIBLE SPLIT_FORKS TREAT_MISSING_FILES_AS_WARNING VERSION 5 PACKAGE_SCRIPTS POSTINSTALL_PATH PATH_TYPE 0 PREINSTALL_PATH PATH_TYPE 0 RESOURCES PACKAGE_SETTINGS AUTHENTICATION 1 CONCLUSION_ACTION 0 FOLLOW_SYMBOLIC_LINKS IDENTIFIER com.exeldro.downstream-keyer LOCATION 0 NAME OVERWRITE_PERMISSIONS PAYLOAD_SIZE -1 REFERENCE_PATH RELOCATABLE USE_HFS+_COMPRESSION VERSION 0.0.2 PROJECT_COMMENTS NOTES PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1M IDQuMDEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDQv c3RyaWN0LmR0ZCI+CjxodG1sPgo8aGVhZD4KPG1ldGEgaHR0cC1l cXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7 IGNoYXJzZXQ9VVRGLTgiPgo8bWV0YSBodHRwLWVxdWl2PSJDb250 ZW50LVN0eWxlLVR5cGUiIGNvbnRlbnQ9InRleHQvY3NzIj4KPHRp dGxlPjwvdGl0bGU+CjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29u dGVudD0iQ29jb2EgSFRNTCBXcml0ZXIiPgo8bWV0YSBuYW1lPSJD b2NvYVZlcnNpb24iIGNvbnRlbnQ9IjE0MDQuMTMiPgo8c3R5bGUg dHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5 Pgo8L2JvZHk+CjwvaHRtbD4K PROJECT_SETTINGS BUILD_PATH PATH ../.. PATH_TYPE 1 EXCLUDED_FILES PATTERNS_ARRAY REGULAR_EXPRESSION STRING .DS_Store TYPE 0 PROTECTED PROXY_NAME Remove .DS_Store files PROXY_TOOLTIP Remove ".DS_Store" files created by the Finder. STATE PATTERNS_ARRAY REGULAR_EXPRESSION STRING .pbdevelopment TYPE 0 PROTECTED PROXY_NAME Remove .pbdevelopment files PROXY_TOOLTIP Remove ".pbdevelopment" files created by ProjectBuilder or Xcode. STATE PATTERNS_ARRAY REGULAR_EXPRESSION STRING CVS TYPE 1 REGULAR_EXPRESSION STRING .cvsignore TYPE 0 REGULAR_EXPRESSION STRING .cvspass TYPE 0 REGULAR_EXPRESSION STRING .svn TYPE 1 REGULAR_EXPRESSION STRING .git TYPE 1 REGULAR_EXPRESSION STRING .gitignore TYPE 0 PROTECTED PROXY_NAME Remove SCM metadata PROXY_TOOLTIP Remove helper files and folders used by the CVS, SVN or Git Source Code Management systems. STATE PATTERNS_ARRAY REGULAR_EXPRESSION STRING classes.nib TYPE 0 REGULAR_EXPRESSION STRING designable.db TYPE 0 REGULAR_EXPRESSION STRING info.nib TYPE 0 PROTECTED PROXY_NAME Optimize nib files PROXY_TOOLTIP Remove "classes.nib", "info.nib" and "designable.nib" files within .nib bundles. STATE PATTERNS_ARRAY REGULAR_EXPRESSION STRING Resources Disabled TYPE 1 PROTECTED PROXY_NAME Remove Resources Disabled folders PROXY_TOOLTIP Remove "Resources Disabled" folders. STATE SEPARATOR NAME downstream-keyer PAYLOAD_ONLY TYPE 1 VERSION 2 obs-downstream-keyer-master/version.h.in0000644000000000000000000000033714114476171017402 0ustar rootroot#pragma once #define PROJECT_VERSION "${PROJECT_VERSION}" #define PROJECT_VERSION_MAJOR ${PROJECT_VERSION_MAJOR} #define PROJECT_VERSION_MINOR ${PROJECT_VERSION_MINOR} #define PROJECT_VERSION_PATCH ${PROJECT_VERSION_PATCH}obs-downstream-keyer-master/.github/0000755000000000000000000000000014114476171016474 5ustar rootrootobs-downstream-keyer-master/.github/workflows/0000755000000000000000000000000014114476171020531 5ustar rootrootobs-downstream-keyer-master/.github/workflows/build.yml0000644000000000000000000003061114114476171022354 0ustar rootrootname: build obs plugin on: push: branches: [ master ] pull_request: branches: [ master ] env: PLUGIN_NAME: downstream-keyer OBS_VERSION: 26.1.1 jobs: macos64: name: "macOS 64-bit" runs-on: [macos-latest] env: QT_VERSION: '5.15.2' MACOS_DEPS_VERSION: '2021-02-28' steps: - name: Checkout uses: actions/checkout@v2.3.3 with: repository: obsproject/obs-studio ref: ${{ env.OBS_VERSION }} submodules: 'recursive' - name: "Checkout plugin" uses: actions/checkout@v2.3.3 with: path: UI/frontend-plugins/${{ env.PLUGIN_NAME }} - name: Fetch Git Tags run: | cd UI/frontend-plugins/${{ env.PLUGIN_NAME }} git fetch --prune --tags --unshallow - name: 'Install prerequisites (Homebrew)' shell: bash run: | if [ -d /usr/local/opt/openssl@1.0.2t ]; then brew uninstall openssl@1.0.2t brew untap local/openssl fi if [ -d /usr/local/opt/python@2.7.17 ]; then brew uninstall python@2.7.17 brew untap local/python2 fi if [ -d /usr/local/opt/speexdsp ]; then brew unlink speexdsp fi brew uninstall curl php brew bundle --file ./CI/scripts/macos/Brewfile echo "NPROC=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV - name: 'Install prerequisite: Pre-built dependencies' if: steps.deps-cache.outputs.cache-hit != 'true' shell: bash run: | curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-deps-${{ env.MACOS_DEPS_VERSION }}.tar.gz tar -xf ./macos-deps-${{ env.MACOS_DEPS_VERSION }}.tar.gz -C "/tmp" - name: 'Install prerequisite: Pre-built dependency Qt' if: steps.deps-qt-cache.outputs.cache-hit != 'true' shell: bash run: | curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-qt-${{ env.QT_VERSION }}-${{ env.MACOS_DEPS_VERSION }}.tar.gz tar -xf ./macos-qt-${{ env.QT_VERSION }}-${{ env.MACOS_DEPS_VERSION }}.tar.gz -C "/tmp" xattr -r -d com.apple.quarantine /tmp/obsdeps - name: Configure shell: bash run: | echo "add_subdirectory(${{ env.PLUGIN_NAME }})" >> UI/frontend-plugins/CMakeLists.txt mkdir ./build cd ./build cmake -DDISABLE_PYTHON=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DQTDIR="/tmp/obsdeps" -DSWIGDIR="/tmp/obsdeps" -DDepsPath="/tmp/obsdeps" .. cd - - name: Build shell: bash run: | set -e cd ./build make -j4 cd - - name: Relink to Qt that ships with OBS if: success() shell: bash run: | cd ./build/UI/frontend-plugins/${{ env.PLUGIN_NAME }} install_name_tool -change /tmp/obsdeps/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore ${{ env.PLUGIN_NAME }}.so install_name_tool -change /tmp/obsdeps/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui ${{ env.PLUGIN_NAME }}.so install_name_tool -change /tmp/obsdeps/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets ${{ env.PLUGIN_NAME }}.so - name: 'Install prerequisite: Packages app' if: success() shell: bash run: | curl -L -O http://s.sudre.free.fr/Software/files/Packages.dmg sudo hdiutil attach ./Packages.dmg sudo installer -pkg /Volumes/Packages\ 1.2.9/Install\ Packages.pkg -target / - name: Package if: success() shell: bash run: | cd UI/frontend-plugins/${{ env.PLUGIN_NAME }} FILE_DATE=$(date +%Y-%m-%d) FILE_NAME=${{ env.PLUGIN_NAME }}-$FILE_DATE-${{ github.sha }}-macos.pkg echo "FILE_NAME=${FILE_NAME}" >> $GITHUB_ENV packagesbuild ./CI/macos/${{ env.PLUGIN_NAME }}.pkgproj cd - mkdir ./nightly mv UI/frontend-plugins/${{ env.PLUGIN_NAME }}/${{ env.PLUGIN_NAME }}.pkg ./nightly/${FILE_NAME} - name: Publish if: success() uses: actions/upload-artifact@v2.2.0 with: name: '${{ env.FILE_NAME }}' path: ./nightly/*.pkg ubuntu64: name: 'Linux/Ubuntu 64-bit' runs-on: [ubuntu-latest] steps: - name: Checkout uses: actions/checkout@v2.3.3 with: repository: obsproject/obs-studio ref: ${{ env.OBS_VERSION }} submodules: 'recursive' - name: "Checkout plugin" uses: actions/checkout@v2.3.3 with: path: UI/frontend-plugins/${{ env.PLUGIN_NAME }} - name: Add plugin to obs cmake shell: bash run: echo "add_subdirectory(${{ env.PLUGIN_NAME }})" >> UI/frontend-plugins/CMakeLists.txt - name: Fetch Git Tags run: git fetch --prune --tags --unshallow - name: Install prerequisites (Apt) shell: bash run: | sudo dpkg --add-architecture amd64 sudo apt-get -qq update sudo apt-get install -y \ build-essential \ checkinstall \ cmake \ libasound2-dev \ libavcodec-dev \ libavdevice-dev \ libavfilter-dev \ libavformat-dev \ libavutil-dev \ libcurl4-openssl-dev \ libfdk-aac-dev \ libfontconfig-dev \ libfreetype6-dev \ libgl1-mesa-dev \ libjack-jackd2-dev \ libjansson-dev \ libluajit-5.1-dev \ libpulse-dev \ libqt5x11extras5-dev \ libsndio-dev \ libspeexdsp-dev \ libswresample-dev \ libswscale-dev \ libudev-dev \ libv4l-dev \ libva-dev \ libvlc-dev \ libx11-dev \ libx11-xcb-dev \ libx264-dev \ libxcb-randr0-dev \ libxcb-shm0-dev \ libxcb-xfixes0-dev \ libxcb-xinerama0-dev \ libxcomposite-dev \ libxinerama-dev \ libmbedtls-dev \ pkg-config \ python3-dev \ qtbase5-dev \ libqt5svg5-dev \ swig \ linux-generic - name: 'Configure' shell: bash run: | mkdir ./build cd ./build cmake -DUNIX_STRUCTURE=0 -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/obs-studio-portable" -DBUILD_CAPTIONS=OFF -DWITH_RTMPS=OFF -DBUILD_BROWSER=OFF .. - name: 'Build' shell: bash working-directory: ${{ github.workspace }}/build run: make -j4 - name: 'Package' shell: bash run: | FILE_DATE=$(date +%Y-%m-%d) FILE_NAME=${{ env.PLUGIN_NAME }}-$FILE_DATE-${{ github.sha }}-linux64.tar.gz echo "FILE_NAME=${FILE_NAME}" >> $GITHUB_ENV mkdir -p ./${{ env.PLUGIN_NAME }}/bin/64bit/ mv ./build/UI/frontend-plugins/${{ env.PLUGIN_NAME }}/${{ env.PLUGIN_NAME }}.so ./${{ env.PLUGIN_NAME }}/bin/64bit/${{ env.PLUGIN_NAME }}.so mv ./UI/frontend-plugins/${{ env.PLUGIN_NAME }}/data ./${{ env.PLUGIN_NAME }}/data tar -cvzf "${FILE_NAME}" ${{ env.PLUGIN_NAME }} - name: 'Publish' uses: actions/upload-artifact@v2.2.0 with: name: '${{ env.FILE_NAME }}' path: '*.tar.gz' windows: name: Windows runs-on: [windows-latest] env: QT_VERSION: '5.15.2' CMAKE_GENERATOR: "Visual Studio 16 2019" CMAKE_SYSTEM_VERSION: "10.0.18363.657" WINDOWS_DEPS_VERSION: '2019' steps: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.0.2 - name: Checkout obs uses: actions/checkout@v2.3.3 with: repository: obsproject/obs-studio ref: ${{ env.OBS_VERSION }} submodules: 'recursive' - name: Checkout plugin uses: actions/checkout@v2.3.3 with: path: UI/frontend-plugins/${{ env.PLUGIN_NAME}} - name: Add plugin to obs cmake shell: cmd run: echo add_subdirectory(${{ env.PLUGIN_NAME }}) >> UI/frontend-plugins/CMakeLists.txt - name: Fetch Git Tags run: git fetch --prune --tags --unshallow - name: 'Restore QT dependency from cache' id: qt-cache uses: actions/cache@v2.1.2 env: CACHE_NAME: 'qt-cache' with: path: ${{ github.workspace }}/cmbuild/QT key: ${{ runner.os }}-pr-${{ env.CACHE_NAME }}-${{ env.QT_VERSION }} - name: 'Restore pre-built dependencies from cache' id: deps-cache uses: actions/cache@v2.1.2 env: CACHE_NAME: 'deps-cache' with: path: ${{ github.workspace }}/cmbuild/deps key: ${{ runner.os }}-pr-${{ env.CACHE_NAME }}-${{ env.WINDOWS_DEPS_VERSION }} - name: 'Install prerequisite: QT' if: steps.qt-cache.outputs.cache-hit != 'true' run: | curl -kLO https://cdn-fastly.obsproject.com/downloads/Qt_${{ env.QT_VERSION }}.7z -f --retry 5 -C - 7z x Qt_${{ env.QT_VERSION }}.7z -o"${{ github.workspace }}/cmbuild/QT" - name: 'Install prerequisite: Pre-built dependencies' if: steps.deps-cache.outputs.cache-hit != 'true' run: | curl -kLO https://cdn-fastly.obsproject.com/downloads/dependencies${{ env.WINDOWS_DEPS_VERSION }}.zip -f --retry 5 -C - 7z x dependencies${{ env.WINDOWS_DEPS_VERSION }}.zip -o"${{ github.workspace }}/cmbuild/deps" - name: Configure run: | mkdir ./package mkdir ./build32 cd ./build32 cmake -G"${{ env.CMAKE_GENERATOR }}" -A"Win32" -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DBUILD_BROWSER=false -DBUILD_CAPTIONS=false -DCOMPILE_D3D12_HOOK=false -DDepsPath="${{ github.workspace }}/cmbuild/deps/win32" -DQTDIR="${{ github.workspace }}/cmbuild/QT/${{ env.QT_VERSION }}/msvc2019" -DCOPIED_DEPENDENCIES=FALSE -DCOPY_DEPENDENCIES=TRUE .. cd .. mkdir ./build64 cd ./build64 cmake -G"${{ env.CMAKE_GENERATOR }}" -A"x64" -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DBUILD_BROWSER=false -DBUILD_CAPTIONS=false -DCOMPILE_D3D12_HOOK=false -DDepsPath="${{ github.workspace }}/cmbuild/deps/win64" -DQTDIR="${{ github.workspace }}/cmbuild/QT/${{ env.QT_VERSION }}/msvc2019_64" -DCOPIED_DEPENDENCIES=FALSE -DCOPY_DEPENDENCIES=TRUE .. - name: 'Build 32' run: msbuild /m /p:Configuration=RelWithDebInfo .\build32\obs-studio.sln - name: 'Build 64' run: msbuild /m /p:Configuration=RelWithDebInfo .\build64\obs-studio.sln - name: Package if: success() run: | $env:FILE_DATE=(Get-Date -UFormat "%F") $env:FILE_NAME="${{ env.PLUGIN_NAME }}-${env:FILE_DATE}-${{ github.sha }}-windows" echo "FILE_NAME=${env:FILE_NAME}" >> ${env:GITHUB_ENV} robocopy .\build32\rundir\RelWithDebInfo\obs-plugins\32bit\ .\package\obs-plugins\32bit ${{ env.PLUGIN_NAME }}.* /E /XF .gitignore robocopy .\build64\rundir\RelWithDebInfo\obs-plugins\64bit\ .\package\obs-plugins\64bit ${{ env.PLUGIN_NAME }}.* /E /XF .gitignore robocopy .\build64\rundir\RelWithDebInfo\data\obs-plugins\${{ env.PLUGIN_NAME }}\ .\package\data\obs-plugins\${{ env.PLUGIN_NAME }}\ /E /XF .gitignore exit 0 - name: Publish zip if: success() uses: actions/upload-artifact@v2.2.0 with: name: '${{ env.FILE_NAME }}' path: package/* - name: "Package Installer (Prereqs)" run: | curl "-kL" "https://github.com/Xaymar/msvc-redist-helper/releases/download/0.1/msvc-redist-helper-64.exe" "-f" "--retry" "5" "-o" "msvc-redist-helper.exe" curl "-kL" "https://files.jrsoftware.org/is/6/innosetup-6.0.3.exe" "-f" "--retry" "5" "-o" "inno.exe" .\inno.exe /VERYSILENT /SP- /SUPPRESSMSGBOXES /NORESTART - name: "Package Installer (Compile)" run: | & 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\build64\UI\frontend-plugins\${{ env.PLUGIN_NAME }}\installer.iss" - name: Publish installer if: success() uses: actions/upload-artifact@v2.2.0 with: name: '${{ env.FILE_NAME }}-installer' path: package/*.exeobs-downstream-keyer-master/.github/FUNDING.yml0000644000000000000000000000011114114476171020302 0ustar rootrootgithub: exeldro custom: "https://www.paypal.me/exeldro" patreon: Exeldro obs-downstream-keyer-master/media/0000755000000000000000000000000014114476171016213 5ustar rootrootobs-downstream-keyer-master/media/icon.ico0000644000000000000000000007342614114476171017653 0ustar rootroot hV ˆ О  ЈF00 Ј%юпц€2–D(  УУџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№№№џмммџлллџлллџлллџъъъџўўўџџџџџэээџпппџпппџнннџмммџяяяџџџџџіііџbbbџџџџџCCCџщщщџьььџЁЁЁџЅЅЅџЅЅЅџpppџџ___џіііџяяяџ555џџџ444џ џџоооџоооџ000џ###џ###џџџ555џяяяџяяяџ666џџŸŸŸџєєєџYYYџџоооџоооџџџџџџ666џяяяџѕѕѕџXXXџџŽŽŽџзззџXXXџ888џъъъџъъъџ<<<џџ џ џџWWWџѕѕѕџџџџџщщщџЬЬЬџИИИџ’’’џЌЌЌџРРРџоооџоооџРРРџЈЈЈџƒƒƒџЖЖЖџЬЬЬџщщщџџџџџџџџџџџџџџџџџџџџџзззџХХХџРРРџqqqџџЦЦЦџШШШџнннџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџљљљџШШШџЙЙЙџџoooџtttџ­­­џўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџнннџfffџnnnџrrrџDDDџџ:::џєєєџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџйййџџџ€€€џœœœџџ777џѓѓѓџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџлллџџ џЭЭЭџєєєџ333џ666џєєєџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџѕѕѕџ’’’џlllџЌЌЌџЛЛЛџxxxџЉЉЉџќќќџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџќќќџќќќџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ(0 УУџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџьььџйййџйййџйййџйййџйййџйййџуууџ§§§џџџџџџџџџ§§§џрррџжжжџжжжџжжжџжжжџиииџйййџыыыџџџџџџџџџџџџџйййџ===џџџџџџџ&&&џЌЌЌџџџџџџџџџЦЦЦџ   џЂЂЂџЂЂЂџЂЂЂџŒŒŒџ&&&џџ999џеееџџџџџџџџџБББџџџџџџџџџsssџџџџџџџџџˆˆˆџsssџ………џ………џ………џpppџ џџџАААџџџџџџџџџБББџџџџ444џFFFџ333џџџuuuџџџџџџџџџtttџџџџџџџџџБББџџџџџџџџџБББџџџџйййџјјјџкккџ!!!џџuuuџџџџџџџџџuuuџџџџџџџџџБББџџџџџџџџџАААџџџ&&&џыыыџџџџџэээџ***џџsssџџџџџџџџџtttџџџџџџџџџАААџџџџџџџџџбббџ+++џ џџЅЅЅџХХХџЈЈЈџџџЂЂЂџџџџџџџџџЄЄЄџџџ џџџџ џ***џаааџџџџџџџџџўўўџпппџПППџОООџ–––џvvvџРРРџОООџгггџћћћџџџџџџџџџћћћџгггџПППџИИИџfffџџОООџПППџпппџўўўџџџџџџџџџџџџџџџџџџџџџџџџџѕѕѕџ———џ’’’џœœœџšššџ———џџџ———џšššџœœœџџІІІџћћћџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџћћћџуууџтттџтттџУУУџMMMџbbbџеееџуууџтттџцццџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџєєєџНННџЏЏЏџІІІџ===џTTTџЁЁЁџЄЄЄџЦЦЦџќќќџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЎЎЎџАААџНННџОООџОООџŸŸŸџџџџЧЧЧџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџxxxџ===џFFFџEEEџCCCџ666џџџџЕЕЕџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџnnnџџџџzzzџƒƒƒџJJJџџџЖЖЖџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџoooџџџ[[[џџџџџџџџџЙЙЙџџџЖЖЖџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџqqqџџџYYYџўўўџџџџџЗЗЗџџџЗЗЗџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџРРРџBBBџ,,,џLLLџЄЄЄџЊЊЊџtttџ...џ___џхххџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџєєєџыыыџъъъџшшшџшшшџщщщџьььџњњњџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ( @ УУџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџчччџжжжџжжжџжжжџжжжџжжжџжжжџжжжџжжжџнннџњњњџџџџџџџџџџџџџџџџџљљљџиииџвввџвввџвввџвввџвввџеееџжжжџжжжџчччџџџџџџџџџџџџџџџџџџџџџЖЖЖџ///џџџџџџџџџџsssџєєєџџџџџџџџџѕѕѕџЁЁЁџџ{{{џ{{{џ{{{џ{{{џvvvџ111џџџ---џЌЌЌџџџџџџџџџџџџџ§§§џVVVџџџџџџџџџџџџйййџџџџџџџџџзззџyyyџпппџтттџтттџтттџтттџмммџIIIџџџџTTTџќќќџџџџџџџџџќќќџRRRџџџџџџџџџџџџзззџџџџџџџџџзззџ џџ!!!џ!!!џ!!!џ!!!џџџџџџRRRџќќќџџџџџџџџџќќќџRRRџџџџ џKKKџVVVџSSSџџџџџзззџџџџџџџџџзззџџџџџџџџџџџџRRRџќќќџџџџџџџџџќќќџRRRџџџџXXXџїїїџ§§§џќќќџЁЁЁџџџџзззџџџџџџџџџзззџџџџџџџџџџџџRRRџќќќџџџџџџџџџќќќџRRRџџџџjjjџџџџџџџџџџџџџКККџџџџзззџџџџџџџџџзззџџџџџџџџџџџџRRRџќќќџџџџџџџџџ§§§џTTTџџџџhhhџџџџџџџџџџџџџИИИџџџџиииџџџџџџџџџйййџџџџџџџџџџџџRRRџќќќџџџџџџџџџџџџџžžžџџџџ333џЈЈЈџДДДџГГГџ^^^џџ џ^^^џёёёџџџџџџџџџђђђџ___џ џџџџџџџџџџœœœџўўўџџџџџџџџџџџџџќќќџдддџВВВџАААџЏЏЏџuuuџ```џЖЖЖџВВВџГГГџХХХџѕѕѕџџџџџџџџџџџџџџџџџѕѕѕџХХХџГГГџГГГџАААџMMMџ………џАААџАААџВВВџдддџќќќџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџуууџcccџЌЌЌџиииџйййџиииџеееџеееџзззџжжжџеееџеееџиииџйййџеееџџpppџёёёџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџйййџ„„„џwwwџwwwџwwwџwwwџmmmџIIIџWWWџpppџwwwџwwwџwwwџwwwџ•••џшшшџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўўўџџџџџџџџџџџџџŸŸŸџ???џOOOџЩЩЩџџџџџџџџџџџџџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџѕѕѕџЮЮЮџШШШџШШШџЉЉЉџџAAAџСССџЬЬЬџЬЬЬџсссџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџёёёџ›››џ………џ‚‚‚џ‚‚‚џƒƒƒџyyyџwwwџ---џџџ&&&џЊЊЊџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџбббџwwwџйййџмммџмммџмммџмммџеееџAAAџџџџZZZџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџбббџџџџџџџџџџџџZZZџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџвввџџџџџ+++џaaaџbbbџRRRџ џџџZZZџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџвввџџџџџАААџџџџџџџџџјјјџRRRџџџZZZџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџбббџџџџ џРРРџџџџџџџџџџџџџcccџџџZZZџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџдддџџџџџОООџџџџџџџџџџџџџ___џџџ[[[џўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџђђђџdddџџџ џeeeџЊЊЊџЋЋЋџ›››џ)))џ џ$$$џЊЊЊџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџѕѕѕџЫЫЫџМММџМММџЛЛЛџНННџНННџМММџЛЛЛџОООџоооџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ(0` $УУџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўўўџоооџбббџбббџбббџбббџбббџбббџбббџбббџбббџбббџбббџбббџвввџяяяџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџэээџаааџЮЮЮџЮЮЮџЮЮЮџЮЮЮџЮЮЮџЮЮЮџЮЮЮџаааџбббџбббџбббџбббџоооџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџѓѓѓџџ!!!џџџџџџџџџџџџџџ>>>џБББџўўўџџџџџџџџџџџџџџџџџџџџџТТТџYYYџ:::џ999џ999џ999џ999џ999џ999џ999џ(((џџџџџ!!!џtttџыыыџџџџџџџџџџџџџџџџџџџџџџџџџšššџџџџџџџџџџџџџџџџџ&&&џсссџџџџџџџџџџџџџџџџџуууџbbbџаааџщщщџщщщџщщщџщщщџщщщџщщщџщщщџщщщџРРРџџџџџџџŽŽŽџџџџџџџџџџџџџџџџџџџџџџџџџqqqџџџџџџџџџџџџџџџџџџвввџџџџџџџџџџџџџџџџџЯЯЯџAAAџЯЯЯџцццџцццџцццџцццџцццџцццџцццџцццџМММџџџџџџџqqqџџџџџџџџџџџџџџџџџџџџџџџџџsssџџџџџџџџџџџџџџџџџџгггџџџџџџџџџџџџџџџџџгггџџџ"""џ"""џ"""џ"""џ"""џ"""џ"""џ"""џџџџџџџџsssџџџџџџџџџџџџџџџџџџџџџџџџџsssџџџџџџџџџџџџџџџџџџгггџџџџџџџџџџџџџџџџџгггџџџџџџџџџџџџџџџџџџsssџџџџџџџџџџџџџџџџџџџџџџџџџsssџџџџџџџ888џwwwџyyyџyyyџuuuџ555џџџџџџгггџџџџџџџџџџџџџџџџџгггџџџџџџџџџџџџџџџџџџsssџџџџџџџџџџџџџџџџџџџџџџџџџsssџџџџџџџдддџџџџџџџџџџџџџџџџџдддџџџџџџгггџџџџџџџџџџџџџџџџџгггџџџџџџџџџџџџџџџџџџsssџџџџџџџџџџџџџџџџџџџџџџџџџsssџџџџџџ...џюююџџџџџџџџџџџџџџџџџѓѓѓџ555џџџџџгггџџџџџџџџџџџџџџџџџгггџџџџџџџџџџџџџџџџџџsssџџџџџџџџџџџџџџџџџџџџџџџџџsssџџџџџџ---џэээџџџџџџџџџџџџџџџџџёёёџ555џџџџџгггџџџџџџџџџџџџџџџџџгггџџџџџџџџџџџџџџџџџџsssџџџџџџџџџџџџџџџџџџџџџџџџџrrrџџџџџџ...џэээџџџџџџџџџџџџџџџџџђђђџ555џџџџџвввџџџџџџџџџџџџџџџџџвввџџџџџџџџџџџџџџџџџџrrrџџџџџџџџџџџџџџџџџџџџџџџџџ‹‹‹џџџџџџ$$$џфффџџџџџџџџџџџџџџџџџуууџ)))џџџџџмммџџџџџџџџџџџџџџџџџсссџ!!!џџџџџџџџџџџџџџџџџ‚‚‚џџџџџџџџџџџџџџџџџџџџџџџџџпппџOOOџ џџџџџUUUџџ’’’џџџMMMџџџџџ“““џћћћџџџџџџџџџџџџџџџџџќќќџ”””џџџџџџџџџџџџџџџ џOOOџоооџџџџџџџџџџџџџџџџџџџџџџџџџџџџџђђђџМММџ”””џ’’’џ’’’џ’’’џџ<<<џ<<<џ‘‘‘џџџ’’’џ’’’џ   џиииџўўўџџџџџџџџџџџџџџџџџџџџџџџџџўўўџиииџ   џ’’’џ’’’џ’’’џ’’’џŽŽŽџ&&&џ[[[џ’’’џ’’’џ’’’џ’’’џ”””џМММџђђђџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџІІІџ111џоооџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџНННџ)))џЯЯЯџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџђђђџbbbџ>>>џ­­­џгггџгггџгггџгггџгггџгггџгггџгггџеееџдддџгггџгггџгггџгггџгггџгггџгггџЭЭЭџ”””џ111џŽŽŽџћћћџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџяяяџ‚‚‚џ<<<џ888џ888џ888џ888џ888џ888џ:::џ:::џџ,,,џ;;;џ888џ888џ888џ888џ888џ888џ777џNNNџЊЊЊџћћћџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџюююџфффџфффџфффџфффџфффџфффџЗЗЗџЃЃЃџBBBџƒƒƒџ˜˜˜џиииџфффџфффџфффџфффџфффџхххџїїїџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџВВВџ///џ'''џ444џKKKџяяяџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ§§§џ§§§џ§§§џ§§§џїїїџ|||џџ"""џЦЦЦџ§§§џ§§§џ§§§џ§§§џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџщщщџŠŠŠџVVVџTTTџTTTџTTTџUUUџGGGџџџSSSџTTTџTTTџTTTџTTTџnnnџШШШџ§§§џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџяяяџwwwџ‹‹‹џџџџџџžžžџЁЁЁџ   џmmmџџџџџџџОООџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџШШШџXXXџќќќџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџнннџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџШШШџџ\\\џqqqџqqqџqqqџqqqџqqqџqqqџqqqџqqqџHHHџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЪЪЪџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЩЩЩџ џџџџџџџ џ'''џ'''џ'''џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЩЩЩџ џџџџџџXXXџнннџщщщџщщщџщщщџЮЮЮџ:::џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЩЩЩџ џџџџџџЊЊЊџџџџџџџџџџџџџџџџџџџџџ‡‡‡џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЩЩЩџ џџџџџџЊЊЊџџџџџџџџџџџџџџџџџџџџџŒŒŒџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЩЩЩџ џџџџџџЊЊЊџџџџџџџџџџџџџџџџџџџџџ‹‹‹џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџЮЮЮџџџџџџџЊЊЊџџџџџџџџџџџџџџџџџџџџџŠŠŠџџџџџ€€€џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџяяяџKKKџџџџџџZZZџгггџмммџмммџмммџЦЦЦџ666џџџџџОООџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџуууџˆˆˆџEEEџ:::џ:::џ:::џ<<<џRRRџWWWџWWWџWWWџNNNџ999џ:::џ===џjjjџХХХџўўўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџїїїџєєєџєєєџєєєџєєєџѓѓѓџђђђџђђђџђђђџѓѓѓџєєєџєєєџѕѕѕџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ(пЬ(УУџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџ€џџџџќџџўџџўџџџџ№џџўџџјџџџџР?џўџџ№џџџџ€џўџџрџџџџџўџџРџџџўџџџџќџўџџ€џџќ?џџџџџџўџџ€?џџќџџџџџџўџџ?џџјџџџџџ€џўџџ?џџјџџџџџ€џўџџ?џџјџџџџџ€џўџџ?џџјџџџџџ€џўџџ?џџјџџџџџџўџџ?џџј?џџџџџџўџџ?џџјџџџџќџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џџјџўџџ?џќ?џџјџўџџџџ?џџјџўџџџџџ€?џџјџўџџџџџР?џџјџўџџџџџР?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџџџџр?џџјџўџџ€џџџр?џџќџўџџ€џџџРџџќџўџџ€џџџ€џџќџўџџРџџџџџџўџўџџр?џўџџџџџўџџ№џџџџ€џўџџќџџџџрџўџџџ?џџџџјџџўџџџрџџџџџџџџўџџџџџџј?џџџџџџџџџџџџ№џџџџџўџџџџџџј?џџџџџџџџџџџџ№џџџџџўџџџџџџјџџџџџџџџџџџџрџџџџџўџџџџџџќџџџџџџџџџџџџрџџџџџџўџџџџџџќџџџџџџџџџџџџРџџџџџџўџџџџџџќџџџџџџџџџџџџРџџџџџџўџџџџџџўџџџџџџџџџџџџџџџџџџўџџџџџџўџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџўџџџџџџўџџџџџџџ€џџџџџџџџџџџќџџџџџџўџџџџџџџР?џџџџџџџџџџ№џџџџџџўџџџџџџџРџџџџџџџџџџ€џџџџџџўџџџџџџџ№?џџџџџџўџџџџџџџјџџџџџџўџџџџџџџќџџџџџџџўџџџџџџџџџџџџџџџўџџџџџџџџр?џџџџџџџўџџџџџџџџџџџџџ№џџџџџџџџџџџџўџџџџџџџџџџџџџ№џџџџџџџџџџџџўџџџџџџџџџџџџџ№џџџџџџџџџџџџўџџџџџџџџџџџџј№xџџџџџџџџџџџџўџџџџџџџџџџџџ№ppџџџџџџџџџџџўџџџџџџџџџџџџ№0`џџџџџџџџџџџўџџџџџџџџџџџџ№0`џџџџџџџџџџџўџџџџџџџџџџџџј@џџџџџџџџџџџџўџџџџџџџџџџџџќџџџџџџџџџџџџўџџџџџџџџџџџџќџџџџџџџџџџџџўџџџџџџџџџџџџўџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџ€џџџџџџџџџџџџўџџџџџџџџџџџџџРџџџџџџџџџџџџўџџџџџџџџџџџџџРџџџџџџџџџџџџўџџџџџџџџџџџџџр?џџџџџџџџџџџџўџџџџџџџџџќџџџџџџџџџўџџџџџџџџџ№џџџџџџџџџўџџџџџџџџџР?џџџџџџџџўџџџџџџџџџ€џџџџџџџџўџџџџџџџџџџџџџџџџџўџџџџџџџџўџџџџќџџџџџџџџўџџџџџџџџќ?џџџџџџџџџџџџџўџџџџџџџџќџџџџџџџџџџџџџўџџџџџџџџјџџџџџ€џџџџџџџџўџџџџџџџџјџџџџџ€џџџџџџџџўџџџџџџџџјџџџџџ€џџџџџџџџўџџџџџџџџјџџџџџ€џџџџџџџџўџџџџџџџџјџџџџџџџџџџџџџўџџџџџџџџј?џџџџџџџџџџџџџўџџџџџџџџјџџџџќџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџџџџџџџўџџџџџџџџјџџрџџџџџџџџўџџџџџџџџјџџјџџџџџџџџўџџџџџџџџјџџќџџџџџџџџўџџџџџџџџјџџўџџџџџџџџўџџџџџџџџјџџўџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџјџџџџџџџџџџџўџџџџџџџџќџџџџџџџџџџџўџџџџџџџџќџџўџџџџџџџџўџџџџџџџџќџџќџџџџџџџџўџџџџџџџџўџџјџџџџџџџџўџџџџџџџџџџџ№џџџџџџџџўџџџџџџџџџ€џџџџџџџџўџџџџџџџџџрџџџџџџџџўџџџџџџџџџјџџџџџџџџџўџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџўobs-downstream-keyer-master/media/logo.png0000644000000000000000000000266414114476171017671 0ustar rootroot‰PNG  IHDRпцUŒPIsRGBЎЮщgAMAБ ќa pHYsФФ•+IIDATx^энas›F†QЛџџ?ЗelMk!ЛМwйsО$“Ib‡ЛЃ|ў§Џрr}џ\L|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒёAˆј D|">ё.'}~~~џl–K;т{УlС=cщœ#ОDЗЮzјvн>–в1т{!^бєўїXNћyЗsC*МeїZФНуp–АŸјžH†з›kпЄЎˆœmт+фъ z~=Лпkт[aсpёAˆј D|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒёAˆј D|ѓqYт+D s_1W(є<ёд; се ОЂzВќТЋУ”ВТmУвкfчƒёAˆј D|">„ˆBФ!тƒёAˆј ФГ+ЖžэхpUx>евкfчлiYH#-ІбОп‰o‹˜Фws^8ъ„ˆBФ!т[qЇы$‰Q—јvА€ѓFЯknВoX‹n”У•|САЄіп vНу,Љ}œvО`!уxэ'О,Јз–cф8уДѓ ЇЁ?Y>яп›fаВ9O|й оЧуšoЏvZЇУу„ˆo{w5ЛпXФWмб 8ёіnHƒјŠ:ы„ˆЏ gЛжГ{yЯ~нюW›јŠ9оƒЧ#>пі>:ЖїїQƒјŠљаб ЮўyЎуСъСЌ]Ус˜ь|">qкљ?о–яЧ2ћгєё юzBќ2m|ЂЫ›=Т)Џљ„WУ2‡™g1]|ТЋgж™LsкЙwРГŸ ѕриЏп7б]Уў3E|[]†™LpЭgШ5mћWЛу]м:>се6{€Sоj^3ЯтЖё={х^=ЯfrїнoЪ*˜*>Л^]3Юц–ёЭђnй ю<Ыiv>Л^}ГЭШ5„\њ„ЫlЇƒwx%7Г~КЧчњыЫH!šй—о3ыŸЎЋЁ™­ы5Гцёр>•"4Г}ZЯЌi|Щ!іXЬНџ=о1-gжьнЮд—ƒбkїŽ#Н№…w\Ыcж$ОdxНн5@сНЏеБsŸo‡+"g>УЦwu=Пž]h<-fv:> g„ˆBФ!тƒёAˆј D|">„ˆo'Н@kУЦ'F7єЮwU€BЇ‡сO;{‡!„ˆBФ!žэ,ЂЪГW~gTXwžэЄ‰e!оbДяwј~J| mфёAˆј D|r:>ыуЙгЬFОеeч+ ƒ{ЕЧŘйщ›ьјždxk3KПь•\o­ŽQГј<.НиЭьИV3kzк™^HЃЉpМЬь˜–ЧЋщЮїреt[ХofлzЬЌK|њSХш~3ГŸzЮЌk|Гt„ш~3Гў3Л$>рOюѓAˆј D|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒёAˆј D|">„ˆBФ!тƒˆZ)ф=IЏIENDЎB`‚obs-downstream-keyer-master/installer.iss.in0000644000000000000000000000767714114476171020277 0ustar rootroot; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "@PROJECT_FULL_NAME@" #define MyAppVersion "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@" #define MyAppPublisher "Exeldro" [Setup] ; NOTE: The value of AppId uniquely identifies this application. ; Do not use the same AppId value in installers for other applications. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) ; app Information AppId={{C70DB28F-E307-4D58-B59E-201B91C8F65F}} AppName={#MyAppName} AppVersion={#MyAppVersion} AppPublisher={#MyAppPublisher} AppMutex={#MyAppName} VersionInfoVersion={#MyAppVersion} VersionInfoCompany={#MyAppPublisher} VersionInfoDescription={#MyAppName} Setup ; Compression Compression=lzma2/ultra64 SolidCompression=yes LZMAAlgorithm=1 ; Other Information DefaultDirName={code:GetDirName} DefaultGroupName={#MyAppName} AllowNoIcons=yes OutputDir="@ISS_FILES_DIR@" OutputBaseFilename=@PROJECT_NAME@-installer ; Wizard Information WizardStyle=modern WizardResizable=yes SetupIconFile="@PROJECT_SOURCE_DIR@/media/icon.ico" [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Files] Source: "@ISS_FILES_DIR@/*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "@ISS_PACKAGE_DIR@/msvc-redist-helper.exe"; DestDir: "{app}"; DestName: "msvc-redist-helper.exe"; Flags: ignoreversion dontcopy noencryption ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" [Code] function GetDirName(Value: string): string; var InstallPath: string; begin // initialize default path, which will be returned when the following registry // key queries fail due to missing keys or for some different reason Result := ExpandConstant('{pf}\obs-studio'); // query the first registry value; if this succeeds, return the obtained value if RegQueryStringValue(HKLM32, 'SOFTWARE\OBS Studio', '', InstallPath) then Result := InstallPath end; ///////////////////////////////////////////////////////////////////// function GetUninstallString(): String; var sUnInstPath: String; sUnInstallString: String; begin sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\{#emit SetupSetting("AppId")}_is1'); sUnInstallString := ''; if not RegQueryStringValue(HKLM, sUnInstPath, 'UninstallString', sUnInstallString) then RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString); Result := sUnInstallString; end; ///////////////////////////////////////////////////////////////////// function IsUpgrade(): Boolean; begin Result := (GetUninstallString() <> ''); end; ///////////////////////////////////////////////////////////////////// function UnInstallOldVersion(): Integer; var sUnInstallString: String; iResultCode: Integer; begin // Return Values: // 1 - uninstall string is empty // 2 - error executing the UnInstallString // 3 - successfully executed the UnInstallString // default return value Result := 0; // get the uninstall string of the old app sUnInstallString := GetUninstallString(); if sUnInstallString <> '' then begin sUnInstallString := RemoveQuotes(sUnInstallString); if Exec(sUnInstallString, '/VERYSILENT /NORESTART /SUPPRESSMSGBOXES','', SW_HIDE, ewWaitUntilTerminated, iResultCode) then Result := 3 else Result := 2; end else Result := 1; end; ///////////////////////////////////////////////////////////////////// procedure CurStepChanged(CurStep: TSetupStep); var ResultCode: Integer; begin if (CurStep=ssInstall) then begin if (IsUpgrade()) then begin UnInstallOldVersion(); end; end; if (CurStep=ssPostInstall) then begin ExtractTemporaryFile('msvc-redist-helper.exe'); Exec(ExpandConstant('{tmp}\msvc-redist-helper.exe'), '2019', '', SW_HIDE, ewWaitUntilTerminated, ResultCode); end; end; obs-downstream-keyer-master/data/0000755000000000000000000000000014114476171016045 5ustar rootrootobs-downstream-keyer-master/data/locale/0000755000000000000000000000000014114476171017304 5ustar rootrootobs-downstream-keyer-master/data/locale/en-US.ini0000644000000000000000000000072314114476171020736 0ustar rootrootDownstreamKeyer="Downstream Keyer" Description="Downstream Keyer" DSKName="Downstream Keyer Name?" Add="Add" Rename="Rename" Remove="Remove" MoveUp="Move up" MoveDown="Move down" Transition="Transition" ShowTransition="Show Transition" HideTransition="Hide Transition" None="None" DefaultName="DSK 1" EnableDSK="Show on" DisableDSK="Hide on" OutputSource="Output Source" Channel="Channel" FallbackColor="Fallback Color" EnableTie="Enable Tie" DisablTie="Disable Tie" obs-downstream-keyer-master/name-dialog.cpp0000644000000000000000000000262214114476171020017 0ustar rootroot#include "name-dialog.hpp" #include #include "obs-module.h" NameDialog::NameDialog(QWidget *parent) : QDialog(parent) { setWindowTitle(QString::fromUtf8(obs_module_text("DSKName"))); setModal(true); setWindowModality(Qt::WindowModality::WindowModal); setMinimumWidth(200); setMinimumHeight(100); QVBoxLayout *layout = new QVBoxLayout; setLayout(layout); userText = new QLineEdit(this); layout->addWidget(userText); QDialogButtonBox *buttonbox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel); layout->addWidget(buttonbox); buttonbox->setCenterButtons(true); connect(buttonbox, &QDialogButtonBox::accepted, this, &QDialog::accept); connect(buttonbox, &QDialogButtonBox::rejected, this, &QDialog::reject); } static bool IsWhitespace(char ch) { return ch == ' ' || ch == '\t'; } static void CleanWhitespace(std::string &str) { while (!str.empty() && IsWhitespace(str.back())) str.erase(str.end() - 1); while (!str.empty() && IsWhitespace(str.front())) str.erase(str.begin()); } bool NameDialog::AskForName(QWidget *parent, std::string &name) { NameDialog dialog(parent); dialog.userText->setMaxLength(170); dialog.userText->setText(QString::fromUtf8(name.c_str())); dialog.userText->selectAll(); if (dialog.exec() != DialogCode::Accepted) { return false; } name = dialog.userText->text().toUtf8().constData(); CleanWhitespace(name); return true; }