video2x GUI 2.0.0: completely redesigned and rewritten with PyQt5

This commit is contained in:
k4yt3x
2020-05-06 04:45:48 -04:00
parent f00a10aa91
commit 9b4fb3258a
4 changed files with 897 additions and 383 deletions

View File

@@ -4,7 +4,7 @@
Name: Video2X Upscaler
Author: K4YT3X
Date Created: December 10, 2018
Last Modified: May 5, 2020
Last Modified: May 6, 2020
Description: This file contains the Upscaler class. Each
instance of the Upscaler class is an upscaler on an image or
@@ -20,7 +20,9 @@ from wrappers.ffmpeg import Ffmpeg
from fractions import Fraction
import contextlib
import copy
import gettext
import importlib
import locale
import os
import pathlib
import re
@@ -35,6 +37,16 @@ import traceback
from avalon_framework import Avalon
from tqdm import tqdm
# internationalization constants
DOMAIN = 'video2x'
LOCALE_DIRECTORY = pathlib.Path(__file__).parent.absolute() / 'locale'
# getting default locale settings
default_locale, encoding = locale.getdefaultlocale()
language = gettext.translation(DOMAIN, LOCALE_DIRECTORY, [default_locale], fallback=True)
language.install()
_ = language.gettext
# these names are consistent for
# - driver selection in command line
# - driver wrapper file names