mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: super resolution from kazumi/main
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -37,16 +37,7 @@ class GStorage {
|
||||
static List<double> get speedList => List<double>.from(
|
||||
video.get(
|
||||
VideoBoxKey.speedsList,
|
||||
defaultValue: [
|
||||
0.5,
|
||||
0.75,
|
||||
1.0,
|
||||
1.25,
|
||||
1.5,
|
||||
1.75,
|
||||
2.0,
|
||||
3.0,
|
||||
],
|
||||
defaultValue: [0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 3.0],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -348,6 +339,9 @@ class GStorage {
|
||||
static String get audioNormalization =>
|
||||
GStorage.setting.get(SettingBoxKey.audioNormalization, defaultValue: '0');
|
||||
|
||||
static int get superResolutionType =>
|
||||
GStorage.setting.get(SettingBoxKey.superResolutionType, defaultValue: 0);
|
||||
|
||||
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
||||
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
||||
|
||||
@@ -570,6 +564,7 @@ class SettingBoxKey {
|
||||
mergeDanmaku = 'mergeDanmaku',
|
||||
showHotRcmd = 'showHotRcmd',
|
||||
audioNormalization = 'audioNormalization',
|
||||
superResolutionType = 'superResolutionType',
|
||||
|
||||
// Sponsor Block
|
||||
enableSponsorBlock = 'enableSponsorBlock',
|
||||
|
||||
@@ -41,12 +41,21 @@ import 'package:webview_cookie_manager/webview_cookie_manager.dart';
|
||||
import 'package:flutter_inappwebview/flutter_inappwebview.dart' as web;
|
||||
import 'package:html/dom.dart' as dom;
|
||||
import 'package:html/parser.dart' as html_parser;
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
class Utils {
|
||||
static final Random random = Random();
|
||||
|
||||
static const channel = MethodChannel("PiliPlus");
|
||||
|
||||
static String buildShadersAbsolutePath(
|
||||
String baseDirectory, List<String> shaders) {
|
||||
List<String> absolutePaths = shaders.map((shader) {
|
||||
return path.join(baseDirectory, shader);
|
||||
}).toList();
|
||||
return absolutePaths.join(':');
|
||||
}
|
||||
|
||||
static void pushDynDetail(item, floor, {action = 'all'}) async {
|
||||
feedBack();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user