-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0c7515
commit 1f104c7
Showing
211 changed files
with
17,956 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
The Squirrel Video Frame Interpolation application and | ||
the Squirrel Anime Enhance application | ||
hereinafter to be referred as SVFI and SAE, are | ||
licensed on the terms of GNU GENERAL PUBLIC LICENSE Version 3 | ||
|
||
The package dependencies of SVFI and SAE, | ||
Copyright (c) their respective copyright owners | ||
Licensed on their respective license terms | ||
|
||
The "Squirrel" Logo | ||
Copyright (c) SDT | ||
|
||
This repository and source distributions bundle several libraries that are | ||
compatibly licensed. We list these here. | ||
|
||
Name: RIFE | ||
Files: RIFE/* | ||
License: MIT | ||
For details, see RIFE/LICENSE, https://github.com/hzwer/arXiv2020-RIFE/blob/main/LICENSE | ||
|
||
Name: RIFE ncnn Vulkan | ||
License: MIT | ||
For details, see https://github.com/nihui/rife-ncnn-vulkan | ||
|
||
Name: rife-ncnn-vulkan-python | ||
License: MIT | ||
For license text, see https://github.com/media2x/rife-ncnn-vulkan-python/blob/master/LICENSE | ||
|
||
Name: waifu2x-ncnn-vulkan-python | ||
License: MIT | ||
For license text, see https://github.com/media2x/waifu2x-ncnn-vulkan-python/blob/master/LICENSE | ||
|
||
Name: waifu2x | ||
File: SuperResolution/WaifuCudaModule.py | ||
License: MIT | ||
For license text, see https://github.com/nagadomi/waifu2x/blob/master/LICENSE | ||
|
||
Name: Real-ESRGAN | ||
File: SuperResolution/RealESRModule.py | ||
License: BSD 3-Clause | ||
For license text, see https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE | ||
|
||
Name: Real-CUGAN | ||
File: SuperResolution/RealCUGANModule.py | ||
License: MIT | ||
For license text, see https://github.com/bilibili/ailab/blob/main/Real-CUGAN/LICENSE | ||
|
||
Name: QCandyUi | ||
Files: QCandyUi/* | ||
License: MIT | ||
For license text, see https://github.com/shuoGG1239/QCandyUi/blob/master/LICENSE | ||
|
||
Name: SteamworksPy | ||
License: MIT | ||
For license text, see https://github.com/philippj/SteamworksPy/blob/master/LICENSE | ||
|
||
Name: scikit-video | ||
Files: skvideo/* | ||
License: MIT | ||
For license text, see https://github.com/scikit-video/scikit-video/blob/master/LICENSE.txt | ||
|
||
Name: FFmpeg | ||
License: the GNU General Public License version 2 or later (GPL v2+) | ||
For license text, see https://github.com/FFmpeg/FFmpeg/blob/master/LICENSE.md | ||
|
||
Name: QSVEnc | ||
License: MIT | ||
For license text, see https://github.com/rigaya/QSVEnc/blob/master/license.txt | ||
|
||
Name: NVEnc | ||
License: MIT | ||
For license text, see https://github.com/rigaya/NVEnc/blob/master/NVEnc_license.txt | ||
|
||
Name: dovi_tool | ||
License: MIT | ||
For license text, see https://github.com/quietvoid/dovi_tool/blob/main/LICENSE | ||
|
||
Name: hdr10plus_tool | ||
License: MIT | ||
For license text, see https://github.com/quietvoid/hdr10plus_tool/blob/master/LICENSE | ||
|
||
Name: dlb_mp4base | ||
License: BSD 3-Clause | ||
For license text, see https://github.com/DolbyLaboratories/dlb_mp4base/blob/master/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import json | ||
import os | ||
|
||
from PyQt5.QtGui import QIcon | ||
from PyQt5.QtWidgets import qApp | ||
|
||
from . import WindowWithTitleBar | ||
from . import simple_qss | ||
|
||
""" | ||
# 示例1和2最终效果一样, 不过推荐用1的方法 | ||
- 使用示例1: | ||
app = QApplication(sys.argv) | ||
w = CandyWindow.createWindow(LogViewer(), 'Log Viewer', 'myicon.ico', 'blueGreen') | ||
w.show() | ||
sys.exit(app.exec_()) | ||
- 使用示例2: | ||
eg: | ||
@colorful('blueGreen') | ||
class LogViewer(QWidget): | ||
... ... | ||
""" | ||
RESOURCE_DIR = 'candyUi' | ||
|
||
|
||
def colorful(theme): | ||
""" | ||
彩色主题装饰, 可以装饰所有的QWidget类使其直接拥有彩色主题 (带Titlebar) | ||
:param theme: 主题名, 与theme.json里面的主题名对应 | ||
:return: | ||
""" | ||
|
||
def new_func(aClass): | ||
def on_call(*args, **kargs): | ||
src_widget = aClass(*args, **kargs) | ||
dst_widget = createWindow(src_widget, theme) | ||
return dst_widget | ||
|
||
return on_call | ||
|
||
return new_func | ||
|
||
|
||
def createWindow(mainWidget, theme=None, title='CandySweet', ico_path=''): | ||
""" | ||
快速创建彩色窗 (带TitleBar) | ||
:param mainWidget: | ||
:param theme: | ||
:param title: | ||
:param ico_path: | ||
:return: | ||
""" | ||
setTheme(theme) | ||
coolWindow = WindowWithTitleBar.WindowWithTitleBar(mainWidget) | ||
coolWindow.setWindowTitle(title) | ||
coolWindow.setWindowIcon(QIcon(ico_path)) | ||
# coolWindow.setWindowRadius(3.14/2) | ||
return coolWindow | ||
|
||
|
||
def setTheme(theme): | ||
""" | ||
根据theme.json设置主题的qss (只改样式不加Titlebar) | ||
:param theme: | ||
:return: | ||
""" | ||
THEME_FILE = RESOURCE_DIR + '/theme.json' | ||
if os.path.isfile(THEME_FILE): | ||
path = THEME_FILE | ||
else: | ||
path = (os.path.split(__file__)[0] + '\\' + THEME_FILE).replace('\\', '/') | ||
tDict = json.load(open(path)) | ||
# theme.json的theme的优先级比setTheme中的theme的优先级高 | ||
configTheme = tDict.get('theme') | ||
if configTheme is None or configTheme == '' or tDict.get(configTheme) is None: | ||
colorDict = tDict.get(theme) | ||
else: | ||
colorDict = tDict.get(configTheme) | ||
if colorDict is None: | ||
qss = simple_qss.getDefaultQss() | ||
else: | ||
qss = simple_qss.getQss(colorDict['fontLight'], colorDict['fontDark'], colorDict['normal'], colorDict['light'], | ||
colorDict['deep'], colorDict['disLight'], colorDict['disDark'], theme) | ||
qApp.setStyleSheet(qss) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 shuoGG | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.