Add player upscaling and fix miniplayer and scrub bar issues

Upscaling is chosen in the player (Playback options, or U): Performance
uses spline36 scaling, debanding and AMD CAS sharpening; Balanced adds
FSRCNNX neural luma upscaling and KrigBilateral chroma reconstruction.
The shaders ship in src-tauri/shaders and their WHEN conditions decide
whether they run for the current video and window size; HDR titles skip
CAS, which assumes SDR gamma.

The title above the scrub bar now opens its show, movie or episode page
with playback moving to the miniplayer. Leaving the miniplayer any way
(including starting another title, which left the app invisible) puts
the video back over the whole window. The scrub bar separates played
and buffered sections more clearly, and its preview keeps its size at
the end of the bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-10-30 18:55:52 -07:00
parent 6be6633f64
commit 5dc18ff9e5
13 changed files with 1345 additions and 15 deletions

View file

@ -7,6 +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 interface Preferences {
// Playback
@ -30,6 +31,8 @@ export interface Preferences {
subtitlePosition: SubtitlePosition;
volume: number;
seekStep: number;
/** Video enhancement, chosen in the player. */
upscaling: Upscaling;
// Interface
startPage: 'home' | 'movies' | 'shows';
colorWash: boolean;
@ -68,6 +71,7 @@ export const defaults: Preferences = {
subtitlePosition: 'normal',
volume: 100,
seekStep: 10,
upscaling: 'off',
startPage: 'home',
colorWash: true,
reducedMotion: false,
@ -135,3 +139,9 @@ export const SUBTITLE_COLORS: { value: string; label: string }[] = [
/** Bottom margin in mpv's scaled pixels (720 = window height). */
export const SUBTITLE_MARGIN: Record<SubtitlePosition, number> = { low: 14, normal: 34, high: 80 };
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' },
};