Add a Quality upscaling tier and make enhancement verifiable
Quality runs ArtCNN C4F32 (its denoising model when Denoising is on), KrigBilateral, debanding and CAS. Its network runs at any enlargement, so 1080p in a maximized 1440p window is doubled and scaled down; Balanced keeps FSRCNNX's 1.3x threshold. The enhancement pipeline moves to player/enhance.ts. Mode changes are serialized (latest wins). Shader errors in mpv's log, or network passes missing from vo-passes, drop to the tier below with a notice, and the chosen and running tiers are shown separately. HDR is judged from the decoded video. Debanding, sharpening and denoising have their own toggles, B compares with enhancement off, and the panel shows the renderer's actual stages, GPU time and dropped frames. Compiled shaders persist in the app cache (gpu-shader-cache-dir): ArtCNN's first Direct3D compile takes about a minute, which the player now announces, and later launches start immediately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5efcf2c5a5
commit
9fd2b0603e
11 changed files with 8400 additions and 68 deletions
|
|
@ -7,7 +7,7 @@ export type SubtitleMode = 'auto' | 'always' | 'forced' | 'off';
|
|||
export type SubtitleEdge = 'outline' | 'shadow' | 'raised' | 'none';
|
||||
export type SubtitleBox = 'none' | 'translucent' | 'solid';
|
||||
export type SubtitlePosition = 'low' | 'normal' | 'high';
|
||||
export type Upscaling = 'off' | 'performance' | 'balanced';
|
||||
export type Upscaling = 'off' | 'performance' | 'balanced' | 'quality';
|
||||
|
||||
export interface Preferences {
|
||||
// Playback
|
||||
|
|
@ -31,8 +31,11 @@ export interface Preferences {
|
|||
subtitlePosition: SubtitlePosition;
|
||||
volume: number;
|
||||
seekStep: number;
|
||||
/** Video enhancement, chosen in the player. */
|
||||
/** Video enhancement, chosen in the player, and its optional stages. */
|
||||
upscaling: Upscaling;
|
||||
enhanceDeband: boolean;
|
||||
enhanceSharpen: boolean;
|
||||
enhanceDenoise: boolean;
|
||||
// Interface
|
||||
startPage: 'home' | 'movies' | 'shows';
|
||||
colorWash: boolean;
|
||||
|
|
@ -72,6 +75,9 @@ export const defaults: Preferences = {
|
|||
volume: 100,
|
||||
seekStep: 10,
|
||||
upscaling: 'off',
|
||||
enhanceDeband: true,
|
||||
enhanceSharpen: true,
|
||||
enhanceDenoise: true,
|
||||
startPage: 'home',
|
||||
colorWash: true,
|
||||
reducedMotion: false,
|
||||
|
|
@ -144,4 +150,5 @@ export const UPSCALING: Record<Upscaling, { label: string; detail: string }> = {
|
|||
off: { label: 'Off', detail: 'mpv’s standard scaling' },
|
||||
performance: { label: 'Performance', detail: 'Sharp scaling, debanding and light sharpening' },
|
||||
balanced: { label: 'Balanced', detail: 'Neural upscaling (FSRCNNX), colour reconstruction, debanding and sharpening' },
|
||||
quality: { label: 'Quality', detail: 'Larger neural upscaler (ArtCNN) with denoising, colour reconstruction, debanding and sharpening. Needs a capable GPU' },
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue