正在显示
45 个修改的文件
包含
4787 行增加
和
0 行删除
.cirrus.yml
0 → 100644
| 1 | +env: | ||
| 2 | + NJOBS: 4 | ||
| 3 | + | ||
| 4 | +freebsd_task: | ||
| 5 | + env: | ||
| 6 | + COMPILER: clang | ||
| 7 | + freebsd_instance: | ||
| 8 | + matrix: | ||
| 9 | + image_family: freebsd-15-0-snap | ||
| 10 | + image_family: freebsd-14-0 | ||
| 11 | + cpu: 2 | ||
| 12 | + memory: 4G | ||
| 13 | + timeout_in: 60m | ||
| 14 | + install_script: | ||
| 15 | + - chmod +x ports/ci/freebsd/install_deps.sh | ||
| 16 | + - ./ports/ci/freebsd/install_deps.sh | ||
| 17 | + script: | ||
| 18 | + - chmod +x ports/ci/freebsd/build.sh | ||
| 19 | + - ./ports/ci/freebsd/build.sh | ||
| 20 | + deploy_script: | ||
| 21 | + - chmod +x ports/ci/freebsd/deploy.sh | ||
| 22 | + - ./ports/ci/freebsd/deploy.sh |
.gitignore
0 → 100644
| 1 | +# Compiled source # | ||
| 2 | +################### | ||
| 3 | +*.com | ||
| 4 | +*.class | ||
| 5 | +*.dll | ||
| 6 | +*.exe | ||
| 7 | +*.o | ||
| 8 | +*.so | ||
| 9 | +*.so.* | ||
| 10 | +*.so.debug | ||
| 11 | +*.run | ||
| 12 | +*.AppImage | ||
| 13 | +*.framework | ||
| 14 | + | ||
| 15 | +# Packages # | ||
| 16 | +############ | ||
| 17 | +*.7z | ||
| 18 | +*.dmg | ||
| 19 | +*.gz | ||
| 20 | +*.iso | ||
| 21 | +*.jar | ||
| 22 | +*.rar | ||
| 23 | +*.tar | ||
| 24 | +*.zip | ||
| 25 | +*.xz | ||
| 26 | + | ||
| 27 | +# Logs and databases # | ||
| 28 | +###################### | ||
| 29 | +*.log | ||
| 30 | +*.sql | ||
| 31 | +*.sqlite | ||
| 32 | +vgcore.* | ||
| 33 | + | ||
| 34 | +# OS generated files # | ||
| 35 | +###################### | ||
| 36 | +.DS_Store | ||
| 37 | +.DS_Store? | ||
| 38 | +._* | ||
| 39 | +.Spotlight-V100 | ||
| 40 | +.Trashes | ||
| 41 | +ehthumbs.db | ||
| 42 | +Thumbs.db | ||
| 43 | +*~ | ||
| 44 | +*_resource.rc | ||
| 45 | +Info.plist | ||
| 46 | + | ||
| 47 | +# Ignore files generated by Qt # | ||
| 48 | +################################ | ||
| 49 | +*.a | ||
| 50 | +*.moc | ||
| 51 | +moc_*.cpp | ||
| 52 | +ui_*.h | ||
| 53 | +*.obj | ||
| 54 | +*.dylib | ||
| 55 | +Makefile* | ||
| 56 | +*.prl | ||
| 57 | +*.app | ||
| 58 | +*.user* | ||
| 59 | +*.qmlproject.user* | ||
| 60 | +*.autosave | ||
| 61 | +*.qmlc | ||
| 62 | +.qmake.stash | ||
| 63 | +.qmake.cache | ||
| 64 | +callgrind.out.* | ||
| 65 | +*.debug | ||
| 66 | +*.plugin | ||
| 67 | +*_qmlcache.qrc | ||
| 68 | +test.o-* | ||
| 69 | +object_script.* | ||
| 70 | + | ||
| 71 | +# Ignore files generated by Python # | ||
| 72 | +#################################### | ||
| 73 | +__pycache__ | ||
| 74 | +*.pyc | ||
| 75 | + | ||
| 76 | +# Android files # | ||
| 77 | +################# | ||
| 78 | +android-build | ||
| 79 | +android-*-deployment-settings.json | ||
| 80 | + | ||
| 81 | +# VIM temporary files # | ||
| 82 | +####################### | ||
| 83 | +.*.swp | ||
| 84 | + | ||
| 85 | +# Kate temporary files # | ||
| 86 | +####################### | ||
| 87 | +.*.kate-swp | ||
| 88 | + | ||
| 89 | +# KDevelop generated files # | ||
| 90 | +############################ | ||
| 91 | +.kdev4 | ||
| 92 | + | ||
| 93 | +# MinGW files # | ||
| 94 | +############### | ||
| 95 | +*.Debug | ||
| 96 | +*.Release | ||
| 97 | + | ||
| 98 | +# MSVC files # | ||
| 99 | +############## | ||
| 100 | +*.exp | ||
| 101 | +*.ilk | ||
| 102 | +*.lib | ||
| 103 | +*.pdb | ||
| 104 | + | ||
| 105 | +# Failed patch # | ||
| 106 | +################ | ||
| 107 | +*.orig | ||
| 108 | +*.rej | ||
| 109 | + | ||
| 110 | +# Project Files # | ||
| 111 | +################# | ||
| 112 | +Webcamoid | ||
| 113 | +bin/webcamoid | ||
| 114 | +AkVCamAssistant | ||
| 115 | + | ||
| 116 | +# Ignore Directories # | ||
| 117 | +###################### | ||
| 118 | +build | ||
| 119 | +debug | ||
| 120 | +release | ||
| 121 | +.cache | ||
| 122 | + | ||
| 123 | +# Ignore Auto Generated Files # | ||
| 124 | +############################### | ||
| 125 | +*_auto* | ||
| 126 | + | ||
| 127 | +# Ignore Private Files and Folders # | ||
| 128 | +#################################### | ||
| 129 | +*_priv | ||
| 130 | +*_priv.* |
.weblate
0 → 100644
AUTHORS
0 → 100644
CMakeLists.txt
0 → 100644
| 1 | +# Webcamoid, webcam capture application. | ||
| 2 | +# Copyright (C) 2021 Gonzalo Exequiel Pedone | ||
| 3 | +# | ||
| 4 | +# Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | +# it under the terms of the GNU General Public License as published by | ||
| 6 | +# the Free Software Foundation, either version 3 of the License, or | ||
| 7 | +# (at your option) any later version. | ||
| 8 | +# | ||
| 9 | +# Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | +# GNU General Public License for more details. | ||
| 13 | +# | ||
| 14 | +# You should have received a copy of the GNU General Public License | ||
| 15 | +# along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | +# | ||
| 17 | +# Web-Site: http://webcamoid.github.io/ | ||
| 18 | + | ||
| 19 | +cmake_minimum_required(VERSION 3.16) | ||
| 20 | + | ||
| 21 | +project(Webcamoid) | ||
| 22 | + | ||
| 23 | +include(libAvKys/cmake/ProjectCommons.cmake) | ||
| 24 | + | ||
| 25 | +if (ANDROID) | ||
| 26 | + find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED) | ||
| 27 | +endif () | ||
| 28 | + | ||
| 29 | +add_subdirectory(libAvKys) | ||
| 30 | +add_subdirectory(StandAlone) | ||
| 31 | + | ||
| 32 | +# Try detecting Qmake executable. | ||
| 33 | + | ||
| 34 | +set(QT_QMAKE_EXECUTABLE qmake6 CACHE FILEPATH "Qt qmake path") | ||
| 35 | +find_program(QT_QMAKE_EXECUTABLE_BIN "${QT_QMAKE_EXECUTABLE}") | ||
| 36 | + | ||
| 37 | +# Retrieve useful variables related to Qt installation. | ||
| 38 | + | ||
| 39 | +if (QT_QMAKE_EXECUTABLE_BIN) | ||
| 40 | + execute_process(COMMAND ${QT_QMAKE_EXECUTABLE_BIN} -query QT_INSTALL_PREFIX | ||
| 41 | + OUTPUT_VARIABLE QT_INSTALL_PREFIX | ||
| 42 | + OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| 43 | + execute_process(COMMAND ${QT_QMAKE_EXECUTABLE_BIN} -query QT_INSTALL_LIBS | ||
| 44 | + OUTPUT_VARIABLE QT_INSTALL_LIBS | ||
| 45 | + OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| 46 | + execute_process(COMMAND ${QT_QMAKE_EXECUTABLE_BIN} -query QT_INSTALL_BINS | ||
| 47 | + OUTPUT_VARIABLE QT_INSTALL_BINS | ||
| 48 | + OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| 49 | + execute_process(COMMAND ${QT_QMAKE_EXECUTABLE_BIN} -query QT_INSTALL_PLUGINS | ||
| 50 | + OUTPUT_VARIABLE QT_INSTALL_PLUGINS | ||
| 51 | + OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| 52 | + execute_process(COMMAND ${QT_QMAKE_EXECUTABLE_BIN} -query QT_INSTALL_QML | ||
| 53 | + OUTPUT_VARIABLE QT_INSTALL_QML | ||
| 54 | + OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| 55 | +endif () | ||
| 56 | + | ||
| 57 | +set(QT_INSTALL_SRC "${QT_INSTALL_PREFIX}/src" CACHE PATH "Qt sources templates directory") | ||
| 58 | + | ||
| 59 | +# Set platform related variables to be used in package_info.conf. | ||
| 60 | + | ||
| 61 | +if (ANDROID) | ||
| 62 | + set(TARGET_PLATFORM android) | ||
| 63 | + set(BUILD_INFO_FILE ${DATAROOTDIR}/build-info.txt) | ||
| 64 | + set(MAIN_EXECUTABLE ${BINDIR}/libWebcamoid_${CMAKE_ANDROID_ARCH_ABI}.so) | ||
| 65 | + set(APP_LIBDIR ${LIBDIR}) | ||
| 66 | + set(OUTPUT_FORMATS "AndroidAPK") | ||
| 67 | + set(OUTPUT_QML_DIR ${DATAROOTDIR}/android_rcc_bundle/qml) | ||
| 68 | + set(OUTPUT_QT_PLUGINS_DIR ${DATAROOTDIR}/android_rcc_bundle/plugins) | ||
| 69 | +elseif (APPLE) | ||
| 70 | + set(TARGET_PLATFORM mac) | ||
| 71 | + set(BUILD_INFO_FILE ${DATAROOTDIR}/build-info.txt) | ||
| 72 | + set(MAIN_EXECUTABLE ${BINDIR}/Webcamoid) | ||
| 73 | + set(APP_LIBDIR ${LIBDIR}) | ||
| 74 | + set(QTIFW_TARGET_DIR "\@ApplicationsDir\@/Webcamoid") | ||
| 75 | + set(OUTPUT_FORMATS "CompressedTarXz, MacPkg") | ||
| 76 | + set(INSTALLER_ICON "StandAlone/share/themes/WebcamoidTheme/icons/webcamoid.icns") | ||
| 77 | + set(RUN_PROGRAM "\@TargetDir\@/${MAIN_EXECUTABLE}") | ||
| 78 | + set(OUTPUT_QML_DIR ${DATAROOTDIR}/qml) | ||
| 79 | + set(OUTPUT_QT_PLUGINS_DIR ${EXECPREFIX}/Plugins) | ||
| 80 | + set(QT_CONF_FILE ${DATAROOTDIR}/qt.conf) | ||
| 81 | +elseif (WIN32) | ||
| 82 | + set(TARGET_PLATFORM windows) | ||
| 83 | + set(BUILD_INFO_FILE ${DATAROOTDIR}/build-info.txt) | ||
| 84 | + set(MAIN_EXECUTABLE ${BINDIR}/webcamoid.exe) | ||
| 85 | + set(APP_LIBDIR ${LIBDIR}) | ||
| 86 | + set(OUTPUT_FORMATS "CompressedZip, Nsis") | ||
| 87 | + set(INSTALLER_ICON "StandAlone/share/themes/WebcamoidTheme/icons/hicolor/256x256/webcamoid.ico") | ||
| 88 | + set(RUN_PROGRAM "${MAIN_EXECUTABLE}") | ||
| 89 | + set(PROGRAM_ARGS "-c \"%%~dp0${DATAROOTDIR}\\config\"") | ||
| 90 | + set(OUTPUT_QML_DIR ${LIBDIR}/qt/qml) | ||
| 91 | + set(OUTPUT_QT_PLUGINS_DIR ${LIBDIR}/qt/plugins) | ||
| 92 | + set(QT_CONF_FILE ${BINDIR}/qt.conf) | ||
| 93 | + set(EXTRA_LIBS_LIST | ||
| 94 | + libeay32.dll | ||
| 95 | + ssleay32.dll | ||
| 96 | + libEGL.dll | ||
| 97 | + libGLESv2.dll | ||
| 98 | + D3DCompiler_43.dll | ||
| 99 | + D3DCompiler_46.dll | ||
| 100 | + D3DCompiler_47.dll) | ||
| 101 | + list(JOIN EXTRA_LIBS_LIST ", " EXTRA_LIBS) | ||
| 102 | +else () | ||
| 103 | + set(TARGET_PLATFORM posix) | ||
| 104 | + set(BUILD_INFO_FILE ${DATAROOTDIR}/build-info.txt) | ||
| 105 | + set(MAIN_EXECUTABLE ${BINDIR}/webcamoid) | ||
| 106 | + set(APP_LIBDIR ${LIBDIR}) | ||
| 107 | + set(QTIFW_TARGET_DIR "\@HomeDir\@/Webcamoid") | ||
| 108 | + set(OUTPUT_FORMATS "AppImage, CompressedTarXz, QtIFW, DebPackage, RpmPackage") | ||
| 109 | + set(INSTALLER_ICON "StandAlone/share/themes/WebcamoidTheme/icons/hicolor/128x128/webcamoid.png") | ||
| 110 | + set(RUN_PROGRAM "\@TargetDir\@/webcamoid.sh") | ||
| 111 | + set(OUTPUT_QML_DIR ${LIBDIR}/qt/qml) | ||
| 112 | + set(OUTPUT_QT_PLUGINS_DIR ${LIBDIR}/qt/plugins) | ||
| 113 | + set(QT_CONF_FILE ${BINDIR}/qt.conf) | ||
| 114 | +endif () | ||
| 115 | + | ||
| 116 | +# Try detecting the target platform. | ||
| 117 | + | ||
| 118 | +if (UNIX AND NOT APPLE AND NOT ANDROID) | ||
| 119 | + include(CheckCXXSourceCompiles) | ||
| 120 | + check_cxx_source_compiles(" | ||
| 121 | + #ifndef __linux__ | ||
| 122 | + #error Not Linux | ||
| 123 | + #endif | ||
| 124 | + | ||
| 125 | + int main() | ||
| 126 | + { | ||
| 127 | + return 0; | ||
| 128 | + }" IS_LINUX) | ||
| 129 | + | ||
| 130 | + check_cxx_source_compiles(" | ||
| 131 | + #ifndef __FreeBSD__ | ||
| 132 | + #error Not FreeBSD | ||
| 133 | + #endif | ||
| 134 | + | ||
| 135 | + int main() | ||
| 136 | + { | ||
| 137 | + return 0; | ||
| 138 | + }" IS_FREEBSD) | ||
| 139 | + | ||
| 140 | + if (IS_LINUX) | ||
| 141 | + set(PKG_TARGET_PLATFORM linux) | ||
| 142 | + elseif (IS_FREEBSD) | ||
| 143 | + set(PKG_TARGET_PLATFORM freebsd) | ||
| 144 | + else () | ||
| 145 | + set(PKG_TARGET_PLATFORM ${TARGET_PLATFORM}) | ||
| 146 | + endif () | ||
| 147 | +else () | ||
| 148 | + set(PKG_TARGET_PLATFORM ${TARGET_PLATFORM}) | ||
| 149 | +endif () | ||
| 150 | + | ||
| 151 | +find_package(PkgConfig) | ||
| 152 | + | ||
| 153 | +# Try detecting VLC plugins install path. | ||
| 154 | + | ||
| 155 | +pkg_check_modules(VLC_PLUGINS vlc-plugin) | ||
| 156 | + | ||
| 157 | +if (VLC_PLUGINS_FOUND) | ||
| 158 | + pkg_get_variable(VLC_PLUGINS_DIR vlc-plugin pluginsdir) | ||
| 159 | +elseif (APPLE AND NOT VLC_PLUGINS_FOUND) | ||
| 160 | + message("-- Checking for 'VLC'") | ||
| 161 | + | ||
| 162 | + # Check user defined VLC path first. | ||
| 163 | + | ||
| 164 | + if (NOT "${VLC_INSTALL_PATH}" STREQUAL "" AND EXISTS "${VLC_INSTALL_PATH}") | ||
| 165 | + set(VLCAPP_DIR "${VLCAPP_INSTALL_DIR}") | ||
| 166 | + endif() | ||
| 167 | + | ||
| 168 | + # Check VLC installed by homebrew. | ||
| 169 | + | ||
| 170 | + if ("${VLCAPP_DIR}" STREQUAL "") | ||
| 171 | + set(VLCAPPBIN "/usr/local/bin/vlc") | ||
| 172 | + | ||
| 173 | + if (EXISTS ${VLCAPPBIN}) | ||
| 174 | + get_filename_component(VLCAPPBIN_PATH ${VLCAPPBIN} REALPATH) | ||
| 175 | + get_filename_component(VLCAPP_INSTALL_DIR ${VLCAPPBIN_PATH} DIRECTORY) | ||
| 176 | + set(VLCAPP_DIR "${VLCAPP_INSTALL_DIR}/VLC.app") | ||
| 177 | + endif() | ||
| 178 | + endif() | ||
| 179 | + | ||
| 180 | + # Check VLC manually installed by the user. | ||
| 181 | + | ||
| 182 | + if ("${VLCAPP_DIR}" STREQUAL "") | ||
| 183 | + set(VLCAPPDIR "/Applications/VLC.app") | ||
| 184 | + | ||
| 185 | + if (EXISTS "${VLCAPPDIR}") | ||
| 186 | + set(VLCAPP_DIR "${VLCAPPDIR}") | ||
| 187 | + endif() | ||
| 188 | + endif() | ||
| 189 | + | ||
| 190 | + if (NOT "${VLCAPP_DIR}" STREQUAL "") | ||
| 191 | + set(VLCAPP_PLUGINS_DIR "${VLCAPP_DIR}/Contents/MacOS/plugins") | ||
| 192 | + | ||
| 193 | + if (EXISTS ${VLCAPP_PLUGINS_DIR}) | ||
| 194 | + message("-- Found VLC in '${VLCAPP_DIR}'") | ||
| 195 | + set(VLC_PLUGINS_DIR "${VLCAPP_PLUGINS_DIR}") | ||
| 196 | + else () | ||
| 197 | + message("-- No 'VLC' found") | ||
| 198 | + endif () | ||
| 199 | + else () | ||
| 200 | + message("-- No 'VLC' found") | ||
| 201 | + endif () | ||
| 202 | +endif () | ||
| 203 | + | ||
| 204 | +# Try detecting GStreamer plugins install path. | ||
| 205 | + | ||
| 206 | +pkg_check_modules(GST_PLUGINS gstreamer-1.0) | ||
| 207 | + | ||
| 208 | +if (GST_PLUGINS_FOUND) | ||
| 209 | + pkg_get_variable(GST_PLUGINS_DIR gstreamer-1.0 pluginsdir) | ||
| 210 | +endif () | ||
| 211 | + | ||
| 212 | +# Try detecting PipeWire plugins install path. | ||
| 213 | + | ||
| 214 | +pkg_check_modules(PIPEWIRE_MODULES libpipewire-0.3) | ||
| 215 | +pkg_check_modules(PIPEWIRE_SPA_PLUGINS libspa-0.2) | ||
| 216 | + | ||
| 217 | +if (PIPEWIRE_MODULES_FOUND) | ||
| 218 | + pkg_get_variable(PIPEWIRE_MODULES_DIR libpipewire-0.3 moduledir) | ||
| 219 | +endif () | ||
| 220 | + | ||
| 221 | +if (PIPEWIRE_SPA_PLUGINS_FOUND) | ||
| 222 | + pkg_get_variable(PIPEWIRE_SPA_PLUGINS_DIR libspa-0.2 plugindir) | ||
| 223 | +endif () | ||
| 224 | + | ||
| 225 | +if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") | ||
| 226 | + set(PACKAGE_IS_DEBUG true) | ||
| 227 | +endif() | ||
| 228 | + | ||
| 229 | +set(DEB_INSTALL_ROOT_PREFIX "usr" CACHE STRING "Install prefix relative to the system") | ||
| 230 | +set(DEB_INSTALL_PREFIX "usr/share/webcamoid" CACHE STRING "Install prefix for DEB packages data files") | ||
| 231 | +set(RPM_INSTALL_PREFIX "${DEB_INSTALL_PREFIX}" CACHE STRING "Install prefix for RPM packages data files") | ||
| 232 | + | ||
| 233 | +if (TARGET_ARCH STREQUAL "x64") | ||
| 234 | + set(DEB_TARGET_ARCH_DEFAULT amd64) | ||
| 235 | + set(RPM_TARGET_ARCH_DEFAULT x86_64) | ||
| 236 | +elseif (TARGET_ARCH STREQUAL "x86") | ||
| 237 | + set(DEB_TARGET_ARCH_DEFAULT i386) | ||
| 238 | + set(RPM_TARGET_ARCH_DEFAULT i686) | ||
| 239 | +elseif (TARGET_ARCH STREQUAL "arm64") | ||
| 240 | + set(DEB_TARGET_ARCH_DEFAULT arm64) | ||
| 241 | + set(RPM_TARGET_ARCH_DEFAULT aarch64) | ||
| 242 | +elseif (TARGET_ARCH STREQUAL "arm32") | ||
| 243 | + set(DEB_TARGET_ARCH_DEFAULT armhf) | ||
| 244 | + set(RPM_TARGET_ARCH_DEFAULT armv7hl) | ||
| 245 | +elseif (TARGET_ARCH STREQUAL "riscv") | ||
| 246 | + set(DEB_TARGET_ARCH_DEFAULT riscv64) | ||
| 247 | + set(RPM_TARGET_ARCH_DEFAULT riscv64) | ||
| 248 | +else () | ||
| 249 | + set(DEB_TARGET_ARCH_DEFAULT any) | ||
| 250 | + set(RPM_TARGET_ARCH_DEFAULT noarch) | ||
| 251 | +endif () | ||
| 252 | + | ||
| 253 | +set(DEB_TARGET_ARCH "${DEB_TARGET_ARCH_DEFAULT}" CACHE STRING "Architecture of the DEB package") | ||
| 254 | +set(RPM_TARGET_ARCH "${RPM_TARGET_ARCH_DEFAULT}" CACHE STRING "Architecture of the RPM package") | ||
| 255 | +set(DEB_LINKS "") | ||
| 256 | + | ||
| 257 | +if (UNIX AND NOT APPLE AND NOT ANDROID) | ||
| 258 | + set(DEB_LINKS_PATHS | ||
| 259 | + ${BINDIR}/webcamoid | ||
| 260 | + ${DATAROOTDIR}/applications/webcamoid.desktop | ||
| 261 | + ${DATAROOTDIR}/metainfo/${APP_IDENTIFIER}.metainfo.xml | ||
| 262 | + ${CMAKE_INSTALL_MANDIR}/man1/webcamoid.1.gz | ||
| 263 | + ${LICENSEDIR}/COPYING) | ||
| 264 | + | ||
| 265 | + set(ICONS_SIZE | ||
| 266 | + "8x8" | ||
| 267 | + "16x16" | ||
| 268 | + "22x22" | ||
| 269 | + "32x32" | ||
| 270 | + "48x48" | ||
| 271 | + "64x64" | ||
| 272 | + "128x128" | ||
| 273 | + "256x256" | ||
| 274 | + "scalable") | ||
| 275 | + | ||
| 276 | + foreach (SIZE IN LISTS ICONS_SIZE) | ||
| 277 | + list(APPEND DEB_LINKS_PATHS ${DATAROOTDIR}/icons/hicolor/${SIZE}/apps/webcamoid.png) | ||
| 278 | + endforeach () | ||
| 279 | + | ||
| 280 | + set(DEB_LINKS_PATHS_TEMP "dummy") | ||
| 281 | + | ||
| 282 | + foreach (LINK IN LISTS DEB_LINKS_PATHS) | ||
| 283 | + get_filename_component(ROOT_LINK_DIR "/${DEB_INSTALL_ROOT_PREFIX}/${LINK}" DIRECTORY) | ||
| 284 | + file(RELATIVE_PATH REL_PATH "${ROOT_LINK_DIR}" "/${DEB_INSTALL_PREFIX}/${LINK}") | ||
| 285 | + list(APPEND DEB_LINKS_PATHS_TEMP "${DEB_INSTALL_ROOT_PREFIX}/${LINK}:${REL_PATH}") | ||
| 286 | + endforeach () | ||
| 287 | + | ||
| 288 | + list(POP_FRONT DEB_LINKS_PATHS_TEMP) | ||
| 289 | + list(JOIN DEB_LINKS_PATHS_TEMP ", " DEB_LINKS) | ||
| 290 | +endif () | ||
| 291 | + | ||
| 292 | +set(RPM_LINKS "${DEB_LINKS}") | ||
| 293 | +set(DEB_COPYRIGHT_FILE "${LICENSEDIR}/COPYING" CACHE STRING "Copyright file install path relative to DEB_INSTALL_PREFIX") | ||
| 294 | + | ||
| 295 | +configure_file(package_info.conf.in package_info.conf) | ||
| 296 | + | ||
| 297 | +if (ANDROID) | ||
| 298 | + configure_file(package_info_android.conf.in package_info_android.conf) | ||
| 299 | + configure_file(COPYING | ||
| 300 | + "${CMAKE_BINARY_DIR}/${BUILDDIR}/${LICENSEDIR}/COPYING" | ||
| 301 | + COPYONLY) | ||
| 302 | +else () | ||
| 303 | + if (WIN32 AND CMAKE_HOST_UNIX) | ||
| 304 | + configure_file(package_info_windows.conf.in package_info_windows.conf) | ||
| 305 | + endif () | ||
| 306 | + | ||
| 307 | + install(FILES COPYING DESTINATION ${LICENSEDIR}) | ||
| 308 | +endif () | ||
| 309 | + | ||
| 310 | +if (UNIX AND NOT ANDROID AND NOT APPLE) | ||
| 311 | + install(FILES webcamoid.desktop DESTINATION ${DATAROOTDIR}/applications) | ||
| 312 | + install(FILES ${APP_IDENTIFIER}.metainfo.xml DESTINATION ${DATAROOTDIR}/metainfo) | ||
| 313 | +endif () | ||
| 314 | + | ||
| 315 | +# uninstall target | ||
| 316 | +# | ||
| 317 | +# taken from https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake | ||
| 318 | +# usage: "cmake --build path/to/build/directory --target uninstall" | ||
| 319 | + | ||
| 320 | +if (NOT TARGET uninstall) | ||
| 321 | + set(REMOVE_ROOT OFF CACHE BOOL "Remove root install directory when uninstalling") | ||
| 322 | + | ||
| 323 | + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" | ||
| 324 | + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" | ||
| 325 | + IMMEDIATE @ONLY) | ||
| 326 | + | ||
| 327 | + add_custom_target(uninstall | ||
| 328 | + COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) | ||
| 329 | + | ||
| 330 | + # Remove folders owned by the project. | ||
| 331 | + | ||
| 332 | + install(CODE "list(APPEND CMAKE_INSTALL_MANIFEST_FILES \"\${CMAKE_INSTALL_PREFIX}/${AKPLUGINSDIR}\")") | ||
| 333 | + install(CODE "list(APPEND CMAKE_INSTALL_MANIFEST_FILES \"\${CMAKE_INSTALL_PREFIX}/${LICENSEDIR}\")") | ||
| 334 | + install(CODE "list(APPEND CMAKE_INSTALL_MANIFEST_FILES \"\${CMAKE_INSTALL_PREFIX}/${DATAROOTDIR}/webcamoid\")") | ||
| 335 | +endif () |
CODE_OF_CONDUCT.md
0 → 100644
| 1 | +# Webcamoid Community Code of Conduct # | ||
| 2 | + | ||
| 3 | +## Preamble ## | ||
| 4 | + | ||
| 5 | +In the Webcamoid community, participants from all over the world come together to create Free Software for the desktop. This is made possible by the support, hard work and enthusiasm of thousands of people, including those who create and use Webcamoid software. | ||
| 6 | +This document offers some guidance to ensure Webcamoid participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other. | ||
| 7 | +This Code of Conduct is shared by all contributors and users who engage with the Webcamoid team and its community services. | ||
| 8 | + | ||
| 9 | +## Overview ## | ||
| 10 | + | ||
| 11 | +This Code of Conduct presents a summary of the shared values and "common sense" thinking in our community. The basic social ingredients that hold our project together include: | ||
| 12 | + | ||
| 13 | +- Be considerate | ||
| 14 | +- Be respectful | ||
| 15 | +- Be collaborative | ||
| 16 | +- Be pragmatic | ||
| 17 | +- Support others in the community | ||
| 18 | +- Get support from others in the community | ||
| 19 | + | ||
| 20 | +Our community is made up of several groups of individuals and organizations which can roughly be divided into two groups: | ||
| 21 | + | ||
| 22 | +- Contributors, or those who add value to the project through improving Webcamoid software and its services | ||
| 23 | +- Users, or those who add value to the project through their support as consumers of Webcamoid software | ||
| 24 | + | ||
| 25 | +This Code of Conduct reflects the agreed standards of behavior for members of the Webcamoid community, in any forum, mailing list, wiki, web site, IRC channel, public meeting or private correspondence within the context of the Webcamoid team and its services. The community acts according to the standards written down in this Code of Conduct and will defend these standards for the benefit of the community. Leaders of any group, such as moderators of mailing lists, IRC channels, forums, etc., will exercise the right to suspend access to any person who persistently breaks our shared Code of Conduct. | ||
| 26 | + | ||
| 27 | +## Be considerate ## | ||
| 28 | + | ||
| 29 | +Your actions and work will affect and be used by other people and you in turn will depend on the work and actions of others. Any decision you take will affect other community members, and we expect you to take those consequences into account when making decisions. | ||
| 30 | +As a contributor, ensure that you give full credit for the work of others and bear in mind how your changes affect others. It is also expected that you try to follow the development schedule and guidelines. | ||
| 31 | +As a user, remember that contributors work hard on their part of Webcamoid and take great pride in it. If you are frustrated your problems are more likely to be resolved if you can give accurate and well-mannered information to all concerned. | ||
| 32 | + | ||
| 33 | +## Be respectful ## | ||
| 34 | + | ||
| 35 | +In order for the Webcamoid community to stay healthy its members must feel comfortable and accepted. Treating one another with respect is absolutely necessary for this. In a disagreement, in the first instance assume that people mean well. | ||
| 36 | +We do not tolerate personal attacks, racism, sexism or any other form of discrimination. Disagreement is inevitable, from time to time, but respect for the views of others will go a long way to winning respect for your own view. Respecting other people, their work, their contributions and assuming well-meaning motivation will make community members feel comfortable and safe and will result in motivation and productivity. | ||
| 37 | +We expect members of our community to be respectful when dealing with other contributors, users and communities. Remember that Webcamoid is an international project and that you may be unaware of important aspects of other cultures. | ||
| 38 | + | ||
| 39 | +## Be collaborative ## | ||
| 40 | + | ||
| 41 | +The Free Software Movement depends on collaboration: it helps limit duplication of effort while improving the quality of the software produced. In order to avoid misunderstanding, try to be clear and concise when requesting help or giving it. Remember it is easy to misunderstand emails (especially when they are not written in your mother tongue). Ask for clarifications if unsure how something is meant; remember the first rule -- assume in the first instance that people mean well. | ||
| 42 | +As a contributor, you should aim to collaborate with other community members, as well as with other communities that are interested in or depend on the work you do. Your work should be transparent and be fed back into the community when available, not just when Webcamoid releases. If you wish to work on something new in existing projects, keep those projects informed of your ideas and progress. | ||
| 43 | +It may not always be possible to reach consensus on the implementation of an idea, so don't feel obliged to achieve this before you begin. However, always ensure that you keep the outside world informed of your work, and publish it in a way that allows outsiders to test, discuss and contribute to your efforts. | ||
| 44 | +Contributors on every project come and go. When you leave or disengage from the project, in whole or in part, you should do so with pride about what you have achieved and by acting responsibly towards others who come after you to continue the project. | ||
| 45 | +As a user, your feedback is important, as is its form. Poorly thought out comments can cause pain and the demotivation of other community members, but considerate discussion of problems can bring positive results. An encouraging word works wonders. | ||
| 46 | + | ||
| 47 | +## Be pragmatic ## | ||
| 48 | + | ||
| 49 | +Webcamoid is a pragmatic community. We value tangible results over having the last word in a discussion. We defend our core values like freedom and respectful collaboration, but we don't let arguments about minor issues get in the way of achieving more important results. We are open to suggestions and welcome solutions regardless of their origin. When in doubt support a solution which helps getting things done over one which has theoretical merits, but isn't being worked on. Use the tools and methods which help getting the job done. Let decisions be taken by those who do the work. | ||
| 50 | + | ||
| 51 | +## Support others in the community ## | ||
| 52 | + | ||
| 53 | +Our community is made strong by mutual respect, collaboration and pragmatic, responsible behavior. Sometimes there are situations where this has to be defended and other community members need help. | ||
| 54 | +If you witness others being attacked, think first about how you can offer them personal support. If you feel that the situation is beyond your ability to help individually, go privately to the victim and ask if some form of official intervention is needed. Similarly you should support anyone who appears to be in danger of burning out, either through work-related stress or personal problems. | ||
| 55 | +When problems do arise, consider respectfully reminding those involved of our shared Code of Conduct as a first action. Leaders are defined by their actions, and can help set a good example by working to resolve issues in the spirit of this Code of Conduct before they escalate. | ||
| 56 | + | ||
| 57 | +## Get support from others in the community ## | ||
| 58 | + | ||
| 59 | +Disagreements, both political and technical, happen all the time. Our community is no exception to the rule. The goal is not to avoid disagreements or differing views but to resolve them constructively. You should turn to the community to seek advice and to resolve disagreements and where possible consult the team most directly involved. | ||
| 60 | +Think deeply before turning a disagreement into a public dispute. If necessary request mediation, trying to resolve differences in a less highly-emotional medium. If you do feel that you or your work is being attacked, take your time to breathe through before writing heated replies. Consider a 24-hour moratorium if emotional language is being used -- a cooling off period is sometimes all that is needed. If you really want to go a different way, then we encourage you to publish your ideas and your work, so that it can be tried and tested. | ||
| 61 | + | ||
| 62 | +_This document is licensed under the Creative Commons Attribution - Share Alike 3.0 License._ | ||
| 63 | + | ||
| 64 | +_This document is an adaptation of [KDE Community Code of Conduct](https://www.kde.org/code-of-conduct/)._ |
CONTRIBUTING.md
0 → 100644
| 1 | +# Webcamoid Individual Contributor License Agreement # | ||
| 2 | + | ||
| 3 | +Thank you for your interest in contributing to Webcamoid ("We" or "Us"). | ||
| 4 | + | ||
| 5 | +This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by email, following the instructions at CONTRIBUTING.md. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us. | ||
| 6 | + | ||
| 7 | +You are accepting this agreement by making a pull request to the repository. | ||
| 8 | + | ||
| 9 | +## 1. Definitions ## | ||
| 10 | + | ||
| 11 | +"You" means the individual who Submits a Contribution to Us. | ||
| 12 | + | ||
| 13 | +"Contribution" means any work of authorship that is Submitted by You to Us in which You own or assert ownership of the Copyright. If You do not own the Copyright in the entire work of authorship, please follow the instructions in CONTRIBUTING.md. | ||
| 14 | + | ||
| 15 | +"Copyright" means all rights protecting works of authorship owned or controlled by You, including copyright, moral and neighboring rights, as appropriate, for the full term of their existence including any extensions by You. | ||
| 16 | + | ||
| 17 | +"Material" means the work of authorship which is made available by Us to third parties. When this Agreement covers more than one software project, the Material means the work of authorship to which the Contribution was Submitted. After You Submit the Contribution, it may be included in the Material. | ||
| 18 | + | ||
| 19 | +"Submit" means any form of electronic, verbal, or written communication sent to Us or our representatives, including but not limited to electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Us for the purpose of discussing and improving the Material, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution." | ||
| 20 | + | ||
| 21 | +"Submission Date" means the date on which You Submit a Contribution to Us. | ||
| 22 | + | ||
| 23 | +"Effective Date" means the date You execute this Agreement or the date You first Submit a Contribution to Us, whichever is earlier. | ||
| 24 | + | ||
| 25 | +"Media" means any portion of a Contribution which is not software. | ||
| 26 | + | ||
| 27 | +## 2. Grant of Rights ## | ||
| 28 | + | ||
| 29 | +### 2.1 Copyright License ### | ||
| 30 | + | ||
| 31 | +(a) You retain ownership of the Copyright in Your Contribution and have the same rights to use or license the Contribution which You would have had without entering into the Agreement. | ||
| 32 | + | ||
| 33 | +(b) To the maximum extent permitted by the relevant law, You grant to Us a perpetual, worldwide, non-exclusive, transferable, royalty-free, irrevocable license under the Copyright covering the Contribution, with the right to sublicense such rights through multiple tiers of sublicensees, to reproduce, modify, display, perform and distribute the Contribution as part of the Material; provided that this license is conditioned upon compliance with Section 2.3. | ||
| 34 | + | ||
| 35 | +### 2.2 Patent License ### | ||
| 36 | + | ||
| 37 | +For patent claims including, without limitation, method, process, and apparatus claims which You own, control or have the right to grant, now or in the future, You grant to Us a perpetual, worldwide, non-exclusive, transferable, royalty-free, irrevocable patent license, with the right to sublicense these rights to multiple tiers of sublicensees, to make, have made, use, sell, offer for sale, import and otherwise transfer the Contribution and the Contribution in combination with the Material (and portions of such combination). This license is granted only to the extent that the exercise of the licensed rights infringes such patent claims; and provided that this license is conditioned upon compliance with Section 2.3. | ||
| 38 | + | ||
| 39 | +### 2.3 Outbound License ### | ||
| 40 | + | ||
| 41 | +As a condition on the grant of rights in Sections 2.1 and 2.2, We agree to license the Contribution only under the terms of the license or licenses which We are using on the Submission Date for the Material or any licenses on the Free Software Foundation's list of "Recommended copyleft licenses" on or after the Effective Date, whether or not such licenses are subsequently disapproved (including any right to adopt any future version of a license if permitted). | ||
| 42 | + | ||
| 43 | +In addition, We may use the following licenses for Media in the Contribution: Creative Commons Attribution Share Alike 3.0 (including any right to adopt any future version of a license if permitted). | ||
| 44 | + | ||
| 45 | +**2.4 Moral Rights.** If moral rights apply to the Contribution, to the maximum extent permitted by law, You waive and agree not to assert such moral rights against Us or our successors in interest, or any of our licensees, either direct or indirect. | ||
| 46 | + | ||
| 47 | +**2.5 Our Rights.** You acknowledge that We are not obligated to use Your Contribution as part of the Material and may decide to include any Contribution We consider appropriate. | ||
| 48 | + | ||
| 49 | +**2.6 Reservation of Rights.** Any rights not expressly licensed under this section are expressly reserved by You. | ||
| 50 | + | ||
| 51 | +## 3. Agreement ## | ||
| 52 | + | ||
| 53 | +You confirm that: | ||
| 54 | + | ||
| 55 | +(a) You have the legal authority to enter into this Agreement. | ||
| 56 | + | ||
| 57 | +(b) You own the Copyright and patent claims covering the Contribution which are required to grant the rights under Section 2. | ||
| 58 | + | ||
| 59 | +(c) The grant of rights under Section 2 does not violate any grant of rights which You have made to third parties, including Your employer. If You are an employee, You have had Your employer approve this Agreement or sign the Entity version of this document. If You are less than eighteen years old, please have Your parents or guardian sign the Agreement. | ||
| 60 | + | ||
| 61 | +(d) You have followed the instructions in CONTRIBUTING.md, if You do not own the Copyright in the entire work of authorship Submitted. | ||
| 62 | + | ||
| 63 | +## 4. Disclaimer ## | ||
| 64 | + | ||
| 65 | +EXCEPT FOR THE EXPRESS WARRANTIES IN SECTION 3, THE CONTRIBUTION IS PROVIDED "AS IS". MORE PARTICULARLY, ALL EXPRESS OR IMPLIED WARRANTIES INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY DISCLAIMED BY YOU TO US. TO THE EXTENT THAT ANY SUCH WARRANTIES CANNOT BE DISCLAIMED, SUCH WARRANTY IS LIMITED IN DURATION TO THE MINIMUM PERIOD PERMITTED BY LAW. | ||
| 66 | + | ||
| 67 | +## 5. Consequential Damage Waiver ## | ||
| 68 | + | ||
| 69 | +TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL YOU BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF ANTICIPATED SAVINGS, LOSS OF DATA, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL AND EXEMPLARY DAMAGES ARISING OUT OF THIS AGREEMENT REGARDLESS OF THE LEGAL OR EQUITABLE THEORY (CONTRACT, TORT OR OTHERWISE) UPON WHICH THE CLAIM IS BASED. | ||
| 70 | + | ||
| 71 | +## 6. Miscellaneous ## | ||
| 72 | + | ||
| 73 | +6.1 This Agreement will be governed by and construed in accordance with the laws of Argentina excluding its conflicts of law provisions. Under certain circumstances, the governing law in this section might be superseded by the United Nations Convention on Contracts for the International Sale of Goods ("UN Convention") and the parties intend to avoid the application of the UN Convention to this Agreement and, thus, exclude the application of the UN Convention in its entirety to this Agreement. | ||
| 74 | + | ||
| 75 | +6.2 This Agreement sets out the entire agreement between You and Us for Your Contributions to Us and overrides all other agreements or understandings. | ||
| 76 | + | ||
| 77 | +6.3 If You or We assign the rights or obligations received through this Agreement to a third party, as a condition of the assignment, that third party must agree in writing to abide by all the rights and obligations in the Agreement. | ||
| 78 | + | ||
| 79 | +6.4 The failure of either party to require performance by the other party of any provision of this Agreement in one situation shall not affect the right of a party to require such performance at any time in the future. A waiver of performance under a provision in one situation shall not be considered a waiver of the performance of the provision in the future or a waiver of the provision in its entirety. | ||
| 80 | + | ||
| 81 | +6.5 If any provision of this Agreement is found void and unenforceable, such provision will be replaced to the extent possible with a provision that comes closest to the meaning of the original provision and which is enforceable. The terms and conditions set forth in this Agreement shall apply notwithstanding any failure of essential purpose of this Agreement or any limited remedy to the maximum extent possible under law. |
COPYING
0 → 100644
| 1 | + GNU GENERAL PUBLIC LICENSE | ||
| 2 | + Version 3, 29 June 2007 | ||
| 3 | + | ||
| 4 | + Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> | ||
| 5 | + Everyone is permitted to copy and distribute verbatim copies | ||
| 6 | + of this license document, but changing it is not allowed. | ||
| 7 | + | ||
| 8 | + Preamble | ||
| 9 | + | ||
| 10 | + The GNU General Public License is a free, copyleft license for | ||
| 11 | +software and other kinds of works. | ||
| 12 | + | ||
| 13 | + The licenses for most software and other practical works are designed | ||
| 14 | +to take away your freedom to share and change the works. By contrast, | ||
| 15 | +the GNU General Public License is intended to guarantee your freedom to | ||
| 16 | +share and change all versions of a program--to make sure it remains free | ||
| 17 | +software for all its users. We, the Free Software Foundation, use the | ||
| 18 | +GNU General Public License for most of our software; it applies also to | ||
| 19 | +any other work released this way by its authors. You can apply it to | ||
| 20 | +your programs, too. | ||
| 21 | + | ||
| 22 | + When we speak of free software, we are referring to freedom, not | ||
| 23 | +price. Our General Public Licenses are designed to make sure that you | ||
| 24 | +have the freedom to distribute copies of free software (and charge for | ||
| 25 | +them if you wish), that you receive source code or can get it if you | ||
| 26 | +want it, that you can change the software or use pieces of it in new | ||
| 27 | +free programs, and that you know you can do these things. | ||
| 28 | + | ||
| 29 | + To protect your rights, we need to prevent others from denying you | ||
| 30 | +these rights or asking you to surrender the rights. Therefore, you have | ||
| 31 | +certain responsibilities if you distribute copies of the software, or if | ||
| 32 | +you modify it: responsibilities to respect the freedom of others. | ||
| 33 | + | ||
| 34 | + For example, if you distribute copies of such a program, whether | ||
| 35 | +gratis or for a fee, you must pass on to the recipients the same | ||
| 36 | +freedoms that you received. You must make sure that they, too, receive | ||
| 37 | +or can get the source code. And you must show them these terms so they | ||
| 38 | +know their rights. | ||
| 39 | + | ||
| 40 | + Developers that use the GNU GPL protect your rights with two steps: | ||
| 41 | +(1) assert copyright on the software, and (2) offer you this License | ||
| 42 | +giving you legal permission to copy, distribute and/or modify it. | ||
| 43 | + | ||
| 44 | + For the developers' and authors' protection, the GPL clearly explains | ||
| 45 | +that there is no warranty for this free software. For both users' and | ||
| 46 | +authors' sake, the GPL requires that modified versions be marked as | ||
| 47 | +changed, so that their problems will not be attributed erroneously to | ||
| 48 | +authors of previous versions. | ||
| 49 | + | ||
| 50 | + Some devices are designed to deny users access to install or run | ||
| 51 | +modified versions of the software inside them, although the manufacturer | ||
| 52 | +can do so. This is fundamentally incompatible with the aim of | ||
| 53 | +protecting users' freedom to change the software. The systematic | ||
| 54 | +pattern of such abuse occurs in the area of products for individuals to | ||
| 55 | +use, which is precisely where it is most unacceptable. Therefore, we | ||
| 56 | +have designed this version of the GPL to prohibit the practice for those | ||
| 57 | +products. If such problems arise substantially in other domains, we | ||
| 58 | +stand ready to extend this provision to those domains in future versions | ||
| 59 | +of the GPL, as needed to protect the freedom of users. | ||
| 60 | + | ||
| 61 | + Finally, every program is threatened constantly by software patents. | ||
| 62 | +States should not allow patents to restrict development and use of | ||
| 63 | +software on general-purpose computers, but in those that do, we wish to | ||
| 64 | +avoid the special danger that patents applied to a free program could | ||
| 65 | +make it effectively proprietary. To prevent this, the GPL assures that | ||
| 66 | +patents cannot be used to render the program non-free. | ||
| 67 | + | ||
| 68 | + The precise terms and conditions for copying, distribution and | ||
| 69 | +modification follow. | ||
| 70 | + | ||
| 71 | + TERMS AND CONDITIONS | ||
| 72 | + | ||
| 73 | + 0. Definitions. | ||
| 74 | + | ||
| 75 | + "This License" refers to version 3 of the GNU General Public License. | ||
| 76 | + | ||
| 77 | + "Copyright" also means copyright-like laws that apply to other kinds of | ||
| 78 | +works, such as semiconductor masks. | ||
| 79 | + | ||
| 80 | + "The Program" refers to any copyrightable work licensed under this | ||
| 81 | +License. Each licensee is addressed as "you". "Licensees" and | ||
| 82 | +"recipients" may be individuals or organizations. | ||
| 83 | + | ||
| 84 | + To "modify" a work means to copy from or adapt all or part of the work | ||
| 85 | +in a fashion requiring copyright permission, other than the making of an | ||
| 86 | +exact copy. The resulting work is called a "modified version" of the | ||
| 87 | +earlier work or a work "based on" the earlier work. | ||
| 88 | + | ||
| 89 | + A "covered work" means either the unmodified Program or a work based | ||
| 90 | +on the Program. | ||
| 91 | + | ||
| 92 | + To "propagate" a work means to do anything with it that, without | ||
| 93 | +permission, would make you directly or secondarily liable for | ||
| 94 | +infringement under applicable copyright law, except executing it on a | ||
| 95 | +computer or modifying a private copy. Propagation includes copying, | ||
| 96 | +distribution (with or without modification), making available to the | ||
| 97 | +public, and in some countries other activities as well. | ||
| 98 | + | ||
| 99 | + To "convey" a work means any kind of propagation that enables other | ||
| 100 | +parties to make or receive copies. Mere interaction with a user through | ||
| 101 | +a computer network, with no transfer of a copy, is not conveying. | ||
| 102 | + | ||
| 103 | + An interactive user interface displays "Appropriate Legal Notices" | ||
| 104 | +to the extent that it includes a convenient and prominently visible | ||
| 105 | +feature that (1) displays an appropriate copyright notice, and (2) | ||
| 106 | +tells the user that there is no warranty for the work (except to the | ||
| 107 | +extent that warranties are provided), that licensees may convey the | ||
| 108 | +work under this License, and how to view a copy of this License. If | ||
| 109 | +the interface presents a list of user commands or options, such as a | ||
| 110 | +menu, a prominent item in the list meets this criterion. | ||
| 111 | + | ||
| 112 | + 1. Source Code. | ||
| 113 | + | ||
| 114 | + The "source code" for a work means the preferred form of the work | ||
| 115 | +for making modifications to it. "Object code" means any non-source | ||
| 116 | +form of a work. | ||
| 117 | + | ||
| 118 | + A "Standard Interface" means an interface that either is an official | ||
| 119 | +standard defined by a recognized standards body, or, in the case of | ||
| 120 | +interfaces specified for a particular programming language, one that | ||
| 121 | +is widely used among developers working in that language. | ||
| 122 | + | ||
| 123 | + The "System Libraries" of an executable work include anything, other | ||
| 124 | +than the work as a whole, that (a) is included in the normal form of | ||
| 125 | +packaging a Major Component, but which is not part of that Major | ||
| 126 | +Component, and (b) serves only to enable use of the work with that | ||
| 127 | +Major Component, or to implement a Standard Interface for which an | ||
| 128 | +implementation is available to the public in source code form. A | ||
| 129 | +"Major Component", in this context, means a major essential component | ||
| 130 | +(kernel, window system, and so on) of the specific operating system | ||
| 131 | +(if any) on which the executable work runs, or a compiler used to | ||
| 132 | +produce the work, or an object code interpreter used to run it. | ||
| 133 | + | ||
| 134 | + The "Corresponding Source" for a work in object code form means all | ||
| 135 | +the source code needed to generate, install, and (for an executable | ||
| 136 | +work) run the object code and to modify the work, including scripts to | ||
| 137 | +control those activities. However, it does not include the work's | ||
| 138 | +System Libraries, or general-purpose tools or generally available free | ||
| 139 | +programs which are used unmodified in performing those activities but | ||
| 140 | +which are not part of the work. For example, Corresponding Source | ||
| 141 | +includes interface definition files associated with source files for | ||
| 142 | +the work, and the source code for shared libraries and dynamically | ||
| 143 | +linked subprograms that the work is specifically designed to require, | ||
| 144 | +such as by intimate data communication or control flow between those | ||
| 145 | +subprograms and other parts of the work. | ||
| 146 | + | ||
| 147 | + The Corresponding Source need not include anything that users | ||
| 148 | +can regenerate automatically from other parts of the Corresponding | ||
| 149 | +Source. | ||
| 150 | + | ||
| 151 | + The Corresponding Source for a work in source code form is that | ||
| 152 | +same work. | ||
| 153 | + | ||
| 154 | + 2. Basic Permissions. | ||
| 155 | + | ||
| 156 | + All rights granted under this License are granted for the term of | ||
| 157 | +copyright on the Program, and are irrevocable provided the stated | ||
| 158 | +conditions are met. This License explicitly affirms your unlimited | ||
| 159 | +permission to run the unmodified Program. The output from running a | ||
| 160 | +covered work is covered by this License only if the output, given its | ||
| 161 | +content, constitutes a covered work. This License acknowledges your | ||
| 162 | +rights of fair use or other equivalent, as provided by copyright law. | ||
| 163 | + | ||
| 164 | + You may make, run and propagate covered works that you do not | ||
| 165 | +convey, without conditions so long as your license otherwise remains | ||
| 166 | +in force. You may convey covered works to others for the sole purpose | ||
| 167 | +of having them make modifications exclusively for you, or provide you | ||
| 168 | +with facilities for running those works, provided that you comply with | ||
| 169 | +the terms of this License in conveying all material for which you do | ||
| 170 | +not control copyright. Those thus making or running the covered works | ||
| 171 | +for you must do so exclusively on your behalf, under your direction | ||
| 172 | +and control, on terms that prohibit them from making any copies of | ||
| 173 | +your copyrighted material outside their relationship with you. | ||
| 174 | + | ||
| 175 | + Conveying under any other circumstances is permitted solely under | ||
| 176 | +the conditions stated below. Sublicensing is not allowed; section 10 | ||
| 177 | +makes it unnecessary. | ||
| 178 | + | ||
| 179 | + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | ||
| 180 | + | ||
| 181 | + No covered work shall be deemed part of an effective technological | ||
| 182 | +measure under any applicable law fulfilling obligations under article | ||
| 183 | +11 of the WIPO copyright treaty adopted on 20 December 1996, or | ||
| 184 | +similar laws prohibiting or restricting circumvention of such | ||
| 185 | +measures. | ||
| 186 | + | ||
| 187 | + When you convey a covered work, you waive any legal power to forbid | ||
| 188 | +circumvention of technological measures to the extent such circumvention | ||
| 189 | +is effected by exercising rights under this License with respect to | ||
| 190 | +the covered work, and you disclaim any intention to limit operation or | ||
| 191 | +modification of the work as a means of enforcing, against the work's | ||
| 192 | +users, your or third parties' legal rights to forbid circumvention of | ||
| 193 | +technological measures. | ||
| 194 | + | ||
| 195 | + 4. Conveying Verbatim Copies. | ||
| 196 | + | ||
| 197 | + You may convey verbatim copies of the Program's source code as you | ||
| 198 | +receive it, in any medium, provided that you conspicuously and | ||
| 199 | +appropriately publish on each copy an appropriate copyright notice; | ||
| 200 | +keep intact all notices stating that this License and any | ||
| 201 | +non-permissive terms added in accord with section 7 apply to the code; | ||
| 202 | +keep intact all notices of the absence of any warranty; and give all | ||
| 203 | +recipients a copy of this License along with the Program. | ||
| 204 | + | ||
| 205 | + You may charge any price or no price for each copy that you convey, | ||
| 206 | +and you may offer support or warranty protection for a fee. | ||
| 207 | + | ||
| 208 | + 5. Conveying Modified Source Versions. | ||
| 209 | + | ||
| 210 | + You may convey a work based on the Program, or the modifications to | ||
| 211 | +produce it from the Program, in the form of source code under the | ||
| 212 | +terms of section 4, provided that you also meet all of these conditions: | ||
| 213 | + | ||
| 214 | + a) The work must carry prominent notices stating that you modified | ||
| 215 | + it, and giving a relevant date. | ||
| 216 | + | ||
| 217 | + b) The work must carry prominent notices stating that it is | ||
| 218 | + released under this License and any conditions added under section | ||
| 219 | + 7. This requirement modifies the requirement in section 4 to | ||
| 220 | + "keep intact all notices". | ||
| 221 | + | ||
| 222 | + c) You must license the entire work, as a whole, under this | ||
| 223 | + License to anyone who comes into possession of a copy. This | ||
| 224 | + License will therefore apply, along with any applicable section 7 | ||
| 225 | + additional terms, to the whole of the work, and all its parts, | ||
| 226 | + regardless of how they are packaged. This License gives no | ||
| 227 | + permission to license the work in any other way, but it does not | ||
| 228 | + invalidate such permission if you have separately received it. | ||
| 229 | + | ||
| 230 | + d) If the work has interactive user interfaces, each must display | ||
| 231 | + Appropriate Legal Notices; however, if the Program has interactive | ||
| 232 | + interfaces that do not display Appropriate Legal Notices, your | ||
| 233 | + work need not make them do so. | ||
| 234 | + | ||
| 235 | + A compilation of a covered work with other separate and independent | ||
| 236 | +works, which are not by their nature extensions of the covered work, | ||
| 237 | +and which are not combined with it such as to form a larger program, | ||
| 238 | +in or on a volume of a storage or distribution medium, is called an | ||
| 239 | +"aggregate" if the compilation and its resulting copyright are not | ||
| 240 | +used to limit the access or legal rights of the compilation's users | ||
| 241 | +beyond what the individual works permit. Inclusion of a covered work | ||
| 242 | +in an aggregate does not cause this License to apply to the other | ||
| 243 | +parts of the aggregate. | ||
| 244 | + | ||
| 245 | + 6. Conveying Non-Source Forms. | ||
| 246 | + | ||
| 247 | + You may convey a covered work in object code form under the terms | ||
| 248 | +of sections 4 and 5, provided that you also convey the | ||
| 249 | +machine-readable Corresponding Source under the terms of this License, | ||
| 250 | +in one of these ways: | ||
| 251 | + | ||
| 252 | + a) Convey the object code in, or embodied in, a physical product | ||
| 253 | + (including a physical distribution medium), accompanied by the | ||
| 254 | + Corresponding Source fixed on a durable physical medium | ||
| 255 | + customarily used for software interchange. | ||
| 256 | + | ||
| 257 | + b) Convey the object code in, or embodied in, a physical product | ||
| 258 | + (including a physical distribution medium), accompanied by a | ||
| 259 | + written offer, valid for at least three years and valid for as | ||
| 260 | + long as you offer spare parts or customer support for that product | ||
| 261 | + model, to give anyone who possesses the object code either (1) a | ||
| 262 | + copy of the Corresponding Source for all the software in the | ||
| 263 | + product that is covered by this License, on a durable physical | ||
| 264 | + medium customarily used for software interchange, for a price no | ||
| 265 | + more than your reasonable cost of physically performing this | ||
| 266 | + conveying of source, or (2) access to copy the | ||
| 267 | + Corresponding Source from a network server at no charge. | ||
| 268 | + | ||
| 269 | + c) Convey individual copies of the object code with a copy of the | ||
| 270 | + written offer to provide the Corresponding Source. This | ||
| 271 | + alternative is allowed only occasionally and noncommercially, and | ||
| 272 | + only if you received the object code with such an offer, in accord | ||
| 273 | + with subsection 6b. | ||
| 274 | + | ||
| 275 | + d) Convey the object code by offering access from a designated | ||
| 276 | + place (gratis or for a charge), and offer equivalent access to the | ||
| 277 | + Corresponding Source in the same way through the same place at no | ||
| 278 | + further charge. You need not require recipients to copy the | ||
| 279 | + Corresponding Source along with the object code. If the place to | ||
| 280 | + copy the object code is a network server, the Corresponding Source | ||
| 281 | + may be on a different server (operated by you or a third party) | ||
| 282 | + that supports equivalent copying facilities, provided you maintain | ||
| 283 | + clear directions next to the object code saying where to find the | ||
| 284 | + Corresponding Source. Regardless of what server hosts the | ||
| 285 | + Corresponding Source, you remain obligated to ensure that it is | ||
| 286 | + available for as long as needed to satisfy these requirements. | ||
| 287 | + | ||
| 288 | + e) Convey the object code using peer-to-peer transmission, provided | ||
| 289 | + you inform other peers where the object code and Corresponding | ||
| 290 | + Source of the work are being offered to the general public at no | ||
| 291 | + charge under subsection 6d. | ||
| 292 | + | ||
| 293 | + A separable portion of the object code, whose source code is excluded | ||
| 294 | +from the Corresponding Source as a System Library, need not be | ||
| 295 | +included in conveying the object code work. | ||
| 296 | + | ||
| 297 | + A "User Product" is either (1) a "consumer product", which means any | ||
| 298 | +tangible personal property which is normally used for personal, family, | ||
| 299 | +or household purposes, or (2) anything designed or sold for incorporation | ||
| 300 | +into a dwelling. In determining whether a product is a consumer product, | ||
| 301 | +doubtful cases shall be resolved in favor of coverage. For a particular | ||
| 302 | +product received by a particular user, "normally used" refers to a | ||
| 303 | +typical or common use of that class of product, regardless of the status | ||
| 304 | +of the particular user or of the way in which the particular user | ||
| 305 | +actually uses, or expects or is expected to use, the product. A product | ||
| 306 | +is a consumer product regardless of whether the product has substantial | ||
| 307 | +commercial, industrial or non-consumer uses, unless such uses represent | ||
| 308 | +the only significant mode of use of the product. | ||
| 309 | + | ||
| 310 | + "Installation Information" for a User Product means any methods, | ||
| 311 | +procedures, authorization keys, or other information required to install | ||
| 312 | +and execute modified versions of a covered work in that User Product from | ||
| 313 | +a modified version of its Corresponding Source. The information must | ||
| 314 | +suffice to ensure that the continued functioning of the modified object | ||
| 315 | +code is in no case prevented or interfered with solely because | ||
| 316 | +modification has been made. | ||
| 317 | + | ||
| 318 | + If you convey an object code work under this section in, or with, or | ||
| 319 | +specifically for use in, a User Product, and the conveying occurs as | ||
| 320 | +part of a transaction in which the right of possession and use of the | ||
| 321 | +User Product is transferred to the recipient in perpetuity or for a | ||
| 322 | +fixed term (regardless of how the transaction is characterized), the | ||
| 323 | +Corresponding Source conveyed under this section must be accompanied | ||
| 324 | +by the Installation Information. But this requirement does not apply | ||
| 325 | +if neither you nor any third party retains the ability to install | ||
| 326 | +modified object code on the User Product (for example, the work has | ||
| 327 | +been installed in ROM). | ||
| 328 | + | ||
| 329 | + The requirement to provide Installation Information does not include a | ||
| 330 | +requirement to continue to provide support service, warranty, or updates | ||
| 331 | +for a work that has been modified or installed by the recipient, or for | ||
| 332 | +the User Product in which it has been modified or installed. Access to a | ||
| 333 | +network may be denied when the modification itself materially and | ||
| 334 | +adversely affects the operation of the network or violates the rules and | ||
| 335 | +protocols for communication across the network. | ||
| 336 | + | ||
| 337 | + Corresponding Source conveyed, and Installation Information provided, | ||
| 338 | +in accord with this section must be in a format that is publicly | ||
| 339 | +documented (and with an implementation available to the public in | ||
| 340 | +source code form), and must require no special password or key for | ||
| 341 | +unpacking, reading or copying. | ||
| 342 | + | ||
| 343 | + 7. Additional Terms. | ||
| 344 | + | ||
| 345 | + "Additional permissions" are terms that supplement the terms of this | ||
| 346 | +License by making exceptions from one or more of its conditions. | ||
| 347 | +Additional permissions that are applicable to the entire Program shall | ||
| 348 | +be treated as though they were included in this License, to the extent | ||
| 349 | +that they are valid under applicable law. If additional permissions | ||
| 350 | +apply only to part of the Program, that part may be used separately | ||
| 351 | +under those permissions, but the entire Program remains governed by | ||
| 352 | +this License without regard to the additional permissions. | ||
| 353 | + | ||
| 354 | + When you convey a copy of a covered work, you may at your option | ||
| 355 | +remove any additional permissions from that copy, or from any part of | ||
| 356 | +it. (Additional permissions may be written to require their own | ||
| 357 | +removal in certain cases when you modify the work.) You may place | ||
| 358 | +additional permissions on material, added by you to a covered work, | ||
| 359 | +for which you have or can give appropriate copyright permission. | ||
| 360 | + | ||
| 361 | + Notwithstanding any other provision of this License, for material you | ||
| 362 | +add to a covered work, you may (if authorized by the copyright holders of | ||
| 363 | +that material) supplement the terms of this License with terms: | ||
| 364 | + | ||
| 365 | + a) Disclaiming warranty or limiting liability differently from the | ||
| 366 | + terms of sections 15 and 16 of this License; or | ||
| 367 | + | ||
| 368 | + b) Requiring preservation of specified reasonable legal notices or | ||
| 369 | + author attributions in that material or in the Appropriate Legal | ||
| 370 | + Notices displayed by works containing it; or | ||
| 371 | + | ||
| 372 | + c) Prohibiting misrepresentation of the origin of that material, or | ||
| 373 | + requiring that modified versions of such material be marked in | ||
| 374 | + reasonable ways as different from the original version; or | ||
| 375 | + | ||
| 376 | + d) Limiting the use for publicity purposes of names of licensors or | ||
| 377 | + authors of the material; or | ||
| 378 | + | ||
| 379 | + e) Declining to grant rights under trademark law for use of some | ||
| 380 | + trade names, trademarks, or service marks; or | ||
| 381 | + | ||
| 382 | + f) Requiring indemnification of licensors and authors of that | ||
| 383 | + material by anyone who conveys the material (or modified versions of | ||
| 384 | + it) with contractual assumptions of liability to the recipient, for | ||
| 385 | + any liability that these contractual assumptions directly impose on | ||
| 386 | + those licensors and authors. | ||
| 387 | + | ||
| 388 | + All other non-permissive additional terms are considered "further | ||
| 389 | +restrictions" within the meaning of section 10. If the Program as you | ||
| 390 | +received it, or any part of it, contains a notice stating that it is | ||
| 391 | +governed by this License along with a term that is a further | ||
| 392 | +restriction, you may remove that term. If a license document contains | ||
| 393 | +a further restriction but permits relicensing or conveying under this | ||
| 394 | +License, you may add to a covered work material governed by the terms | ||
| 395 | +of that license document, provided that the further restriction does | ||
| 396 | +not survive such relicensing or conveying. | ||
| 397 | + | ||
| 398 | + If you add terms to a covered work in accord with this section, you | ||
| 399 | +must place, in the relevant source files, a statement of the | ||
| 400 | +additional terms that apply to those files, or a notice indicating | ||
| 401 | +where to find the applicable terms. | ||
| 402 | + | ||
| 403 | + Additional terms, permissive or non-permissive, may be stated in the | ||
| 404 | +form of a separately written license, or stated as exceptions; | ||
| 405 | +the above requirements apply either way. | ||
| 406 | + | ||
| 407 | + 8. Termination. | ||
| 408 | + | ||
| 409 | + You may not propagate or modify a covered work except as expressly | ||
| 410 | +provided under this License. Any attempt otherwise to propagate or | ||
| 411 | +modify it is void, and will automatically terminate your rights under | ||
| 412 | +this License (including any patent licenses granted under the third | ||
| 413 | +paragraph of section 11). | ||
| 414 | + | ||
| 415 | + However, if you cease all violation of this License, then your | ||
| 416 | +license from a particular copyright holder is reinstated (a) | ||
| 417 | +provisionally, unless and until the copyright holder explicitly and | ||
| 418 | +finally terminates your license, and (b) permanently, if the copyright | ||
| 419 | +holder fails to notify you of the violation by some reasonable means | ||
| 420 | +prior to 60 days after the cessation. | ||
| 421 | + | ||
| 422 | + Moreover, your license from a particular copyright holder is | ||
| 423 | +reinstated permanently if the copyright holder notifies you of the | ||
| 424 | +violation by some reasonable means, this is the first time you have | ||
| 425 | +received notice of violation of this License (for any work) from that | ||
| 426 | +copyright holder, and you cure the violation prior to 30 days after | ||
| 427 | +your receipt of the notice. | ||
| 428 | + | ||
| 429 | + Termination of your rights under this section does not terminate the | ||
| 430 | +licenses of parties who have received copies or rights from you under | ||
| 431 | +this License. If your rights have been terminated and not permanently | ||
| 432 | +reinstated, you do not qualify to receive new licenses for the same | ||
| 433 | +material under section 10. | ||
| 434 | + | ||
| 435 | + 9. Acceptance Not Required for Having Copies. | ||
| 436 | + | ||
| 437 | + You are not required to accept this License in order to receive or | ||
| 438 | +run a copy of the Program. Ancillary propagation of a covered work | ||
| 439 | +occurring solely as a consequence of using peer-to-peer transmission | ||
| 440 | +to receive a copy likewise does not require acceptance. However, | ||
| 441 | +nothing other than this License grants you permission to propagate or | ||
| 442 | +modify any covered work. These actions infringe copyright if you do | ||
| 443 | +not accept this License. Therefore, by modifying or propagating a | ||
| 444 | +covered work, you indicate your acceptance of this License to do so. | ||
| 445 | + | ||
| 446 | + 10. Automatic Licensing of Downstream Recipients. | ||
| 447 | + | ||
| 448 | + Each time you convey a covered work, the recipient automatically | ||
| 449 | +receives a license from the original licensors, to run, modify and | ||
| 450 | +propagate that work, subject to this License. You are not responsible | ||
| 451 | +for enforcing compliance by third parties with this License. | ||
| 452 | + | ||
| 453 | + An "entity transaction" is a transaction transferring control of an | ||
| 454 | +organization, or substantially all assets of one, or subdividing an | ||
| 455 | +organization, or merging organizations. If propagation of a covered | ||
| 456 | +work results from an entity transaction, each party to that | ||
| 457 | +transaction who receives a copy of the work also receives whatever | ||
| 458 | +licenses to the work the party's predecessor in interest had or could | ||
| 459 | +give under the previous paragraph, plus a right to possession of the | ||
| 460 | +Corresponding Source of the work from the predecessor in interest, if | ||
| 461 | +the predecessor has it or can get it with reasonable efforts. | ||
| 462 | + | ||
| 463 | + You may not impose any further restrictions on the exercise of the | ||
| 464 | +rights granted or affirmed under this License. For example, you may | ||
| 465 | +not impose a license fee, royalty, or other charge for exercise of | ||
| 466 | +rights granted under this License, and you may not initiate litigation | ||
| 467 | +(including a cross-claim or counterclaim in a lawsuit) alleging that | ||
| 468 | +any patent claim is infringed by making, using, selling, offering for | ||
| 469 | +sale, or importing the Program or any portion of it. | ||
| 470 | + | ||
| 471 | + 11. Patents. | ||
| 472 | + | ||
| 473 | + A "contributor" is a copyright holder who authorizes use under this | ||
| 474 | +License of the Program or a work on which the Program is based. The | ||
| 475 | +work thus licensed is called the contributor's "contributor version". | ||
| 476 | + | ||
| 477 | + A contributor's "essential patent claims" are all patent claims | ||
| 478 | +owned or controlled by the contributor, whether already acquired or | ||
| 479 | +hereafter acquired, that would be infringed by some manner, permitted | ||
| 480 | +by this License, of making, using, or selling its contributor version, | ||
| 481 | +but do not include claims that would be infringed only as a | ||
| 482 | +consequence of further modification of the contributor version. For | ||
| 483 | +purposes of this definition, "control" includes the right to grant | ||
| 484 | +patent sublicenses in a manner consistent with the requirements of | ||
| 485 | +this License. | ||
| 486 | + | ||
| 487 | + Each contributor grants you a non-exclusive, worldwide, royalty-free | ||
| 488 | +patent license under the contributor's essential patent claims, to | ||
| 489 | +make, use, sell, offer for sale, import and otherwise run, modify and | ||
| 490 | +propagate the contents of its contributor version. | ||
| 491 | + | ||
| 492 | + In the following three paragraphs, a "patent license" is any express | ||
| 493 | +agreement or commitment, however denominated, not to enforce a patent | ||
| 494 | +(such as an express permission to practice a patent or covenant not to | ||
| 495 | +sue for patent infringement). To "grant" such a patent license to a | ||
| 496 | +party means to make such an agreement or commitment not to enforce a | ||
| 497 | +patent against the party. | ||
| 498 | + | ||
| 499 | + If you convey a covered work, knowingly relying on a patent license, | ||
| 500 | +and the Corresponding Source of the work is not available for anyone | ||
| 501 | +to copy, free of charge and under the terms of this License, through a | ||
| 502 | +publicly available network server or other readily accessible means, | ||
| 503 | +then you must either (1) cause the Corresponding Source to be so | ||
| 504 | +available, or (2) arrange to deprive yourself of the benefit of the | ||
| 505 | +patent license for this particular work, or (3) arrange, in a manner | ||
| 506 | +consistent with the requirements of this License, to extend the patent | ||
| 507 | +license to downstream recipients. "Knowingly relying" means you have | ||
| 508 | +actual knowledge that, but for the patent license, your conveying the | ||
| 509 | +covered work in a country, or your recipient's use of the covered work | ||
| 510 | +in a country, would infringe one or more identifiable patents in that | ||
| 511 | +country that you have reason to believe are valid. | ||
| 512 | + | ||
| 513 | + If, pursuant to or in connection with a single transaction or | ||
| 514 | +arrangement, you convey, or propagate by procuring conveyance of, a | ||
| 515 | +covered work, and grant a patent license to some of the parties | ||
| 516 | +receiving the covered work authorizing them to use, propagate, modify | ||
| 517 | +or convey a specific copy of the covered work, then the patent license | ||
| 518 | +you grant is automatically extended to all recipients of the covered | ||
| 519 | +work and works based on it. | ||
| 520 | + | ||
| 521 | + A patent license is "discriminatory" if it does not include within | ||
| 522 | +the scope of its coverage, prohibits the exercise of, or is | ||
| 523 | +conditioned on the non-exercise of one or more of the rights that are | ||
| 524 | +specifically granted under this License. You may not convey a covered | ||
| 525 | +work if you are a party to an arrangement with a third party that is | ||
| 526 | +in the business of distributing software, under which you make payment | ||
| 527 | +to the third party based on the extent of your activity of conveying | ||
| 528 | +the work, and under which the third party grants, to any of the | ||
| 529 | +parties who would receive the covered work from you, a discriminatory | ||
| 530 | +patent license (a) in connection with copies of the covered work | ||
| 531 | +conveyed by you (or copies made from those copies), or (b) primarily | ||
| 532 | +for and in connection with specific products or compilations that | ||
| 533 | +contain the covered work, unless you entered into that arrangement, | ||
| 534 | +or that patent license was granted, prior to 28 March 2007. | ||
| 535 | + | ||
| 536 | + Nothing in this License shall be construed as excluding or limiting | ||
| 537 | +any implied license or other defenses to infringement that may | ||
| 538 | +otherwise be available to you under applicable patent law. | ||
| 539 | + | ||
| 540 | + 12. No Surrender of Others' Freedom. | ||
| 541 | + | ||
| 542 | + If conditions are imposed on you (whether by court order, agreement or | ||
| 543 | +otherwise) that contradict the conditions of this License, they do not | ||
| 544 | +excuse you from the conditions of this License. If you cannot convey a | ||
| 545 | +covered work so as to satisfy simultaneously your obligations under this | ||
| 546 | +License and any other pertinent obligations, then as a consequence you may | ||
| 547 | +not convey it at all. For example, if you agree to terms that obligate you | ||
| 548 | +to collect a royalty for further conveying from those to whom you convey | ||
| 549 | +the Program, the only way you could satisfy both those terms and this | ||
| 550 | +License would be to refrain entirely from conveying the Program. | ||
| 551 | + | ||
| 552 | + 13. Use with the GNU Affero General Public License. | ||
| 553 | + | ||
| 554 | + Notwithstanding any other provision of this License, you have | ||
| 555 | +permission to link or combine any covered work with a work licensed | ||
| 556 | +under version 3 of the GNU Affero General Public License into a single | ||
| 557 | +combined work, and to convey the resulting work. The terms of this | ||
| 558 | +License will continue to apply to the part which is the covered work, | ||
| 559 | +but the special requirements of the GNU Affero General Public License, | ||
| 560 | +section 13, concerning interaction through a network will apply to the | ||
| 561 | +combination as such. | ||
| 562 | + | ||
| 563 | + 14. Revised Versions of this License. | ||
| 564 | + | ||
| 565 | + The Free Software Foundation may publish revised and/or new versions of | ||
| 566 | +the GNU General Public License from time to time. Such new versions will | ||
| 567 | +be similar in spirit to the present version, but may differ in detail to | ||
| 568 | +address new problems or concerns. | ||
| 569 | + | ||
| 570 | + Each version is given a distinguishing version number. If the | ||
| 571 | +Program specifies that a certain numbered version of the GNU General | ||
| 572 | +Public License "or any later version" applies to it, you have the | ||
| 573 | +option of following the terms and conditions either of that numbered | ||
| 574 | +version or of any later version published by the Free Software | ||
| 575 | +Foundation. If the Program does not specify a version number of the | ||
| 576 | +GNU General Public License, you may choose any version ever published | ||
| 577 | +by the Free Software Foundation. | ||
| 578 | + | ||
| 579 | + If the Program specifies that a proxy can decide which future | ||
| 580 | +versions of the GNU General Public License can be used, that proxy's | ||
| 581 | +public statement of acceptance of a version permanently authorizes you | ||
| 582 | +to choose that version for the Program. | ||
| 583 | + | ||
| 584 | + Later license versions may give you additional or different | ||
| 585 | +permissions. However, no additional obligations are imposed on any | ||
| 586 | +author or copyright holder as a result of your choosing to follow a | ||
| 587 | +later version. | ||
| 588 | + | ||
| 589 | + 15. Disclaimer of Warranty. | ||
| 590 | + | ||
| 591 | + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | ||
| 592 | +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | ||
| 593 | +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | ||
| 594 | +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | ||
| 595 | +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 596 | +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | ||
| 597 | +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | ||
| 598 | +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
| 599 | + | ||
| 600 | + 16. Limitation of Liability. | ||
| 601 | + | ||
| 602 | + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
| 603 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | ||
| 604 | +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | ||
| 605 | +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | ||
| 606 | +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | ||
| 607 | +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | ||
| 608 | +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | ||
| 609 | +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | ||
| 610 | +SUCH DAMAGES. | ||
| 611 | + | ||
| 612 | + 17. Interpretation of Sections 15 and 16. | ||
| 613 | + | ||
| 614 | + If the disclaimer of warranty and limitation of liability provided | ||
| 615 | +above cannot be given local legal effect according to their terms, | ||
| 616 | +reviewing courts shall apply local law that most closely approximates | ||
| 617 | +an absolute waiver of all civil liability in connection with the | ||
| 618 | +Program, unless a warranty or assumption of liability accompanies a | ||
| 619 | +copy of the Program in return for a fee. | ||
| 620 | + | ||
| 621 | + END OF TERMS AND CONDITIONS | ||
| 622 | + | ||
| 623 | + How to Apply These Terms to Your New Programs | ||
| 624 | + | ||
| 625 | + If you develop a new program, and you want it to be of the greatest | ||
| 626 | +possible use to the public, the best way to achieve this is to make it | ||
| 627 | +free software which everyone can redistribute and change under these terms. | ||
| 628 | + | ||
| 629 | + To do so, attach the following notices to the program. It is safest | ||
| 630 | +to attach them to the start of each source file to most effectively | ||
| 631 | +state the exclusion of warranty; and each file should have at least | ||
| 632 | +the "copyright" line and a pointer to where the full notice is found. | ||
| 633 | + | ||
| 634 | + <one line to give the program's name and a brief idea of what it does.> | ||
| 635 | + Copyright (C) <year> <name of author> | ||
| 636 | + | ||
| 637 | + This program is free software: you can redistribute it and/or modify | ||
| 638 | + it under the terms of the GNU General Public License as published by | ||
| 639 | + the Free Software Foundation, either version 3 of the License, or | ||
| 640 | + (at your option) any later version. | ||
| 641 | + | ||
| 642 | + This program is distributed in the hope that it will be useful, | ||
| 643 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 644 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 645 | + GNU General Public License for more details. | ||
| 646 | + | ||
| 647 | + You should have received a copy of the GNU General Public License | ||
| 648 | + along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| 649 | + | ||
| 650 | +Also add information on how to contact you by electronic and paper mail. | ||
| 651 | + | ||
| 652 | + If the program does terminal interaction, make it output a short | ||
| 653 | +notice like this when it starts in an interactive mode: | ||
| 654 | + | ||
| 655 | + <program> Copyright (C) <year> <name of author> | ||
| 656 | + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
| 657 | + This is free software, and you are welcome to redistribute it | ||
| 658 | + under certain conditions; type `show c' for details. | ||
| 659 | + | ||
| 660 | +The hypothetical commands `show w' and `show c' should show the appropriate | ||
| 661 | +parts of the General Public License. Of course, your program's commands | ||
| 662 | +might be different; for a GUI interface, you would use an "about box". | ||
| 663 | + | ||
| 664 | + You should also get your employer (if you work as a programmer) or school, | ||
| 665 | +if any, to sign a "copyright disclaimer" for the program, if necessary. | ||
| 666 | +For more information on this, and how to apply and follow the GNU GPL, see | ||
| 667 | +<https://www.gnu.org/licenses/>. | ||
| 668 | + | ||
| 669 | + The GNU General Public License does not permit incorporating your program | ||
| 670 | +into proprietary programs. If your program is a subroutine library, you | ||
| 671 | +may consider it more useful to permit linking proprietary applications with | ||
| 672 | +the library. If this is what you want to do, use the GNU Lesser General | ||
| 673 | +Public License instead of this License. But first, please read | ||
| 674 | +<https://www.gnu.org/licenses/why-not-lgpl.html>. |
ChangeLog
0 → 100644
| 1 | +Webcamoid 9.2.4: | ||
| 2 | + | ||
| 3 | +- Added checks with VirusTotal (it still can throw false positives). | ||
| 4 | +- Added NOCHECKUPDATES option for disable updates check when compiling (issue #717). | ||
| 5 | +- Enabled VLC support again. | ||
| 6 | + | ||
| 7 | +Webcamoid 9.2.3: | ||
| 8 | + | ||
| 9 | +- Only compress Android package with ads. | ||
| 10 | + | ||
| 11 | +Webcamoid 9.2.2: | ||
| 12 | + | ||
| 13 | +- Fixed Android packages upload. | ||
| 14 | + | ||
| 15 | +Webcamoid 9.2.1: | ||
| 16 | + | ||
| 17 | +- Disabled binary build with libVLC in Windows since some anti-malware software | ||
| 18 | + detects its usage as malware even though is clean. You can still build | ||
| 19 | + Webcamoid with VLC support from Cmake command options. | ||
| 20 | +- Build GNU/Linux binaries from Debian, this give a bit wider range of | ||
| 21 | + supported distros. | ||
| 22 | + | ||
| 23 | +Webcamoid 9.2.0: | ||
| 24 | + | ||
| 25 | +- Webcamoid ported to Qt6. | ||
| 26 | +- Added PipeWire video capture support. | ||
| 27 | +- Added Xlib screen capture plugin. | ||
| 28 | +- Added desktop capture using FFmpeg. | ||
| 29 | +- Added option to show or hide the mouse cursor on screen capture. | ||
| 30 | +- Qt screen capture plugin is now using QScreenCapture. | ||
| 31 | +- Added ColorKey plugin. | ||
| 32 | +- Added support for extended controls in V4L2. | ||
| 33 | +- Fixed crash in Windows when the camera returns an invalid frame rate. | ||
| 34 | +- Add support for h264 in DirectShow and MediaFoundation. | ||
| 35 | +- Removed x86 builds in in Windows. | ||
| 36 | +- Attend to screen orientation (issue #661). | ||
| 37 | +- Torch working in Android. | ||
| 38 | +- Fixed font scaling in Android. | ||
| 39 | +- Added AdMob support. | ||
| 40 | +- Fixed ARM 64 packages. | ||
| 41 | +- Build DEB and RPM packages. | ||
| 42 | +- Fixed saving the selected camera format (issue #693). | ||
| 43 | +- Added a debug log to the preferences dialog. | ||
| 44 | +- Added options for enabling/disabling interprocess optimizations (issue #702). | ||
| 45 | +- Fixed virtual camera support in FreeBSD. | ||
| 46 | +- Do not show the video outputs if the virtual camera is not supported. | ||
| 47 | + | ||
| 48 | +Webcamoid 9.1.1: | ||
| 49 | + | ||
| 50 | +- Removed Qml import line that prevented UI to load. | ||
| 51 | +- Using common AppID for all platforms. | ||
| 52 | +- Fixed ARM packages upload on release. | ||
| 53 | + | ||
| 54 | +Webcamoid 9.1.0: | ||
| 55 | + | ||
| 56 | +- Redesigned UI to work in smaler screens. | ||
| 57 | +- Now providing ARM packages for GNU/Linux. | ||
| 58 | +- Webcamoid is mostly working fine in Android, with minimum bugs. | ||
| 59 | +- Sustituting Mac native code with third-party libraries: | ||
| 60 | + | ||
| 61 | + CoreAudio -> PortAudio and SDL | ||
| 62 | + AVFoundation -> FFmpeg (Screen capture) | ||
| 63 | + AVFoundation -> QCamera (Camera capture) | ||
| 64 | + | ||
| 65 | + this way it will make much easier for me to maintain the code. | ||
| 66 | + Also not providing anymore pre-compiled binary packages. | ||
| 67 | + More information at https://github.com/webcamoid/webcamoid/issues/584. | ||
| 68 | +- The flatpak package is now fully working. | ||
| 69 | +- Allow using an image file as video source (issue #438). | ||
| 70 | +- Full support for screen readers and keyboard navigation. | ||
| 71 | +- Added image capture to clipboard (thanks to @iam-TJ!) | ||
| 72 | +- Added PortAudio and SDL as alternative audio device plugins. | ||
| 73 | +- Added QCamera as alternative camera capture plugin. | ||
| 74 | +- Added FFmpeg screen capture support. | ||
| 75 | +- The virtual camera from GNU/Linux can also be installed in non x86 platforms. | ||
| 76 | +- video synchronization can be enebled/disabled on playback (thanks to @iam-TJ!) | ||
| 77 | +- New video Effects: AnalogTV, Zoom, Crop, Opacity. | ||
| 78 | +- Removed Scale and Scroll video effects. | ||
| 79 | +- PrimariesColors plugin renamed to Saturated. | ||
| 80 | +- Improved virtual camera detection. Webcamoid will only offer akvcam or | ||
| 81 | + AkVirtualCamera in the only case no other virtual camera was installed, | ||
| 82 | + or in the case it was manually selected. | ||
| 83 | +- Allow positioning Webcamoid window on any screen (thanks to @iam-TJ!) | ||
| 84 | +- Added uninstall target in cmake build to aid development cycles | ||
| 85 | + (thanks to @iam-TJ!). | ||
| 86 | +- Fixed virtual camera install in GNU/Linux. | ||
| 87 | +- Translation files are not embeded in the binary, more translations can be | ||
| 88 | + added and tested without recompiling. | ||
| 89 | +- Fixed ALSA deices reading. | ||
| 90 | +- Properly save enabled and disabled plugins. | ||
| 91 | + | ||
| 92 | +Webcamoid 9.0.0: | ||
| 93 | + | ||
| 94 | +- Now Qt 5.15 is the minimum required version. | ||
| 95 | +- More modern UI redesign. | ||
| 96 | +- Now the default theme can adapt to the current color scheme of the system. | ||
| 97 | +- Switched build system to CMake. | ||
| 98 | +- Redesigned plugins system to a more expandable one. | ||
| 99 | +- Photos and videos are saved in their default folders, and its also user | ||
| 100 | + customizable. | ||
| 101 | +- You can now open the last photo taken and the last video recorded from | ||
| 102 | + Webcamoid. | ||
| 103 | +- Added support for screen capturing in PipeWire/Wayland. | ||
| 104 | +- Added VLC as video playback backend. | ||
| 105 | +- The virtual camera code for Mac and Windows has been splitted to its own | ||
| 106 | + project fixing several install/uninstall problems, and allowing other | ||
| 107 | + developers to use the virtual camera on their own projects. | ||
| 108 | +- The virtual camera is now fully customizable (format, resolution, default | ||
| 109 | + picture, etc.). | ||
| 110 | +- Improved error messages for the virtual camera. | ||
| 111 | +- Added CoreMediaIO capture support in Mac. | ||
| 112 | +- Add face tracking plugin (thanks Chris Barth!). | ||
| 113 | +- Removed support for MSVC (for now). | ||
| 114 | +- Add appstream data (thanks Joel Barrios!). | ||
| 115 | +- Fixed privilege escalation when creating the virtual camera in GNU/Linux | ||
| 116 | + (issue #330) | ||
| 117 | +- Added support for background image replacement in FaceDetect plugin (thanks | ||
| 118 | + cont1nuity!). | ||
| 119 | +- Fixed default masks rendering when selecting an image from file system (issue | ||
| 120 | + #229, thanks cont1nuity!). | ||
| 121 | +- Added more options to the FaceDetect plugin (thanks cont1nuity!). | ||
| 122 | +- Switched from using QtIFW to NSIS in Windows, and pkg format in Mac, this | ||
| 123 | + fixes several install/uninstall problems. | ||
| 124 | +- Added support for FFmpeg 5.0. | ||
| 125 | +- Fixed video recording with FFmpeg. | ||
| 126 | +- Added Otsu threshold, and other video effects plugins. | ||
| 127 | +- Improved FalseColor plugin UI. | ||
| 128 | +- Optimized Charify plugin (issue #488). | ||
| 129 | +- Added software based camera controls for brightness, contrast, saturation, | ||
| 130 | + hue, and gamma, in Mac (issue #333). | ||
| 131 | +- Added donations links for people who wants to support the project. | ||
| 132 | + | ||
| 133 | +Webcamoid 8.8.0: | ||
| 134 | + | ||
| 135 | +- Fixed bug when setting boolean type automatic controls in Windows | ||
| 136 | + (issue #148) | ||
| 137 | +- Added option for blurring outside detected face in FaceDetect plugin | ||
| 138 | + (thanks Erich Schubert!). | ||
| 139 | +- Added public method for detecting face rectangles in FaceDetect plugin | ||
| 140 | + (thanks Chris Barth!). | ||
| 141 | +- Fixed some minor bugs when capturing from camera. | ||
| 142 | + | ||
| 143 | +Webcamoid 8.7.1: | ||
| 144 | + | ||
| 145 | +- Fixed memory grow when using the virtual camera in Mac. | ||
| 146 | +- Disabled camera controls in Mac. | ||
| 147 | +- Request access permissions for capturing from webcam when necessary in Mac. | ||
| 148 | +- Load virtual camera default frame from file instead of resources. | ||
| 149 | + | ||
| 150 | +Webcamoid 8.7.0: | ||
| 151 | + | ||
| 152 | +- Android port more or less working, but not usable yet, you can test it in the | ||
| 153 | + daily builds. There in not an official release yet. | ||
| 154 | +- Removed unnecessary Bin and Probe plugins. | ||
| 155 | +- Added audio latency control. | ||
| 156 | +- Removed OSS and QtAudio submodules. | ||
| 157 | +- Fixed a bug that happened when changing the format, resolution or FPS of the | ||
| 158 | + camera (commit 41448aa). | ||
| 159 | +- Improved error messages for the virtual camera (issue #187). | ||
| 160 | +- Fixed segfaults. | ||
| 161 | + | ||
| 162 | +Webcamoid 8.6.1: | ||
| 163 | + | ||
| 164 | +- AppImage now properly show the icon (issue #94). | ||
| 165 | +- Fix install Qml paths for Mac bundle (issue #156). | ||
| 166 | +- Use correct subdir for manpage (issue #170, thanks Luigi Baldoni!). | ||
| 167 | +- Fixed Windows installer (issue #172). | ||
| 168 | +- Now you can create an Android APK (yes, it works, but no, it does not | ||
| 169 | + properly support Android yet). | ||
| 170 | + | ||
| 171 | +Webcamoid 8.6.0: | ||
| 172 | + | ||
| 173 | +- Now webcam settings are saved. | ||
| 174 | +- Enabled secondary plugins, and fixed segfaults and memleaks in GStreamer. | ||
| 175 | +- Fixed segfaults and memory leaks in MacOS. | ||
| 176 | +- Fixed GIF playback in FFmpeg. | ||
| 177 | +- Build now support MSYS2. | ||
| 178 | +- Added FreeBSD CI support in Cirrus CI. | ||
| 179 | +- Added static analysis with Codacy. | ||
| 180 | +- Added daily builds with Bintray. | ||
| 181 | +- Disabled hotplug support for FreeBSD. | ||
| 182 | +- Fixed manpage install. | ||
| 183 | +- Install paths now follow Qt install paths structure. | ||
| 184 | + | ||
| 185 | +Webcamoid 8.5.0: | ||
| 186 | + | ||
| 187 | +- UI ported to QtQuick Controls 2. | ||
| 188 | +- Reworked virtual camera for GNU/Linux, Mac and Windows. | ||
| 189 | +- Qt 5.9.0 as minimum requirement. | ||
| 190 | +- Faster build and smaller binaries. | ||
| 191 | +- Added build info. | ||
| 192 | +- Fixed crash and many other bugs in FreeBSD. | ||
| 193 | +- Added support for Microsoft Media Foundation capture. | ||
| 194 | +- Fixed shadow build. | ||
| 195 | +- Added support for FFmpeg 4.0. | ||
| 196 | +- Fixed bug when reading/setting webcam controls. | ||
| 197 | +- Added support for akvcam, default in-house virtual camera solution for | ||
| 198 | + GNU/Linux. | ||
| 199 | +- Fixed rendering problems in Mac. | ||
| 200 | +- Added support for FreeBSD in deploy scripts. | ||
| 201 | +- Fixed many bugs when recording audio and video. | ||
| 202 | +- Default recording video bitrate is now 1.5Mbps. | ||
| 203 | +- Fixed audio support in Windows. | ||
| 204 | +- Removed 'su' and 'sudo' as root method when installing the virtual camera in | ||
| 205 | + GNU/Linux. | ||
| 206 | +- Removed Syphon support for Mac. | ||
| 207 | +- Improved translations. | ||
| 208 | + | ||
| 209 | +Webcamoid 8.1.0: | ||
| 210 | + | ||
| 211 | +- Improved startup time. | ||
| 212 | +- Deadlock when audio recording is enabled may be solved now. Audio recording | ||
| 213 | + enabled by default again. | ||
| 214 | +- Added Syphon support for Mac. | ||
| 215 | +- Added AVFoundation support for desktop capture in Mac. | ||
| 216 | +- Binary packages size shrinked. | ||
| 217 | +- Hopefully, fixed many segfaults in many platforms. | ||
| 218 | + | ||
| 219 | +Webcamoid 8.0.0: | ||
| 220 | + | ||
| 221 | +- Added support for Mac and FreeBSD (virtual camera is not supported yet). | ||
| 222 | +- Added new masks to the FaceDetect plugin. | ||
| 223 | +- Now is possible to Switch between FFmpeg and GStreamer on runtime. | ||
| 224 | +- Added support for ALSA, OSS, JACK and QAudio. | ||
| 225 | +- Added support for libuvc. | ||
| 226 | +- Now is possible to select the desired input and output device, and configure | ||
| 227 | + playback and capture formats. | ||
| 228 | +- More translations updates. | ||
| 229 | +- Added options for configuring plugins search paths and blacklist in GUI. | ||
| 230 | +- Added options for configuring the desired frameworks and libraries. | ||
| 231 | +- Added formats and codecs config in recording options. | ||
| 232 | +- FFmpeg >= 3.1 required. | ||
| 233 | +- Added support for MSVC2013 and MSVC2015 build. | ||
| 234 | +- Added option for configure FPS in DesktopCapture plugin. | ||
| 235 | +- Added updates options. | ||
| 236 | +- AppImage support. | ||
| 237 | + | ||
| 238 | +Webcamoid 7.2.1: | ||
| 239 | + | ||
| 240 | +- Added alternative root method (VirtualCamera). See ROOT_METHOD at project | ||
| 241 | + Wiki. | ||
| 242 | +- C++11 support enabled by default. | ||
| 243 | +- Using new algorithm for Cartoon plugin. | ||
| 244 | + | ||
| 245 | +Webcamoid 7.2.0: | ||
| 246 | + | ||
| 247 | +- Fixed problems when recording. | ||
| 248 | +- Added timer and flash when taking photos. | ||
| 249 | +- Better virtual camera management. | ||
| 250 | +- Added Virtual camera support for Windows. | ||
| 251 | +- Added GIF recording support (FFmpeg only). | ||
| 252 | +- Improved webcam format selection. | ||
| 253 | +- UI improvements. | ||
| 254 | +- Included QtQuick software renderer in installation (Windows). | ||
| 255 | +- Added play on start option. | ||
| 256 | +- Added C++11 support for Clang build. | ||
| 257 | + | ||
| 258 | +Webcamoid 7.1.0: | ||
| 259 | + | ||
| 260 | +- Reworked audio system. | ||
| 261 | +- Added support for compressed formats in webcams. | ||
| 262 | +- No more lags in the UI when capturing from webcam. | ||
| 263 | +- Added Windows installer. | ||
| 264 | + | ||
| 265 | +Webcamoid 7.0.0: | ||
| 266 | + | ||
| 267 | +- Windows port finally working! EXPERIMENTAL! | ||
| 268 | +- Reworked recording options. More user friendly. | ||
| 269 | +- Removed unnecessary dependencies. | ||
| 270 | +- Many effects reworked and bugfixed. | ||
| 271 | +- Added GStreamer support, EXPERIMENTAL! | ||
| 272 | +- Fixed SEGFAULT when switching the effects. | ||
| 273 | +- Added virtual camera support (GNU/Linux only). | ||
| 274 | +- Added command line options for controlling plugins search. | ||
| 275 | + | ||
| 276 | +Webcamoid 6.2.0: | ||
| 277 | + | ||
| 278 | +- Reworked Cartoonify plugin. | ||
| 279 | +- Some improvements in FaceDetect plugin. | ||
| 280 | +- Added Canny mode for Edge detection plugin. | ||
| 281 | +- Improved Blur and Denoise plugins. | ||
| 282 | +- Fixed QDataStream missing header. | ||
| 283 | + | ||
| 284 | +Webcamoid 6.1.0: | ||
| 285 | + | ||
| 286 | +- Removed OpenCV as dependency (yes, again). | ||
| 287 | +- Fixed Denoise plugin SEGFAULT. | ||
| 288 | +- Translations updated. | ||
| 289 | + | ||
| 290 | +Webcamoid 6.0.0: | ||
| 291 | + | ||
| 292 | +- New Qml UI, more user friendly. | ||
| 293 | +- Now, the effects can be customized. | ||
| 294 | +- A lot of bug fixes. | ||
| 295 | + | ||
| 296 | +Webcamoid 5.1.0: | ||
| 297 | + | ||
| 298 | +- From now on, Webcamoid will be developed using Qt5. | ||
| 299 | +- Removed Frei0r from dependencies. | ||
| 300 | +- Added OpenCV as dependency (Face detection). | ||
| 301 | +- Removed plasmoid build since Qt5 plugins aren't compatible with Qt4/KDE4. | ||
| 302 | +- Now, Webcamoid can be compiled using MinGW. | ||
| 303 | +- Added webcam capture support through DirectShow. | ||
| 304 | +- There are still some patches needed to make it fully work in Windows. | ||
| 305 | + | ||
| 306 | +Webcamoid 5.0.0: | ||
| 307 | + | ||
| 308 | +- Modified the effects preview for reducing resources usage. | ||
| 309 | +- Fixed stream flush on recording stop. | ||
| 310 | +- Enhanced webm video recording. | ||
| 311 | + | ||
| 312 | +Webcamoid 5.0.0rc1: | ||
| 313 | + | ||
| 314 | +- Release Candidate version. | ||
| 315 | +- Ported to Qt5 (without the plasmoid). | ||
| 316 | +- Removed KDElibs as dependency, but still required for Qt4 build. | ||
| 317 | +- Removed QImageBlitz as dependency. | ||
| 318 | +- Added more effects. | ||
| 319 | +- Fixed video sync. | ||
| 320 | +- Initial port to Windows (help needed). | ||
| 321 | + | ||
| 322 | +Webcamoid 5.0.0b2: | ||
| 323 | + | ||
| 324 | +- Beta version. | ||
| 325 | +- Fix many bugs. | ||
| 326 | +- Many internal changes. | ||
| 327 | +- Updated Italian translations (thanks to Ascaf0). | ||
| 328 | +- Updated to work with FFmpeg >= 2.0. | ||
| 329 | + | ||
| 330 | +Webcamoid 5.0.0b1: | ||
| 331 | + | ||
| 332 | +- Beta version. | ||
| 333 | +- Fixed many memory leaks and bugs. | ||
| 334 | +- Fixed video synchronization. | ||
| 335 | + | ||
| 336 | +Webcamoid 5.0.0a1: | ||
| 337 | + | ||
| 338 | +- Alpha version. | ||
| 339 | +- Added live preview for effects. | ||
| 340 | +- Added custom streams, including videos (local and remote) and IP cameras | ||
| 341 | + (mms, rtsp, etc.). | ||
| 342 | +- Added desktop recording. | ||
| 343 | +- Ported to C++. | ||
| 344 | +- Switched from GStreamer to FFmpeg. | ||
| 345 | +- 100% Qt based software (GTK Free). | ||
| 346 | +- Remember size of the plasmoid on close. | ||
| 347 | + | ||
| 348 | +Webcamoid 4.0.0: | ||
| 349 | + | ||
| 350 | +- Failed release. | ||
| 351 | + | ||
| 352 | +Webcamoid 3.2.0: | ||
| 353 | + | ||
| 354 | +- Stand alone installation mode improved (recommended). | ||
| 355 | +- Fixed stylesheets. | ||
| 356 | +- Fixed translations. | ||
| 357 | +- Many internal changes. | ||
| 358 | + | ||
| 359 | +Webcamoid 3.1.0: | ||
| 360 | + | ||
| 361 | +- Added stand alone installation mode (Experimental). | ||
| 362 | +- Fixed some bugs. | ||
| 363 | + | ||
| 364 | +Webcamoid 3.0.0: | ||
| 365 | + | ||
| 366 | +- Removed FFmpeg from dependencies, now it is based on GStreamer. | ||
| 367 | +- Added video record. | ||
| 368 | +- Added video effects. | ||
| 369 | +- Added Catalan and Galician. | ||
| 370 | + | ||
| 371 | +Webcamoid 2.2.0: | ||
| 372 | + | ||
| 373 | +- Added new languages: | ||
| 374 | + | ||
| 375 | +- Chinese (Simplified) | ||
| 376 | +- Chinese (Traditional) | ||
| 377 | +- French | ||
| 378 | +- German | ||
| 379 | +- Greek | ||
| 380 | +- Italian | ||
| 381 | +- Japanese | ||
| 382 | +- Korean | ||
| 383 | +- Portuguese | ||
| 384 | +- Russian | ||
| 385 | +- Spanish | ||
| 386 | + | ||
| 387 | +Translations provided by Google translator, not me, except for Spanish (native) | ||
| 388 | +and Japanese. | ||
| 389 | + | ||
| 390 | +Webcamoid 2.1.3: | ||
| 391 | + | ||
| 392 | +- Bug fix. Pipe file is no needed anymore. | ||
| 393 | + | ||
| 394 | +Webcamoid 2.1.2: | ||
| 395 | + | ||
| 396 | +- Removed stdin, stderr and stdout pipes. Added -loglevel quiet. Apparently, | ||
| 397 | + suppress the output using pipes is a very bad idea. | ||
| 398 | + | ||
| 399 | +Webcamoid 2.1.1: | ||
| 400 | + | ||
| 401 | +- Fixed Popen pipe limit. | ||
| 402 | + | ||
| 403 | +Webcamoid 2.1.0: | ||
| 404 | + | ||
| 405 | +- New Github repository. | ||
| 406 | +- GUI based on Qt Designer forms. | ||
| 407 | +- Added Popup applet support, thanks to user nik3nt3. | ||
| 408 | + | ||
| 409 | +Webcamoid 2.0.0: | ||
| 410 | + | ||
| 411 | +- Removed OpenCV from dependencies, now it is based on FFmpeg + v4l2 Python | ||
| 412 | + wrappers. | ||
| 413 | + | ||
| 414 | +Webcamoid 1.x.x: | ||
| 415 | + | ||
| 416 | +- Old version based on Python OpenCV. |
PULL_REQUEST_TEMPLATE.md
0 → 100644
| 1 | +# README | ||
| 2 | + | ||
| 3 | +Before contributing, please read [the contributing document](https://github.com/webcamoid/webcamoid/blob/master/CONTRIBUTING.md), and the [coding style and conventions](https://github.com/webcamoid/webcamoid/wiki/Coding-style-and-conventions) guide. | ||
| 4 | +Search the [pull request list](https://github.com/webcamoid/webcamoid/pulls) for similar pulls before opening a new one. | ||
| 5 | +Check your code doesn't throw any warning or error message while compiling, and doesn't give any warning in Clang static analyzer. Make sure your code is GCC, Clang, MinGW and MSVC compliant (use Github Actions for that). | ||
| 6 | +Check your code using GDB, Valgrind and similar tools to remove all possible memory leaks and segfaults. | ||
| 7 | + | ||
| 8 | +# Pull request | ||
| 9 | + | ||
| 10 | +## Type of change | ||
| 11 | + | ||
| 12 | +Is your pull request a bug fix, new feature, code refactor, breaking change, etc.? | ||
| 13 | +If your change is too big consider [discussing it](https://github.com/webcamoid/webcamoid/issues) before pulling. | ||
| 14 | + | ||
| 15 | +## Summary | ||
| 16 | + | ||
| 17 | +Describe your pull request the best as you can. | ||
| 18 | + | ||
| 19 | +## Related Issue | ||
| 20 | + | ||
| 21 | +Is this pull request related to some [issue](https://github.com/webcamoid/webcamoid/issues)? Cite the issue as #NNN, where NNN is the number of issue. | ||
| 22 | + | ||
| 23 | +## More info | ||
| 24 | + | ||
| 25 | +Provide screenshots, logs, etc. if required. | ||
| 26 | + | ||
| 27 | +## Added dependencies | ||
| 28 | + | ||
| 29 | +Does your pull request add more dependencies to the project? This may require some discussion. Minimal dependencies is a requirement. | ||
| 30 | + | ||
| 31 | +## Target Environment | ||
| 32 | + | ||
| 33 | +Is this pull request specific to a target operating system? | ||
| 34 | + | ||
| 35 | +* Operating System information: (name) (numeric version and codename if applied) (architecture) |
README.md
0 → 100644
| 1 | +# Webcamoid, The ultimate webcam suite! # | ||
| 2 | + | ||
| 3 | +[Webcamoid](https://webcamoid.github.io/) is a full featured and multiplatform webcam suite. | ||
| 4 | + | ||
| 5 | +<a target="_blank" href="https://webcamoid.github.io/"><img src="https://webcamoid.github.io/theme/images/screenshots/Main.webp" style="height: 240px;" /></a> | ||
| 6 | + | ||
| 7 | +## Features ## | ||
| 8 | + | ||
| 9 | +* Cross-platform (GNU/Linux, Mac, Windows, Android, FreeBSD) | ||
| 10 | +* Take pictures and record videos with the webcam. | ||
| 11 | +* Manages multiple webcams. | ||
| 12 | +* Written in C++ and Qt. | ||
| 13 | +* Custom controls for each webcam. | ||
| 14 | +* Add funny effects to the webcam. | ||
| 15 | +* 60+ effects available. | ||
| 16 | +* Translated to many languages. | ||
| 17 | +* Use custom network and local files as capture devices. | ||
| 18 | +* Capture from desktop. | ||
| 19 | +* Many recording formats. | ||
| 20 | +* Virtual webcam support for feeding other programs (GNU/Linux, Mac, Windows) | ||
| 21 | + | ||
| 22 | +## Build and Install ## | ||
| 23 | + | ||
| 24 | +Visit the [wiki](https://github.com/webcamoid/webcamoid/wiki) for a comprehensive compile and install instructions. | ||
| 25 | + | ||
| 26 | +## Downloads ## | ||
| 27 | + | ||
| 28 | +Download the pre-compiled packages for GNU/Linux, Windows, and Android. | ||
| 29 | +If you are a Mac user, consider [making a donation](http://webcamoid.github.io/donations) for buying the needed development hardware and also supporting your platform. | ||
| 30 | + | ||
| 31 | +[](https://payhip.com/Webcamoid) | ||
| 32 | + | ||
| 33 | +Become a [Webcamoid sponsor](https://github.com/sponsors/hipersayanX) and get early access to the latest features. | ||
| 34 | + | ||
| 35 | +[](https://github.com/sponsors/hipersayanX) | ||
| 36 | + | ||
| 37 | +## Donations ## | ||
| 38 | + | ||
| 39 | +If you are interested in donating to the project you can look at all available methods in the [donations page](https://webcamoid.github.io/donations). | ||
| 40 | + | ||
| 41 | +## Pay and get your issue solved quick ## | ||
| 42 | + | ||
| 43 | +Import an issue in Bountyhub, set a price and get your issue solved or a feature implemented quick. | ||
| 44 | + | ||
| 45 | +[](https://bountyhub.dev/bounties?repo=webcamoid/webcamoid) | ||
| 46 | + | ||
| 47 | +## Donations campaings ## | ||
| 48 | + | ||
| 49 | +Do you want to use Webcamoid in MacOs X, you can colabore in the donations campaing for buying MacBook. | ||
| 50 | + | ||
| 51 | +[](https://gogetfunding.com/buying-a-macbook-for-webcamoid-macos-development/) | ||
| 52 | + | ||
| 53 | +## Status ## | ||
| 54 | + | ||
| 55 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/android.yml) | ||
| 56 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/linux-arch.yml) | ||
| 57 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/linux-debian.yml) | ||
| 58 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/linux-fedora.yml) | ||
| 59 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/linux-mageia.yml) | ||
| 60 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/linux-mingw.yml) | ||
| 61 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/linux-opensuse.yml) | ||
| 62 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/linux-ubuntu.yml) | ||
| 63 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/flatpak.yml) | ||
| 64 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/mac.yml) | ||
| 65 | +[](https://github.com/webcamoid/webcamoid/actions/workflows/windows-msys.yml) | ||
| 66 | +[](https://cirrus-ci.com/github/webcamoid/webcamoid) | ||
| 67 | +[](https://www.codacy.com/gh/webcamoid/webcamoid/dashboard?utm_source=github.com&utm_medium=referral&utm_content=webcamoid/webcamoid&utm_campaign=Badge_Grade) | ||
| 68 | +[](https://hosted.weblate.org/engage/webcamoid/?utm_source=widget) | ||
| 69 | +[](https://www.openhub.net/p/Webcamoid) | ||
| 70 | +[](https://gitlab.com/hipersayanX/webcamoid/) | ||
| 71 | +[](https://sourceforge.net/p/webcamoid/) | ||
| 72 | + | ||
| 73 | +[](https://repology.org/metapackage/webcamoid) | ||
| 74 | + | ||
| 75 | +## License ## | ||
| 76 | + | ||
| 77 | +``` | ||
| 78 | +Webcamoid is free software: you can redistribute it and/or modify | ||
| 79 | +it under the terms of the GNU General Public License as published by | ||
| 80 | +the Free Software Foundation, either version 3 of the License, or | ||
| 81 | +(at your option) any later version. | ||
| 82 | + | ||
| 83 | +Webcamoid is distributed in the hope that it will be useful, | ||
| 84 | +but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 85 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 86 | +GNU General Public License for more details. | ||
| 87 | + | ||
| 88 | +You should have received a copy of the GNU General Public License | ||
| 89 | +along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 90 | +``` | ||
| 91 | + | ||
| 92 | +[](https://github.com/webcamoid/webcamoid/blob/master/COPYING) | ||
| 93 | + | ||
| 94 | +## Reporting Bugs ## | ||
| 95 | + | ||
| 96 | +Report all issues in the [issues tracker](https://github.com/webcamoid/webcamoid/issues). | ||
| 97 | + | ||
| 98 | +## Subscribe ## | ||
| 99 | + | ||
| 100 | +Stay tuned to new releases with the project [feeds](https://github.com/webcamoid/webcamoid/releases.atom). |
SECURITY.md
0 → 100644
| 1 | +# Security Policy | ||
| 2 | + | ||
| 3 | +## Supported Versions | ||
| 4 | + | ||
| 5 | +Only report vulnerabilities in the [latest stable](https://github.com/webcamoid/webcamoid/releases) version and the [master repository](https://github.com/webcamoid/webcamoid) (that includes [daily build](https://bintray.com/webcamoid/webcamoid/webcamoid/daily/link)). | ||
| 6 | + | ||
| 7 | +## Reporting a Vulnerability | ||
| 8 | + | ||
| 9 | +Report all vulnerabilities at the [issues section](https://github.com/webcamoid/webcamoid/issues). |
StandAlone/CMakeLists.txt
0 → 100644
| 1 | +# Webcamoid, webcam capture application. | ||
| 2 | +# Copyright (C) 2021 Gonzalo Exequiel Pedone | ||
| 3 | +# | ||
| 4 | +# Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | +# it under the terms of the GNU General Public License as published by | ||
| 6 | +# the Free Software Foundation, either version 3 of the License, or | ||
| 7 | +# (at your option) any later version. | ||
| 8 | +# | ||
| 9 | +# Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | +# GNU General Public License for more details. | ||
| 13 | +# | ||
| 14 | +# You should have received a copy of the GNU General Public License | ||
| 15 | +# along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | +# | ||
| 17 | +# Web-Site: http://webcamoid.github.io/ | ||
| 18 | + | ||
| 19 | +cmake_minimum_required(VERSION 3.16) | ||
| 20 | + | ||
| 21 | +project(StandAlone) | ||
| 22 | + | ||
| 23 | +include(../libAvKys/cmake/ProjectCommons.cmake) | ||
| 24 | + | ||
| 25 | +if (UNIX AND NOT APPLE AND NOT ANDROID) | ||
| 26 | + add_subdirectory(ManPages) | ||
| 27 | +endif () | ||
| 28 | + | ||
| 29 | +add_subdirectory(Translations) | ||
| 30 | +add_subdirectory(java) | ||
| 31 | +add_subdirectory(src) |
StandAlone/DefaultTheme.qrc
0 → 100644
| 1 | +<RCC> | ||
| 2 | + <qresource prefix="/Webcamoid"> | ||
| 3 | + <file>share/themes/WebcamoidTheme/qmldir</file> | ||
| 4 | + <file>share/themes/WebcamoidTheme/ApplicationWindow.qml</file> | ||
| 5 | + <file>share/themes/WebcamoidTheme/BusyIndicator.qml</file> | ||
| 6 | + <file>share/themes/WebcamoidTheme/Button.qml</file> | ||
| 7 | + <file>share/themes/WebcamoidTheme/CheckBox.qml</file> | ||
| 8 | + <file>share/themes/WebcamoidTheme/CheckDelegate.qml</file> | ||
| 9 | + <file>share/themes/WebcamoidTheme/ComboBox.qml</file> | ||
| 10 | + <file>share/themes/WebcamoidTheme/DelayButton.qml</file> | ||
| 11 | + <file>share/themes/WebcamoidTheme/Dial.qml</file> | ||
| 12 | + <file>share/themes/WebcamoidTheme/Dialog.qml</file> | ||
| 13 | + <file>share/themes/WebcamoidTheme/DialogButtonBox.qml</file> | ||
| 14 | + <file>share/themes/WebcamoidTheme/Drawer.qml</file> | ||
| 15 | + <file>share/themes/WebcamoidTheme/Frame.qml</file> | ||
| 16 | + <file>share/themes/WebcamoidTheme/GroupBox.qml</file> | ||
| 17 | + <file>share/themes/WebcamoidTheme/HorizontalHeaderView.qml</file> | ||
| 18 | + <file>share/themes/WebcamoidTheme/ItemDelegate.qml</file> | ||
| 19 | + <file>share/themes/WebcamoidTheme/Label.qml</file> | ||
| 20 | + <file>share/themes/WebcamoidTheme/Menu.qml</file> | ||
| 21 | + <file>share/themes/WebcamoidTheme/MenuBar.qml</file> | ||
| 22 | + <file>share/themes/WebcamoidTheme/MenuBarItem.qml</file> | ||
| 23 | + <file>share/themes/WebcamoidTheme/MenuItem.qml</file> | ||
| 24 | + <file>share/themes/WebcamoidTheme/MenuSeparator.qml</file> | ||
| 25 | + <file>share/themes/WebcamoidTheme/Page.qml</file> | ||
| 26 | + <file>share/themes/WebcamoidTheme/PageIndicator.qml</file> | ||
| 27 | + <file>share/themes/WebcamoidTheme/Pane.qml</file> | ||
| 28 | + <file>share/themes/WebcamoidTheme/Popup.qml</file> | ||
| 29 | + <file>share/themes/WebcamoidTheme/ProgressBar.qml</file> | ||
| 30 | + <file>share/themes/WebcamoidTheme/RadioButton.qml</file> | ||
| 31 | + <file>share/themes/WebcamoidTheme/RadioDelegate.qml</file> | ||
| 32 | + <file>share/themes/WebcamoidTheme/RangeSlider.qml</file> | ||
| 33 | + <file>share/themes/WebcamoidTheme/RoundButton.qml</file> | ||
| 34 | + <file>share/themes/WebcamoidTheme/ScrollBar.qml</file> | ||
| 35 | + <file>share/themes/WebcamoidTheme/ScrollIndicator.qml</file> | ||
| 36 | + <file>share/themes/WebcamoidTheme/ScrollView.qml</file> | ||
| 37 | + <file>share/themes/WebcamoidTheme/SelectionRectangle.qml</file> | ||
| 38 | + <file>share/themes/WebcamoidTheme/Slider.qml</file> | ||
| 39 | + <file>share/themes/WebcamoidTheme/SpinBox.qml</file> | ||
| 40 | + <file>share/themes/WebcamoidTheme/SplitView.qml</file> | ||
| 41 | + <file>share/themes/WebcamoidTheme/StackView.qml</file> | ||
| 42 | + <file>share/themes/WebcamoidTheme/SwipeDelegate.qml</file> | ||
| 43 | + <file>share/themes/WebcamoidTheme/SwipeView.qml</file> | ||
| 44 | + <file>share/themes/WebcamoidTheme/Switch.qml</file> | ||
| 45 | + <file>share/themes/WebcamoidTheme/SwitchDelegate.qml</file> | ||
| 46 | + <file>share/themes/WebcamoidTheme/TabBar.qml</file> | ||
| 47 | + <file>share/themes/WebcamoidTheme/TabButton.qml</file> | ||
| 48 | + <file>share/themes/WebcamoidTheme/TextArea.qml</file> | ||
| 49 | + <file>share/themes/WebcamoidTheme/TextField.qml</file> | ||
| 50 | + <file>share/themes/WebcamoidTheme/ToolBar.qml</file> | ||
| 51 | + <file>share/themes/WebcamoidTheme/ToolButton.qml</file> | ||
| 52 | + <file>share/themes/WebcamoidTheme/ToolSeparator.qml</file> | ||
| 53 | + <file>share/themes/WebcamoidTheme/ToolTip.qml</file> | ||
| 54 | + <file>share/themes/WebcamoidTheme/Tumbler.qml</file> | ||
| 55 | + <file>share/themes/WebcamoidTheme/VerticalHeaderView.qml</file> | ||
| 56 | + <file>share/themes/WebcamoidTheme/Private/qmldir</file> | ||
| 57 | + <file>share/themes/WebcamoidTheme/Private/IconLabel.qml</file> | ||
| 58 | + </qresource> | ||
| 59 | +</RCC> |
StandAlone/ManPages/CMakeLists.txt
0 → 100644
| 1 | +# Webcamoid, webcam capture application. | ||
| 2 | +# Copyright (C) 2021 Gonzalo Exequiel Pedone | ||
| 3 | +# | ||
| 4 | +# Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | +# it under the terms of the GNU General Public License as published by | ||
| 6 | +# the Free Software Foundation, either version 3 of the License, or | ||
| 7 | +# (at your option) any later version. | ||
| 8 | +# | ||
| 9 | +# Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | +# GNU General Public License for more details. | ||
| 13 | +# | ||
| 14 | +# You should have received a copy of the GNU General Public License | ||
| 15 | +# along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | +# | ||
| 17 | +# Web-Site: http://webcamoid.github.io/ | ||
| 18 | + | ||
| 19 | +cmake_minimum_required(VERSION 3.16) | ||
| 20 | + | ||
| 21 | +project(ManPages) | ||
| 22 | + | ||
| 23 | +include(../../libAvKys/cmake/ProjectCommons.cmake) | ||
| 24 | + | ||
| 25 | +set(MANPAGE StandAlone/share/man/webcamoid.1) | ||
| 26 | +string(TIMESTAMP RELEASE_DATE "%d %b %Y") | ||
| 27 | +configure_file(src/webcamoid.1.in src/webcamoid.1) | ||
| 28 | +find_program(GZIP_TOOL gzip) | ||
| 29 | + | ||
| 30 | +if (GZIP_TOOL) | ||
| 31 | + add_custom_target(manpages ALL | ||
| 32 | + ${GZIP_TOOL} -n -c9 webcamoid.1 > webcamoid.1.gz | ||
| 33 | + DEPENDS src/webcamoid.1 | ||
| 34 | + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/src | ||
| 35 | + BYPRODUCTS src/webcamoid.1.gz | ||
| 36 | + VERBATIM | ||
| 37 | + SOURCES src/webcamoid.1.in) | ||
| 38 | + | ||
| 39 | + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/src/webcamoid.1.gz DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) | ||
| 40 | +endif () |
StandAlone/ManPages/src/webcamoid.1.in
0 → 100644
| 1 | +.\" Manpage for Webcamoid. | ||
| 2 | +.\" | ||
| 3 | +.\" Contact https://github.com/webcamoid/webcamoid/issues to correct errors or | ||
| 4 | +.\" typos. | ||
| 5 | +.\" | ||
| 6 | +.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE) | ||
| 7 | +.\" Distributed under GPLv3+ | ||
| 8 | +.\" %%%LICENSE_END | ||
| 9 | +.\" | ||
| 10 | +.TH WEBCAMOID 1 "@RELEASE_DATE@" "Version @VERSION@" "Webcamoid Users's Manual" | ||
| 11 | +.SH NAME | ||
| 12 | +Webcamoid \- full featured webcam capture application | ||
| 13 | +.SH SYNOPSIS | ||
| 14 | +.B webcamoid [\fIoptions\fP] | ||
| 15 | +.SH DESCRIPTION | ||
| 16 | +.B Webcamoid | ||
| 17 | +is a real time video processing suite targeting but not limited to | ||
| 18 | +webcams, video and desktop. You can add a bunch of effects to your video and | ||
| 19 | +take pictures, and record it to a video file. | ||
| 20 | +.SH OPTIONS | ||
| 21 | +.TP | ||
| 22 | +.BR \-h ", " \-\-help | ||
| 23 | +Displays this help. | ||
| 24 | +.TP | ||
| 25 | +.BR \-v ", " \-\-version | ||
| 26 | +Displays version information. | ||
| 27 | +.TP | ||
| 28 | +.BR \-c\ <\fIPATH\fP> ", " \-\-config\ <\fIPATH\fP> | ||
| 29 | +Load settings from \fIPATH\fP. If \fIPATH\fP is empty, load configs from application directory. | ||
| 30 | +.TP | ||
| 31 | +.BR \-r ", " \-\-recursive | ||
| 32 | +Search in the specified plugins paths recursively. | ||
| 33 | +.TP | ||
| 34 | +.BR \-p\ <\fIPATH1\fP;\fIPATH2\fP;\fIPATH3\fP;\fI...\fP> ", " \-\-paths\ <\fIPATH1\fP;\fIPATH2\fP;\fIPATH3\fP;\fI...\fP> | ||
| 35 | +Semi-colon separated list of paths to search for plugins. | ||
| 36 | +.TP | ||
| 37 | +.BR \-b\ <\fIPATH1\fP;\fIPATH2\fP;\fIPATH3\fP;\fI...\fP> ", " \-\-no\-load\ <\fIPATH1\fP;\fIPATH2\fP;\fIPATH3\fP;\fI...\fP> | ||
| 38 | +Semi-colon separated list of paths to avoid loading. | ||
| 39 | +.SH SEE ALSO | ||
| 40 | +.BR ffmpeg (1), | ||
| 41 | +.BR gst\-launch\-1.0 (1), | ||
| 42 | +.BR v4l2loopback\-ctl (1) | ||
| 43 | +.SH BUGS | ||
| 44 | +Please, report all bugs at | ||
| 45 | +.I https://github.com/webcamoid/webcamoid/issues | ||
| 46 | +.SH AUTHOR | ||
| 47 | +Gonzalo Exequiel Pedone (hipersayan.x@gmail.com) |
StandAlone/Translations/CMakeLists.txt
0 → 100644
| 1 | +# Webcamoid, webcam capture application. | ||
| 2 | +# Copyright (C) 2021 Gonzalo Exequiel Pedone | ||
| 3 | +# | ||
| 4 | +# Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | +# it under the terms of the GNU General Public License as published by | ||
| 6 | +# the Free Software Foundation, either version 3 of the License, or | ||
| 7 | +# (at your option) any later version. | ||
| 8 | +# | ||
| 9 | +# Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | +# GNU General Public License for more details. | ||
| 13 | +# | ||
| 14 | +# You should have received a copy of the GNU General Public License | ||
| 15 | +# along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | +# | ||
| 17 | +# Web-Site: http://webcamoid.github.io/ | ||
| 18 | + | ||
| 19 | +cmake_minimum_required(VERSION 3.16) | ||
| 20 | + | ||
| 21 | +project(Translations) | ||
| 22 | + | ||
| 23 | +include(../../libAvKys/cmake/ProjectCommons.cmake) | ||
| 24 | + | ||
| 25 | +set(LANGUAGES | ||
| 26 | + ca | ||
| 27 | + de | ||
| 28 | + el | ||
| 29 | + es | ||
| 30 | + et | ||
| 31 | + fr | ||
| 32 | + gl | ||
| 33 | + he | ||
| 34 | + hu | ||
| 35 | + it | ||
| 36 | + ja | ||
| 37 | + kab | ||
| 38 | + ko | ||
| 39 | + nb_NO | ||
| 40 | + nl | ||
| 41 | + oc | ||
| 42 | + pl | ||
| 43 | + pt_BR | ||
| 44 | + pt | ||
| 45 | + ru | ||
| 46 | + si | ||
| 47 | + sv | ||
| 48 | + tr | ||
| 49 | + uk | ||
| 50 | + vi | ||
| 51 | + zh_CN | ||
| 52 | + zh_TW) | ||
| 53 | + | ||
| 54 | +# Update translations. | ||
| 55 | + | ||
| 56 | +set(UPDATE_TRANSLATIONS ON CACHE BOOL "Update translations when building") | ||
| 57 | + | ||
| 58 | +if (UPDATE_TRANSLATIONS) | ||
| 59 | + find_program(LUPDATE_TOOL lupdate) | ||
| 60 | + | ||
| 61 | + if (LUPDATE_TOOL) | ||
| 62 | + foreach (LANG IN LISTS LANGUAGES) | ||
| 63 | + add_custom_target(translation_${LANG}_ts ALL | ||
| 64 | + ${LUPDATE_TOOL} -no-obsolete | ||
| 65 | + ${CMAKE_SOURCE_DIR}/libAvKys | ||
| 66 | + ${CMAKE_SOURCE_DIR}/StandAlone | ||
| 67 | + -target-language ${LANG} | ||
| 68 | + -ts ${CMAKE_SOURCE_DIR}/StandAlone/share/ts/${LANG}.ts | ||
| 69 | + VERBATIM) | ||
| 70 | + endforeach () | ||
| 71 | + endif () | ||
| 72 | +endif () | ||
| 73 | + | ||
| 74 | +# Compile translations files. | ||
| 75 | +find_program(LRELEASE_TOOL lrelease) | ||
| 76 | + | ||
| 77 | +if (LRELEASE_TOOL) | ||
| 78 | + # target for all languages | ||
| 79 | + add_custom_target(translations_qm) | ||
| 80 | + file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${BUILDDIR}/${TRANSLATIONSDIR}) | ||
| 81 | + | ||
| 82 | + foreach (LANG IN LISTS LANGUAGES) | ||
| 83 | + add_custom_command( | ||
| 84 | + OUTPUT ${CMAKE_BINARY_DIR}/${BUILDDIR}/${TRANSLATIONSDIR}/${LANG}.qm | ||
| 85 | + COMMAND ${LRELEASE_TOOL} -removeidentical | ||
| 86 | + -compress ${CMAKE_SOURCE_DIR}/StandAlone/share/ts/${LANG}.ts | ||
| 87 | + -qm ${CMAKE_BINARY_DIR}/${BUILDDIR}/${TRANSLATIONSDIR}/${LANG}.qm | ||
| 88 | + DEPENDS ${CMAKE_SOURCE_DIR}/StandAlone/share/ts/${LANG}.ts | ||
| 89 | + VERBATIM | ||
| 90 | + ) | ||
| 91 | + add_custom_target(translation_${LANG}_qm ALL | ||
| 92 | + DEPENDS ${CMAKE_BINARY_DIR}/${BUILDDIR}/${TRANSLATIONSDIR}/${LANG}.qm | ||
| 93 | + VERBATIM | ||
| 94 | + ) | ||
| 95 | + add_dependencies(translations_qm translation_${LANG}_qm) | ||
| 96 | + install(FILES ${CMAKE_BINARY_DIR}/${BUILDDIR}/${TRANSLATIONSDIR}/${LANG}.qm | ||
| 97 | + DESTINATION ${TRANSLATIONSDIR}) | ||
| 98 | + endforeach () | ||
| 99 | +endif () |
StandAlone/Webcamoid.qrc
0 → 100644
| 1 | +<RCC> | ||
| 2 | + <qresource prefix="/Webcamoid"> | ||
| 3 | + <file>../COPYING</file> | ||
| 4 | + <file>share/contributors.txt</file> | ||
| 5 | + <file>share/3rd-party/licenses/openclipart.txt</file> | ||
| 6 | + <file>share/3rd-party/licenses/OpenCV.txt</file> | ||
| 7 | + <file>share/3rd-party/licenses/TemperatureAlgorithm.txt</file> | ||
| 8 | + <file>share/3rd-party/licenses/UsbIds.txt</file> | ||
| 9 | + <file>share/qml/About.qml</file> | ||
| 10 | + <file>share/qml/AboutDialog.qml</file> | ||
| 11 | + <file>share/qml/AddVideoFormat.qml</file> | ||
| 12 | + <file>share/qml/AudioCodecOptions.qml</file> | ||
| 13 | + <file>share/qml/AudioDeviceItem.qml</file> | ||
| 14 | + <file>share/qml/AudioDeviceOptions.qml</file> | ||
| 15 | + <file>share/qml/AudioInputs.qml</file> | ||
| 16 | + <file>share/qml/AudioOptions.qml</file> | ||
| 17 | + <file>share/qml/AudioOutputs.qml</file> | ||
| 18 | + <file>share/qml/ColorSchemeAddEdit.qml</file> | ||
| 19 | + <file>share/qml/ColorSchemes.qml</file> | ||
| 20 | + <file>share/qml/Commons.qml</file> | ||
| 21 | + <file>share/qml/Contributors.qml</file> | ||
| 22 | + <file>share/qml/DebugLog.qml</file> | ||
| 23 | + <file>share/qml/DownloadDialog.qml</file> | ||
| 24 | + <file>share/qml/DownloadFailedDialog.qml</file> | ||
| 25 | + <file>share/qml/DownloadSucceededDialog.qml</file> | ||
| 26 | + <file>share/qml/Flash.qml</file> | ||
| 27 | + <file>share/qml/GeneralConfig.qml</file> | ||
| 28 | + <file>share/qml/ImageCapture.qml</file> | ||
| 29 | + <file>share/qml/CaptureSettingsDialog.qml</file> | ||
| 30 | + <file>share/qml/License.qml</file> | ||
| 31 | + <file>share/qml/LocalSettingsMenu.qml</file> | ||
| 32 | + <file>share/qml/LogSavedDialog.qml</file> | ||
| 33 | + <file>share/qml/MainPanel.qml</file> | ||
| 34 | + <file>share/qml/OptionList.qml</file> | ||
| 35 | + <file>share/qml/OptionsPanel.qml</file> | ||
| 36 | + <file>share/qml/PluginConfig.qml</file> | ||
| 37 | + <file>share/qml/PluginItem.qml</file> | ||
| 38 | + <file>share/qml/PluginsPathItem.qml</file> | ||
| 39 | + <file>share/qml/RecordingNotice.qml</file> | ||
| 40 | + <file>share/qml/RunCommandDialog.qml</file> | ||
| 41 | + <file>share/qml/SettingsDialog.qml</file> | ||
| 42 | + <file>share/qml/SettingsMenu.qml</file> | ||
| 43 | + <file>share/qml/ThirdPartyLicenses.qml</file> | ||
| 44 | + <file>share/qml/UpdatesConfig.qml</file> | ||
| 45 | + <file>share/qml/UpdatesDialog.qml</file> | ||
| 46 | + <file>share/qml/VCamInstallFailedDialog.qml</file> | ||
| 47 | + <file>share/qml/VCamInstallSucceededDialog.qml</file> | ||
| 48 | + <file>share/qml/VCamManualDownloadDialog.qml</file> | ||
| 49 | + <file>share/qml/VideoCodecOptions.qml</file> | ||
| 50 | + <file>share/qml/VideoDeviceItem.qml</file> | ||
| 51 | + <file>share/qml/VideoEffectItem.qml</file> | ||
| 52 | + <file>share/qml/VideoEffectOptions.qml</file> | ||
| 53 | + <file>share/qml/VideoEffectsDialog.qml</file> | ||
| 54 | + <file>share/qml/VideoEffectsList.qml</file> | ||
| 55 | + <file>share/qml/VideoFormatItem.qml</file> | ||
| 56 | + <file>share/qml/VideoFormatOptions.qml</file> | ||
| 57 | + <file>share/qml/VideoInputAddEdit.qml</file> | ||
| 58 | + <file>share/qml/VideoInputOptions.qml</file> | ||
| 59 | + <file>share/qml/VideoInputs.qml</file> | ||
| 60 | + <file>share/qml/VideoOptions.qml</file> | ||
| 61 | + <file>share/qml/VideoOutputAddEdit.qml</file> | ||
| 62 | + <file>share/qml/VideoOutputError.qml</file> | ||
| 63 | + <file>share/qml/VideoOutputOptions.qml</file> | ||
| 64 | + <file>share/qml/VideoOutputPicture.qml</file> | ||
| 65 | + <file>share/qml/VideoOutputs.qml</file> | ||
| 66 | + <file>share/qml/VideoRecording.qml</file> | ||
| 67 | + <file>share/qml/qmldir</file> | ||
| 68 | + <file>share/qml/main.qml</file> | ||
| 69 | + </qresource> | ||
| 70 | +</RCC> |
StandAlone/Webcamoid.rc
0 → 100644
| 1 | +IDI_ICON1 ICON DISCARDABLE "share/themes/WebcamoidTheme/icons/hicolor/256x256/webcamoid.ico" |
StandAlone/WebcamoidInfo.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 3 | +<plist version="1.0"> | ||
| 4 | + <dict> | ||
| 5 | + <key>CFBundleName</key> | ||
| 6 | + <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string> | ||
| 7 | + <key>CFBundleVersion</key> | ||
| 8 | + <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string> | ||
| 9 | + <key>CFBundleLongVersionString</key> | ||
| 10 | + <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string> | ||
| 11 | + <key>CFBundleShortVersionString</key> | ||
| 12 | + <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string> | ||
| 13 | + <key>CFBundleExecutable</key> | ||
| 14 | + <string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string> | ||
| 15 | + <key>CFBundleIconFile</key> | ||
| 16 | + <string>${MACOSX_BUNDLE_ICON_FILE}</string> | ||
| 17 | + <key>CFBundleIdentifier</key> | ||
| 18 | + <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string> | ||
| 19 | + <key>CFBundlePackageType</key> | ||
| 20 | + <string>APPL</string> | ||
| 21 | + <key>CFBundleSignature</key> | ||
| 22 | + <string>????</string> | ||
| 23 | + <key>LSMinimumSystemVersion</key> | ||
| 24 | + <string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string> | ||
| 25 | + <key>NSHumanReadableCopyright</key> | ||
| 26 | + <string>${MACOSX_BUNDLE_COPYRIGHT}</string> | ||
| 27 | + <key>NSPrincipalClass</key> | ||
| 28 | + <string>NSApplication</string> | ||
| 29 | + <key>NSHighResolutionCapable</key> | ||
| 30 | + <true/> | ||
| 31 | + <key>NSSupportsAutomaticGraphicsSwitching</key> | ||
| 32 | + <true/> | ||
| 33 | + <key>NSCameraUsageDescription</key> | ||
| 34 | + <string>Give permissions to Webcamoid for camera capture</string> | ||
| 35 | + <key>NSMicrophoneUsageDescription</key> | ||
| 36 | + <string>Give permissions to Webcamoid for microphone recording</string> | ||
| 37 | + <key>NSPhotoLibraryUsageDescription</key> | ||
| 38 | + <string>Give permissions to Webcamoid for accessing your photo library</string> | ||
| 39 | + </dict> | ||
| 40 | +</plist> |
StandAlone/colors.qrc
0 → 100644
| 1 | +<RCC> | ||
| 2 | + <qresource prefix="/Webcamoid"> | ||
| 3 | + <file>share/themes/WebcamoidTheme/colors/Adwaita Dark.colors.conf</file> | ||
| 4 | + <file>share/themes/WebcamoidTheme/colors/Adwaita Light.colors.conf</file> | ||
| 5 | + <file>share/themes/WebcamoidTheme/colors/Ambiance Dark.colors.conf</file> | ||
| 6 | + <file>share/themes/WebcamoidTheme/colors/Ambiance Light.colors.conf</file> | ||
| 7 | + <file>share/themes/WebcamoidTheme/colors/Amethyst.colors.conf</file> | ||
| 8 | + <file>share/themes/WebcamoidTheme/colors/Aqua Dark.colors.conf</file> | ||
| 9 | + <file>share/themes/WebcamoidTheme/colors/Aqua Light.colors.conf</file> | ||
| 10 | + <file>share/themes/WebcamoidTheme/colors/Breeze Dark.colors.conf</file> | ||
| 11 | + <file>share/themes/WebcamoidTheme/colors/Breeze Light.colors.conf</file> | ||
| 12 | + <file>share/themes/WebcamoidTheme/colors/Breeze Red.colors.conf</file> | ||
| 13 | + <file>share/themes/WebcamoidTheme/colors/Chameleon.colors.conf</file> | ||
| 14 | + <file>share/themes/WebcamoidTheme/colors/Cinereus Green.colors.conf</file> | ||
| 15 | + <file>share/themes/WebcamoidTheme/colors/Eleven Dark.colors.conf</file> | ||
| 16 | + <file>share/themes/WebcamoidTheme/colors/Eleven Light.colors.conf</file> | ||
| 17 | + <file>share/themes/WebcamoidTheme/colors/Endless.colors.conf</file> | ||
| 18 | + <file>share/themes/WebcamoidTheme/colors/Experience.colors.conf</file> | ||
| 19 | + <file>share/themes/WebcamoidTheme/colors/Flatery.colors.conf</file> | ||
| 20 | + <file>share/themes/WebcamoidTheme/colors/Ghost.colors.conf</file> | ||
| 21 | + <file>share/themes/WebcamoidTheme/colors/Jade.colors.conf</file> | ||
| 22 | + <file>share/themes/WebcamoidTheme/colors/Monochrome.colors.conf</file> | ||
| 23 | + <file>share/themes/WebcamoidTheme/colors/Obsidian Blue.colors.conf</file> | ||
| 24 | + <file>share/themes/WebcamoidTheme/colors/Old Plastic.colors.conf</file> | ||
| 25 | + <file>share/themes/WebcamoidTheme/colors/Oxygen Dark.colors.conf</file> | ||
| 26 | + <file>share/themes/WebcamoidTheme/colors/Oxygen Light.colors.conf</file> | ||
| 27 | + <file>share/themes/WebcamoidTheme/colors/Pink.colors.conf</file> | ||
| 28 | + <file>share/themes/WebcamoidTheme/colors/Pink Dark.colors.conf</file> | ||
| 29 | + <file>share/themes/WebcamoidTheme/colors/Red Gold Dark.colors.conf</file> | ||
| 30 | + <file>share/themes/WebcamoidTheme/colors/Silver.colors.conf</file> | ||
| 31 | + <file>share/themes/WebcamoidTheme/colors/Silver Blue.colors.conf</file> | ||
| 32 | + <file>share/themes/WebcamoidTheme/colors/Story Buccaneer.colors.conf</file> | ||
| 33 | + <file>share/themes/WebcamoidTheme/colors/Story Dark.colors.conf</file> | ||
| 34 | + <file>share/themes/WebcamoidTheme/colors/Story Light.colors.conf</file> | ||
| 35 | + <file>share/themes/WebcamoidTheme/colors/Story Royal.colors.conf</file> | ||
| 36 | + <file>share/themes/WebcamoidTheme/colors/Twilight.colors.conf</file> | ||
| 37 | + <file>share/themes/WebcamoidTheme/colors/Wonton Soup.colors.conf</file> | ||
| 38 | + <file>share/themes/WebcamoidTheme/colors/Yaru Dark.colors.conf</file> | ||
| 39 | + <file>share/themes/WebcamoidTheme/colors/Yaru Light.colors.conf</file> | ||
| 40 | + <file>share/themes/WebcamoidTheme/colors/Yaru Orange.colors.conf</file> | ||
| 41 | + <file>share/themes/WebcamoidTheme/colors/Year 98.colors.conf</file> | ||
| 42 | + <file>share/themes/WebcamoidTheme/colors/Year 2000.colors.conf</file> | ||
| 43 | + <file>share/themes/WebcamoidTheme/colors/Yellow Black.colors.conf</file> | ||
| 44 | + </qresource> | ||
| 45 | +</RCC> |
StandAlone/icons.qrc
0 → 100644
| 1 | +<RCC> | ||
| 2 | + <qresource prefix="/Webcamoid"> | ||
| 3 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/about.png</file> | ||
| 4 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/add.png</file> | ||
| 5 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/bug.png</file> | ||
| 6 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/cancel.png</file> | ||
| 7 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/check.png</file> | ||
| 8 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/cursor.png</file> | ||
| 9 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/down.png</file> | ||
| 10 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/edit.png</file> | ||
| 11 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/fonts.png</file> | ||
| 12 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/headphones.png</file> | ||
| 13 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/heart.png</file> | ||
| 14 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/internet.png</file> | ||
| 15 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/menu.png</file> | ||
| 16 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/mic.png</file> | ||
| 17 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/minus.png</file> | ||
| 18 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/no.png</file> | ||
| 19 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/paperclip.png</file> | ||
| 20 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/photo.png</file> | ||
| 21 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/picture.png</file> | ||
| 22 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/play.png</file> | ||
| 23 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/record-start.png</file> | ||
| 24 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/record-stop.png</file> | ||
| 25 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/recording.png</file> | ||
| 26 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/reset.png</file> | ||
| 27 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/right.png</file> | ||
| 28 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/save.png</file> | ||
| 29 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/search.png</file> | ||
| 30 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/settings.png</file> | ||
| 31 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/sound.png</file> | ||
| 32 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/stop.png</file> | ||
| 33 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/swipe-left.png</file> | ||
| 34 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/swipe-right.png</file> | ||
| 35 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/up.png</file> | ||
| 36 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/video-effects.png</file> | ||
| 37 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/video.png</file> | ||
| 38 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/webcam.png</file> | ||
| 39 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/webcamoid.ico</file> | ||
| 40 | + <file>share/themes/WebcamoidTheme/icons/hicolor/128x128/webcamoid.png</file> | ||
| 41 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/about.png</file> | ||
| 42 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/add.png</file> | ||
| 43 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/bug.png</file> | ||
| 44 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/cancel.png</file> | ||
| 45 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/check.png</file> | ||
| 46 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/cursor.png</file> | ||
| 47 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/down.png</file> | ||
| 48 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/edit.png</file> | ||
| 49 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/fonts.png</file> | ||
| 50 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/headphones.png</file> | ||
| 51 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/heart.png</file> | ||
| 52 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/internet.png</file> | ||
| 53 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/menu.png</file> | ||
| 54 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/mic.png</file> | ||
| 55 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/minus.png</file> | ||
| 56 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/no.png</file> | ||
| 57 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/paperclip.png</file> | ||
| 58 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/photo.png</file> | ||
| 59 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/picture.png</file> | ||
| 60 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/play.png</file> | ||
| 61 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/record-start.png</file> | ||
| 62 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/record-stop.png</file> | ||
| 63 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/recording.png</file> | ||
| 64 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/reset.png</file> | ||
| 65 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/right.png</file> | ||
| 66 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/save.png</file> | ||
| 67 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/search.png</file> | ||
| 68 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/settings.png</file> | ||
| 69 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/sound.png</file> | ||
| 70 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/stop.png</file> | ||
| 71 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/swipe-left.png</file> | ||
| 72 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/swipe-right.png</file> | ||
| 73 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/up.png</file> | ||
| 74 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/video-effects.png</file> | ||
| 75 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/video.png</file> | ||
| 76 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/webcam.png</file> | ||
| 77 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/webcamoid.ico</file> | ||
| 78 | + <file>share/themes/WebcamoidTheme/icons/hicolor/16x16/webcamoid.png</file> | ||
| 79 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/about.png</file> | ||
| 80 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/add.png</file> | ||
| 81 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/bug.png</file> | ||
| 82 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/cancel.png</file> | ||
| 83 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/check.png</file> | ||
| 84 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/cursor.png</file> | ||
| 85 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/down.png</file> | ||
| 86 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/edit.png</file> | ||
| 87 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/fonts.png</file> | ||
| 88 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/headphones.png</file> | ||
| 89 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/heart.png</file> | ||
| 90 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/internet.png</file> | ||
| 91 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/menu.png</file> | ||
| 92 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/mic.png</file> | ||
| 93 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/minus.png</file> | ||
| 94 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/no.png</file> | ||
| 95 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/paperclip.png</file> | ||
| 96 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/photo.png</file> | ||
| 97 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/picture.png</file> | ||
| 98 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/play.png</file> | ||
| 99 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/record-start.png</file> | ||
| 100 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/record-stop.png</file> | ||
| 101 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/recording.png</file> | ||
| 102 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/reset.png</file> | ||
| 103 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/right.png</file> | ||
| 104 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/save.png</file> | ||
| 105 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/search.png</file> | ||
| 106 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/settings.png</file> | ||
| 107 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/sound.png</file> | ||
| 108 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/stop.png</file> | ||
| 109 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/swipe-left.png</file> | ||
| 110 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/swipe-right.png</file> | ||
| 111 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/up.png</file> | ||
| 112 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/video-effects.png</file> | ||
| 113 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/video.png</file> | ||
| 114 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/webcam.png</file> | ||
| 115 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/webcamoid.ico</file> | ||
| 116 | + <file>share/themes/WebcamoidTheme/icons/hicolor/22x22/webcamoid.png</file> | ||
| 117 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/about.png</file> | ||
| 118 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/add.png</file> | ||
| 119 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/bug.png</file> | ||
| 120 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/cancel.png</file> | ||
| 121 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/check.png</file> | ||
| 122 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/cursor.png</file> | ||
| 123 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/down.png</file> | ||
| 124 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/edit.png</file> | ||
| 125 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/fonts.png</file> | ||
| 126 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/headphones.png</file> | ||
| 127 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/heart.png</file> | ||
| 128 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/internet.png</file> | ||
| 129 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/menu.png</file> | ||
| 130 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/mic.png</file> | ||
| 131 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/minus.png</file> | ||
| 132 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/no.png</file> | ||
| 133 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/paperclip.png</file> | ||
| 134 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/photo.png</file> | ||
| 135 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/picture.png</file> | ||
| 136 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/play.png</file> | ||
| 137 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/record-start.png</file> | ||
| 138 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/record-stop.png</file> | ||
| 139 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/recording.png</file> | ||
| 140 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/reset.png</file> | ||
| 141 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/right.png</file> | ||
| 142 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/save.png</file> | ||
| 143 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/search.png</file> | ||
| 144 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/settings.png</file> | ||
| 145 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/sound.png</file> | ||
| 146 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/stop.png</file> | ||
| 147 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/swipe-left.png</file> | ||
| 148 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/swipe-right.png</file> | ||
| 149 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/up.png</file> | ||
| 150 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/video-effects.png</file> | ||
| 151 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/video.png</file> | ||
| 152 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/webcam.png</file> | ||
| 153 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/webcamoid.ico</file> | ||
| 154 | + <file>share/themes/WebcamoidTheme/icons/hicolor/256x256/webcamoid.png</file> | ||
| 155 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/about.png</file> | ||
| 156 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/add.png</file> | ||
| 157 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/bug.png</file> | ||
| 158 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/cancel.png</file> | ||
| 159 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/check.png</file> | ||
| 160 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/cursor.png</file> | ||
| 161 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/down.png</file> | ||
| 162 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/edit.png</file> | ||
| 163 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/fonts.png</file> | ||
| 164 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/headphones.png</file> | ||
| 165 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/heart.png</file> | ||
| 166 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/internet.png</file> | ||
| 167 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/menu.png</file> | ||
| 168 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/mic.png</file> | ||
| 169 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/minus.png</file> | ||
| 170 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/no.png</file> | ||
| 171 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/paperclip.png</file> | ||
| 172 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/photo.png</file> | ||
| 173 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/picture.png</file> | ||
| 174 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/play.png</file> | ||
| 175 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/record-start.png</file> | ||
| 176 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/record-stop.png</file> | ||
| 177 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/recording.png</file> | ||
| 178 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/reset.png</file> | ||
| 179 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/right.png</file> | ||
| 180 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/save.png</file> | ||
| 181 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/search.png</file> | ||
| 182 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/settings.png</file> | ||
| 183 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/sound.png</file> | ||
| 184 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/stop.png</file> | ||
| 185 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/swipe-left.png</file> | ||
| 186 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/swipe-right.png</file> | ||
| 187 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/up.png</file> | ||
| 188 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/video-effects.png</file> | ||
| 189 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/video.png</file> | ||
| 190 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/webcam.png</file> | ||
| 191 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/webcamoid.ico</file> | ||
| 192 | + <file>share/themes/WebcamoidTheme/icons/hicolor/32x32/webcamoid.png</file> | ||
| 193 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/about.png</file> | ||
| 194 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/add.png</file> | ||
| 195 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/bug.png</file> | ||
| 196 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/cancel.png</file> | ||
| 197 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/check.png</file> | ||
| 198 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/cursor.png</file> | ||
| 199 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/down.png</file> | ||
| 200 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/edit.png</file> | ||
| 201 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/fonts.png</file> | ||
| 202 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/headphones.png</file> | ||
| 203 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/heart.png</file> | ||
| 204 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/internet.png</file> | ||
| 205 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/menu.png</file> | ||
| 206 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/mic.png</file> | ||
| 207 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/minus.png</file> | ||
| 208 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/no.png</file> | ||
| 209 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/paperclip.png</file> | ||
| 210 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/photo.png</file> | ||
| 211 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/picture.png</file> | ||
| 212 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/play.png</file> | ||
| 213 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/record-start.png</file> | ||
| 214 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/record-stop.png</file> | ||
| 215 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/recording.png</file> | ||
| 216 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/reset.png</file> | ||
| 217 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/right.png</file> | ||
| 218 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/save.png</file> | ||
| 219 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/search.png</file> | ||
| 220 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/settings.png</file> | ||
| 221 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/sound.png</file> | ||
| 222 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/stop.png</file> | ||
| 223 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/swipe-left.png</file> | ||
| 224 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/swipe-right.png</file> | ||
| 225 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/up.png</file> | ||
| 226 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/video-effects.png</file> | ||
| 227 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/video.png</file> | ||
| 228 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/webcam.png</file> | ||
| 229 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/webcamoid.ico</file> | ||
| 230 | + <file>share/themes/WebcamoidTheme/icons/hicolor/48x48/webcamoid.png</file> | ||
| 231 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/about.png</file> | ||
| 232 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/add.png</file> | ||
| 233 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/bug.png</file> | ||
| 234 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/cancel.png</file> | ||
| 235 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/check.png</file> | ||
| 236 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/cursor.png</file> | ||
| 237 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/down.png</file> | ||
| 238 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/edit.png</file> | ||
| 239 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/fonts.png</file> | ||
| 240 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/headphones.png</file> | ||
| 241 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/heart.png</file> | ||
| 242 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/internet.png</file> | ||
| 243 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/menu.png</file> | ||
| 244 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/mic.png</file> | ||
| 245 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/minus.png</file> | ||
| 246 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/no.png</file> | ||
| 247 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/paperclip.png</file> | ||
| 248 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/photo.png</file> | ||
| 249 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/picture.png</file> | ||
| 250 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/play.png</file> | ||
| 251 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/record-start.png</file> | ||
| 252 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/record-stop.png</file> | ||
| 253 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/recording.png</file> | ||
| 254 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/reset.png</file> | ||
| 255 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/right.png</file> | ||
| 256 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/save.png</file> | ||
| 257 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/search.png</file> | ||
| 258 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/settings.png</file> | ||
| 259 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/sound.png</file> | ||
| 260 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/stop.png</file> | ||
| 261 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/swipe-left.png</file> | ||
| 262 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/swipe-right.png</file> | ||
| 263 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/up.png</file> | ||
| 264 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/video-effects.png</file> | ||
| 265 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/video.png</file> | ||
| 266 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/webcam.png</file> | ||
| 267 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/webcamoid.ico</file> | ||
| 268 | + <file>share/themes/WebcamoidTheme/icons/hicolor/64x64/webcamoid.png</file> | ||
| 269 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/about.png</file> | ||
| 270 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/add.png</file> | ||
| 271 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/bug.png</file> | ||
| 272 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/cancel.png</file> | ||
| 273 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/check.png</file> | ||
| 274 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/cursor.png</file> | ||
| 275 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/down.png</file> | ||
| 276 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/edit.png</file> | ||
| 277 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/fonts.png</file> | ||
| 278 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/headphones.png</file> | ||
| 279 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/heart.png</file> | ||
| 280 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/internet.png</file> | ||
| 281 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/menu.png</file> | ||
| 282 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/mic.png</file> | ||
| 283 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/minus.png</file> | ||
| 284 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/no.png</file> | ||
| 285 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/paperclip.png</file> | ||
| 286 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/photo.png</file> | ||
| 287 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/picture.png</file> | ||
| 288 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/play.png</file> | ||
| 289 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/record-start.png</file> | ||
| 290 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/record-stop.png</file> | ||
| 291 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/recording.png</file> | ||
| 292 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/reset.png</file> | ||
| 293 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/right.png</file> | ||
| 294 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/save.png</file> | ||
| 295 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/search.png</file> | ||
| 296 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/settings.png</file> | ||
| 297 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/sound.png</file> | ||
| 298 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/stop.png</file> | ||
| 299 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/swipe-left.png</file> | ||
| 300 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/swipe-right.png</file> | ||
| 301 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/up.png</file> | ||
| 302 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/video-effects.png</file> | ||
| 303 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/video.png</file> | ||
| 304 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/webcam.png</file> | ||
| 305 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/webcamoid.ico</file> | ||
| 306 | + <file>share/themes/WebcamoidTheme/icons/hicolor/8x8/webcamoid.png</file> | ||
| 307 | + <file>share/themes/WebcamoidTheme/icons/hicolor/index.theme</file> | ||
| 308 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/about.svg</file> | ||
| 309 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/add.svg</file> | ||
| 310 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/bug.svg</file> | ||
| 311 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/cancel.svg</file> | ||
| 312 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/check.svg</file> | ||
| 313 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/cursor.svg</file> | ||
| 314 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/down.svg</file> | ||
| 315 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/edit.svg</file> | ||
| 316 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/fonts.svg</file> | ||
| 317 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/headphones.svg</file> | ||
| 318 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/heart.svg</file> | ||
| 319 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/internet.svg</file> | ||
| 320 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/menu.svg</file> | ||
| 321 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/mic.svg</file> | ||
| 322 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/minus.svg</file> | ||
| 323 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/no.svg</file> | ||
| 324 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/paperclip.svg</file> | ||
| 325 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/photo.svg</file> | ||
| 326 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/picture.svg</file> | ||
| 327 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/play.svg</file> | ||
| 328 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/record-start.svg</file> | ||
| 329 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/record-stop.svg</file> | ||
| 330 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/recording.svg</file> | ||
| 331 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/reset.svg</file> | ||
| 332 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/right.svg</file> | ||
| 333 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/save.svg</file> | ||
| 334 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/search.svg</file> | ||
| 335 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/settings.svg</file> | ||
| 336 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/sound.svg</file> | ||
| 337 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/stop.svg</file> | ||
| 338 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/swipe-left.svg</file> | ||
| 339 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/swipe-right.svg</file> | ||
| 340 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/up.svg</file> | ||
| 341 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/video-effects.svg</file> | ||
| 342 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/video.svg</file> | ||
| 343 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/webcam.svg</file> | ||
| 344 | + <file>share/themes/WebcamoidTheme/icons/hicolor/scalable/webcamoid.svg</file> | ||
| 345 | + <file>share/themes/WebcamoidTheme/icons/webcamoid.icns</file> | ||
| 346 | + </qresource> | ||
| 347 | +</RCC> |
StandAlone/java/CMakeLists.txt
0 → 100644
| 1 | +# Webcamoid, webcam capture application. | ||
| 2 | +# Copyright (C) 2021 Gonzalo Exequiel Pedone | ||
| 3 | +# | ||
| 4 | +# Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | +# it under the terms of the GNU General Public License as published by | ||
| 6 | +# the Free Software Foundation, either version 3 of the License, or | ||
| 7 | +# (at your option) any later version. | ||
| 8 | +# | ||
| 9 | +# Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | +# GNU General Public License for more details. | ||
| 13 | +# | ||
| 14 | +# You should have received a copy of the GNU General Public License | ||
| 15 | +# along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | +# | ||
| 17 | +# Web-Site: http://webcamoid.github.io/ | ||
| 18 | + | ||
| 19 | +cmake_minimum_required(VERSION 3.16) | ||
| 20 | + | ||
| 21 | +project(Webcamoid_jarutils) | ||
| 22 | + | ||
| 23 | +include(../../libAvKys/cmake/ProjectCommons.cmake) | ||
| 24 | + | ||
| 25 | +set(SOURCES_PREFIX src/org/webcamoid/webcamoidutils) | ||
| 26 | +set(SOURCES ${SOURCES_PREFIX}/WebcamoidUtils.java) | ||
| 27 | +set(DEPENDENCY_SOURCES ${SOURCES_PREFIX}/AdManager.java) | ||
| 28 | +set(COMPILE_SOURCES ${SOURCES}) | ||
| 29 | +set(ALL_SOURCES ${SOURCES} ${DEPENDENCY_SOURCES}) | ||
| 30 | +set(INCLUDE_JARS ${ANDROID_JAR_DIRECTORY}/android.jar) | ||
| 31 | + | ||
| 32 | +set(MAVEN_REPOSITORIES | ||
| 33 | + "https://maven.google.com") | ||
| 34 | +string(JOIN "," MAVEN_REPOSITORIES ${MAVEN_REPOSITORIES}) | ||
| 35 | + | ||
| 36 | +set(MAVEN_DEPENDENCIES | ||
| 37 | + "com.google.android.gms:play-services-ads-lite:${GOOGLE_PLAY_SERVICES_ADS_VERSION}:aar") | ||
| 38 | + | ||
| 39 | +if (ANDROID) | ||
| 40 | + include(UseJava) | ||
| 41 | + find_package(Java ${ANDROID_JAVA_VERSION}) | ||
| 42 | + | ||
| 43 | + if (Java_FOUND) | ||
| 44 | + if (ENABLE_ANDROID_ADS AND MVN_BIN AND (ANDROID_TARGET_SDK_VERSION GREATER_EQUAL 31)) | ||
| 45 | + list(APPEND COMPILE_SOURCES ${DEPENDENCY_SOURCES}) | ||
| 46 | + | ||
| 47 | + add_custom_target(StandAlone_java_deps) | ||
| 48 | + set(STANDALONE_JAVA_DEPS StandAlone_java_deps CACHE INTERNAL "") | ||
| 49 | + | ||
| 50 | + foreach (DEPENDENCY IN LISTS MAVEN_DEPENDENCIES) | ||
| 51 | + string(REPLACE ":" ";" DEPENDENCY_PARTS "${DEPENDENCY}") | ||
| 52 | + list(GET DEPENDENCY_PARTS 0 DEPENDENCY_GROUPID) | ||
| 53 | + list(GET DEPENDENCY_PARTS 1 DEPENDENCY_ARTIFACT) | ||
| 54 | + list(GET DEPENDENCY_PARTS 2 DEPENDENCY_VERSION) | ||
| 55 | + list(GET DEPENDENCY_PARTS 3 DEPENDENCY_EXT) | ||
| 56 | + set(DEPENDENCY_TGNAME "${DEPENDENCY_GROUPID}_${DEPENDENCY_ARTIFACT}_${DEPENDENCY_EXT}") | ||
| 57 | + string(REPLACE "." "_" DEPENDENCY_TGNAME "${DEPENDENCY_TGNAME}") | ||
| 58 | + string(REPLACE "-" "_" DEPENDENCY_TGNAME "${DEPENDENCY_TGNAME}") | ||
| 59 | + string(REPLACE "." "/" GROUPID_PATH "${DEPENDENCY_GROUPID}") | ||
| 60 | + set(DEPFILE_PATH "${MAVEN_LOCAL_REPOSITORY}/${GROUPID_PATH}/${DEPENDENCY_ARTIFACT}/${DEPENDENCY_VERSION}/${DEPENDENCY_ARTIFACT}-${DEPENDENCY_VERSION}.${DEPENDENCY_EXT}") | ||
| 61 | + get_filename_component(DEPFILE_DIR "${DEPFILE_PATH}" DIRECTORY) | ||
| 62 | + add_custom_command( | ||
| 63 | + OUTPUT "${DEPFILE_PATH}" | ||
| 64 | + COMMAND ${MVN_BIN} | ||
| 65 | + -Dmaven.repo.local=${MAVEN_LOCAL_REPOSITORY} | ||
| 66 | + dependency:get | ||
| 67 | + -Dartifact=${DEPENDENCY} | ||
| 68 | + -DremoteRepositories=${MAVEN_REPOSITORIES} | ||
| 69 | + -Dtransitive=false | ||
| 70 | + VERBATIM | ||
| 71 | + ) | ||
| 72 | + | ||
| 73 | + if ("${DEPENDENCY_EXT}" STREQUAL "aar") | ||
| 74 | + add_custom_command( | ||
| 75 | + OUTPUT "${DEPFILE_DIR}/classes.jar" | ||
| 76 | + COMMAND ${CMAKE_COMMAND} -E tar xzf "${DEPFILE_PATH}" | ||
| 77 | + WORKING_DIRECTORY "${DEPFILE_DIR}" | ||
| 78 | + DEPENDS "${DEPFILE_PATH}" | ||
| 79 | + VERBATIM | ||
| 80 | + ) | ||
| 81 | + add_custom_target(StandAlone_java_deps_${DEPENDENCY_TGNAME} ALL | ||
| 82 | + DEPENDS "${DEPFILE_DIR}/classes.jar" | ||
| 83 | + VERBATIM | ||
| 84 | + ) | ||
| 85 | + list(APPEND INCLUDE_JARS "${DEPFILE_DIR}/classes.jar") | ||
| 86 | + add_dependencies(StandAlone_java_deps StandAlone_java_deps_${DEPENDENCY_TGNAME}) | ||
| 87 | + else () | ||
| 88 | + add_custom_target(StandAlone_java_deps_${DEPENDENCY_TGNAME} ALL | ||
| 89 | + DEPENDS "${DEPFILE_DIR}/${DEPENDENCY_ARTIFACT}-${DEPENDENCY_VERSION}.${DEPENDENCY_EXT}" | ||
| 90 | + VERBATIM | ||
| 91 | + ) | ||
| 92 | + list(APPEND INCLUDE_JARS "${DEPFILE_DIR}/${DEPENDENCY_ARTIFACT}-${DEPENDENCY_VERSION}.${DEPENDENCY_EXT}") | ||
| 93 | + add_dependencies(StandAlone_java_deps StandAlone_java_deps_${DEPENDENCY_TGNAME}) | ||
| 94 | + endif () | ||
| 95 | + endforeach () | ||
| 96 | + endif () | ||
| 97 | + | ||
| 98 | + set(CMAKE_JAVA_COMPILE_FLAGS "-source" "${ANDROID_JAVA_VERSION}" "-target" "${ANDROID_JAVA_VERSION}") | ||
| 99 | + add_jar(Webcamoid_jarutils | ||
| 100 | + SOURCES ${COMPILE_SOURCES} | ||
| 101 | + INCLUDE_JARS ${INCLUDE_JARS} | ||
| 102 | + OUTPUT_NAME Webcamoid_jarutils | ||
| 103 | + OUTPUT_DIR ${CMAKE_BINARY_DIR}/${BUILDDIR}/${JARDIR} | ||
| 104 | + DEPENDS ${STANDALONE_JAVA_DEPS}) | ||
| 105 | + install_jar(Webcamoid_jarutils DESTINATION ${JARDIR}) | ||
| 106 | + endif () | ||
| 107 | +endif () | ||
| 108 | + | ||
| 109 | +add_custom_target(Webcamoid_jarutils_sources SOURCES ${ALL_SOURCES}) |
| 1 | + IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. | ||
| 2 | + | ||
| 3 | + By downloading, copying, installing or using the software you agree to this license. | ||
| 4 | + If you do not agree to this license, do not download, install, | ||
| 5 | + copy or use the software. | ||
| 6 | + | ||
| 7 | + | ||
| 8 | + Intel License Agreement | ||
| 9 | + For Open Source Computer Vision Library | ||
| 10 | + | ||
| 11 | +Copyright (C) 2000, Intel Corporation, all rights reserved. | ||
| 12 | +Third party copyrights are property of their respective owners. | ||
| 13 | + | ||
| 14 | +Redistribution and use in source and binary forms, with or without modification, | ||
| 15 | +are permitted provided that the following conditions are met: | ||
| 16 | + | ||
| 17 | + * Redistribution's of source code must retain the above copyright notice, | ||
| 18 | + this list of conditions and the following disclaimer. | ||
| 19 | + | ||
| 20 | + * Redistribution's in binary form must reproduce the above copyright notice, | ||
| 21 | + this list of conditions and the following disclaimer in the documentation | ||
| 22 | + and/or other materials provided with the distribution. | ||
| 23 | + | ||
| 24 | + * The name of Intel Corporation may not be used to endorse or promote products | ||
| 25 | + derived from this software without specific prior written permission. | ||
| 26 | + | ||
| 27 | +This software is provided by the copyright holders and contributors "as is" and | ||
| 28 | +any express or implied warranties, including, but not limited to, the implied | ||
| 29 | +warranties of merchantability and fitness for a particular purpose are disclaimed. | ||
| 30 | +In no event shall the Intel Corporation or contributors be liable for any direct, | ||
| 31 | +indirect, incidental, special, exemplary, or consequential damages | ||
| 32 | +(including, but not limited to, procurement of substitute goods or services; | ||
| 33 | +loss of use, data, or profits; or business interruption) however caused | ||
| 34 | +and on any theory of liability, whether in contract, strict liability, | ||
| 35 | +or tort (including negligence or otherwise) arising in any way out of | ||
| 36 | +the use of this software, even if advised of the possibility of such damage. |
| 1 | +Copyright (c) 2012, Tanner Helland | ||
| 2 | +All rights reserved. | ||
| 3 | + | ||
| 4 | +Redistribution and use in source and binary forms, with or without | ||
| 5 | +modification, are permitted provided that the following conditions are met: | ||
| 6 | + | ||
| 7 | +1. Redistributions of source code must retain the above copyright notice, this | ||
| 8 | + list of conditions and the following disclaimer. | ||
| 9 | + | ||
| 10 | +2. Redistributions in binary form must reproduce the above copyright notice, | ||
| 11 | + this list of conditions and the following disclaimer in the documentation | ||
| 12 | + and/or other materials provided with the distribution. | ||
| 13 | + | ||
| 14 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
| 15 | +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 16 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| 17 | +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
| 18 | +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 19 | +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 20 | +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| 21 | +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
| 22 | +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 23 | +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 1 | +usb.ids file, and ONLY usb.ids file is licensed under the 3-Clause BSD License, | ||
| 2 | +following is a copy of the license: | ||
| 3 | + | ||
| 4 | + | ||
| 5 | +3-clause BSD License | ||
| 6 | + | ||
| 7 | +Redistribution and use in source and binary forms, with or without | ||
| 8 | +modification, are permitted provided that the following conditions are met: | ||
| 9 | + * Redistributions of source code must retain the above copyright | ||
| 10 | + notice, this list of conditions and the following disclaimer. | ||
| 11 | + * Redistributions in binary form must reproduce the above copyright | ||
| 12 | + notice, this list of conditions and the following disclaimer in the | ||
| 13 | + documentation and/or other materials provided with the distribution. | ||
| 14 | + * Neither the name of the <organization> nor the | ||
| 15 | + names of its contributors may be used to endorse or promote products | ||
| 16 | + derived from this software without specific prior written permission. | ||
| 17 | + | ||
| 18 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
| 19 | +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| 20 | +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| 21 | +DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY | ||
| 22 | +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
| 23 | +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 24 | +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
| 25 | +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 26 | +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 27 | +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 1 | +Creative Commons Legal Code | ||
| 2 | + | ||
| 3 | +CC0 1.0 Universal | ||
| 4 | + | ||
| 5 | + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE | ||
| 6 | + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN | ||
| 7 | + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS | ||
| 8 | + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES | ||
| 9 | + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS | ||
| 10 | + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM | ||
| 11 | + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED | ||
| 12 | + HEREUNDER. | ||
| 13 | + | ||
| 14 | +Statement of Purpose | ||
| 15 | + | ||
| 16 | +The laws of most jurisdictions throughout the world automatically confer | ||
| 17 | +exclusive Copyright and Related Rights (defined below) upon the creator | ||
| 18 | +and subsequent owner(s) (each and all, an "owner") of an original work of | ||
| 19 | +authorship and/or a database (each, a "Work"). | ||
| 20 | + | ||
| 21 | +Certain owners wish to permanently relinquish those rights to a Work for | ||
| 22 | +the purpose of contributing to a commons of creative, cultural and | ||
| 23 | +scientific works ("Commons") that the public can reliably and without fear | ||
| 24 | +of later claims of infringement build upon, modify, incorporate in other | ||
| 25 | +works, reuse and redistribute as freely as possible in any form whatsoever | ||
| 26 | +and for any purposes, including without limitation commercial purposes. | ||
| 27 | +These owners may contribute to the Commons to promote the ideal of a free | ||
| 28 | +culture and the further production of creative, cultural and scientific | ||
| 29 | +works, or to gain reputation or greater distribution for their Work in | ||
| 30 | +part through the use and efforts of others. | ||
| 31 | + | ||
| 32 | +For these and/or other purposes and motivations, and without any | ||
| 33 | +expectation of additional consideration or compensation, the person | ||
| 34 | +associating CC0 with a Work (the "Affirmer"), to the extent that he or she | ||
| 35 | +is an owner of Copyright and Related Rights in the Work, voluntarily | ||
| 36 | +elects to apply CC0 to the Work and publicly distribute the Work under its | ||
| 37 | +terms, with knowledge of his or her Copyright and Related Rights in the | ||
| 38 | +Work and the meaning and intended legal effect of CC0 on those rights. | ||
| 39 | + | ||
| 40 | +1. Copyright and Related Rights. A Work made available under CC0 may be | ||
| 41 | +protected by copyright and related or neighboring rights ("Copyright and | ||
| 42 | +Related Rights"). Copyright and Related Rights include, but are not | ||
| 43 | +limited to, the following: | ||
| 44 | + | ||
| 45 | + i. the right to reproduce, adapt, distribute, perform, display, | ||
| 46 | + communicate, and translate a Work; | ||
| 47 | + ii. moral rights retained by the original author(s) and/or performer(s); | ||
| 48 | +iii. publicity and privacy rights pertaining to a person's image or | ||
| 49 | + likeness depicted in a Work; | ||
| 50 | + iv. rights protecting against unfair competition in regards to a Work, | ||
| 51 | + subject to the limitations in paragraph 4(a), below; | ||
| 52 | + v. rights protecting the extraction, dissemination, use and reuse of data | ||
| 53 | + in a Work; | ||
| 54 | + vi. database rights (such as those arising under Directive 96/9/EC of the | ||
| 55 | + European Parliament and of the Council of 11 March 1996 on the legal | ||
| 56 | + protection of databases, and under any national implementation | ||
| 57 | + thereof, including any amended or successor version of such | ||
| 58 | + directive); and | ||
| 59 | +vii. other similar, equivalent or corresponding rights throughout the | ||
| 60 | + world based on applicable law or treaty, and any national | ||
| 61 | + implementations thereof. | ||
| 62 | + | ||
| 63 | +2. Waiver. To the greatest extent permitted by, but not in contravention | ||
| 64 | +of, applicable law, Affirmer hereby overtly, fully, permanently, | ||
| 65 | +irrevocably and unconditionally waives, abandons, and surrenders all of | ||
| 66 | +Affirmer's Copyright and Related Rights and associated claims and causes | ||
| 67 | +of action, whether now known or unknown (including existing as well as | ||
| 68 | +future claims and causes of action), in the Work (i) in all territories | ||
| 69 | +worldwide, (ii) for the maximum duration provided by applicable law or | ||
| 70 | +treaty (including future time extensions), (iii) in any current or future | ||
| 71 | +medium and for any number of copies, and (iv) for any purpose whatsoever, | ||
| 72 | +including without limitation commercial, advertising or promotional | ||
| 73 | +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each | ||
| 74 | +member of the public at large and to the detriment of Affirmer's heirs and | ||
| 75 | +successors, fully intending that such Waiver shall not be subject to | ||
| 76 | +revocation, rescission, cancellation, termination, or any other legal or | ||
| 77 | +equitable action to disrupt the quiet enjoyment of the Work by the public | ||
| 78 | +as contemplated by Affirmer's express Statement of Purpose. | ||
| 79 | + | ||
| 80 | +3. Public License Fallback. Should any part of the Waiver for any reason | ||
| 81 | +be judged legally invalid or ineffective under applicable law, then the | ||
| 82 | +Waiver shall be preserved to the maximum extent permitted taking into | ||
| 83 | +account Affirmer's express Statement of Purpose. In addition, to the | ||
| 84 | +extent the Waiver is so judged Affirmer hereby grants to each affected | ||
| 85 | +person a royalty-free, non transferable, non sublicensable, non exclusive, | ||
| 86 | +irrevocable and unconditional license to exercise Affirmer's Copyright and | ||
| 87 | +Related Rights in the Work (i) in all territories worldwide, (ii) for the | ||
| 88 | +maximum duration provided by applicable law or treaty (including future | ||
| 89 | +time extensions), (iii) in any current or future medium and for any number | ||
| 90 | +of copies, and (iv) for any purpose whatsoever, including without | ||
| 91 | +limitation commercial, advertising or promotional purposes (the | ||
| 92 | +"License"). The License shall be deemed effective as of the date CC0 was | ||
| 93 | +applied by Affirmer to the Work. Should any part of the License for any | ||
| 94 | +reason be judged legally invalid or ineffective under applicable law, such | ||
| 95 | +partial invalidity or ineffectiveness shall not invalidate the remainder | ||
| 96 | +of the License, and in such case Affirmer hereby affirms that he or she | ||
| 97 | +will not (i) exercise any of his or her remaining Copyright and Related | ||
| 98 | +Rights in the Work or (ii) assert any associated claims and causes of | ||
| 99 | +action with respect to the Work, in either case contrary to Affirmer's | ||
| 100 | +express Statement of Purpose. | ||
| 101 | + | ||
| 102 | +4. Limitations and Disclaimers. | ||
| 103 | + | ||
| 104 | + a. No trademark or patent rights held by Affirmer are waived, abandoned, | ||
| 105 | + surrendered, licensed or otherwise affected by this document. | ||
| 106 | + b. Affirmer offers the Work as-is and makes no representations or | ||
| 107 | + warranties of any kind concerning the Work, express, implied, | ||
| 108 | + statutory or otherwise, including without limitation warranties of | ||
| 109 | + title, merchantability, fitness for a particular purpose, non | ||
| 110 | + infringement, or the absence of latent or other defects, accuracy, or | ||
| 111 | + the present or absence of errors, whether or not discoverable, all to | ||
| 112 | + the greatest extent permissible under applicable law. | ||
| 113 | + c. Affirmer disclaims responsibility for clearing rights of other persons | ||
| 114 | + that may apply to the Work or any use thereof, including without | ||
| 115 | + limitation any person's Copyright and Related Rights in the Work. | ||
| 116 | + Further, Affirmer disclaims responsibility for obtaining any necessary | ||
| 117 | + consents, permissions or other rights required for any use of the | ||
| 118 | + Work. | ||
| 119 | + d. Affirmer understands and acknowledges that Creative Commons is not a | ||
| 120 | + party to this document and has no duty or obligation with respect to | ||
| 121 | + this CC0 or use of the Work. |
StandAlone/share/android/AndroidManifest.xml
0 → 100644
| 1 | +<?xml version='1.0' encoding='utf-8'?> | ||
| 2 | +<manifest package="io.github.webcamoid.Webcamoid" | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + android:versionName="9.2.4" | ||
| 5 | + android:versionCode="9002004" | ||
| 6 | + android:installLocation="auto"> | ||
| 7 | + <application android:hardwareAccelerated="true" | ||
| 8 | + android:name="org.qtproject.qt.android.bindings.QtApplication" | ||
| 9 | + android:label="Webcamoid" | ||
| 10 | + android:extractNativeLibs="true" | ||
| 11 | + android:allowBackup="true" | ||
| 12 | + android:fullBackupOnly="false" | ||
| 13 | + android:icon="@drawable/icon" | ||
| 14 | + android:largeHeap="true"> | ||
| 15 | + <activity android:configChanges="mcc|mnc|locale|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|layoutDirection|fontScale|density" | ||
| 16 | + android:name="org.qtproject.qt.android.bindings.QtActivity" | ||
| 17 | + android:label="Webcamoid" | ||
| 18 | + android:screenOrientation="unspecified" | ||
| 19 | + android:launchMode="standard" | ||
| 20 | + android:exported="true"> | ||
| 21 | + <intent-filter> | ||
| 22 | + <action android:name="android.intent.action.MAIN"/> | ||
| 23 | + <category android:name="android.intent.category.LAUNCHER"/> | ||
| 24 | + </intent-filter> | ||
| 25 | + <intent-filter> | ||
| 26 | + <action android:name="android.intent.action.VIEW"/> | ||
| 27 | + <category android:name="android.intent.category.BROWSABLE"/> | ||
| 28 | + <category android:name="android.intent.category.DEFAULT"/> | ||
| 29 | + <data android:scheme="file"/> | ||
| 30 | + </intent-filter> | ||
| 31 | + | ||
| 32 | + <!-- Application arguments --> | ||
| 33 | + <!-- meta-data android:name="android.app.arguments" android:value="arg1 arg2 arg3"/ --> | ||
| 34 | + <!-- Application arguments --> | ||
| 35 | + | ||
| 36 | + <meta-data android:name="android.app.lib_name" android:value="Webcamoid"/> | ||
| 37 | + <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/> | ||
| 38 | + <meta-data android:name="android.app.repository" android:value="default"/> | ||
| 39 | + <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/> | ||
| 40 | + <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/> | ||
| 41 | + | ||
| 42 | + <!-- Deploy Qt libs as part of package --> | ||
| 43 | + <meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/> | ||
| 44 | + | ||
| 45 | + <!-- Run with local libs --> | ||
| 46 | + <meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/> | ||
| 47 | + <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/> | ||
| 48 | + <meta-data android:name="android.app.load_local_libs_resource_id" android:resource="@array/load_local_libs"/> | ||
| 49 | + <meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/> | ||
| 50 | + <meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/> | ||
| 51 | + <!-- Used to specify custom system library path to run with local system libs --> | ||
| 52 | + <!-- <meta-data android:name="android.app.system_libs_prefix" android:value="/system/lib/"/> --> | ||
| 53 | + <!-- Messages maps --> | ||
| 54 | + <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/> | ||
| 55 | + <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/> | ||
| 56 | + <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/> | ||
| 57 | + <meta-data android:value="@string/unsupported_android_version" android:name="android.app.unsupported_android_version"/> | ||
| 58 | + <!-- Messages maps --> | ||
| 59 | + | ||
| 60 | + <!-- Splash screen --> | ||
| 61 | + <!-- Orientation-specific (portrait/landscape) data is checked first. If not available for current orientation, | ||
| 62 | + then android.app.splash_screen_drawable. For best results, use together with splash_screen_sticky and | ||
| 63 | + use hideSplashScreen() with a fade-out animation from Qt Android Extras to hide the splash screen when you | ||
| 64 | + are done populating your window with content. --> | ||
| 65 | + <!-- meta-data android:name="android.app.splash_screen_drawable_portrait" android:resource="@drawable/logo_portrait" / --> | ||
| 66 | + <!-- meta-data android:name="android.app.splash_screen_drawable_landscape" android:resource="@drawable/logo_landscape" / --> | ||
| 67 | + <!-- meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/ --> | ||
| 68 | + <!-- meta-data android:name="android.app.splash_screen_sticky" android:value="true"/ --> | ||
| 69 | + <!-- Splash screen --> | ||
| 70 | + | ||
| 71 | + <!-- Background running --> | ||
| 72 | + <!-- Warning: changing this value to true may cause unexpected crashes if the | ||
| 73 | + application still try to draw after | ||
| 74 | + "applicationStateChanged(Qt::ApplicationSuspended)" | ||
| 75 | + signal is sent! --> | ||
| 76 | + <meta-data android:name="android.app.background_running" android:value="false"/> | ||
| 77 | + <!-- Background running --> | ||
| 78 | + | ||
| 79 | + <!-- auto screen scale factor --> | ||
| 80 | + <meta-data android:name="android.app.auto_screen_scale_factor" android:value="false"/> | ||
| 81 | + <!-- auto screen scale factor --> | ||
| 82 | + | ||
| 83 | + <!-- extract android style --> | ||
| 84 | + <!-- available android:values : | ||
| 85 | + * default - In most cases this will be the same as "full", but it can also be something else if needed, e.g., for compatibility reasons | ||
| 86 | + * full - useful QWidget & Quick Controls 1 apps | ||
| 87 | + * minimal - useful for Quick Controls 2 apps, it is much faster than "full" | ||
| 88 | + * none - useful for apps that don't use any of the above Qt modules | ||
| 89 | + --> | ||
| 90 | + <meta-data android:name="android.app.extract_android_style" android:value="minimal"/> | ||
| 91 | + <!-- extract android style --> | ||
| 92 | + </activity> | ||
| 93 | + <!-- | ||
| 94 | + <provider android:name="androidx.core.content.FileProvider" | ||
| 95 | + android:authorities="${applicationId}.qtprovider" | ||
| 96 | + android:exported="false" | ||
| 97 | + android:grantUriPermissions="true"> | ||
| 98 | + <meta-data android:name="android.support.FILE_PROVIDER_PATHS" | ||
| 99 | + android:resource="@xml/qtprovider_paths"/> | ||
| 100 | + </provider> | ||
| 101 | + --> | ||
| 102 | + <!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices --> | ||
| 103 | + <meta-data | ||
| 104 | + android:name="com.google.android.gms.ads.APPLICATION_ID" | ||
| 105 | + android:value="@string/admob_appid"/> | ||
| 106 | + </application> | ||
| 107 | + | ||
| 108 | + <supports-screens android:largeScreens="true" | ||
| 109 | + android:normalScreens="true" | ||
| 110 | + android:anyDensity="true" | ||
| 111 | + android:smallScreens="true"/> | ||
| 112 | + | ||
| 113 | + <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application. | ||
| 114 | + Remove the comment if you do not require these default permissions. --> | ||
| 115 | + <!-- Permissions --> | ||
| 116 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
| 117 | + <uses-permission android:name="android.permission.CAMERA"/> | ||
| 118 | + <uses-permission android:name="android.permission.FLASHLIGHT"/> | ||
| 119 | + <uses-permission android:name="android.permission.INTERNET"/> | ||
| 120 | + <uses-permission android:name="android.permission.MANAGE_DOCUMENTS"/> | ||
| 121 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
| 122 | + <uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/> | ||
| 123 | + <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/> | ||
| 124 | + <uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/> | ||
| 125 | + <uses-permission android:name="android.permission.RECORD_AUDIO"/> | ||
| 126 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
| 127 | + | ||
| 128 | + <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application. | ||
| 129 | + Remove the comment if you do not require these default features. --> | ||
| 130 | + <!-- Features --> | ||
| 131 | + <uses-feature android:name="android.hardware.audio.low_latency"/> | ||
| 132 | + <uses-feature android:name="android.hardware.audio.output"/> | ||
| 133 | + <uses-feature android:name="android.hardware.audio.pro"/> | ||
| 134 | + <uses-feature android:name="android.hardware.camera.any"/> | ||
| 135 | + <uses-feature android:name="android.hardware.camera.autofocus"/> | ||
| 136 | + <uses-feature android:name="android.hardware.camera.flash"/> | ||
| 137 | + <uses-feature android:name="android.hardware.microphone"/> | ||
| 138 | + <uses-feature android:name="android.hardware.opengles.aep"/> | ||
| 139 | + <uses-feature android:name="android.software.webview"/> | ||
| 140 | +</manifest> |
3.5 KB
1.8 KB
2.2 KB
4.9 KB
8.2 KB
11.7 KB
StandAlone/share/contributors.txt
0 → 100644
| 1 | +a1346054 <36859588+a1346054@users.noreply.github.com> | ||
| 2 | +Adam Magnier <adam@magnier.io> | ||
| 3 | +Adolfo Jayme Barrientos <fitojb@ubuntu.com> | ||
| 4 | +AHOHNMYC <lqwh2h2cwa@protonmail.com> | ||
| 5 | +Ale-Ma <alemassimiani@gmail.com> | ||
| 6 | +Alex <alexander.simm@posteo.de> | ||
| 7 | +Alexey Napalkov <flynbit@gmail.com> | ||
| 8 | +aliereny <aeren.myper@gmail.com> | ||
| 9 | +Allan Nordhøy <epost@anotheragency.no> | ||
| 10 | +Antonino Murabito <antoninomurabito@gmail.com> | ||
| 11 | +Artem <KovalevArtem.ru@gmail.com> | ||
| 12 | +Artem <Localizer_in_Russian@protonmail.com> | ||
| 13 | +Ascaf0 <fa0sck@gmail.com> | ||
| 14 | +Axel Lainerdo <z6postarwars88@free.fr> | ||
| 15 | +Axus Wizix <axus.wizix@mail.ru> | ||
| 16 | +Barak A. Pearlmutter <barak+git@pearlmutter.net> | ||
| 17 | +CE4 <chregger@gmail.com> | ||
| 18 | +Chris Barth <chrisjbarth@hotmail.com> | ||
| 19 | +Continuity <continuity@gmx.net> | ||
| 20 | +Daeun Jung <sarahkorea1@ajou.ac.kr> | ||
| 21 | +Daniel Lerch <daniel.p.lerch@gmail.com> | ||
| 22 | +David Jiménez Santonja <david.jimenez.santonja@gmail.com> | ||
| 23 | +E-Akcaer <gurbetcii_@hotmail.com> | ||
| 24 | +Edoardo Rosa <edoardo.rosa90@gmail.com> | ||
| 25 | +Eduardo Rodrigues <edu.rodrigues2580@gmail.com> | ||
| 26 | +Edwar Tikhonov <letih@vivaldi.net> | ||
| 27 | +Elizabeth Sherrock <lizzyd710@gmail.com> | ||
| 28 | +Elton Viana Gonçalves da Luz <eltongoncalves94@hotmail.com> | ||
| 29 | +Erich Schubert <erich.schubert@tu-dortmund.de> | ||
| 30 | +Ettore Atalan <atalanttore@googlemail.com> | ||
| 31 | +ezjerry liao <ezjerry@gmail.com> | ||
| 32 | +gallegonovato <fran-carro@hotmail.es> | ||
| 33 | +gordonel <45173186+gordonel@users.noreply.github.com> | ||
| 34 | +grover92000 <96498785+grover92000@users.noreply.github.com> | ||
| 35 | +Gruni Lala <ro.gruni@hotmail.de> | ||
| 36 | +Heimen Stoffels <vistausss@fastmail.com> | ||
| 37 | +Heimen Stoffels <vistausss@outlook.com> | ||
| 38 | +hpfn <hpfn@users.noreply.github.com> | ||
| 39 | +J. Lavoie <j.lavoie@net-c.ca> | ||
| 40 | +Jan Beich <jbeich@FreeBSD.org> | ||
| 41 | +Jeannette L <j.lavoie@net-c.ca> | ||
| 42 | +Joel Barrios <darkshram@gmail.com> | ||
| 43 | +John Vandenberg <jayvdb@gmail.com> | ||
| 44 | +josep constanti <jconstanti@yahoo.es> | ||
| 45 | +Knusper <cherenz@aip.de> | ||
| 46 | +Kozioł Marcin <koziol.martin@gmail.com> | ||
| 47 | +Kristjan Räts <kristjanrats@gmail.com> | ||
| 48 | +lefiston <live@blachet.com> | ||
| 49 | +Livia Andriana Lohanda <chocolate.coffee@outlook.com> | ||
| 50 | +LL <lu.lecocq@free.fr> | ||
| 51 | +LNDDYL <lnddyl@outlook.com> | ||
| 52 | +Luca De Falco <deffo89@gmail.com> | ||
| 53 | +Luigi Baldoni <aloisio@gmx.com> | ||
| 54 | +luigino <aloisio@gmx.com> | ||
| 55 | +Luna Jernberg <droidbittin@gmail.com> | ||
| 56 | +MananPyJava <67302570+MananPyJava@users.noreply.github.com> | ||
| 57 | +Marc Delisle <marc@infomarc.info> | ||
| 58 | +Michal Čihař <michal@cihar.com> | ||
| 59 | +Minwoo 'Charlie' Choi <https://github.com/exxocism> | ||
| 60 | +MS-PC <jhovanywalas@hotmail.com> | ||
| 61 | +Nathan <bonnemainsnathan@gmail.com> | ||
| 62 | +nautilusx <mail.ka@mailbox.org> | ||
| 63 | +nautilusx <translate@disroot.org> | ||
| 64 | +Normand <https://github.com/Normandstm> | ||
| 65 | +ovari <ovari123@zoho.com> | ||
| 66 | +Oğuz Ersen <oguzersen@protonmail.com> | ||
| 67 | +paperspaceBen <benjamin@paperspace.io> | ||
| 68 | +pCsOrI <pcsori@gmail.com> | ||
| 69 | +Peppernrino <pepperandrino@gmail.com> | ||
| 70 | +poi <erbaotao@outlook.com> | ||
| 71 | +Priit Jõerüüt <hwlate@joeruut.com> | ||
| 72 | +Quentin PAGÈS <quentinantonin@free.fr> | ||
| 73 | +Raúl González García <rgonzalez5@ucam.edu> | ||
| 74 | +Robin Kunze <robinkunze@outlook.com> | ||
| 75 | +Rui Mendes <xz9@protonmail.com> | ||
| 76 | +Sebastian Freiman <sebafreiman@gmail.com> | ||
| 77 | +SiliconBrain <kaka012@users.noreply.github.com> | ||
| 78 | +ssantos <ssantos@web.de> | ||
| 79 | +Stepan <36489863+Stepan881@users.noreply.github.com> | ||
| 80 | +Swann Martinet <swann.ranskassa@laposte.net> | ||
| 81 | +Szylu <chipolade@gmail.com> | ||
| 82 | +Takuya Ohe <hi@tohe.xyz> | ||
| 83 | +TheSimplyOwl <thesimplyowl@gmail.com> | ||
| 84 | +Till Riedel <riedel@teco.edu> | ||
| 85 | +Tj <hacker@iam.tj> | ||
| 86 | +trungnt2910 <trungnt282910@gmail.com> | ||
| 87 | +Tymofij Lytvynenko <till.svit@gmail.com> | ||
| 88 | +WaldiS <admin@sto.ugu.pl> | ||
| 89 | +XiaoPanPanKevinPan <sn00151200@gmail.com> | ||
| 90 | +Yaron Shahrabani <sh.yaron@gmail.com> | ||
| 91 | +YFdyh000 <yfdyh000@gmail.com> | ||
| 92 | +Yuqi Wang <claywang@live.com> | ||
| 93 | +zhcjsjz <zhcj@yeah.net> | ||
| 94 | +Étienne Gilli <etienne.gilli@gmail.com> | ||
| 95 | +Володимир Бриняк <bardvv@gmail.com> | ||
| 96 | +Максим Якимчук <xpinovo@gmail.com> | ||
| 97 | +Марс Ямбар <mjambarmeta@gmail.com> | ||
| 98 | +Роман Хрущ <hrushch.rr57@gmail.com> | ||
| 99 | +吴绮 <rs2.free@qq.com> | ||
| 100 | +이피시소리 <pcsori@gmail.com> | ||
| 101 | +조현퇴 <hyuntoe@gmail.com> |
StandAlone/share/qml/About.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2015 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | +import QtQuick.Layouts | ||
| 23 | +import Ak | ||
| 24 | + | ||
| 25 | +Page { | ||
| 26 | + ScrollView { | ||
| 27 | + id: scrollView | ||
| 28 | + anchors.fill: parent | ||
| 29 | + contentHeight: clyProgramInfo.height | ||
| 30 | + clip: true | ||
| 31 | + | ||
| 32 | + ColumnLayout { | ||
| 33 | + id: clyProgramInfo | ||
| 34 | + width: scrollView.width | ||
| 35 | + | ||
| 36 | + Image { | ||
| 37 | + fillMode: Image.PreserveAspectFit | ||
| 38 | + Layout.minimumWidth: | ||
| 39 | + AkUnit.create(96 * AkTheme.controlScale, "dp").pixels | ||
| 40 | + Layout.minimumHeight: | ||
| 41 | + AkUnit.create(96 * AkTheme.controlScale, "dp").pixels | ||
| 42 | + Layout.maximumWidth: | ||
| 43 | + AkUnit.create(96 * AkTheme.controlScale, "dp").pixels | ||
| 44 | + Layout.maximumHeight: | ||
| 45 | + AkUnit.create(96 * AkTheme.controlScale, "dp").pixels | ||
| 46 | + source: "image://icons/webcamoid" | ||
| 47 | + sourceSize: Qt.size(width, height) | ||
| 48 | + } | ||
| 49 | + Label { | ||
| 50 | + text: mediaTools.applicationName | ||
| 51 | + + " " | ||
| 52 | + + mediaTools.applicationVersion | ||
| 53 | + font: AkTheme.fontSettings.h6 | ||
| 54 | + } | ||
| 55 | + RowLayout { | ||
| 56 | + visible: mediaTools.projectGitShortCommit.length > 0 | ||
| 57 | + | ||
| 58 | + Label { | ||
| 59 | + //: Built from "short commit hash" | ||
| 60 | + text: qsTr("Built from") | ||
| 61 | + } | ||
| 62 | + Button { | ||
| 63 | + text: mediaTools.projectGitShortCommit | ||
| 64 | + flat: true | ||
| 65 | + Accessible.name: | ||
| 66 | + qsTr("Built from %1").arg(mediaTools.projectGitShortCommit) | ||
| 67 | + Accessible.description: | ||
| 68 | + qsTr("Open the commit in your web browser") | ||
| 69 | + | ||
| 70 | + onClicked: Qt.openUrlExternally(mediaTools.projectGitCommitUrl) | ||
| 71 | + } | ||
| 72 | + } | ||
| 73 | + Label { | ||
| 74 | + text: qsTr("Using Qt %1") | ||
| 75 | + .arg(mediaTools.qtVersion) | ||
| 76 | + } | ||
| 77 | + Label { | ||
| 78 | + text: qsTr("Webcam capture application.") | ||
| 79 | + wrapMode: Text.WordWrap | ||
| 80 | + Layout.fillWidth: true | ||
| 81 | + } | ||
| 82 | + Label { | ||
| 83 | + text: qsTr("A simple webcam application for picture and video capture.") | ||
| 84 | + wrapMode: Text.WordWrap | ||
| 85 | + Layout.fillWidth: true | ||
| 86 | + } | ||
| 87 | + Label { | ||
| 88 | + text: mediaTools.copyrightNotice | ||
| 89 | + wrapMode: Text.WordWrap | ||
| 90 | + Layout.fillWidth: true | ||
| 91 | + } | ||
| 92 | + Button { | ||
| 93 | + text: qsTr("Website") | ||
| 94 | + icon.source: "image://icons/internet" | ||
| 95 | + Accessible.name: text | ||
| 96 | + Accessible.description: | ||
| 97 | + qsTr("Go to %1 website").arg(mediaTools.applicationName) | ||
| 98 | + | ||
| 99 | + onClicked: Qt.openUrlExternally(mediaTools.projectUrl) | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + } | ||
| 103 | +} |
StandAlone/share/qml/AboutDialog.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2022 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Window | ||
| 22 | +import QtQuick.Controls | ||
| 23 | +import QtQuick.Layouts | ||
| 24 | +import Ak | ||
| 25 | +import Webcamoid | ||
| 26 | + | ||
| 27 | +Dialog { | ||
| 28 | + id: aboutDialog | ||
| 29 | + standardButtons: Dialog.Close | ||
| 30 | + width: physicalWidth <= 100 || physicalHeight <= 100? | ||
| 31 | + wdgMainWidget.width: wdgMainWidget.width * 0.75 | ||
| 32 | + height: physicalWidth <= 100 || physicalHeight <= 100? | ||
| 33 | + wdgMainWidget.height: wdgMainWidget.height * 0.75 | ||
| 34 | + modal: true | ||
| 35 | + title: qsTr("About %1").arg(mediaTools.applicationName) | ||
| 36 | + leftPadding: 0 | ||
| 37 | + | ||
| 38 | + property real physicalWidth: wdgMainWidget.width / Screen.pixelDensity | ||
| 39 | + property real physicalHeight: wdgMainWidget.height / Screen.pixelDensity | ||
| 40 | + property int panelBorder: AkUnit.create(1 * AkTheme.controlScale, "dp").pixels | ||
| 41 | + property int dragBorder: AkUnit.create(4 * AkTheme.controlScale, "dp").pixels | ||
| 42 | + property int minimumWidth: AkUnit.create(100 * AkTheme.controlScale, "dp").pixels | ||
| 43 | + property int maximumWidth: | ||
| 44 | + width - AkUnit.create(64 * AkTheme.controlScale, "dp").pixels | ||
| 45 | + | ||
| 46 | + onWidthChanged: { | ||
| 47 | + if (aboutDialog.visible) | ||
| 48 | + optionsItem.implicitWidth = | ||
| 49 | + Math.min(Math.max(aboutDialog.minimumWidth, | ||
| 50 | + optionsItem.implicitWidth), | ||
| 51 | + aboutDialog.maximumWidth) | ||
| 52 | + } | ||
| 53 | + onVisibleChanged: options.forceActiveFocus() | ||
| 54 | + | ||
| 55 | + RowLayout { | ||
| 56 | + anchors.fill: parent | ||
| 57 | + | ||
| 58 | + Item { | ||
| 59 | + id: optionsItem | ||
| 60 | + Layout.fillHeight: true | ||
| 61 | + implicitWidth: | ||
| 62 | + AkUnit.create(150 * AkTheme.controlScale, "dp").pixels | ||
| 63 | + | ||
| 64 | + ScrollView { | ||
| 65 | + id: optionsView | ||
| 66 | + anchors.fill: parent | ||
| 67 | + contentHeight: options.height | ||
| 68 | + clip: true | ||
| 69 | + | ||
| 70 | + OptionList { | ||
| 71 | + id: options | ||
| 72 | + width: optionsView.width | ||
| 73 | + | ||
| 74 | + ItemDelegate { | ||
| 75 | + /*: Information of the program, like name, description, version, | ||
| 76 | + etc.. | ||
| 77 | + */ | ||
| 78 | + text: qsTr("About") | ||
| 79 | + } | ||
| 80 | + ItemDelegate { | ||
| 81 | + /*: List of people contributing to the project: software | ||
| 82 | + developers, translators, designers, etc.. | ||
| 83 | + */ | ||
| 84 | + text: qsTr("Contributors") | ||
| 85 | + } | ||
| 86 | + ItemDelegate { | ||
| 87 | + //: Program license. | ||
| 88 | + text: qsTr("License") | ||
| 89 | + } | ||
| 90 | + ItemDelegate { | ||
| 91 | + /*: License for 3rd party components used in Webcamoid, like | ||
| 92 | + libraries and code snippets. | ||
| 93 | + */ | ||
| 94 | + text: qsTr("3rd Party Licenses") | ||
| 95 | + } | ||
| 96 | + } | ||
| 97 | + } | ||
| 98 | + Rectangle { | ||
| 99 | + id: rectangleRight | ||
| 100 | + width: aboutDialog.panelBorder | ||
| 101 | + color: aboutDialog.activeDark | ||
| 102 | + anchors.leftMargin: -width / 2 | ||
| 103 | + anchors.left: optionsView.right | ||
| 104 | + anchors.top: parent.top | ||
| 105 | + anchors.bottom: parent.bottom | ||
| 106 | + } | ||
| 107 | + MouseArea { | ||
| 108 | + cursorShape: Qt.SizeHorCursor | ||
| 109 | + drag.axis: Drag.XAxis | ||
| 110 | + width: aboutDialog.panelBorder + 2 * aboutDialog.dragBorder | ||
| 111 | + anchors.leftMargin: -width / 2 | ||
| 112 | + anchors.left: optionsView.right | ||
| 113 | + anchors.top: parent.top | ||
| 114 | + anchors.bottom: parent.bottom | ||
| 115 | + | ||
| 116 | + onPositionChanged: { | ||
| 117 | + optionsItem.implicitWidth = | ||
| 118 | + Math.min(Math.max(aboutDialog.minimumWidth, | ||
| 119 | + optionsItem.implicitWidth | ||
| 120 | + + mouse.x), | ||
| 121 | + aboutDialog.maximumWidth) | ||
| 122 | + } | ||
| 123 | + } | ||
| 124 | + } | ||
| 125 | + StackLayout { | ||
| 126 | + id: stack | ||
| 127 | + currentIndex: options.currentIndex | ||
| 128 | + Layout.fillWidth: true | ||
| 129 | + Layout.fillHeight: true | ||
| 130 | + //clip: true | ||
| 131 | + | ||
| 132 | + About { } | ||
| 133 | + Contributors { } | ||
| 134 | + License { } | ||
| 135 | + ThirdPartyLicenses { } | ||
| 136 | + } | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + header: Item { | ||
| 140 | + id: rectangle | ||
| 141 | + clip: true | ||
| 142 | + visible: aboutDialog.title | ||
| 143 | + height: AkUnit.create(64 * AkTheme.controlScale, "dp").pixels | ||
| 144 | + | ||
| 145 | + Label { | ||
| 146 | + text: aboutDialog.title | ||
| 147 | + anchors.verticalCenter: parent.verticalCenter | ||
| 148 | + anchors.left: parent.left | ||
| 149 | + anchors.leftMargin: | ||
| 150 | + AkUnit.create(24 * AkTheme.controlScale, "dp").pixels | ||
| 151 | + elide: Label.ElideRight | ||
| 152 | + font: AkTheme.fontSettings.h6 | ||
| 153 | + enabled: aboutDialog.enabled | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + Rectangle { | ||
| 157 | + color: aboutDialog.enabled? | ||
| 158 | + aboutDialog.activeDark: | ||
| 159 | + aboutDialog.disabledDark | ||
| 160 | + height: AkUnit.create(1 * AkTheme.controlScale, "dp").pixels | ||
| 161 | + anchors.left: rectangle.left | ||
| 162 | + anchors.right: rectangle.right | ||
| 163 | + anchors.bottom: rectangle.bottom | ||
| 164 | + } | ||
| 165 | + } | ||
| 166 | +} |
StandAlone/share/qml/AddVideoFormat.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2020 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | +import QtQuick.Layouts | ||
| 23 | +import Ak | ||
| 24 | + | ||
| 25 | +Dialog { | ||
| 26 | + id: addFormat | ||
| 27 | + standardButtons: Dialog.Ok | Dialog.Cancel | ||
| 28 | + width: AkUnit.create(450 * AkTheme.controlScale, "dp").pixels | ||
| 29 | + height: AkUnit.create(350 * AkTheme.controlScale, "dp").pixels | ||
| 30 | + modal: true | ||
| 31 | + | ||
| 32 | + property int formatIndex: -1 | ||
| 33 | + | ||
| 34 | + signal addFormat(variant caps) | ||
| 35 | + signal changeFormat(int index, variant caps) | ||
| 36 | + signal removeFormat(int index) | ||
| 37 | + | ||
| 38 | + onVisibleChanged: pixelFormats.forceActiveFocus() | ||
| 39 | + | ||
| 40 | + function openOptions(formatIndex=-1, caps={}) | ||
| 41 | + { | ||
| 42 | + addFormat.formatIndex = formatIndex | ||
| 43 | + title = formatIndex < 0? | ||
| 44 | + qsTr("Add Video Format"): | ||
| 45 | + qsTr("Change Video Format") | ||
| 46 | + pixelFormats.model.clear() | ||
| 47 | + let pixFormats = videoLayer.supportedOutputPixelFormats | ||
| 48 | + let index = -1 | ||
| 49 | + | ||
| 50 | + for (let i in pixFormats) { | ||
| 51 | + if (pixFormats[i] == videoLayer.defaultOutputPixelFormat) | ||
| 52 | + index = i | ||
| 53 | + | ||
| 54 | + pixelFormats.model.append({ | ||
| 55 | + format: Number(pixFormats[i]), | ||
| 56 | + description: AkVideoCaps.pixelFormatToString(pixFormats[i]) | ||
| 57 | + }) | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + removeFormat.visible = formatIndex >= 0 | ||
| 61 | + | ||
| 62 | + if (formatIndex < 0) { | ||
| 63 | + pixelFormats.currentIndex = index | ||
| 64 | + frameWidth.value = 640 | ||
| 65 | + frameHeight.value = 480 | ||
| 66 | + frameRate.value = 30 | ||
| 67 | + } else { | ||
| 68 | + index = -1 | ||
| 69 | + | ||
| 70 | + for (let i in pixFormats) | ||
| 71 | + if (pixFormats[i] == caps.format) | ||
| 72 | + index = i | ||
| 73 | + | ||
| 74 | + let fps = AkFrac.create(caps.fps) | ||
| 75 | + pixelFormats.currentIndex = index | ||
| 76 | + frameWidth.value = caps.width | ||
| 77 | + frameHeight.value = caps.height | ||
| 78 | + frameRate.value = fps.value | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + open() | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + ScrollView { | ||
| 85 | + id: formatView | ||
| 86 | + anchors.fill: parent | ||
| 87 | + contentHeight: formatControls.height | ||
| 88 | + clip: true | ||
| 89 | + | ||
| 90 | + GridLayout { | ||
| 91 | + id: formatControls | ||
| 92 | + columns: 2 | ||
| 93 | + width: formatView.width | ||
| 94 | + | ||
| 95 | + Button { | ||
| 96 | + id: removeFormat | ||
| 97 | + text: qsTr("Remove format") | ||
| 98 | + icon.source: "image://icons/no" | ||
| 99 | + flat: true | ||
| 100 | + Layout.columnSpan: 2 | ||
| 101 | + | ||
| 102 | + onClicked: { | ||
| 103 | + addFormat.removeFormat(addFormat.formatIndex) | ||
| 104 | + addFormat.reject() | ||
| 105 | + } | ||
| 106 | + } | ||
| 107 | + Label { | ||
| 108 | + id: txtFormat | ||
| 109 | + text: qsTr("Format") | ||
| 110 | + } | ||
| 111 | + ComboBox { | ||
| 112 | + id: pixelFormats | ||
| 113 | + Accessible.description: txtFormat.text | ||
| 114 | + textRole: "description" | ||
| 115 | + model: ListModel {} | ||
| 116 | + Layout.fillWidth: true | ||
| 117 | + } | ||
| 118 | + Label { | ||
| 119 | + id: txtWidth | ||
| 120 | + text: qsTr("Width") | ||
| 121 | + } | ||
| 122 | + SpinBox { | ||
| 123 | + id: frameWidth | ||
| 124 | + value: 640 | ||
| 125 | + from: 1 | ||
| 126 | + to: 4096 | ||
| 127 | + stepSize: 1 | ||
| 128 | + editable: true | ||
| 129 | + Accessible.name: txtWidth.text | ||
| 130 | + } | ||
| 131 | + Label { | ||
| 132 | + id: txtHeight | ||
| 133 | + text: qsTr("Height") | ||
| 134 | + } | ||
| 135 | + SpinBox { | ||
| 136 | + id: frameHeight | ||
| 137 | + value: 480 | ||
| 138 | + from: 1 | ||
| 139 | + to: 4096 | ||
| 140 | + stepSize: 1 | ||
| 141 | + editable: true | ||
| 142 | + Accessible.name: txtHeight.text | ||
| 143 | + } | ||
| 144 | + Label { | ||
| 145 | + id: txtFrameRate | ||
| 146 | + text: qsTr("Frame rate") | ||
| 147 | + } | ||
| 148 | + SpinBox { | ||
| 149 | + id: frameRate | ||
| 150 | + value: 30 | ||
| 151 | + from: 1 | ||
| 152 | + to: 250 | ||
| 153 | + stepSize: 1 | ||
| 154 | + editable: true | ||
| 155 | + Accessible.name: txtFrameRate.text | ||
| 156 | + } | ||
| 157 | + } | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + onAccepted: { | ||
| 161 | + let element = pixelFormats.model.get(pixelFormats.currentIndex) | ||
| 162 | + let fps = AkFrac.create(frameRate.value, 1).toVariant() | ||
| 163 | + let caps = AkVideoCaps.create(element.format, | ||
| 164 | + frameWidth.value, | ||
| 165 | + frameHeight.value, | ||
| 166 | + fps) | ||
| 167 | + | ||
| 168 | + if (addFormat.formatIndex < 0) | ||
| 169 | + addFormat.addFormat(caps) | ||
| 170 | + else | ||
| 171 | + addFormat.changeFormat(addFormat.formatIndex, caps) | ||
| 172 | + } | ||
| 173 | +} |
StandAlone/share/qml/AudioCodecOptions.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2020 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | +import QtQuick.Layouts | ||
| 23 | +import Ak | ||
| 24 | + | ||
| 25 | +Dialog { | ||
| 26 | + id: audioCodecOptions | ||
| 27 | + title: qsTr("Audio Codec Options") | ||
| 28 | + standardButtons: Dialog.Ok | Dialog.Cancel | Dialog.Reset | ||
| 29 | + width: AkUnit.create(420 * AkTheme.controlScale, "dp").pixels | ||
| 30 | + height: AkUnit.create(320 * AkTheme.controlScale, "dp").pixels | ||
| 31 | + modal: true | ||
| 32 | + | ||
| 33 | + property variant controlValues: ({}) | ||
| 34 | + property int startChildren: 2 | ||
| 35 | + | ||
| 36 | + onVisibleChanged: bitrate.forceActiveFocus() | ||
| 37 | + | ||
| 38 | + function updateOptions() { | ||
| 39 | + for (let i = mainLayout.children.length - 1; i >= startChildren; i--) | ||
| 40 | + mainLayout.children[i].destroy() | ||
| 41 | + | ||
| 42 | + let codecOptions = recording.codecOptions(AkCaps.CapsAudio); | ||
| 43 | + | ||
| 44 | + for (let i in codecOptions) { | ||
| 45 | + let option = AkPropertyOption.create(codecOptions[i]) | ||
| 46 | + | ||
| 47 | + if (option.type != AkPropertyOption.OptionType_Flags) { | ||
| 48 | + let cLabel = controlLabel.createObject(mainLayout); | ||
| 49 | + cLabel.text = option.description | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + let value = | ||
| 53 | + recording.codecOptionValue(AkCaps.CapsAudio, option.name) | ||
| 54 | + | ||
| 55 | + switch (option.type) { | ||
| 56 | + case AkPropertyOption.OptionType_String: | ||
| 57 | + if (option.menu.length < 1) { | ||
| 58 | + let cString = controlString.createObject(mainLayout) | ||
| 59 | + cString.key = option.name | ||
| 60 | + cString.defaultValue = option.defaultValue | ||
| 61 | + cString.text = value | ||
| 62 | + cString.onControlChanged.connect(updateValues) | ||
| 63 | + } else { | ||
| 64 | + let cMenu = controlMenu.createObject(mainLayout) | ||
| 65 | + cMenu.key = option.name | ||
| 66 | + cMenu.defaultValue = option.defaultValue | ||
| 67 | + cMenu.update(option) | ||
| 68 | + cMenu.onControlChanged.connect(updateValues) | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + break | ||
| 72 | + | ||
| 73 | + case AkPropertyOption.OptionType_Number: | ||
| 74 | + if (option.menu.length < 1) { | ||
| 75 | + let minimumValue = option.min | ||
| 76 | + let maximumValue = option.max | ||
| 77 | + let stepSize = option.step | ||
| 78 | + let maxSteps = 4096 | ||
| 79 | + | ||
| 80 | + if ((maximumValue - minimumValue) <= maxSteps * stepSize) { | ||
| 81 | + let cRangeDiscrete = controlRangeDiscrete.createObject(mainLayout) | ||
| 82 | + cRangeDiscrete.key = option.name | ||
| 83 | + cRangeDiscrete.defaultValue = option.defaultValue | ||
| 84 | + cRangeDiscrete.from = minimumValue | ||
| 85 | + cRangeDiscrete.to = maximumValue | ||
| 86 | + cRangeDiscrete.stepSize = stepSize | ||
| 87 | + cRangeDiscrete.value = value | ||
| 88 | + cRangeDiscrete.onControlChanged.connect(updateValues) | ||
| 89 | + } else { | ||
| 90 | + let cRange = controlRange.createObject(mainLayout) | ||
| 91 | + cRange.key = option.name | ||
| 92 | + cRange.defaultValue = option.defaultValue | ||
| 93 | + cRange.text = value | ||
| 94 | + cRange.onControlChanged.connect(updateValues) | ||
| 95 | + } | ||
| 96 | + } else { | ||
| 97 | + let cMenu = controlMenu.createObject(mainLayout) | ||
| 98 | + cMenu.key = option.name | ||
| 99 | + cMenu.defaultValue = option.defaultValue | ||
| 100 | + cMenu.update(option) | ||
| 101 | + cMenu.onControlChanged.connect(updateValues) | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + break | ||
| 105 | + | ||
| 106 | + case AkPropertyOption.OptionType_Boolean: | ||
| 107 | + let cBoolean = controlBoolean.createObject(mainLayout) | ||
| 108 | + cBoolean.key = option.name | ||
| 109 | + cBoolean.defaultValue = option.defaultValue | ||
| 110 | + cBoolean.checked = value | ||
| 111 | + cBoolean.onControlChanged.connect(updateValues) | ||
| 112 | + | ||
| 113 | + break | ||
| 114 | + | ||
| 115 | + case AkPropertyOption.OptionType_Flags: | ||
| 116 | + let cFlags = controlFlags.createObject(mainLayout) | ||
| 117 | + cFlags.key = option.name | ||
| 118 | + cFlags.defaultValue = option.defaultValue | ||
| 119 | + cFlags.title = option.description | ||
| 120 | + cFlags.update(option) | ||
| 121 | + cFlags.onControlChanged.connect(updateValues) | ||
| 122 | + | ||
| 123 | + break | ||
| 124 | + | ||
| 125 | + case AkPropertyOption.OptionType_Frac: | ||
| 126 | + let cFrac = controlFrac.createObject(mainLayout) | ||
| 127 | + cFrac.key = option.name | ||
| 128 | + cFrac.defaultValue = option.defaultValue | ||
| 129 | + cFrac.text = value | ||
| 130 | + cFrac.onControlChanged.connect(updateValues) | ||
| 131 | + | ||
| 132 | + break | ||
| 133 | + | ||
| 134 | + default: | ||
| 135 | + break | ||
| 136 | + } | ||
| 137 | + } | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + function updateValues(key, value) { | ||
| 141 | + controlValues[key] = value | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + Connections { | ||
| 145 | + target: recording | ||
| 146 | + | ||
| 147 | + function onBitrateChanged(type, bitrate) | ||
| 148 | + { | ||
| 149 | + if (type == AkCaps.CapsAudio) | ||
| 150 | + bitrate.text = bitrate | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + function onCodecOptionsChanged(type, options) | ||
| 154 | + { | ||
| 155 | + audioCodecOptions.updateOptions() | ||
| 156 | + } | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + ScrollView { | ||
| 160 | + id: scrollView | ||
| 161 | + anchors.fill: parent | ||
| 162 | + contentHeight: mainLayout.height | ||
| 163 | + clip: true | ||
| 164 | + | ||
| 165 | + GridLayout { | ||
| 166 | + id: mainLayout | ||
| 167 | + columns: 2 | ||
| 168 | + width: scrollView.width | ||
| 169 | + | ||
| 170 | + Label { | ||
| 171 | + id: txtBitrate | ||
| 172 | + text: qsTr("Bitrate") | ||
| 173 | + } | ||
| 174 | + TextField { | ||
| 175 | + id: bitrate | ||
| 176 | + placeholderText: qsTr("Bitrate (bits/secs)") | ||
| 177 | + Accessible.name: txtBitrate.text | ||
| 178 | + selectByMouse: true | ||
| 179 | + validator: RegularExpressionValidator { | ||
| 180 | + regularExpression: /\d+/ | ||
| 181 | + } | ||
| 182 | + Layout.fillWidth: true | ||
| 183 | + | ||
| 184 | + Component.onCompleted: | ||
| 185 | + text = recording.bitrate(AkCaps.CapsAudio) | ||
| 186 | + } | ||
| 187 | + | ||
| 188 | + Component.onCompleted: audioCodecOptions.updateOptions() | ||
| 189 | + } | ||
| 190 | + } | ||
| 191 | + | ||
| 192 | + onAccepted: { | ||
| 193 | + recording.setBitrate(AkCaps.CapsAudio, | ||
| 194 | + Number.fromLocaleString(locale, bitrate.text)) | ||
| 195 | + | ||
| 196 | + for (let key in controlValues) | ||
| 197 | + recording.setCodecOptionValue(AkCaps.CapsAudio, | ||
| 198 | + key, | ||
| 199 | + controlValues[key]); | ||
| 200 | + } | ||
| 201 | + onRejected: { | ||
| 202 | + bitrate.text = recording.bitrate(AkCaps.CapsAudio) | ||
| 203 | + | ||
| 204 | + for (let i in mainLayout.children) | ||
| 205 | + if (mainLayout.children[i].restore) | ||
| 206 | + mainLayout.children[i].restore() | ||
| 207 | + } | ||
| 208 | + onReset: { | ||
| 209 | + bitrate.text = recording.defaultBitrate(AkCaps.CapsAudio) | ||
| 210 | + | ||
| 211 | + for (let i in mainLayout.children) | ||
| 212 | + if (mainLayout.children[i].reset) | ||
| 213 | + mainLayout.children[i].reset() | ||
| 214 | + } | ||
| 215 | + | ||
| 216 | + Component { | ||
| 217 | + id: controlLabel | ||
| 218 | + | ||
| 219 | + Label { | ||
| 220 | + } | ||
| 221 | + } | ||
| 222 | + Component { | ||
| 223 | + id: controlString | ||
| 224 | + | ||
| 225 | + TextField { | ||
| 226 | + selectByMouse: true | ||
| 227 | + Layout.fillWidth: true | ||
| 228 | + Accessible.name: key | ||
| 229 | + | ||
| 230 | + property string key: "" | ||
| 231 | + property variant defaultValue: null | ||
| 232 | + | ||
| 233 | + signal controlChanged(string key, variant value) | ||
| 234 | + | ||
| 235 | + function restore() { | ||
| 236 | + text = recording.codecOptionValue(AkCaps.CapsAudio, key) | ||
| 237 | + } | ||
| 238 | + | ||
| 239 | + function reset() { | ||
| 240 | + text = defaultValue | ||
| 241 | + } | ||
| 242 | + | ||
| 243 | + onTextChanged: controlChanged(key, text) | ||
| 244 | + } | ||
| 245 | + } | ||
| 246 | + Component { | ||
| 247 | + id: controlFrac | ||
| 248 | + | ||
| 249 | + TextField { | ||
| 250 | + selectByMouse: true | ||
| 251 | + validator: RegularExpressionValidator { | ||
| 252 | + regularExpression: /-?\d+\/\d+/ | ||
| 253 | + } | ||
| 254 | + Layout.fillWidth: true | ||
| 255 | + Accessible.name: key | ||
| 256 | + | ||
| 257 | + property string key: "" | ||
| 258 | + property variant defaultValue: null | ||
| 259 | + | ||
| 260 | + signal controlChanged(string key, variant value) | ||
| 261 | + | ||
| 262 | + function restore() { | ||
| 263 | + text = recording.codecOptionValue(AkCaps.CapsAudio, key) | ||
| 264 | + } | ||
| 265 | + | ||
| 266 | + function reset() { | ||
| 267 | + text = defaultValue | ||
| 268 | + } | ||
| 269 | + | ||
| 270 | + onTextChanged: controlChanged(key, text) | ||
| 271 | + } | ||
| 272 | + } | ||
| 273 | + Component { | ||
| 274 | + id: controlRangeDiscrete | ||
| 275 | + | ||
| 276 | + GridLayout { | ||
| 277 | + id: rangeLayout | ||
| 278 | + columns: 2 | ||
| 279 | + | ||
| 280 | + property string key: "" | ||
| 281 | + property variant defaultValue: null | ||
| 282 | + property real value: 0 | ||
| 283 | + property real from: 0 | ||
| 284 | + property real to: 1 | ||
| 285 | + property real stepSize: 1 | ||
| 286 | + | ||
| 287 | + signal controlChanged(string key, variant value) | ||
| 288 | + | ||
| 289 | + function restore() { | ||
| 290 | + sldRange.value = | ||
| 291 | + recording.codecOptionValue(AkCaps.CapsAudio, key) | ||
| 292 | + } | ||
| 293 | + | ||
| 294 | + function reset() { | ||
| 295 | + sldRange.value = defaultValue | ||
| 296 | + } | ||
| 297 | + | ||
| 298 | + Slider { | ||
| 299 | + id: sldRange | ||
| 300 | + value: parent.value | ||
| 301 | + from: parent.from | ||
| 302 | + to: parent.to | ||
| 303 | + stepSize: parent.stepSize | ||
| 304 | + Layout.fillWidth: true | ||
| 305 | + Accessible.name: rangeLayout.key | ||
| 306 | + | ||
| 307 | + onValueChanged: { | ||
| 308 | + spbRange.value = spbRange.multiplier * value | ||
| 309 | + rangeLayout.controlChanged(rangeLayout.key, value) | ||
| 310 | + } | ||
| 311 | + } | ||
| 312 | + SpinBox { | ||
| 313 | + id: spbRange | ||
| 314 | + value: multiplier * sldRange.value | ||
| 315 | + from: multiplier * parent.from | ||
| 316 | + to: multiplier * parent.to | ||
| 317 | + stepSize: multiplier * parent.stepSize | ||
| 318 | + editable: true | ||
| 319 | + validator: DoubleValidator { | ||
| 320 | + bottom: Math.min(spbRange.from, spbRange.to) | ||
| 321 | + top: Math.max(spbRange.from, spbRange.to) | ||
| 322 | + } | ||
| 323 | + Accessible.name: rangeLayout.key | ||
| 324 | + | ||
| 325 | + readonly property int decimals: parent.stepSize < 1? 2: 0 | ||
| 326 | + readonly property int multiplier: Math.pow(10, decimals) | ||
| 327 | + | ||
| 328 | + textFromValue: function(value, locale) { | ||
| 329 | + return Number(value / multiplier).toLocaleString(locale, 'f', decimals) | ||
| 330 | + } | ||
| 331 | + valueFromText: function(text, locale) { | ||
| 332 | + return Number.fromLocaleString(locale, text) * multiplier | ||
| 333 | + } | ||
| 334 | + onValueModified: sldRange.value = value / multiplier | ||
| 335 | + } | ||
| 336 | + } | ||
| 337 | + } | ||
| 338 | + Component { | ||
| 339 | + id: controlRange | ||
| 340 | + | ||
| 341 | + TextField { | ||
| 342 | + selectByMouse: true | ||
| 343 | + validator: RegularExpressionValidator { | ||
| 344 | + regularExpression: /[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?/ | ||
| 345 | + } | ||
| 346 | + Layout.fillWidth: true | ||
| 347 | + Accessible.name: key | ||
| 348 | + | ||
| 349 | + property string key: "" | ||
| 350 | + property variant defaultValue: null | ||
| 351 | + | ||
| 352 | + signal controlChanged(string key, variant value) | ||
| 353 | + | ||
| 354 | + function restore() { | ||
| 355 | + text = recording.codecOptionValue(AkCaps.CapsAudio, key) | ||
| 356 | + } | ||
| 357 | + | ||
| 358 | + function reset() { | ||
| 359 | + text = defaultValue | ||
| 360 | + } | ||
| 361 | + | ||
| 362 | + onTextChanged: controlChanged(key, Number(text)) | ||
| 363 | + } | ||
| 364 | + } | ||
| 365 | + Component { | ||
| 366 | + id: controlBoolean | ||
| 367 | + | ||
| 368 | + Switch { | ||
| 369 | + Layout.alignment: Qt.AlignRight | Qt.AlignVCenter | ||
| 370 | + Accessible.name: key | ||
| 371 | + | ||
| 372 | + property string key: "" | ||
| 373 | + property variant defaultValue: null | ||
| 374 | + | ||
| 375 | + signal controlChanged(string key, variant value) | ||
| 376 | + | ||
| 377 | + function restore() { | ||
| 378 | + checked = recording.codecOptionValue(AkCaps.CapsAudio, key) | ||
| 379 | + } | ||
| 380 | + | ||
| 381 | + function reset() { | ||
| 382 | + checked = defaultValue | ||
| 383 | + } | ||
| 384 | + | ||
| 385 | + onCheckedChanged: controlChanged(key, checked) | ||
| 386 | + } | ||
| 387 | + } | ||
| 388 | + Component { | ||
| 389 | + id: controlMenu | ||
| 390 | + | ||
| 391 | + ComboBox { | ||
| 392 | + model: ListModel { | ||
| 393 | + } | ||
| 394 | + textRole: "description" | ||
| 395 | + Layout.fillWidth: true | ||
| 396 | + Accessible.description: key | ||
| 397 | + | ||
| 398 | + property string key: "" | ||
| 399 | + property variant defaultValue: null | ||
| 400 | + | ||
| 401 | + signal controlChanged(string key, variant value) | ||
| 402 | + | ||
| 403 | + function restore() { | ||
| 404 | + let value = recording.codecOptionValue(AkCaps.CapsAudio, key) | ||
| 405 | + | ||
| 406 | + for (let i = 0; i < model.count; i++) | ||
| 407 | + if (model.get(i).value == value) { | ||
| 408 | + currentIndex = i | ||
| 409 | + | ||
| 410 | + return | ||
| 411 | + } | ||
| 412 | + | ||
| 413 | + currentIndex = model.count > 0? 0: -1 | ||
| 414 | + } | ||
| 415 | + | ||
| 416 | + function reset() { | ||
| 417 | + for (let i = 0; i < model.count; i++) | ||
| 418 | + if (model.get(i).value == defaultValue) { | ||
| 419 | + currentIndex = i | ||
| 420 | + | ||
| 421 | + return | ||
| 422 | + } | ||
| 423 | + | ||
| 424 | + currentIndex = model.count > 0? 0: -1 | ||
| 425 | + } | ||
| 426 | + | ||
| 427 | + function update(option) | ||
| 428 | + { | ||
| 429 | + model.clear() | ||
| 430 | + let menu = option.menu | ||
| 431 | + | ||
| 432 | + for (let i in menu) { | ||
| 433 | + let menuOption = AkMenuOption.create(menu[i]) | ||
| 434 | + | ||
| 435 | + model.append({ | ||
| 436 | + value: menuOption.value, | ||
| 437 | + description: menuOption.description | ||
| 438 | + }) | ||
| 439 | + } | ||
| 440 | + | ||
| 441 | + currentIndex = currentMenuIndex(option) | ||
| 442 | + } | ||
| 443 | + | ||
| 444 | + function currentMenuIndex(option) | ||
| 445 | + { | ||
| 446 | + let value = recording.codecOptionValue(AkCaps.CapsAudio, | ||
| 447 | + option.name) | ||
| 448 | + let menu = option.menu | ||
| 449 | + | ||
| 450 | + for (let i in menu) { | ||
| 451 | + let menuOption = AkMenuOption.create(menu[i]) | ||
| 452 | + | ||
| 453 | + if (menuOption.value == value) | ||
| 454 | + return i | ||
| 455 | + } | ||
| 456 | + | ||
| 457 | + return menu.length > 0? 0: -1 | ||
| 458 | + } | ||
| 459 | + | ||
| 460 | + onCurrentIndexChanged: { | ||
| 461 | + if (currentIndex >= 0) | ||
| 462 | + controlChanged(key, model.get(currentIndex).value); | ||
| 463 | + } | ||
| 464 | + } | ||
| 465 | + } | ||
| 466 | + Component { | ||
| 467 | + id: controlFlags | ||
| 468 | + | ||
| 469 | + GroupBox { | ||
| 470 | + Layout.columnSpan: 2 | ||
| 471 | + Layout.fillWidth: true | ||
| 472 | + Accessible.name: key | ||
| 473 | + | ||
| 474 | + property string key: "" | ||
| 475 | + property variant defaultValue: null | ||
| 476 | + | ||
| 477 | + signal controlChanged(string key, variant value) | ||
| 478 | + | ||
| 479 | + ColumnLayout { | ||
| 480 | + id: flagsLayout | ||
| 481 | + anchors.fill: parent | ||
| 482 | + } | ||
| 483 | + | ||
| 484 | + Component { | ||
| 485 | + id: classFlag | ||
| 486 | + | ||
| 487 | + CheckBox { | ||
| 488 | + Layout.fillWidth: true | ||
| 489 | + | ||
| 490 | + property int flagValue: 0 | ||
| 491 | + } | ||
| 492 | + } | ||
| 493 | + | ||
| 494 | + function restore() { | ||
| 495 | + let value = recording.codecOptionValue(AkCaps.CapsAudio, key) | ||
| 496 | + | ||
| 497 | + for (let i in flagsLayout.children) { | ||
| 498 | + flagsLayout.children[i].checked = | ||
| 499 | + value & flagsLayout.children[i].flagValue | ||
| 500 | + } | ||
| 501 | + } | ||
| 502 | + | ||
| 503 | + function reset() { | ||
| 504 | + for (let i in flagsLayout.children) { | ||
| 505 | + flagsLayout.children[i].checked = | ||
| 506 | + defaultValue & flagsLayout.children[i].flagValue | ||
| 507 | + } | ||
| 508 | + } | ||
| 509 | + | ||
| 510 | + function update(option) | ||
| 511 | + { | ||
| 512 | + // Remove old controls. | ||
| 513 | + for (let i = flagsLayout.children.length - 1; i >= 0; i--) | ||
| 514 | + flagsLayout.children[i].destroy() | ||
| 515 | + | ||
| 516 | + let value = recording.codecOptionValue(AkCaps.CapsAudio, | ||
| 517 | + option.name) | ||
| 518 | + let menu = option.menu | ||
| 519 | + | ||
| 520 | + // Create new ones. | ||
| 521 | + for (let i in menu) { | ||
| 522 | + let menuOption = AkMenuOption.create(menu[i]) | ||
| 523 | + let flag = classFlag.createObject(flagsLayout) | ||
| 524 | + flag.text = menuOption.description | ||
| 525 | + flag.flagValue = menuOption.value | ||
| 526 | + flag.checked = value & menuOption.value | ||
| 527 | + | ||
| 528 | + flag.onCheckedChanged.connect(function (checked) | ||
| 529 | + { | ||
| 530 | + let flags = 0 | ||
| 531 | + | ||
| 532 | + for (var i in flagsLayout.children) { | ||
| 533 | + if (flagsLayout.children[i].checked) | ||
| 534 | + flags |= flagsLayout.children[i].flagValue | ||
| 535 | + } | ||
| 536 | + | ||
| 537 | + controlChanged(key, flags) | ||
| 538 | + }) | ||
| 539 | + } | ||
| 540 | + } | ||
| 541 | + } | ||
| 542 | + } | ||
| 543 | +} |
StandAlone/share/qml/AudioDeviceItem.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2022 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | + | ||
| 23 | +ItemDelegate { | ||
| 24 | + Accessible.name: text | ||
| 25 | + Accessible.role: Accessible.MenuItem | ||
| 26 | + | ||
| 27 | + property string device: "" | ||
| 28 | +} |
StandAlone/share/qml/AudioDeviceOptions.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2020 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | +import QtQuick.Layouts | ||
| 23 | +import Ak | ||
| 24 | + | ||
| 25 | +Dialog { | ||
| 26 | + id: deviceOptions | ||
| 27 | + title: qsTr("Audio Device Options") | ||
| 28 | + standardButtons: Dialog.Ok | Dialog.Cancel | Dialog.Reset | ||
| 29 | + width: AkUnit.create(450 * AkTheme.controlScale, "dp").pixels | ||
| 30 | + height: AkUnit.create(350 * AkTheme.controlScale, "dp").pixels | ||
| 31 | + modal: true | ||
| 32 | + | ||
| 33 | + property string device: "" | ||
| 34 | + | ||
| 35 | + onVisibleChanged: cbxSampleFormats.forceActiveFocus() | ||
| 36 | + | ||
| 37 | + function bound(min, value, max) | ||
| 38 | + { | ||
| 39 | + return Math.max(min, Math.min(value, max)) | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + function openOptions(device) | ||
| 43 | + { | ||
| 44 | + deviceOptions.device = device | ||
| 45 | + deviceInfo.text = | ||
| 46 | + "<b>" + audioLayer.description(device) + "</b>" | ||
| 47 | + + "<br/><i>" + device + "</i>" | ||
| 48 | + | ||
| 49 | + var audioCaps = AkAudioCaps.create() | ||
| 50 | + var supportedFormats = audioLayer.supportedFormatsVariant(device) | ||
| 51 | + cbxSampleFormats.model.clear() | ||
| 52 | + | ||
| 53 | + for (let i in supportedFormats) { | ||
| 54 | + let format = supportedFormats[i] | ||
| 55 | + let description = audioCaps.sampleFormatToString(format) | ||
| 56 | + cbxSampleFormats.model.append({format: format, | ||
| 57 | + description: description}) | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + var supportedChannelLayouts = | ||
| 61 | + audioLayer.supportedChannelLayoutsVariant(device) | ||
| 62 | + cbxChannelLayouts.model.clear() | ||
| 63 | + | ||
| 64 | + for (let i in supportedChannelLayouts) { | ||
| 65 | + let layout = supportedChannelLayouts[i] | ||
| 66 | + let description = audioCaps.channelLayoutToString(layout) | ||
| 67 | + cbxChannelLayouts.model.append({layout: layout, | ||
| 68 | + description: description}) | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + var supportedSampleRates = audioLayer.supportedSampleRates(device) | ||
| 72 | + cbxSampleRates.model.clear() | ||
| 73 | + | ||
| 74 | + for (let i in supportedSampleRates) { | ||
| 75 | + let sampleRate = supportedSampleRates[i] | ||
| 76 | + cbxSampleRates.model.append({sampleRate: sampleRate, | ||
| 77 | + description: sampleRate}) | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + let isInputDevice = audioLayer.outputs.indexOf(device) < 0 | ||
| 81 | + let caps = isInputDevice? | ||
| 82 | + AkAudioCaps.create(audioLayer.inputDeviceCaps): | ||
| 83 | + AkAudioCaps.create(audioLayer.outputDeviceCaps) | ||
| 84 | + | ||
| 85 | + cbxSampleFormats.currentIndex = | ||
| 86 | + bound(0, | ||
| 87 | + supportedFormats.indexOf(caps.format), | ||
| 88 | + cbxSampleFormats.model.count - 1) | ||
| 89 | + cbxChannelLayouts.currentIndex = | ||
| 90 | + bound(0, | ||
| 91 | + supportedChannelLayouts.indexOf(caps.layout), | ||
| 92 | + cbxChannelLayouts.model.count - 1) | ||
| 93 | + cbxSampleRates.currentIndex = | ||
| 94 | + bound(0, | ||
| 95 | + supportedSampleRates.indexOf(caps.rate), | ||
| 96 | + cbxSampleRates.model.count - 1) | ||
| 97 | + | ||
| 98 | + sldLatency.value = isInputDevice? | ||
| 99 | + audioLayer.inputLatency: | ||
| 100 | + audioLayer.outputLatency | ||
| 101 | + | ||
| 102 | + open() | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + ScrollView { | ||
| 106 | + id: view | ||
| 107 | + anchors.fill: parent | ||
| 108 | + contentHeight: deviceControls.height | ||
| 109 | + clip: true | ||
| 110 | + | ||
| 111 | + GridLayout { | ||
| 112 | + id: deviceControls | ||
| 113 | + columns: 3 | ||
| 114 | + width: view.width | ||
| 115 | + | ||
| 116 | + Label { | ||
| 117 | + id: deviceInfo | ||
| 118 | + elide: Label.ElideRight | ||
| 119 | + Layout.columnSpan: 3 | ||
| 120 | + Layout.fillWidth: true | ||
| 121 | + Layout.bottomMargin: | ||
| 122 | + AkUnit.create(16 * AkTheme.controlScale, "dp").pixels | ||
| 123 | + } | ||
| 124 | + Label { | ||
| 125 | + id: txtSampleFormat | ||
| 126 | + /*: An sample represents the strength of the wave at a certain | ||
| 127 | + time. | ||
| 128 | + A sample can be expressed as the number of bits defining it | ||
| 129 | + (more bits better sound), the type of data representing it | ||
| 130 | + (signed integer, unsigned integer, floating point), and the | ||
| 131 | + endianness of the data (big endian, little endian). | ||
| 132 | + The sample format is the representation of that information. | ||
| 133 | + For example, 's16le' means that each sample format is | ||
| 134 | + represented by a 16 bits signed integer arranged as little | ||
| 135 | + endian. | ||
| 136 | + */ | ||
| 137 | + text: qsTr("Sample Format") | ||
| 138 | + } | ||
| 139 | + ComboBox { | ||
| 140 | + id: cbxSampleFormats | ||
| 141 | + Accessible.description: txtSampleFormat.text | ||
| 142 | + model: ListModel { } | ||
| 143 | + textRole: "description" | ||
| 144 | + Layout.columnSpan: 2 | ||
| 145 | + Layout.fillWidth: true | ||
| 146 | + | ||
| 147 | + function reset() | ||
| 148 | + { | ||
| 149 | + var supportedFormats = | ||
| 150 | + audioLayer.supportedFormatsVariant(deviceOptions.device) | ||
| 151 | + let caps = | ||
| 152 | + AkAudioCaps.create(audioLayer.preferredFormat(deviceOptions.device)) | ||
| 153 | + currentIndex = | ||
| 154 | + bound(0, | ||
| 155 | + supportedFormats.indexOf(caps.format), | ||
| 156 | + model.count - 1) | ||
| 157 | + } | ||
| 158 | + } | ||
| 159 | + Label { | ||
| 160 | + id: txtChannelLayouts | ||
| 161 | + text: qsTr("Channels") | ||
| 162 | + } | ||
| 163 | + ComboBox { | ||
| 164 | + id: cbxChannelLayouts | ||
| 165 | + Accessible.description: txtChannelLayouts.text | ||
| 166 | + model: ListModel { } | ||
| 167 | + textRole: "description" | ||
| 168 | + Layout.columnSpan: 2 | ||
| 169 | + Layout.fillWidth: true | ||
| 170 | + | ||
| 171 | + function reset() | ||
| 172 | + { | ||
| 173 | + var supportedChannelLayouts = | ||
| 174 | + audioLayer.supportedChannelLayoutsVariant(deviceOptions.device) | ||
| 175 | + let caps = | ||
| 176 | + AkAudioCaps.create(audioLayer.preferredFormat(deviceOptions.device)) | ||
| 177 | + currentIndex = | ||
| 178 | + bound(0, | ||
| 179 | + supportedChannelLayouts.indexOf(caps.layout), | ||
| 180 | + model.count - 1) | ||
| 181 | + } | ||
| 182 | + } | ||
| 183 | + Label { | ||
| 184 | + id: txtSampleRate | ||
| 185 | + //: Number of audio samples per channel to be played per second. | ||
| 186 | + text: qsTr("Sample Rate") | ||
| 187 | + } | ||
| 188 | + ComboBox { | ||
| 189 | + id: cbxSampleRates | ||
| 190 | + Accessible.description: txtSampleRate.text | ||
| 191 | + model: ListModel { } | ||
| 192 | + textRole: "description" | ||
| 193 | + Layout.columnSpan: 2 | ||
| 194 | + Layout.fillWidth: true | ||
| 195 | + | ||
| 196 | + function reset() | ||
| 197 | + { | ||
| 198 | + var supportedSampleRates = | ||
| 199 | + audioLayer.supportedSampleRates(deviceOptions.device) | ||
| 200 | + let caps = | ||
| 201 | + AkAudioCaps.create(audioLayer.preferredFormat(deviceOptions.device)) | ||
| 202 | + currentIndex = | ||
| 203 | + bound(0, | ||
| 204 | + supportedSampleRates.indexOf(caps.rate), | ||
| 205 | + model.count - 1) | ||
| 206 | + } | ||
| 207 | + } | ||
| 208 | + Label { | ||
| 209 | + id: txtLatency | ||
| 210 | + /*: The latency is the amount of accumulated audio ready to | ||
| 211 | + play, measured in time. | ||
| 212 | + Higher latency == smoother audio playback, but more | ||
| 213 | + desynchronization with the video. | ||
| 214 | + Lowerer latency == audio synchronization near to the video, | ||
| 215 | + but glitchy audio playback. | ||
| 216 | + | ||
| 217 | + https://en.wikipedia.org/wiki/Latency_(audio) | ||
| 218 | + */ | ||
| 219 | + text: qsTr("Latency (ms)") | ||
| 220 | + } | ||
| 221 | + Slider { | ||
| 222 | + id: sldLatency | ||
| 223 | + stepSize: 1 | ||
| 224 | + from: 1 | ||
| 225 | + to: 2048 | ||
| 226 | + Layout.fillWidth: true | ||
| 227 | + visible: true | ||
| 228 | + Accessible.name: txtLatency.text | ||
| 229 | + | ||
| 230 | + function reset() | ||
| 231 | + { | ||
| 232 | + value = 25 | ||
| 233 | + } | ||
| 234 | + | ||
| 235 | + onValueChanged: spbLatency.value = value | ||
| 236 | + } | ||
| 237 | + SpinBox { | ||
| 238 | + id: spbLatency | ||
| 239 | + value: sldLatency.value | ||
| 240 | + from: sldLatency.from | ||
| 241 | + to: sldLatency.to | ||
| 242 | + stepSize: sldLatency.stepSize | ||
| 243 | + visible: true | ||
| 244 | + editable: true | ||
| 245 | + Accessible.name: txtLatency.text | ||
| 246 | + | ||
| 247 | + onValueModified: sldLatency.value = value | ||
| 248 | + } | ||
| 249 | + } | ||
| 250 | + } | ||
| 251 | + | ||
| 252 | + onAccepted: { | ||
| 253 | + let audioCaps = AkAudioCaps.create() | ||
| 254 | + | ||
| 255 | + if (cbxSampleFormats.model.count > 0 | ||
| 256 | + && cbxChannelLayouts.model.count > 0 | ||
| 257 | + && cbxSampleRates.model.count > 0) { | ||
| 258 | + let sampleFormatsCI = | ||
| 259 | + bound(0, | ||
| 260 | + cbxSampleFormats.currentIndex, | ||
| 261 | + cbxSampleFormats.model.count - 1) | ||
| 262 | + let channelLayoutsCI = | ||
| 263 | + bound(0, | ||
| 264 | + cbxChannelLayouts.currentIndex, | ||
| 265 | + cbxChannelLayouts.model.count - 1) | ||
| 266 | + let sampleRatesCI = | ||
| 267 | + bound(0, | ||
| 268 | + cbxSampleRates.currentIndex, | ||
| 269 | + cbxSampleRates.model.count - 1) | ||
| 270 | + audioCaps = | ||
| 271 | + AkAudioCaps.create(cbxSampleFormats.model.get(sampleFormatsCI).format, | ||
| 272 | + cbxChannelLayouts.model.get(channelLayoutsCI).layout, | ||
| 273 | + false, | ||
| 274 | + cbxSampleRates.model.get(sampleRatesCI).sampleRate) | ||
| 275 | + } | ||
| 276 | + | ||
| 277 | + if (audioLayer.outputs.indexOf(deviceOptions.device) < 0) { | ||
| 278 | + let state = audioLayer.inputState | ||
| 279 | + audioLayer.inputState = AkElement.ElementStateNull | ||
| 280 | + audioLayer.inputDeviceCaps = audioCaps.toVariant() | ||
| 281 | + audioLayer.inputLatency = sldLatency.value | ||
| 282 | + audioLayer.inputState = state | ||
| 283 | + } else { | ||
| 284 | + let state = audioLayer.outputState | ||
| 285 | + audioLayer.outputState = AkElement.ElementStateNull | ||
| 286 | + audioLayer.outputDeviceCaps = audioCaps.toVariant() | ||
| 287 | + audioLayer.outputLatency = sldLatency.value | ||
| 288 | + audioLayer.outputState = state | ||
| 289 | + } | ||
| 290 | + } | ||
| 291 | + onReset: { | ||
| 292 | + cbxSampleFormats.reset() | ||
| 293 | + cbxChannelLayouts.reset() | ||
| 294 | + cbxSampleRates.reset() | ||
| 295 | + sldLatency.reset() | ||
| 296 | + } | ||
| 297 | +} |
StandAlone/share/qml/AudioInputs.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2020 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | +import QtQuick.Layouts | ||
| 23 | + | ||
| 24 | +ScrollView { | ||
| 25 | + id: view | ||
| 26 | + | ||
| 27 | + Component.onCompleted: devicesList.update() | ||
| 28 | + onVisibleChanged: devicesList.forceActiveFocus() | ||
| 29 | + | ||
| 30 | + Connections { | ||
| 31 | + target: audioLayer | ||
| 32 | + | ||
| 33 | + function onInputsChanged() | ||
| 34 | + { | ||
| 35 | + devicesList.update() | ||
| 36 | + } | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + ColumnLayout { | ||
| 40 | + width: view.width | ||
| 41 | + clip: true | ||
| 42 | + | ||
| 43 | + Button { | ||
| 44 | + text: qsTr("Configure input") | ||
| 45 | + icon.source: "image://icons/settings" | ||
| 46 | + flat: true | ||
| 47 | + visible: devicesList.count > 0 | ||
| 48 | + | ||
| 49 | + onClicked: deviceOptions.openOptions(audioLayer.audioInput[0]) | ||
| 50 | + } | ||
| 51 | + OptionList { | ||
| 52 | + id: devicesList | ||
| 53 | + Layout.fillWidth: true | ||
| 54 | + Layout.minimumHeight: minHeight | ||
| 55 | + | ||
| 56 | + property bool updating: false | ||
| 57 | + property int minHeight: 0 | ||
| 58 | + | ||
| 59 | + function update() { | ||
| 60 | + devicesList.minHeight = 0 | ||
| 61 | + let devices = audioLayer.inputs | ||
| 62 | + | ||
| 63 | + for (let i = count - 1; i >= 0; i--) | ||
| 64 | + removeItem(itemAt(i)) | ||
| 65 | + | ||
| 66 | + let input = audioLayer.audioInput.length < 1? | ||
| 67 | + "": | ||
| 68 | + audioLayer.audioInput[0] | ||
| 69 | + let index = devices.indexOf(input) | ||
| 70 | + | ||
| 71 | + if (index < 0) { | ||
| 72 | + if (devices.length == 1) | ||
| 73 | + index = 0 | ||
| 74 | + else if (devices.length >= 2) | ||
| 75 | + index = 1 | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + updating = true | ||
| 79 | + | ||
| 80 | + for (let i in devices) { | ||
| 81 | + let component = Qt.createComponent("AudioDeviceItem.qml") | ||
| 82 | + | ||
| 83 | + if (component.status !== Component.Ready) | ||
| 84 | + continue | ||
| 85 | + | ||
| 86 | + let obj = component.createObject(devicesList) | ||
| 87 | + obj.text = audioLayer.description(devices[i]) | ||
| 88 | + obj.device = devices[i] | ||
| 89 | + obj.highlighted = i == index | ||
| 90 | + devicesList.minHeight += obj.height | ||
| 91 | + | ||
| 92 | + obj.Keys.onSpacePressed.connect(() => deviceOptions.openOptions(audioLayer.audioInput[0])) | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + updating = false | ||
| 96 | + setCurrentIndex(index) | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + onCurrentIndexChanged: | ||
| 100 | + if (!updating && itemAt(currentIndex)) | ||
| 101 | + audioLayer.audioInput = [itemAt(currentIndex).device] | ||
| 102 | + } | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + AudioDeviceOptions { | ||
| 106 | + id: deviceOptions | ||
| 107 | + anchors.centerIn: Overlay.overlay | ||
| 108 | + } | ||
| 109 | +} |
StandAlone/share/qml/AudioOptions.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2020 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | +import QtQuick.Layouts | ||
| 23 | + | ||
| 24 | +ColumnLayout { | ||
| 25 | + TabBar { | ||
| 26 | + id: tabBar | ||
| 27 | + Layout.fillWidth: true | ||
| 28 | + | ||
| 29 | + TabButton { | ||
| 30 | + text: qsTr("Outputs") | ||
| 31 | + } | ||
| 32 | + TabButton { | ||
| 33 | + text: qsTr("Sources") | ||
| 34 | + } | ||
| 35 | + } | ||
| 36 | + StackLayout { | ||
| 37 | + id: stack | ||
| 38 | + Layout.fillWidth: true | ||
| 39 | + Layout.fillHeight: true | ||
| 40 | + currentIndex: tabBar.currentIndex | ||
| 41 | + clip: true | ||
| 42 | + | ||
| 43 | + AudioOutputs { | ||
| 44 | + } | ||
| 45 | + AudioInputs { | ||
| 46 | + } | ||
| 47 | + } | ||
| 48 | +} |
StandAlone/share/qml/AudioOutputs.qml
0 → 100644
| 1 | +/* Webcamoid, webcam capture application. | ||
| 2 | + * Copyright (C) 2020 Gonzalo Exequiel Pedone | ||
| 3 | + * | ||
| 4 | + * Webcamoid is free software: you can redistribute it and/or modify | ||
| 5 | + * it under the terms of the GNU General Public License as published by | ||
| 6 | + * the Free Software Foundation, either version 3 of the License, or | ||
| 7 | + * (at your option) any later version. | ||
| 8 | + * | ||
| 9 | + * Webcamoid is distributed in the hope that it will be useful, | ||
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | + * GNU General Public License for more details. | ||
| 13 | + * | ||
| 14 | + * You should have received a copy of the GNU General Public License | ||
| 15 | + * along with Webcamoid. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | + * | ||
| 17 | + * Web-Site: http://webcamoid.github.io/ | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +import QtQuick | ||
| 21 | +import QtQuick.Controls | ||
| 22 | +import QtQuick.Layouts | ||
| 23 | + | ||
| 24 | +ScrollView { | ||
| 25 | + id: view | ||
| 26 | + | ||
| 27 | + Component.onCompleted: devicesList.update() | ||
| 28 | + onVisibleChanged: devicesList.forceActiveFocus() | ||
| 29 | + | ||
| 30 | + Connections { | ||
| 31 | + target: audioLayer | ||
| 32 | + | ||
| 33 | + function onOutputsChanged() | ||
| 34 | + { | ||
| 35 | + devicesList.update() | ||
| 36 | + } | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + ColumnLayout { | ||
| 40 | + width: view.width | ||
| 41 | + clip: true | ||
| 42 | + | ||
| 43 | + Button { | ||
| 44 | + text: qsTr("Configure output") | ||
| 45 | + icon.source: "image://icons/settings" | ||
| 46 | + flat: true | ||
| 47 | + visible: devicesList.count > 0 | ||
| 48 | + | ||
| 49 | + onClicked: deviceOptions.openOptions(audioLayer.audioOutput) | ||
| 50 | + } | ||
| 51 | + OptionList { | ||
| 52 | + id: devicesList | ||
| 53 | + Layout.fillWidth: true | ||
| 54 | + Layout.minimumHeight: minHeight | ||
| 55 | + | ||
| 56 | + property bool updating: false | ||
| 57 | + property int minHeight: 0 | ||
| 58 | + | ||
| 59 | + function update() { | ||
| 60 | + devicesList.minHeight = 0 | ||
| 61 | + let devices = audioLayer.outputs | ||
| 62 | + | ||
| 63 | + for (let i = count - 1; i >= 0; i--) | ||
| 64 | + removeItem(itemAt(i)) | ||
| 65 | + | ||
| 66 | + let index = devices.indexOf(audioLayer.audioOutput) | ||
| 67 | + | ||
| 68 | + if (index < 0) { | ||
| 69 | + if (devices.length == 1) | ||
| 70 | + index = 0 | ||
| 71 | + else if (devices.length >= 2) | ||
| 72 | + index = 1 | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + updating = true | ||
| 76 | + | ||
| 77 | + for (let i in devices) { | ||
| 78 | + let component = Qt.createComponent("AudioDeviceItem.qml") | ||
| 79 | + | ||
| 80 | + if (component.status !== Component.Ready) | ||
| 81 | + continue | ||
| 82 | + | ||
| 83 | + let obj = component.createObject(devicesList) | ||
| 84 | + obj.text = audioLayer.description(devices[i]) | ||
| 85 | + obj.device = devices[i] | ||
| 86 | + obj.highlighted = i == index | ||
| 87 | + devicesList.minHeight += obj.height | ||
| 88 | + | ||
| 89 | + obj.Keys.onSpacePressed.connect(() => deviceOptions.openOptions(audioLayer.audioOutput)) | ||
| 90 | + } | ||
| 91 | + | ||
| 92 | + updating = false | ||
| 93 | + setCurrentIndex(index) | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + onCurrentIndexChanged: | ||
| 97 | + if (!updating && itemAt(currentIndex)) | ||
| 98 | + audioLayer.audioOutput = itemAt(currentIndex).device | ||
| 99 | + } | ||
| 100 | + } | ||
| 101 | + | ||
| 102 | + AudioDeviceOptions { | ||
| 103 | + id: deviceOptions | ||
| 104 | + anchors.centerIn: Overlay.overlay | ||
| 105 | + } | ||
| 106 | +} |
-
请 注册 或 登录 后发表评论