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

@ -156,6 +156,13 @@ export async function localFileUrl(path: string): Promise<string> {
return convertFileSrc(path);
}
/** Absolute path of a file bundled with the app (Tauri resources), or '' in a browser. */
export async function resourcePath(relative: string): Promise<string> {
if (!isNative) return '';
const { resolveResource } = await import('@tauri-apps/api/path');
return resolveResource(relative);
}
export function keepAwake(enabled: boolean) {
if (isNative) invoke('keep_awake', { enabled }).catch(() => {});
}