From 19265b36c284976626d57199ed1b66f99e103a19 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Thu, 15 Oct 2026 14:53:12 +0200 Subject: [PATCH 1/5] build: debug the Windows programs from VS Code F5 in VS Code now starts Titano, the Uploader and the server under the C# extension's debugger, as well as the --capture runs, Titano.Tools and the test programs. Each configuration builds in Debug first and starts the program's .exe rather than its .dll, because the programs read Environment.ProcessPath (Setup's payload, the Run keys and tray icons). The server's session keeps its data and archive in out/debug/server instead of %ProgramData% and C:\TitanoArchive. The build tasks use no reused MSBuild nodes, whose cached drive-letter case made every F5 build restore and C# Dev Kit reload, and keep MSB3026 (a copy that succeeds on a retry) a warning so a file held for a moment no longer stops F5. Design-time builds skip the icon generation, which on a fresh clone ran a Titano.Tools.dll that did not exist yet (MSB3073 in VS Code), and log WPF's MC1000 about projects not built yet as a message. Co-Authored-By: Claude Opus 5.5 --- .vscode/extensions.json | 4 + .vscode/launch.json | 188 ++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 128 +++++++++++++++++++++++++++ Directory.Build.props | 6 ++ Directory.Build.targets | 4 +- README.md | 28 ++++++ docs/CHANGELOG.md | 6 ++ docs/DECISIONS.md | 2 + 8 files changed, 365 insertions(+), 1 deletion(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..b699e619 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,4 @@ +{ + // The coreclr debugger of launch.json comes with the C# extension. + "recommendations": ["ms-dotnettools.csharp"] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..57fcc9b5 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,188 @@ +{ + // Windows programs under the C# extension's debugger. Each launch configuration builds in Debug first (tasks.json), + // then starts the program's .exe, never "dotnet .dll": the programs read Environment.ProcessPath (the Run + // keys and tray icons of Titano and the Uploader, Setup's payload and the stub of its capture's sample installer). + "version": "0.2.0", + "configurations": [ + { + "name": "Titano", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano", + "program": "${workspaceFolder}/src/Titano.App/bin/Debug/net10.0-windows/Titano.exe", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "1-programs", + "order": 1 + } + }, + { + "name": "Titano Uploader", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Uploader", + "program": "${workspaceFolder}/src/Titano.Uploader/bin/Debug/net10.0-windows/Titano.Uploader.exe", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "1-programs", + "order": 2 + } + }, + { + // SQLite, as on any Windows server, with the data and the archive in out/debug/server instead of + // %ProgramData%\Titano Server and C:\TitanoArchive. The first administrator's temporary password is in + // out/debug/server/data/initial-admin-password.txt. + "name": "Titano Server", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Server", + "program": "${workspaceFolder}/src/Titano.Server/bin/Debug/net10.0/Titano.Server.exe", + "cwd": "${workspaceFolder}", + "env": { + "TITANO_DATA_PATH": "${workspaceFolder}\\out\\debug\\server\\data", + "TITANO_ARCHIVE_PATH": "${workspaceFolder}\\out\\debug\\server\\archive" + }, + "console": "internalConsole", + "serverReadyAction": { + "action": "openExternally", + "pattern": "Now listening on: https://\\S+:(\\d+)", + "uriFormat": "https://localhost:%s/admin/" + }, + // The server makes its own certificate (data\tls); the ASP.NET Core development certificate plays no part. + "checkForDevCert": false, + "presentation": { + "group": "1-programs", + "order": 3 + } + }, + { + // Every screen with sample data in a throw-away data folder, as the CI screenshots step runs it. + "name": "Titano (screenshots)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano", + "program": "${workspaceFolder}/src/Titano.App/bin/Debug/net10.0-windows/Titano.exe", + "args": ["--capture", "${workspaceFolder}\\out\\screenshots"], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "2-screenshots", + "order": 1 + } + }, + { + "name": "Titano Uploader (screenshots)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Uploader", + "program": "${workspaceFolder}/src/Titano.Uploader/bin/Debug/net10.0-windows/Titano.Uploader.exe", + "args": ["--capture", "${workspaceFolder}\\out\\screenshots"], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "2-screenshots", + "order": 2 + } + }, + { + // Setup has no payload outside a packed installer: the capture builds a sample one and installs nothing. + "name": "Titano Setup (screenshots)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Setup", + "program": "${workspaceFolder}/src/Titano.Setup/bin/Debug/net10.0-windows/Titano.Setup.exe", + "args": ["--capture", "${workspaceFolder}\\out\\screenshots"], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "2-screenshots", + "order": 3 + } + }, + { + "name": "Titano.Tools", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano.Tools", + "program": "${workspaceFolder}/src/Titano.Tools/bin/Debug/net10.0/Titano.Tools.exe", + "args": "${input:toolsArguments}", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "3-development", + "order": 1 + } + }, + { + "name": "Tests", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + "program": "${workspaceFolder}/tests/${input:testProgram}", + "args": "${input:testArguments}", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "3-development", + "order": 2 + } + }, + { + "name": "Attach to process", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}", + "presentation": { + "group": "3-development", + "order": 3 + } + } + ], + "inputs": [ + { + "id": "toolsArguments", + "type": "promptString", + "description": "Titano.Tools command and options (--help lists them; changelog needs --in here)", + "default": "i18n check" + }, + { + "id": "testProgram", + "type": "pickString", + "description": "Test program", + "options": [ + { + "label": "Titano.Core.Tests", + "value": "Titano.Core.Tests/bin/Debug/net10.0/Titano.Core.Tests.exe" + }, + { + "label": "Titano.Core.Windows.Tests", + "value": "Titano.Core.Windows.Tests/bin/Debug/net10.0-windows/Titano.Core.Windows.Tests.exe" + }, + { + "label": "Titano.Data.Tests", + "value": "Titano.Data.Tests/bin/Debug/net10.0/Titano.Data.Tests.exe" + }, + { + "label": "Titano.Server.Tests", + "value": "Titano.Server.Tests/bin/Debug/net10.0/Titano.Server.Tests.exe" + }, + { + "label": "Titano.App.Tests", + "value": "Titano.App.Tests/bin/Debug/net10.0-windows/Titano.App.Tests.exe" + }, + { + "label": "Titano.Tools.Tests", + "value": "Titano.Tools.Tests/bin/Debug/net10.0/Titano.Tools.Tests.exe" + } + ] + }, + { + "id": "testArguments", + "type": "promptString", + "description": "Options: --filter , --exclude , --parallel , --list, --verbose", + "default": "--parallel 1" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..54d69e5b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,128 @@ +{ + // Debug builds for the configurations in launch.json. The classic console logger (no terminal logger, full paths, + // no wrapping) prints each diagnostic on one line for the $msCompile problem matcher. No reused MSBuild nodes: they + // keep the drive letter's case of earlier builds (VS Code passes it in lower case), and the mixed-case restores + // they caused made every build restore and C# Dev Kit reload. A copy that succeeds on a retry (MSB3026: a file held + // for a moment by an antivirus or another build) does not fail the build; one that never succeeds still does + // (MSB3027). + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "detail": "Titano.slnx, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/Titano.slnx", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano", + "detail": "src/Titano.App, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.App/Titano.App.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano Uploader", + "detail": "src/Titano.Uploader, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Uploader/Titano.Uploader.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano Server", + "detail": "src/Titano.Server, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Server/Titano.Server.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano Setup", + "detail": "src/Titano.Setup, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Setup/Titano.Setup.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano.Tools", + "detail": "src/Titano.Tools, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Tools/Titano.Tools.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + } + ] +} diff --git a/Directory.Build.props b/Directory.Build.props index c0c906ca..c08b3f1e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -35,6 +35,12 @@ embedded + + + $(MSBuildWarningsAsMessages);MC1000 + + alby96/titano-releases diff --git a/Directory.Build.targets b/Directory.Build.targets index 60f0cca3..6e2913f9 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -27,8 +27,10 @@ GlobalPropertiesToRemove="RuntimeIdentifier;SelfContained;PublishSingleFile;PublishReadyToRun;TargetFramework" Private="false" /> + .dll`; the server's default folders; ports of its own for the server; a portable copy (`portable.txt`) for the desktop programs; reused MSBuild nodes; MSB3026 as an error | The `coreclr` debugger needs only the C# extension. Started as a `.dll`, the process is `dotnet.exe`, which the programs read as their own path (`Environment.ProcessPath`): Setup's payload and the stub of its capture's sample installer, the Run keys and tray icons. A console run creates `%ProgramData%\Titano Server` owned by the developer, which the service then refuses (the console-run data folder rows), and `C:\TitanoArchive` at the drive root. On the default ports the clients reach the debug server as they reach an installed one; the README says to stop the Docker stack or an installed server first. A portable copy would run other code than an installed one (data beside the program, the portable update download). MSB3026 reports a copy that a retry then completes (a file held for a moment by an antivirus or another build): as an error it stopped F5 although the build succeeded, while a copy that never succeeds still fails (MSB3027). Reused MSBuild nodes keep the drive letter's case of the build that started them, while VS Code passes it in lower case: restores mixed both cases, rewrote `project.assets.json` at every build and made C# Dev Kit reload the projects, so no F5 build was a no-op (7 to 14 s for Titano instead of about 5 s). | +| 2026-10-15 | Design-time builds (`DesignTimeBuild=true`: C# Dev Kit, Visual Studio) skip the `TitanoGenerateIcons` target (`Directory.Build.targets`) and log WPF's MC1000 as a message (`Directory.Build.props`). Refines 2026-10-02 'Program icons (ICO) are generated at build time…'. | Build `Titano.Tools` from the design-time build; no warnings as errors in design-time builds; leave it | A design-time build builds no project references, so on a fresh clone `make-icon` ran a `Titano.Tools.dll` that did not exist yet: VS Code listed MSB3073 for Titano, the Uploader and Setup when the folder opened. A design-time build compiles nothing, so it needs no icon. Past that target, the markup compile of their XAML cannot load `Titano.Ui.dll` before the first build: MC1000, which the design-time build makes a warning and warnings as errors made an error again (21 of them). Without warnings as errors they would still be listed, as warnings. Real builds still fail on MC1000. | -- 2.54.1 From 34d03051f51cb9e1834ded12c7efe81f0a8c71c6 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Fri, 16 Oct 2026 10:20:26 +0200 Subject: [PATCH 2/5] fix: stalled jobs, editor cancellation stops and GoPro DNG decoding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Owner review 1, phase 1 (docs/requests/2026-10-15-owner-review-1.md). Thumbnail and proxy jobs over several sequences counted sequences while they checkpointed inside one: the rate decayed until the time left overflowed TimeSpan, the job failed while publishing progress and again while saving it, and stayed Running. The throughput is now seeded by the first window with progress, the time left is bounded (JobEta), saving progress never throws, image passes count frames, and job speeds use the right unit (bytes for verify and import). The debugger stops in WicDecoderProvider.cs when presets changed were cancelled preview decodes leaving synchronous thread-pool delegates; the editor's sources, LatestRunner and the render node's proxy task now keep them in their own tasks, and a cancellation is never an unreadable frame. GoPro DNGs converted by Adobe software were classified GPR and read only through their 8-bit preview, and Windows' preview-only DNG decoder was reported as a native decode. A DNG is GPR only when its raw image is VC-5, WIC decodes RAW only through the Raw Image Extension and never DNG, analyses and previews take an adequate embedded preview by choice while renders develop natively, and frames already indexed as GPR are reclassified by the next light analysis. Also records the owner's request (docs/requests), the BRIEF amendments (§8.1, §8.2, new §24), DECISIONS, CHANGELOG, STATUS and ARCHITECTURE. Co-Authored-By: Claude Opus 5.5 --- docs/ARCHITECTURE.md | 6 +- docs/BRIEF.md | 20 ++- docs/CHANGELOG.md | 11 ++ docs/DECISIONS.md | 5 + docs/STATUS.md | 1 + docs/requests/2026-10-15-owner-review-1.md | 67 ++++++++ docs/requests/README.md | 12 ++ i18n/ar/Jobs.ar.resx | 1 + i18n/bg/Jobs.bg.resx | 1 + i18n/cs/Jobs.cs.resx | 1 + i18n/da/Jobs.da.resx | 1 + i18n/de/Jobs.de.resx | 1 + i18n/el/Jobs.el.resx | 1 + i18n/en/Jobs.resx | 1 + i18n/es/Jobs.es.resx | 1 + i18n/et/Jobs.et.resx | 1 + i18n/fi/Jobs.fi.resx | 1 + i18n/fr/Jobs.fr.resx | 1 + i18n/he/Jobs.he.resx | 1 + i18n/hi/Jobs.hi.resx | 1 + i18n/hr/Jobs.hr.resx | 1 + i18n/hu/Jobs.hu.resx | 1 + i18n/id/Jobs.id.resx | 1 + i18n/it/Jobs.it.resx | 1 + i18n/ja/Jobs.ja.resx | 1 + i18n/ko/Jobs.ko.resx | 1 + i18n/lt/Jobs.lt.resx | 1 + i18n/lv/Jobs.lv.resx | 1 + i18n/ms/Jobs.ms.resx | 1 + i18n/nb/Jobs.nb.resx | 1 + i18n/nl/Jobs.nl.resx | 1 + i18n/pl/Jobs.pl.resx | 1 + i18n/pt-BR/Jobs.pt-BR.resx | 1 + i18n/pt-PT/Jobs.pt-PT.resx | 1 + i18n/ro/Jobs.ro.resx | 1 + i18n/ru/Jobs.ru.resx | 1 + i18n/sk/Jobs.sk.resx | 1 + i18n/sl/Jobs.sl.resx | 1 + i18n/sv/Jobs.sv.resx | 1 + i18n/th/Jobs.th.resx | 1 + i18n/tr/Jobs.tr.resx | 1 + i18n/uk/Jobs.uk.resx | 1 + i18n/vi/Jobs.vi.resx | 1 + i18n/zh-Hans/Jobs.zh-Hans.resx | 1 + i18n/zh-Hant/Jobs.zh-Hant.resx | 1 + src/Titano.App/Editor/LatestRunner.cs | 4 +- src/Titano.App/Editor/LocalSequenceSource.cs | 21 ++- src/Titano.App/Editor/RemoteSequenceSource.cs | 5 +- src/Titano.App/Jobs/JobText.cs | 17 +- .../Wic/WicDecoderProvider.cs | 30 +++- src/Titano.Core/Archiving/SequenceFrames.cs | 3 + src/Titano.Core/Codecs/Dng/DngReader.cs | 13 ++ .../Decoders/ManagedDecoderProvider.cs | 3 + src/Titano.Core/Imaging/Decoding.cs | 19 ++- src/Titano.Core/Metadata/ImageSignature.cs | 4 +- src/Titano.Data/Archiving/FrameTiers.cs | 19 ++- .../Archiving/Jobs/ImageJobHandler.cs | 23 ++- src/Titano.Data/Jobs/JobEngine.cs | 34 +++- src/Titano.Data/Jobs/JobHandler.cs | 42 ++--- src/Titano.Data/Jobs/JobThroughput.cs | 58 +++++++ src/Titano.Data/Jobs/JobWire.cs | 2 +- .../Processing/AnalysisFollowUp.cs | 10 +- .../Processing/RenderNodeClient.cs | 7 +- .../Processing/SequenceFrameSource.cs | 7 +- .../Repositories/FrameRepository.cs | 35 +++-- src/Titano.Data/Repositories/JobRepository.cs | 3 +- src/Titano.Server/Jobs/RenderNodeService.cs | 10 +- .../Editor/ProjectStoreTests.cs | 38 +++++ .../Editor/SchedulingTests.cs | 19 +++ .../Jobs/JobListModelTests.cs | 7 +- .../Decoding/ManagedDecoderProviderTests.cs | 51 ++++++ tests/Titano.Core.Tests/Raw/SyntheticRaw.cs | 28 +++- .../Archiving/PartialRowWriterTests.cs | 2 +- .../Jobs/JobThroughputTests.cs | 147 ++++++++++++++++++ .../Processing/AnalysisJobTests.cs | 54 +++++++ .../Repositories/CatalogRepositoryTests.cs | 2 +- .../Titano.Server.Tests/Api/SequenceTests.cs | 2 +- 77 files changed, 785 insertions(+), 94 deletions(-) create mode 100644 docs/requests/2026-10-15-owner-review-1.md create mode 100644 docs/requests/README.md create mode 100644 src/Titano.Data/Jobs/JobThroughput.cs create mode 100644 tests/Titano.Data.Tests/Jobs/JobThroughputTests.cs diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 56855f1e..8525ddb3 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -29,7 +29,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | Folder / namespace | Content | |---|---| -| `Imaging` (+ `Decoders`, `Geometry`, `Thumbnails`) | `ImageBuffer` (planar float, linear light), `IImageDecoderProvider`, `DecoderFactory` (decode tiers: native → embedded preview; `ImageDecoder.Probe` names a file's tier without decoding it), `ManagedDecoderProvider`, `FrameWindow` (read-ahead, memory budget, float32 spill), resampler, thumbnail cache | +| `Imaging` (+ `Decoders`, `Geometry`, `Thumbnails`) | `ImageBuffer` (planar float, linear light), `IImageDecoderProvider`, `DecoderFactory` (decode tiers: native → embedded preview; `ImageDecoder.Probe` names a file's tier without decoding it; `DecodeRequest.PreferPreview` takes an adequate RAW preview by choice for analyses and previews, `DecodedImage.ByChoice`), `ManagedDecoderProvider`, `FrameWindow` (read-ahead, memory budget, float32 spill), resampler, thumbnail cache | | `Metadata` (+ `Tiff`, `Jpeg`, `Bmff`, `Raf`, `Riff`, `Png`, `Xmp`, `MakerNotes`) | Signature sniffing, Exif/GPS/XMP/MakerNotes, ISO-BMFF (HEIF, CR3), `MetadataReader`, `MetadataBuilder` (all fallback chains), `ExifWriter` | | `Codecs` (`Jpeg`, `Png`, `Tiff`, `Dng`, `Raw`, `Gif`, `Apng`, `Ico`) | Pure managed codecs; native RAW development (DNG, CR2, NEF, ARW, PEF, RAF) | | `Analysis` (+ `Deep`) | Luminance statistics, deflicker, regions, holy grail, white balance, colour temperature, light analysis, streaming deep analysis with checkpoints | @@ -55,7 +55,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | `Sqlite`, `Postgres` | SQLite P/Invoke binding (winsqlite3 / libsqlite3), in-house PostgreSQL wire protocol v3 client with pool and LISTEN | | `Migrations/{sqlite,postgres}/NNNN_name.sql` | Embedded, applied in one transaction at open (`MigrationRunner`) | | `Repositories` | `TitanoDatabase` facade: archives, sequences, frames, tags, renders, jobs, cards, users, tokens, uploads, render nodes, settings, audit; `DatabaseBackups` (daily `VACUUM INTO` copies of an SQLite index kept ×3, restore staged for the next start and carried out before the index opens, so it also recovers one that no longer opens) | -| `Jobs` | `JobEngine` (its number of workers can change while it runs), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs) | +| `Jobs` | `JobEngine` (its number of workers can change while it runs), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs), `JobThroughput`/`JobEta` (rate and bounded time left) | | `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index), `ArchiveIndexer` (scan, rebuild), `ArchiveIngest` (uploads and imports), `ImportService`, `ArchiveVerifier`, `ArchiveImages`, `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance`, `MassRenamer`, `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails), job handlers | | `Processing` | `ProcessingService`, `SequenceAnalyser`, `DeepReports` (a saved deep report while it still describes the frames), `SequenceRender`, `ProjectStore`, `ProjectBundles` (a `.titano` file for a sequence, and the sequence a file names), `RenderNodeClient`, job handlers | | `Sync` | `SyncService` (sync table of one server: compare, link by content, settle conflicts, enqueue transfers), `SyncRules` (status, settings merge and differences, no I/O), `SyncPositions` (the settings' frame positions translated by photo to the frames of the copy they go to), `SyncLinkStore` (`sync_links`, `sync_state`), `SyncTransfers` and `SyncJobHandler` (resumable, hash-verified uploads and downloads as jobs; downloads commit through the archive ingest), `SyncAgent` (background comparison, server events, backoff, offline proxies), `ProxyCache` and `RemoteSequence` (server sequences opened with proxies), `ISyncRemote` (the server calls; `TitanoSyncRemote` over `TitanoClient`) | @@ -152,7 +152,7 @@ run as server jobs whose progress comes from the events. | To add | Implement / register | |---|---| -| An image format or decoder | `IImageDecoderProvider` (managed in `Core/Imaging/Decoders` or `Codecs`, WIC in `Core.Windows`); chained by `DecoderFactory` | +| An image format or decoder | `IImageDecoderProvider` (managed in `Core/Imaging/Decoders` or `Codecs`, WIC in `Core.Windows`: a RAW only through the Raw Image Extension, checked per file); chained by `DecoderFactory` | | A video encoder | `IVideoEncoderProvider` (`Core/Video/Managed`, `Core.Windows/MediaFoundation`); list it in the host's `ProcessingOptions.Encoders` | | A background operation | a `JobKind`, an `IJobHandler` (in `Data/Archiving/Jobs` or `Data/Processing/Jobs`) returned by the service's `CreateJobHandlers`; the job engine, Jobs screen, admin and API pick it up | | A server feature | a static `XxxEndpoints.Map(api)` in `Server/Api` with `.Requires(Permissions…)`, called from `ServerHost.ConfigurePipeline`; DTOs in `Titano.Protocol` with the JSON context | diff --git a/docs/BRIEF.md b/docs/BRIEF.md index 6a5f2d75..a8d2136f 100644 --- a/docs/BRIEF.md +++ b/docs/BRIEF.md @@ -437,13 +437,13 @@ preview of the first three names. | JPEG | jpg jpeg jpe jfif | APP1 Exif/XMP, MPF | WIC or managed | managed (baseline + progressive) | | PNG | png | eXIf, iTXt XMP | WIC or managed | managed | | TIFF | tif tiff | IFDs | WIC or managed | managed (strips/tiles; none/PackBits/LZW/Deflate/JPEG) | -| DNG (smartphones: Apple ProRAW, Android, Samsung; DJI; Insta360; Leica; Pentax; Ricoh) | dng | IFDs, MakerNote | WIC (if Raw ext.) or managed full decode | managed full decode | +| DNG (smartphones: Apple ProRAW, Android, Samsung; DJI; Insta360; Leica; Pentax; Ricoh; GoPro files converted by Adobe software) | dng | IFDs, MakerNote | managed full decode (amended 2026-10-16, R4) | managed full decode | | Canon | cr2 cr3 | cr2: TIFF; cr3: ISO-BMFF `CMT1..4` | WIC (Raw ext.) → managed CR2 (P1) → embedded preview | managed CR2 (P1) → embedded full-size JPEG (CR3 track 1) | | Nikon | nef nrw | TIFF | WIC → managed NEF (P1) → preview | managed NEF (P1) → preview | | Sony | arw srf sr2 | TIFF | WIC → managed ARW (P1) → preview | idem | | Fujifilm | raf | RAF header + TIFF | WIC → managed RAF uncompressed (P1) → preview | idem | | Olympus/OM, Panasonic, Pentax, Samsung, Hasselblad, Phase One, Leica | orf rw2 raw pef srw 3fr fff iiq rwl | TIFF-like | WIC → managed (P1/P2) → preview | preview (P1: managed decoders as feasible) | -| GoPro | gpr (DNG+VC-5) + jpg sidecar | IFDs | preview/sidecar JPEG; VC-5 out of scope | sidecar JPEG | +| GoPro | gpr (DNG+VC-5; a DNG is GPR only when its raw image is VC-5, amended 2026-10-16, R4) + jpg sidecar | IFDs | preview/sidecar JPEG; VC-5 out of scope | sidecar JPEG | | HEIF/HEIC/AVIF (iPhone, Samsung, DJI) | heic heif hif avif | ISO-BMFF `Exif` item | WIC (HEIF + HEVC/AV1 extensions) | metadata only; pixels via client-made proxies | | WebP | webp | RIFF `EXIF` chunk | WIC (WebP ext.) | metadata only (P2: managed VP8L) | | JPEG XL, JPEG XR, BMP, GIF (single frame) | jxl jxr bmp gif | minimal | WIC if a codec exists | not supported | @@ -465,6 +465,12 @@ which tier will be used on this machine. 3. **Unavailable** → frame flagged `Undecodable`; excluded from render; listed in the sequence warnings. +The tier is what the frame can give. Analyses, thumbnails, proxies and the editor's preview +take an embedded preview that is large enough when a RAW has one, by choice and without +changing the frame's tier; renders always decode natively. WIC counts as a native RAW +decoder only when the decoder it chose for the file is the Raw Image Extension (Windows' +in-box DNG decoder reads only the preview). (Amended 2026-10-16, R4.) + The in-house DNG pipeline (server and client): CFA/linear DNG, `Compression` 1/7 (lossless JPEG SOF3)/8 (Deflate)/34892 (lossy JPEG), `LinearizationTable`, `BlackLevel` (+ repeat dims, delta), `WhiteLevel`, `AsShotNeutral`/`AsShotWhiteXY`, `ColorMatrix1/2` + @@ -1300,6 +1306,16 @@ Unraid template validated. --- +## 24. Amendments + +The product owner's change requests amend this brief in place; each amended paragraph says +"(amended , R)". The request files in `docs/requests/` keep the owner's words, the +questions asked and the answers; DECISIONS rows give the reasons. + +| Date | Request | Sections | What changed | +|---|---|---|---| +| 2026-10-16 | Owner review 1, R4 | §8.1, §8.2 | DNG decodes through the managed decoder (WIC only through the Raw Image Extension, never DNG); a GoPro DNG is GPR only when VC-5; analyses and previews take an adequate embedded preview by choice, renders decode natively. | + ## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated) ```markdown diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 82df35db..48418fe0 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -168,6 +168,17 @@ commits follow Conventional Commits (release notes are generated from them by `T returns frames, frames version and settings of one frames version. ### Fixed +- Owner review 1 (2026-10-16, `docs/requests/2026-10-15-owner-review-1.md`): + - thumbnail and proxy jobs over several sequences failed after 10–20 minutes with "TimeSpan overflowed" and then + stayed Running; their progress now counts frames, a stalled job shows no time left, and a job's end is always + recorded (R10); + - the Jobs screen showed the speed of hash verification and card import, which count bytes, in fps; + - choosing presets quickly in the editor made the VS Code debugger stop in `WicDecoderProvider.cs`: a cancelled + preview decode left its background task (R4); + - GoPro DNGs converted by Lightroom or DNG Converter were treated as GPR and read only through their 8-bit embedded + preview, and DNGs Windows' preview-only DNG decoder read were reported as decoded natively. Videos now develop them + natively at 16 bits, analyses and the editor preview use the embedded preview when it is large enough, and the + archive's existing frames are reclassified by the next light analysis (R4). - Opening the repository in VS Code with C# Dev Kit before the first build listed MSB3073 for Titano, the Uploader and Setup: design-time builds no longer generate the program icons, and log WPF's MC1000 about projects not built yet as a message. diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 8e5c669c..05836d0b 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -397,3 +397,8 @@ One line per decision: date · decision · alternative · reason. | 2026-10-13 | A deep pass counts as current only when its report describes the frames as this host reads them under the lock, proxies included (`SequenceAnalyser.Describes`), besides an unchanged frames version. Otherwise it replaces only a saved report that does not describe them either (`ReadReport` of the frames as they are). Refines 2026-10-12 'A deep analysis saves `analysis.json` under the sequence lock…'. | Compare frames versions only | A proxy arriving moves no frames version but makes an unreadable verdict on that frame's original stale. A pass that started before it overwrote the report a later pass made from the proxies, then dropped the deep status. | | 2026-10-15 | VS Code debugs the Windows programs with the C# extension's `coreclr` debugger (`.vscode/launch.json`): Titano, the Uploader, the server, the `--capture` runs of Titano, the Uploader and Setup, `Titano.Tools` and the test programs (these two ask for their arguments). Each launch configuration builds in Debug first (`.vscode/tasks.json`; *Tests* builds the solution) and starts the program's `.exe`. The server's session keeps its data and archive in `out/debug/server` (`TITANO_DATA_PATH`, `TITANO_ARCHIVE_PATH`) and its default ports; Titano and the Uploader use their usual data folder. The build tasks use no reused MSBuild nodes and keep MSB3026 a warning. | C# Dev Kit's `dotnet` launch type with `launchSettings.json`; start `dotnet .dll`; the server's default folders; ports of its own for the server; a portable copy (`portable.txt`) for the desktop programs; reused MSBuild nodes; MSB3026 as an error | The `coreclr` debugger needs only the C# extension. Started as a `.dll`, the process is `dotnet.exe`, which the programs read as their own path (`Environment.ProcessPath`): Setup's payload and the stub of its capture's sample installer, the Run keys and tray icons. A console run creates `%ProgramData%\Titano Server` owned by the developer, which the service then refuses (the console-run data folder rows), and `C:\TitanoArchive` at the drive root. On the default ports the clients reach the debug server as they reach an installed one; the README says to stop the Docker stack or an installed server first. A portable copy would run other code than an installed one (data beside the program, the portable update download). MSB3026 reports a copy that a retry then completes (a file held for a moment by an antivirus or another build): as an error it stopped F5 although the build succeeded, while a copy that never succeeds still fails (MSB3027). Reused MSBuild nodes keep the drive letter's case of the build that started them, while VS Code passes it in lower case: restores mixed both cases, rewrote `project.assets.json` at every build and made C# Dev Kit reload the projects, so no F5 build was a no-op (7 to 14 s for Titano instead of about 5 s). | | 2026-10-15 | Design-time builds (`DesignTimeBuild=true`: C# Dev Kit, Visual Studio) skip the `TitanoGenerateIcons` target (`Directory.Build.targets`) and log WPF's MC1000 as a message (`Directory.Build.props`). Refines 2026-10-02 'Program icons (ICO) are generated at build time…'. | Build `Titano.Tools` from the design-time build; no warnings as errors in design-time builds; leave it | A design-time build builds no project references, so on a fresh clone `make-icon` ran a `Titano.Tools.dll` that did not exist yet: VS Code listed MSB3073 for Titano, the Uploader and Setup when the folder opened. A design-time build compiles nothing, so it needs no icon. Past that target, the markup compile of their XAML cannot load `Titano.Ui.dll` before the first build: MC1000, which the design-time build makes a warning and warnings as errors made an error again (21 of them). Without warnings as errors they would still be listed, as warnings. Real builds still fail on MC1000. | +| 2026-10-16 | Job throughput: the first two-second window that saw progress seeds the moving average, and below 1e-6 items/s the rate reads unknown; a time left is null when it is not finite, negative or above 365 days, and every stored or reported time left goes through `JobEta`. Saving progress never throws (a failure is logged and the job goes on) and a progress subscriber never fails a job, so a job's final state is always written. Thumbnail and proxy jobs count frames across their targets. Refines 2026-10-02 'Job throughput is a moving average…'. (Owner review 1, R10.) | Clamp the time left only when it is stored; keep counting sequences | The owner's Proxies job over 17 sequences counted sequences while it checkpointed every 10 s inside one of 14,082 frames: each window without progress multiplied the rate by 0.7, the time left passed `TimeSpan`'s limit after 18 minutes and threw in `PublishProgress`, then again in `PersistAsync`, so the job stayed Running for 4 hours until the owner cancelled it. A node-supplied rate and the stored seconds had the same unbounded conversion. | +| 2026-10-16 | The editor's background decodes (`LocalSequenceSource`, `RemoteSequenceSource`), `LatestRunner` and the render node's proxy task keep a superseded decode's `OperationCanceledException` inside their own delegate: the local source catches it in the pool delegate and throws it again after the await, so a cancellation is never reported as an unreadable frame. (Owner review 1, R4.) | `justMyCode: false` in launch.json; providers that return null on cancellation | The owner's "error in WicDecoderProvider.cs when I select some presets" was the cancellation of a preview decode a newer click replaced: it left a synchronous `Task.Run` delegate into the thread pool, where the debugger with Just My Code stops as "not handled by user code"; at runtime it was swallowed and nothing was logged. Throwing on cancellation stays the provider contract. | +| 2026-10-16 | WIC decodes a camera RAW only when the decoder it chose is the Raw Image Extension (CLSID read per file), never a DNG, and never for a request that prefers the embedded preview. Refines 2026-10-02 'Camera RAW is "native" via WIC only when the Raw Image Extension package is installed.' (Owner review 1, R4.) | Trust `CodecInventory` per format; force the Raw Image Extension by CLSID for DNG | With the extension installed, WIC still picks Windows' in-box "DNG Decoder" for every DNG with a JPEG preview; it reads only that 8-bit preview, which the provider labelled native (a smaller preview was a silent downscale). The Raw Image Extension develops DNG to 8 bits and fails on Lightroom's lossy LinearRaw DNGs; the managed decoder develops all of the owner's files at 16 bits. | +| 2026-10-16 | A DNG is GPR only when its raw image is VC-5 (Compression 9) or its extension is .gpr; Make=GoPro alone no longer counts. Frames stored as GPR whose file is not a .gpr are probed again by the next light analysis, which the scan follow-up queues for their sequences, and the format the probe finds replaces the stored one in the sidecar and in `frames.format`. (Owner review 1, R4.) | A migration that rewrites every sidecar; leave existing frames as indexed | The owner's 84,400 GoPro DNGs were converted by Lightroom or DNG Converter (lossy LinearRaw, lossless CFA), which the managed DNG decoder develops, but every one was indexed GPR and preview-only. A light analysis reads only metadata and already probes tiers under the sequence lease. | +| 2026-10-16 | Decode policy, the owner's choice: analyses, thumbnails, proxies and the editor's preview set `DecodeRequest.PreferPreview`, so a RAW gives an embedded preview whose long edge reaches the requested size when it has one and is developed otherwise; renders never set it and develop natively at 16 bits. Such a result is `DecodedImage.ByChoice` and is never recorded as the frame's tier. (Owner review 1, R4.) | Native development everywhere; the preview everywhere | Developing one of the owner's 12 MP DNGs takes 0.8–2.6 s against about 0.1 s for its preview: an analysis of the 84,400 frames would take about 18 hours instead of about 2. Exposure measured on a preview is tone-mapped by the converter, so deflicker corrections computed on it only approximate those of the native pixels the render corrects; the owner chose speed for analysis and quality for videos. | diff --git a/docs/STATUS.md b/docs/STATUS.md index 17c862e7..18aedcd1 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -13,6 +13,7 @@ Phase plan: docs/BRIEF.md §22. Windows behaviour is verified on CI (`windows-la | 6 Engine, encoding, editor | Done: render pipeline, MP4/AVI/GIF/APNG/image sequences, Media Foundation H.264/HEVC/AV1 with managed fallbacks; the sequence editor (Frames, Exposure, Camera, Motion and Export tabs, preview tools, section charts, curve editor, undo/redo, batch export) for local and server sequences. Gate: self-test suite green; the in-house inspector validates the containers the tests write; the encoder in use is logged. Playback: MediaPlayer opens the Media Foundation output and a source reader decodes its first frame (Windows tests). The pixel diff of every `--capture` screen against `tests/visual/baselines` (`screenshots diff`, BRIEF §20.2) is wired into CI but not armed: no baseline is committed yet, so the step compares nothing and only warns until the first baselines are accepted from `ci-screenshots` (Next steps). | | 7 Server, sync, uploader | Done: server (API, auth, uploads, jobs, render nodes, events, admin panel with light and dark themes, Windows service), Uploader, client sync (sync table, conflicts with *Save both*, proxies kept offline, metered pause), server sequences edited with proxies and rendered where the originals are, this PC as a render node. Gate covered in-process: a sequence uploaded from one PC downloads identically on another, interrupted uploads and downloads resume, server events update a PC, renders run on a node and on the server's managed fallback, jobs resume after a restart, sign-ins and administrative actions are audited. The run with two real PCs and the Uploader against the Docker server is part of the release test. | | 8 Release readiness | Release pipeline end to end (installers, portable and server zips, SHA256SUMS, release notes, optional signing, multi-arch GHCR image, public releases repository content), update check with verified download, scrubbed diagnostics bundles (desktop and server), performance gates, 38 cultures (`en`, `it` and 36 machine translations with glossaries and independent reviews), RTL pass (`ar`, `he`: mirrored windows, left-to-right islands for media, charts, numbers and paths; any right-to-left culture added later follows), accessibility pass (names, live regions, keyboard paths for charts and the curve editor). CI installs the packed installers silently on a clean `windows-latest` runner, runs the installed programs, upgrades in place and uninstalls (files, Add/Remove Programs, shortcuts, file type, user data kept, exit codes). Pending: a tagged pre-release published from CI, the interactive install on a real PC, Unraid template validation on a real server. | +| 8.1 Owner review 1 | In progress (request, answers and plan: `docs/requests/2026-10-15-owner-review-1.md`). Phase 1 done: stalled thumbnail and proxy jobs no longer fail and stay Running (frame-counted progress, bounded time left, final state always written); the editor's cancelled decodes stay in their tasks (no debugger stops in `WicDecoderProvider.cs`); WIC decodes RAW only through the Raw Image Extension and never DNG; GoPro DNGs converted by Adobe software are DNGs, developed natively for videos, read through their embedded preview for analyses and previews, and reclassified in existing archives by the next light analysis. Next: phase 2, jobs one at a time with photo parallelism and a priority queue. | | 9 Monetization | Not started: requires explicit approval (§22). | ## Verification (2026-10-12) diff --git a/docs/requests/2026-10-15-owner-review-1.md b/docs/requests/2026-10-15-owner-review-1.md new file mode 100644 index 00000000..d51dfdcc --- /dev/null +++ b/docs/requests/2026-10-15-owner-review-1.md @@ -0,0 +1,67 @@ +# Owner review 1 (2026-10-15) + +## Owner's text (verbatim, Italian) + +> Ok, ottimo! Lo hai creato in modo fantastico. Ci sono un po' di cose da controllare: +> - la barra laterale allargala e dai la possibilità di comprimerla lasciando solo le icone +> - cambia modo di eseguire le attività, ovvero DEVONO essere eseguita una volta e il parallelismo decide quante foto +> elaborare nello stesso momento +> - Rivedi il menu di esportazione, così occupa troppo e si capiscono bene i dettagli delle esportazioni +> - C'è un errore quando seleziono alcuni preseti in @src/Titano.Core.Windows/Wic/WicDecoderProvider.cs +> - Dai la possibilità di aggiustare la maschera di ritaglio spostandola sull'immagine in modo da fare un ritaglio +> visuale in base alle proporzioni scelte +> - Aggiungi filtri semplici come specchio, capovolgimento, rotazione, ecc ecc +> - Cambia "Sequenza" in "Modifica", posso selezionare solo una sequenza alla volta da modificare e deve essere +> strutturata come un "percorso" da seguire dall'analisi approfondita della sequenza al suo completamento +> +> Fai domande se qualcosa non è chiaro e aggiorna tutta la documentazione in modo che utenti e IA future siano in +> grado di ricostruire il percorso delle modifiche. +> Esegui test approfonditi. All'avvio ci sono già dei time lapse importati. Aggiungi opzioni di esportazione e una +> libreria separata per i video finali. +> +> Modifiche da fare sia lato docker sia lato desktop. + +## Interpretation + +| Id | Request | Working interpretation | +|---|---|---| +| R1 | Sidebar | Desktop rail wider and collapsible to icons; the server admin panel's sidebar too. | +| R2 | Jobs | One job runs at a time; Parallelism = photos the running job processes at once. Desktop and server. | +| R3 | Export menu | The Export tab and the header's Render menu take too much space and do not make the export details clear (the "non" is missing in the text): compact and clearer. | +| R4 | WicDecoderProvider error | Reproduced: an `OperationCanceledException` from a superseded preview decode leaves a synchronous thread-pool delegate, so the debugger stops in `WicDecoderProvider.cs` (Just My Code). Found while reproducing: WIC decodes the owner's DNGs with Windows' preview-only DNG decoder and labels the 8-bit preview native, and every GoPro DNG is classified GPR, so the archive records them preview-only. | +| R5 | Visual crop | Move and resize the crop mask on the preview, locked to the chosen proportions. | +| R6 | Simple filters | Mirror, flip, 90° rotations, free straighten, colour filters. | +| R7 | Edit path | "Sequence" becomes "Edit" ("Modifica"); one sequence at a time; a guided path from the deep analysis to the finished video. | +| R8 | Export options | Advanced encoding, fades and hold, reverse and boomerang, single frame. | +| R9 | Videos library | One library of the finished videos, desktop and server. | +| R10 | Found in the owner's log | A multi-sequence Proxies job failed with `OverflowException` in `JobContext.Rate()` and stayed Running for 4 hours. | + +## Questions and answers + +| Question | Answer | +|---|---| +| How must jobs run? | One at a time; Parallelism = photos at once inside it. | +| How guided is the Edit path? | Guided steps, freely navigable (Previous/Next, every step clickable). | +| Which simple filters? | Mirror and flip, 90° rotations, straighten (free angle), colour filters. | +| Where does the videos library live? | Desktop + server, one library. | +| Crop proportions vs the export preset's? | The chosen proportions win; the preset adapts its resolution (4K at 9:16 = 2160×3840). | +| Which export options? | Advanced encoding (rate control, keyframes, B-frames, profile, standard resolutions); fades and hold last frame; reverse, boomerang and loop; single frame. | +| Where are the videos' files? | One list; files stay in each sequence's `exports/` and can be copied (hash-verified) to a separate videos folder (Docker: a `/videos` volume). Delete = trash, never erased. | +| How to decode the GoPro DNGs? | Full quality (Titano's native 16-bit decoding) for videos; the embedded preview for analysis and the editor preview. | +| A long background job runs and the user starts another job? | By default the new job is queued; pausing the running job lets the next one start. Settings get a priority queue by job kind: when on, a job of a higher kind pauses the running one without asking, and the paused job resumes by itself afterwards. | +| Rail width? | 200 px (web panel 256 px), collapse with ≡ or Ctrl+B, collapsed icons name their section in the tooltip. | +| How is the sequence chosen in Edit? | A picker inside Edit (searchable single choice) plus "Change sequence" in the header; the other ways to open stay. | +| Commits? | One commit per verified phase. | + +## Delivery plan + +| Phase | Content | State | Commit | +|---|---|---|---| +| 1 | Bugs: R10 job throughput/ETA and stuck jobs; R4 cancellation boundary, WIC decoder truth, GoPro DNG classification, decode policy (preview for analysis, native for renders) | done 2026-10-16: BRIEF §8.1, §8.2, §24; five DECISIONS rows dated 2026-10-16; all test suites, i18n check, format, package guard and xaml-lint green | phase 1 commit | +| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | todo | | +| 3 | R1 rail and admin sidebar; R7 Edit section, picker, guided path | todo | | +| 4 | R5 visual crop, proportions win; R6 transforms, straighten, colour filters | todo | | +| 5 | R3 export panel and Render menu; R8 export options; R9 videos library (desktop, server API, admin page, copy folder, trash) | todo | | +| 6 | Docker/Unraid/deploy docs, BRIEF §24 amendments, full verification | todo | | + +Each phase updates BRIEF (amended paragraphs), DECISIONS, CHANGELOG, STATUS and this file before its commit. diff --git a/docs/requests/README.md b/docs/requests/README.md new file mode 100644 index 00000000..590be8db --- /dev/null +++ b/docs/requests/README.md @@ -0,0 +1,12 @@ +# Owner change requests + +One file per request from the product owner, named `-.md`. Each file keeps: + +1. the owner's text, verbatim; +2. the working interpretation, numbered (R1, R2, …); +3. the questions asked and the owner's answers; +4. the delivery plan, phase by phase, with each phase's state, commit, BRIEF/DESIGN sections amended and DECISIONS rows. + +A request amends the BRIEF: the amended paragraphs say so, and BRIEF §24 lists every amendment with the request that +made it. DECISIONS rows written for a request cite it (`R4`, `owner review 1`). Read the request file first to rebuild +why a part of Titano is the way it is. diff --git a/i18n/ar/Jobs.ar.resx b/i18n/ar/Jobs.ar.resx index 710ea761..9a318d19 100644 --- a/i18n/ar/Jobs.ar.resx +++ b/i18n/ar/Jobs.ar.resx @@ -59,6 +59,7 @@ إعدادات التصيير {0} · {1} البحث في الهدف أو النوع + {0}/ث {0} fps {0}/ث ملغاة diff --git a/i18n/bg/Jobs.bg.resx b/i18n/bg/Jobs.bg.resx index 738205ac..9592c3a4 100644 --- a/i18n/bg/Jobs.bg.resx +++ b/i18n/bg/Jobs.bg.resx @@ -57,6 +57,7 @@ Настройки на рендерирането {0} · {1} Търсене по обект или тип + {0}/с {0} fps {0}/с отменена diff --git a/i18n/cs/Jobs.cs.resx b/i18n/cs/Jobs.cs.resx index ec9705d3..99df717c 100644 --- a/i18n/cs/Jobs.cs.resx +++ b/i18n/cs/Jobs.cs.resx @@ -58,6 +58,7 @@ Nastavení renderování {0} · {1} Hledat cíl nebo typ + {0}/s {0} fps {0}/s zrušeno diff --git a/i18n/da/Jobs.da.resx b/i18n/da/Jobs.da.resx index dc6507a3..1360e10c 100644 --- a/i18n/da/Jobs.da.resx +++ b/i18n/da/Jobs.da.resx @@ -57,6 +57,7 @@ Renderingsindstillinger {0} · {1} Søg i mål eller type + {0}/s {0} fps {0}/s annulleret diff --git a/i18n/de/Jobs.de.resx b/i18n/de/Jobs.de.resx index c68ec619..718819cd 100644 --- a/i18n/de/Jobs.de.resx +++ b/i18n/de/Jobs.de.resx @@ -57,6 +57,7 @@ Rendereinstellungen {0} · {1} Ziel oder Art suchen + {0}/s {0} fps {0}/s abgebrochen diff --git a/i18n/el/Jobs.el.resx b/i18n/el/Jobs.el.resx index 76d3a5f8..fcf3a9c1 100644 --- a/i18n/el/Jobs.el.resx +++ b/i18n/el/Jobs.el.resx @@ -57,6 +57,7 @@ Ρυθμίσεις απόδοσης {0} · {1} Αναζήτηση στόχου ή είδους + {0}/s {0} fps {0}/s ακυρώθηκε diff --git a/i18n/en/Jobs.resx b/i18n/en/Jobs.resx index 1bd5a967..53edb502 100644 --- a/i18n/en/Jobs.resx +++ b/i18n/en/Jobs.resx @@ -60,6 +60,7 @@ Search target or kind {0} fps {0}/s + {0}/s{0} = bytes, e.g. "57 MB" cancelled done failed diff --git a/i18n/es/Jobs.es.resx b/i18n/es/Jobs.es.resx index cc84c6cb..62d39822 100644 --- a/i18n/es/Jobs.es.resx +++ b/i18n/es/Jobs.es.resx @@ -57,6 +57,7 @@ Configuración de renderizado {0} · {1} Buscar elemento o tipo + {0}/s {0} fps {0}/s cancelada diff --git a/i18n/et/Jobs.et.resx b/i18n/et/Jobs.et.resx index 59c0ecc9..58d39411 100644 --- a/i18n/et/Jobs.et.resx +++ b/i18n/et/Jobs.et.resx @@ -57,6 +57,7 @@ Renderdussätted {0} · {1} Otsi objekti või liiki + {0}/s {0} fps {0}/s tühistatud diff --git a/i18n/fi/Jobs.fi.resx b/i18n/fi/Jobs.fi.resx index da9c7b2b..6217b882 100644 --- a/i18n/fi/Jobs.fi.resx +++ b/i18n/fi/Jobs.fi.resx @@ -57,6 +57,7 @@ Renderöintiasetukset {0} · {1} Hae kohdetta tai tyyppiä + {0}/s {0} fps {0}/s peruttu diff --git a/i18n/fr/Jobs.fr.resx b/i18n/fr/Jobs.fr.resx index 6a010ea8..cb905959 100644 --- a/i18n/fr/Jobs.fr.resx +++ b/i18n/fr/Jobs.fr.resx @@ -57,6 +57,7 @@ Paramètres de rendu {0} · {1} Rechercher une cible ou un type + {0}/s {0} fps {0}/s annulée diff --git a/i18n/he/Jobs.he.resx b/i18n/he/Jobs.he.resx index 346054c0..a4928eb0 100644 --- a/i18n/he/Jobs.he.resx +++ b/i18n/he/Jobs.he.resx @@ -58,6 +58,7 @@ הגדרות רינדור {0} · {1} חיפוש לפי יעד או סוג + {0} לשנייה {0} fps {0} לשנייה בוטלה diff --git a/i18n/hi/Jobs.hi.resx b/i18n/hi/Jobs.hi.resx index 30574266..fde774b8 100644 --- a/i18n/hi/Jobs.hi.resx +++ b/i18n/hi/Jobs.hi.resx @@ -57,6 +57,7 @@ रेंडरिंग सेटिंग्स {0} · {1} लक्ष्य या प्रकार खोजें + {0}/सेकंड {0} fps {0}/सेकंड रद्द diff --git a/i18n/hr/Jobs.hr.resx b/i18n/hr/Jobs.hr.resx index 9b51b797..595e5be9 100644 --- a/i18n/hr/Jobs.hr.resx +++ b/i18n/hr/Jobs.hr.resx @@ -58,6 +58,7 @@ Postavke renderiranja {0} · {1} Pretraži cilj ili vrstu + {0}/s {0} fps {0}/s otkazano diff --git a/i18n/hu/Jobs.hu.resx b/i18n/hu/Jobs.hu.resx index cbef3629..dbedbc4c 100644 --- a/i18n/hu/Jobs.hu.resx +++ b/i18n/hu/Jobs.hu.resx @@ -57,6 +57,7 @@ Renderelési beállítások {0} · {1} Keresés cél vagy típus szerint + {0}/s {0} fps {0}/s megszakítva diff --git a/i18n/id/Jobs.id.resx b/i18n/id/Jobs.id.resx index 918d3c0c..53865b97 100644 --- a/i18n/id/Jobs.id.resx +++ b/i18n/id/Jobs.id.resx @@ -57,6 +57,7 @@ Pengaturan render {0} · {1} Cari target atau jenis + {0}/dtk {0} fps {0}/dtk dibatalkan diff --git a/i18n/it/Jobs.it.resx b/i18n/it/Jobs.it.resx index 4524e528..81cb1311 100644 --- a/i18n/it/Jobs.it.resx +++ b/i18n/it/Jobs.it.resx @@ -60,6 +60,7 @@ Cerca oggetto o tipo {0} fps {0}/s + {0}/s annullata conclusa non riuscita diff --git a/i18n/ja/Jobs.ja.resx b/i18n/ja/Jobs.ja.resx index b1a9852c..1465cbd2 100644 --- a/i18n/ja/Jobs.ja.resx +++ b/i18n/ja/Jobs.ja.resx @@ -57,6 +57,7 @@ レンダリング設定 {0} · {1} 対象または種類を検索 + {0}/秒 {0} fps {0}/秒 キャンセル済み diff --git a/i18n/ko/Jobs.ko.resx b/i18n/ko/Jobs.ko.resx index e60e26be..72405f43 100644 --- a/i18n/ko/Jobs.ko.resx +++ b/i18n/ko/Jobs.ko.resx @@ -57,6 +57,7 @@ 렌더링 설정 {0} · {1} 대상 또는 종류 검색 + {0}/초 {0} fps {0}/초 취소됨 diff --git a/i18n/lt/Jobs.lt.resx b/i18n/lt/Jobs.lt.resx index 2badf203..beeeeb3c 100644 --- a/i18n/lt/Jobs.lt.resx +++ b/i18n/lt/Jobs.lt.resx @@ -58,6 +58,7 @@ Atvaizdavimo parametrai {0} · {1} Ieškoti objekto ar tipo + {0}/s {0} fps {0}/s atšaukta diff --git a/i18n/lv/Jobs.lv.resx b/i18n/lv/Jobs.lv.resx index 3bf3711a..fe200c2f 100644 --- a/i18n/lv/Jobs.lv.resx +++ b/i18n/lv/Jobs.lv.resx @@ -58,6 +58,7 @@ Renderēšanas iestatījumi {0} · {1} Meklēt mērķi vai veidu + {0}/s {0} fps {0}/s atcelts diff --git a/i18n/ms/Jobs.ms.resx b/i18n/ms/Jobs.ms.resx index 5f4091be..46a6b577 100644 --- a/i18n/ms/Jobs.ms.resx +++ b/i18n/ms/Jobs.ms.resx @@ -57,6 +57,7 @@ Tetapan render {0} · {1} Cari sasaran atau jenis + {0}/s {0} fps {0}/s dibatalkan diff --git a/i18n/nb/Jobs.nb.resx b/i18n/nb/Jobs.nb.resx index a9273bda..9fe3d393 100644 --- a/i18n/nb/Jobs.nb.resx +++ b/i18n/nb/Jobs.nb.resx @@ -57,6 +57,7 @@ Renderingsinnstillinger {0} · {1} Søk etter mål eller type + {0}/s {0} fps {0}/s avbrutt diff --git a/i18n/nl/Jobs.nl.resx b/i18n/nl/Jobs.nl.resx index 7a18e80e..f80ab89c 100644 --- a/i18n/nl/Jobs.nl.resx +++ b/i18n/nl/Jobs.nl.resx @@ -57,6 +57,7 @@ Renderinstellingen {0} · {1} Zoek doel of type + {0}/s {0} fps {0}/s geannuleerd diff --git a/i18n/pl/Jobs.pl.resx b/i18n/pl/Jobs.pl.resx index 0ff359bc..35931be9 100644 --- a/i18n/pl/Jobs.pl.resx +++ b/i18n/pl/Jobs.pl.resx @@ -59,6 +59,7 @@ Ustawienia renderowania {0} · {1} Szukaj celu lub rodzaju + {0}/s {0} fps {0}/s anulowane diff --git a/i18n/pt-BR/Jobs.pt-BR.resx b/i18n/pt-BR/Jobs.pt-BR.resx index 14c2ea01..6e92e3b4 100644 --- a/i18n/pt-BR/Jobs.pt-BR.resx +++ b/i18n/pt-BR/Jobs.pt-BR.resx @@ -57,6 +57,7 @@ Configurações de renderização {0} · {1} Pesquisar alvo ou tipo + {0}/s {0} fps {0}/s cancelada diff --git a/i18n/pt-PT/Jobs.pt-PT.resx b/i18n/pt-PT/Jobs.pt-PT.resx index 2ff609c8..c76fe0cd 100644 --- a/i18n/pt-PT/Jobs.pt-PT.resx +++ b/i18n/pt-PT/Jobs.pt-PT.resx @@ -57,6 +57,7 @@ Definições de renderização {0} · {1} Pesquisar alvo ou tipo + {0}/s {0} fps {0}/s cancelada diff --git a/i18n/ro/Jobs.ro.resx b/i18n/ro/Jobs.ro.resx index a32497fd..4e8ae006 100644 --- a/i18n/ro/Jobs.ro.resx +++ b/i18n/ro/Jobs.ro.resx @@ -58,6 +58,7 @@ Setări de randare {0} · {1} Căutați ținta sau tipul + {0}/s {0} fps {0}/s anulată diff --git a/i18n/ru/Jobs.ru.resx b/i18n/ru/Jobs.ru.resx index 6fea53a7..529b7736 100644 --- a/i18n/ru/Jobs.ru.resx +++ b/i18n/ru/Jobs.ru.resx @@ -59,6 +59,7 @@ Параметры рендеринга {0} · {1} Поиск по объекту или типу + {0}/с {0} fps {0}/с отменено diff --git a/i18n/sk/Jobs.sk.resx b/i18n/sk/Jobs.sk.resx index a3225914..ee748634 100644 --- a/i18n/sk/Jobs.sk.resx +++ b/i18n/sk/Jobs.sk.resx @@ -58,6 +58,7 @@ Nastavenia renderovania {0} · {1} Hľadať cieľ alebo druh + {0}/s {0} fps {0}/s zrušené diff --git a/i18n/sl/Jobs.sl.resx b/i18n/sl/Jobs.sl.resx index 515138d9..85e2e266 100644 --- a/i18n/sl/Jobs.sl.resx +++ b/i18n/sl/Jobs.sl.resx @@ -58,6 +58,7 @@ Nastavitve upodabljanja {0} · {1} Išči predmet ali vrsto + {0}/s {0} fps {0}/s preklicano diff --git a/i18n/sv/Jobs.sv.resx b/i18n/sv/Jobs.sv.resx index c87b857c..df0acd00 100644 --- a/i18n/sv/Jobs.sv.resx +++ b/i18n/sv/Jobs.sv.resx @@ -57,6 +57,7 @@ Renderingsinställningar {0} · {1} Sök mål eller typ + {0}/s {0} fps {0}/s avbruten diff --git a/i18n/th/Jobs.th.resx b/i18n/th/Jobs.th.resx index 979b2154..5e5c24d6 100644 --- a/i18n/th/Jobs.th.resx +++ b/i18n/th/Jobs.th.resx @@ -57,6 +57,7 @@ การตั้งค่าการเรนเดอร์ {0} · {1} ค้นหาเป้าหมายหรือประเภท + {0}/วินาที {0} fps {0}/วินาที ยกเลิกแล้ว diff --git a/i18n/tr/Jobs.tr.resx b/i18n/tr/Jobs.tr.resx index 3b20f611..b208b158 100644 --- a/i18n/tr/Jobs.tr.resx +++ b/i18n/tr/Jobs.tr.resx @@ -57,6 +57,7 @@ İşleme ayarları {0} · {1} Hedef veya tür ara + {0}/sn {0} fps {0}/sn iptal edildi diff --git a/i18n/uk/Jobs.uk.resx b/i18n/uk/Jobs.uk.resx index 2acd026e..235f2182 100644 --- a/i18n/uk/Jobs.uk.resx +++ b/i18n/uk/Jobs.uk.resx @@ -59,6 +59,7 @@ Налаштування рендерингу {0} · {1} Пошук за об’єктом або типом + {0}/с {0} fps {0}/с скасовано diff --git a/i18n/vi/Jobs.vi.resx b/i18n/vi/Jobs.vi.resx index 4592ce25..96c37e6c 100644 --- a/i18n/vi/Jobs.vi.resx +++ b/i18n/vi/Jobs.vi.resx @@ -57,6 +57,7 @@ Cài đặt kết xuất {0} · {1} Tìm đối tượng hoặc loại + {0}/s {0} fps {0}/s đã hủy diff --git a/i18n/zh-Hans/Jobs.zh-Hans.resx b/i18n/zh-Hans/Jobs.zh-Hans.resx index 19ee5b0d..73635738 100644 --- a/i18n/zh-Hans/Jobs.zh-Hans.resx +++ b/i18n/zh-Hans/Jobs.zh-Hans.resx @@ -57,6 +57,7 @@ 渲染设置 {0} · {1} 搜索目标或类型 + {0}/秒 {0} fps {0}/秒 已取消 diff --git a/i18n/zh-Hant/Jobs.zh-Hant.resx b/i18n/zh-Hant/Jobs.zh-Hant.resx index f29e2402..4715a544 100644 --- a/i18n/zh-Hant/Jobs.zh-Hant.resx +++ b/i18n/zh-Hant/Jobs.zh-Hant.resx @@ -57,6 +57,7 @@ 算圖設定 {0} · {1} 搜尋目標或類型 + {0}/秒 {0} fps {0}/秒 已取消 diff --git a/src/Titano.App/Editor/LatestRunner.cs b/src/Titano.App/Editor/LatestRunner.cs index 32376b43..c3ce4eb4 100644 --- a/src/Titano.App/Editor/LatestRunner.cs +++ b/src/Titano.App/Editor/LatestRunner.cs @@ -36,7 +36,9 @@ public sealed class LatestRunner(TimeSpan delay) : IDisposable try { if (wait > TimeSpan.Zero) await Task.Delay(wait, token).ConfigureAwait(false); - await Task.Run(() => work(token), token).ConfigureAwait(false); + // An async delegate: a work item that throws on cancellation before returning its task (synchronous work) is + // caught here, in user code, instead of in the thread pool, where a debugger with Just My Code stops (R4). + await Task.Run(async () => await work(token).ConfigureAwait(false), token).ConfigureAwait(false); } catch (OperationCanceledException) when (token.IsCancellationRequested) { diff --git a/src/Titano.App/Editor/LocalSequenceSource.cs b/src/Titano.App/Editor/LocalSequenceSource.cs index 300491ee..bc013aca 100644 --- a/src/Titano.App/Editor/LocalSequenceSource.cs +++ b/src/Titano.App/Editor/LocalSequenceSource.cs @@ -118,20 +118,35 @@ public sealed class LocalSequenceSource : ISequenceSource if ((uint)index >= (uint)_files.Length || _files[index] is not { } file) return null; var companions = _companions; var companion = (uint)index < (uint)companions.Length ? companions[index] : null; - return await Task.Run(() => + var pixels = await Task.Run(() => { try { - // Thumbnails take an embedded preview when it is large enough (no RAW development for a filmstrip cell). - var request = new DecodeRequest(file, maxLongEdge, purpose, ForcePreview: purpose == DecodePurpose.Thumbnail, Companion: companion); + // Thumbnails take an embedded preview when it is large enough (no RAW development for a filmstrip cell); the + // preview and its corrections take an adequate embedded preview of a RAW too, developing only without one (R4). + var request = new DecodeRequest(file, maxLongEdge, purpose, ForcePreview: purpose == DecodePurpose.Thumbnail, Companion: companion, + PreferPreview: true); return _decoder.Decode(request, cancellationToken)?.Pixels; } + catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested) + { + // Superseded by a newer edit: end here, so the cancellation never crosses into the thread pool (a debugger + // with Just My Code stops there, R4); it is reported below. + return null; + } catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { Log.Warning("editor", $"Frame {file} could not be read", ex); return null; } }, cancellationToken); + // A cancelled decode is a cancellation for the caller, never an unreadable frame. + if (cancellationToken.IsCancellationRequested) + { + pixels?.Dispose(); + cancellationToken.ThrowIfCancellationRequested(); + } + return pixels; } public Task SaveProjectAsync(ProjectSettings project, ProjectSettings basis, CancellationToken cancellationToken) diff --git a/src/Titano.App/Editor/RemoteSequenceSource.cs b/src/Titano.App/Editor/RemoteSequenceSource.cs index 1a4bddf8..03dca423 100644 --- a/src/Titano.App/Editor/RemoteSequenceSource.cs +++ b/src/Titano.App/Editor/RemoteSequenceSource.cs @@ -140,7 +140,8 @@ public sealed class RemoteSequenceSource : ISequenceSource public async ValueTask DecodeAsync(int index, int maxLongEdge, DecodePurpose purpose, CancellationToken cancellationToken) { if ((uint)index >= (uint)_remote.Frames.Count) return null; - return await Task.Run(() => _pixels.LoadAsync(index, maxLongEdge, cancellationToken).AsTask(), cancellationToken); + // The loader decodes synchronously: an async delegate keeps a superseded decode's cancellation in user code (R4). + return await Task.Run(async () => await _pixels.LoadAsync(index, maxLongEdge, cancellationToken).ConfigureAwait(false), cancellationToken); } public async Task SaveProjectAsync(ProjectSettings project, ProjectSettings basis, CancellationToken cancellationToken) @@ -283,7 +284,7 @@ public sealed class RemoteSequenceSource : ISequenceSource ProgressDone = progress.Done, ProgressTotal = progress.Total, ItemsPerSecond = progress.ItemsPerSecond, - Eta = progress.EtaSeconds is { } eta ? TimeSpan.FromSeconds(eta) : null, + Eta = JobEta.FromSeconds(progress.EtaSeconds), }); break; case JobStateEvent state when !_foreign.ContainsKey(state.JobId): diff --git a/src/Titano.App/Jobs/JobText.cs b/src/Titano.App/Jobs/JobText.cs index 28f259ef..839d261b 100644 --- a/src/Titano.App/Jobs/JobText.cs +++ b/src/Titano.App/Jobs/JobText.cs @@ -12,13 +12,18 @@ public static class JobText /// True for jobs whose items are frames, so their speed reads in fps. public static bool CountsFrames(JobKind kind) => - kind is JobKind.Render or JobKind.Proxies or JobKind.Thumbs or JobKind.LightAnalyse or JobKind.DeepAnalyse or JobKind.Verify; + kind is JobKind.Render or JobKind.Proxies or JobKind.Thumbs or JobKind.DeepAnalyse; - /// "11.3 fps" for frame jobs, "41/s" otherwise; empty when unknown. - public static string Speed(JobKind kind, double? perSecond) => - perSecond is > 0 and var rate - ? Loc.L(CountsFrames(kind) ? "Jobs.Speed.Fps" : "Jobs.Speed.PerSecond", Formatting.Rate(rate)) - : string.Empty; + /// True for jobs whose progress counts bytes (hash verification, card import). + public static bool CountsBytes(JobKind kind) => kind is JobKind.Verify or JobKind.Import; + + /// "11.3 fps" for frame jobs, "57 MB/s" for byte jobs, "41/s" otherwise; empty when unknown. + public static string Speed(JobKind kind, double? perSecond) => perSecond switch + { + > 0 and var rate when CountsBytes(kind) => Loc.L("Jobs.Speed.Bytes", Formatting.Bytes((long)rate)), + > 0 and var rate => Loc.L(CountsFrames(kind) ? "Jobs.Speed.Fps" : "Jobs.Speed.PerSecond", Formatting.Rate(rate)), + _ => string.Empty, + }; /// "1,240 / 3,600"; empty while the total is unknown. public static string Counter(long done, long total) => diff --git a/src/Titano.Core.Windows/Wic/WicDecoderProvider.cs b/src/Titano.Core.Windows/Wic/WicDecoderProvider.cs index 03301674..896307ff 100644 --- a/src/Titano.Core.Windows/Wic/WicDecoderProvider.cs +++ b/src/Titano.Core.Windows/Wic/WicDecoderProvider.cs @@ -18,6 +18,13 @@ namespace Titano.Core.Windows.Wic; /// Sources whose native format is floating or fixed point (scRGB: JPEG XR, HDR) are requested as 128bppRGBAFloat /// and copied unchanged, keeping highlights above 1. Alpha is discarded. The Exif orientation is applied while /// de-interleaving (). +/// +/// WIC picks the decoder itself, and for a camera RAW only the Raw Image Extension develops the sensor data: Windows' +/// in-box DNG decoder reads only the embedded JPEG preview, and the TIFF decoder would read a TIFF-based RAW's thumbnail. +/// So a RAW decodes here only when the decoder WIC chose is the Raw Image Extension (checked per file by CLSID), DNG never +/// (the managed decoder develops it at 16 bits, the Raw Image Extension at 8), and a request that prefers the embedded +/// preview is left to the managed decoder, which reads it without developing anything (R4, owner review 1). +/// /// public sealed class WicDecoderProvider : IImageDecoderProvider { @@ -44,7 +51,7 @@ public sealed class WicDecoderProvider : IImageDecoderProvider /// Detects the codecs again (after a Store extension was installed); decodes that start afterwards use them. public CodecInventory Refresh() => _inventory = CodecInventory.Detect(refresh: true); - public DecodeTier? TierFor(ImageFileFormat format) => Inventory.IsNative(format) ? DecodeTier.Native : null; + public DecodeTier? TierFor(ImageFileFormat format) => format != ImageFileFormat.Dng && Inventory.IsNative(format) ? DecodeTier.Native : null; /// /// Decodes the first frame. Returns null when WIC cannot natively decode this format here, when the request @@ -54,7 +61,8 @@ public sealed class WicDecoderProvider : IImageDecoderProvider public DecodedImage? Decode(DecodeRequest request, CancellationToken cancellationToken = default) { ArgumentNullException.ThrowIfNull(request); - if (request.ForcePreview || TierFor(ImageFormatInfo.FromPath(request.Path).Format) is null) return null; + var format = ImageFormatInfo.FromPath(request.Path); + if (request.ForcePreview || (request.PreferPreview && format.IsRaw) || TierFor(format.Format) is null) return null; cancellationToken.ThrowIfCancellationRequested(); Win32Com.EnsureInitialized(); @@ -69,6 +77,7 @@ public sealed class WicDecoderProvider : IImageDecoderProvider var hr = factory.CreateDecoderFromStream(stream, 0, WicDecodeOptions.MetadataCacheOnDemand, out decoder); if (hr == WINCODEC_ERR_COMPONENTNOTFOUND) return null; Marshal.ThrowExceptionForHR(hr); + if (format.IsRaw && DecoderClsid(decoder!) != WicGuids.RawDecoder) return null; frame = decoder!.GetFrame(0); frame.GetSize(out var width, out var height); var orientation = request.ApplyOrientation ? ReadOrientation(frame) : 1; @@ -103,6 +112,23 @@ public sealed class WicDecoderProvider : IImageDecoderProvider } } + /// CLSID of the decoder WIC chose for the stream, or when it does not say. + private static Guid DecoderClsid(IWICBitmapDecoder decoder) + { + if (decoder.GetDecoderInfo(out var pointer) < 0 || pointer == 0) return Guid.Empty; + object? info = null; + try + { + info = Marshal.GetObjectForIUnknown(pointer); + return info is IWICBitmapDecoderInfo decoderInfo ? decoderInfo.GetCLSID() : Guid.Empty; + } + finally + { + Marshal.Release(pointer); + Win32Com.Release(info); + } + } + /// Size after fitting the long edge into (never upscales; 0 = native). internal static (uint Width, uint Height) TargetSize(uint width, uint height, int maxLongEdge) { diff --git a/src/Titano.Core/Archiving/SequenceFrames.cs b/src/Titano.Core/Archiving/SequenceFrames.cs index 11dbf2c7..98d5da31 100644 --- a/src/Titano.Core/Archiving/SequenceFrames.cs +++ b/src/Titano.Core/Archiving/SequenceFrames.cs @@ -59,8 +59,11 @@ public static class SequenceFrames /// tier is kept and is left as it was. /// Whether the host takes the frame's pixels from its proxy (an original it cannot decode, whose /// proxy is there): see . + /// A probe reads the file's signature again: the format it found replaces a stored one that is out of date + /// (GoPro DNGs converted by Adobe software were stored as GPR before owner review 1). public static SidecarFrame WithTier(SidecarFrame frame, FileTier tier, bool damaged = true, bool proxied = false) { + if (tier.Format != ImageFileFormat.Unknown && tier.Format != frame.Format) frame = frame with { Format = tier.Format }; var flags = frame.Flags & ~(FrameFlags.PreviewOnly | FrameFlags.Undecodable); if (tier.Tier == DecodeTier.EmbeddedPreview) flags |= proxied ? FrameFlags.None : FrameFlags.PreviewOnly; else if (tier.Tier == DecodeTier.Unavailable) flags |= damaged ? FrameFlags.Undecodable : frame.Flags & FrameFlags.Undecodable; diff --git a/src/Titano.Core/Codecs/Dng/DngReader.cs b/src/Titano.Core/Codecs/Dng/DngReader.cs index a56db315..d309c2e2 100644 --- a/src/Titano.Core/Codecs/Dng/DngReader.cs +++ b/src/Titano.Core/Codecs/Dng/DngReader.cs @@ -97,6 +97,19 @@ internal static class DngReader if (total * 8 < samples) throw new InvalidDataException("DNG: image data too short for the raster"); } + /// + /// True when the full-resolution raw image of the DNG reads is VC-5 compressed (Compression 9, + /// GoPro's GPR), which no managed decoder handles; false for every other DNG, a GoPro one converted by Adobe software + /// (lossless JPEG or lossy LinearRaw) included, and when no raw image is found. + /// + internal static bool IsVc5(TiffReader r) + { + var chain = r.ReadChain(); + return chain.Count > 0 && FindRawIfd(r, chain) is { } raw && r.GetUInt(raw, TiffTags.Compression) == Vc5Compression; + } + + private const uint Vc5Compression = 9; + /// First IFD with NewSubfileType 0 and a CFA/LinearRaw photometric: IFD0, its SubIFDs (two levels), the chain. private static Ifd? FindRawIfd(TiffReader r, IReadOnlyList chain) { diff --git a/src/Titano.Core/Imaging/Decoders/ManagedDecoderProvider.cs b/src/Titano.Core/Imaging/Decoders/ManagedDecoderProvider.cs index 568ccf8f..4db6e976 100644 --- a/src/Titano.Core/Imaging/Decoders/ManagedDecoderProvider.cs +++ b/src/Titano.Core/Imaging/Decoders/ManagedDecoderProvider.cs @@ -166,6 +166,9 @@ public sealed class ManagedDecoderProvider : IImageDecoderProvider private static DecodedImage? Raw(Stream stream, ImageFileFormat format, DecodeRequest request, CancellationToken cancellationToken) { + if (request.PreferPreview && !request.ForcePreview && request.MaxLongEdge > 0 && RawDecoder.Formats.Contains(format) + && Preview(stream, request, adequateOnly: true, cancellationToken) is { } quick) + return quick.AsChoice(); if (!request.ForcePreview && RawDecoder.Formats.Contains(format)) { try diff --git a/src/Titano.Core/Imaging/Decoding.cs b/src/Titano.Core/Imaging/Decoding.cs index 108831ae..f00a7428 100644 --- a/src/Titano.Core/Imaging/Decoding.cs +++ b/src/Titano.Core/Imaging/Decoding.cs @@ -32,6 +32,10 @@ public enum DecodePurpose /// Use the embedded preview even when native decode is possible (fast paths). /// The JPEG a GoPro wrote with this GPR when it is kept elsewhere than beside it (an import puts /// it in a sequence of its own); null looks beside the file. Other formats ignore it. +/// For a RAW file: use an embedded preview whose long edge reaches +/// when there is one, and decode natively otherwise. Analyses, thumbnails, proxies and the editor's preview ask for it +/// (fast); renders never do. The result is marked , so it never makes the frame +/// preview-only (R4, owner review 1). public sealed record DecodeRequest( string Path, int MaxLongEdge = 0, @@ -39,14 +43,22 @@ public sealed record DecodeRequest( bool ApplyOrientation = true, bool AllowPreview = true, bool ForcePreview = false, - string? Companion = null); + string? Companion = null, + bool PreferPreview = false); /// Decoded pixels plus how they were produced. Dispose to return the buffer to the pool. -public sealed class DecodedImage(ImageBuffer pixels, DecodeTier tier, string decoder, int sourceWidth, int sourceHeight) : IDisposable +public sealed class DecodedImage(ImageBuffer pixels, DecodeTier tier, string decoder, int sourceWidth, int sourceHeight, bool byChoice = false) : IDisposable { public ImageBuffer Pixels { get; } = pixels; public DecodeTier Tier { get; } = tier; + /// + /// The pixels come from an embedded preview the request preferred () although + /// the file may decode natively: says how these pixels were made, not what the frame can give, so it + /// is not recorded as the frame's tier. + /// + public bool ByChoice { get; } = byChoice; + /// Short provider/decoder name for logs ("wic", "managed-jpeg", "managed-dng"). public string Decoder { get; } = decoder; @@ -56,6 +68,9 @@ public sealed class DecodedImage(ImageBuffer pixels, DecodeTier tier, string dec public int SourceHeight { get; } = sourceHeight; public void Dispose() => Pixels.Dispose(); + + /// The same pixels marked (the returned image owns them; do not dispose this one). + internal DecodedImage AsChoice() => new(Pixels, Tier, Decoder, SourceWidth, SourceHeight, byChoice: true); } /// Tier a provider would use for one specific file, with the reason when it is not native. diff --git a/src/Titano.Core/Metadata/ImageSignature.cs b/src/Titano.Core/Metadata/ImageSignature.cs index 1b5becc2..724d4f52 100644 --- a/src/Titano.Core/Metadata/ImageSignature.cs +++ b/src/Titano.Core/Metadata/ImageSignature.cs @@ -119,8 +119,10 @@ public static class ImageSignature var reader = TiffReader.Open(stream); var ifd0 = reader?.ReadIfd(reader.FirstIfdOffset); var make = reader is not null && ifd0 is not null ? IfdValue.String(reader, ifd0, TiffTags.Make) : null; + // A GoPro DNG is GPR only when its raw image is VC-5: one converted by Adobe software (Lightroom, DNG Converter) is + // an ordinary DNG the managed DNG decoder develops (R4, owner review 1). if (ifd0?.Has(TiffTags.DngVersion) == true) - return extension == ImageFileFormat.Gpr || make?.StartsWith("GoPro", StringComparison.OrdinalIgnoreCase) == true ? ImageFileFormat.Gpr : ImageFileFormat.Dng; + return extension == ImageFileFormat.Gpr || Codecs.Dng.DngReader.IsVc5(reader!) ? ImageFileFormat.Gpr : ImageFileFormat.Dng; if (extension == ImageFileFormat.Tiff) return ImageFileFormat.Tiff; var byMake = ByMake(make, extension); if (byMake != ImageFileFormat.Unknown) return byMake; diff --git a/src/Titano.Data/Archiving/FrameTiers.cs b/src/Titano.Data/Archiving/FrameTiers.cs index 62745106..5c5ea8c4 100644 --- a/src/Titano.Data/Archiving/FrameTiers.cs +++ b/src/Titano.Data/Archiving/FrameTiers.cs @@ -22,7 +22,9 @@ internal sealed class FrameTiers(TitanoDatabase db, SequenceWriter writer, Archi /// The tier of every frame of whose tier is not known yet, that decodes only through a /// preview whose size is not known (the output cap needs it), or that is a GPR whose JPEG in another sequence /// (; an upload may index it after the GPR was probed) is larger than its stored preview, - /// probed with the host's decoders without decoding pixels; missing and unreadable files are left for later. + /// or that is stored as GPR without the .gpr extension (indexed before GoPro DNGs converted by Adobe software counted as + /// DNG; R4, owner review 1), probed with the host's decoders without decoding pixels; missing and unreadable files are + /// left for later. /// public async Task> ProbeUnknownAsync(Archive archive, SequencePaths folder, SequenceManifest manifest, CancellationToken cancellationToken) @@ -30,7 +32,7 @@ internal sealed class FrameTiers(TitanoDatabase db, SequenceWriter writer, Archi var tiers = new Dictionary(); var present = manifest.Frames.Where(f => (f.Flags & FrameFlags.Missing) == 0).ToList(); var companions = await GprCompanions.FindWithSizesAsync(db, archive, present, cancellationToken).ConfigureAwait(false); - var unknown = present.Where(f => f.Tier == 0 || (f.Tier == DecodeTier.EmbeddedPreview && f.PreviewW is null) + var unknown = present.Where(f => f.Tier == 0 || (f.Tier == DecodeTier.EmbeddedPreview && f.PreviewW is null) || IsStaleGpr(f) || (companions.TryGetValue(f.Id, out var jpeg) && int.Max(f.PreviewW ?? 0, f.PreviewH ?? 0) < int.Max(jpeg.Width, jpeg.Height))); foreach (var frame in unknown) @@ -97,7 +99,8 @@ internal sealed class FrameTiers(TitanoDatabase db, SequenceWriter writer, Archi if (tier is not null) updated = SequenceFrames.WithTier(frame, tier, DecodesNatively(frame.Format), proxied == true); else if (proxied is { } own) updated = SequenceFrames.WithProxy(frame, own); else continue; - if (updated.Tier == frame.Tier && updated.Flags == frame.Flags && updated.PreviewW == frame.PreviewW && updated.PreviewH == frame.PreviewH) + if (updated.Tier == frame.Tier && updated.Flags == frame.Flags && updated.PreviewW == frame.PreviewW && updated.PreviewH == frame.PreviewH + && updated.Format == frame.Format) continue; gained |= (updated.Flags & ~frame.Flags & FrameFlags.Undecodable) != 0; frames[i] = updated; @@ -118,7 +121,7 @@ internal sealed class FrameTiers(TitanoDatabase db, SequenceWriter writer, Archi // for these frames while this waits for the row, and PostgreSQL would abort one of them. await tx.Sequences.RecordTiersAsync(sequence.Id, gained ? SequenceStatus.HasWarnings : SequenceStatus.None, frames.Count(f => (f.Flags & FrameFlags.PreviewOnly) != 0), cancellationToken).ConfigureAwait(false); - await tx.Frames.UpdateTiersAsync(changed.ConvertAll(f => new FrameTierFields(f.Id, f.Flags, f.PreviewW ?? 0, f.PreviewH ?? 0)), cancellationToken) + await tx.Frames.UpdateTiersAsync(changed.ConvertAll(f => new FrameTierFields(f.Id, f.Flags, f.PreviewW ?? 0, f.PreviewH ?? 0, f.Format)), cancellationToken) .ConfigureAwait(false); await tx.CommitAsync(cancellationToken).ConfigureAwait(false); } @@ -127,6 +130,14 @@ internal sealed class FrameTiers(TitanoDatabase db, SequenceWriter writer, Archi } } + /// + /// A frame stored as GPR whose file is not a .gpr: before owner review 1 every DNG with Make=GoPro counted as GPR, so + /// Adobe-converted GoPro DNGs were recorded preview-only; probing reads its signature again ( + /// then stores the format found). + /// + internal static bool IsStaleGpr(SidecarFrame frame) => + frame.Format == ImageFileFormat.Gpr && !frame.File.EndsWith(".gpr", StringComparison.OrdinalIgnoreCase); + /// /// Whether this host decodes natively, so a file of it that yields no pixels is damaged /// rather than beyond this host (JPEG always: the managed JPEG decoder is part of every host). diff --git a/src/Titano.Data/Archiving/Jobs/ImageJobHandler.cs b/src/Titano.Data/Archiving/Jobs/ImageJobHandler.cs index 32538a60..3b1672cd 100644 --- a/src/Titano.Data/Archiving/Jobs/ImageJobHandler.cs +++ b/src/Titano.Data/Archiving/Jobs/ImageJobHandler.cs @@ -6,8 +6,9 @@ using Titano.Data.Jobs; namespace Titano.Data.Archiving.Jobs; /// -/// and over the target sequences. Progress counts -/// sequences; checkpoint: sequence:frame. +/// and over the target sequences. Progress counts frames +/// across all targets, so the speed and time left follow the photos even inside a long sequence; checkpoint: +/// sequence:frame. /// internal sealed class ImageJobHandler(TitanoDatabase db, ArchiveImages images, JobKind kind) : IJobHandler { @@ -18,18 +19,29 @@ internal sealed class ImageJobHandler(TitanoDatabase db, ArchiveImages images, J var force = ArchiveJobJson.Read(context.Job, ArchiveJobJson.Default.ImageJobParameters, new ImageJobParameters(false)).Force; var (first, firstFrame) = Parse(context.Checkpoint); var targets = context.Job.TargetIds; + var sequences = new Sequence?[targets.Count]; + long total = 0; + for (var s = 0; s < targets.Count; s++) + { + sequences[s] = await db.Sequences.GetAsync(targets[s], context.Cancellation).ConfigureAwait(false); + total += sequences[s]?.FrameCount ?? 0; + } + long before = 0; + for (var s = 0; s < Math.Min(first, targets.Count); s++) before += sequences[s]?.FrameCount ?? 0; for (var s = first; s < targets.Count; s++) { context.Cancellation.ThrowIfCancellationRequested(); - if (await db.Sequences.GetAsync(targets[s], context.Cancellation).ConfigureAwait(false) is not { } sequence + if (sequences[s] is not { } sequence || await db.Archives.GetAsync(sequence.ArchiveId, context.Cancellation).ConfigureAwait(false) is not { } archive) { context.Log(Loc.L("Archive.Log.SequenceMissing", targets[s])); + before += sequences[s]?.FrameCount ?? 0; continue; } var index = s; + var offset = before; ValueTask Checkpoint(int nextFrame, int frames) => - context.CheckpointAsync(string.Create(CultureInfo.InvariantCulture, $"{index}:{nextFrame}"), index, targets.Count); + context.CheckpointAsync(string.Create(CultureInfo.InvariantCulture, $"{index}:{nextFrame}"), Math.Min(total, offset + nextFrame), total); var start = s == first ? firstFrame : 0; var result = kind == JobKind.Thumbs ? await images.BuildThumbnailsAsync(archive, sequence, force, start, Checkpoint, context.Cancellation).ConfigureAwait(false) @@ -37,7 +49,8 @@ internal sealed class ImageJobHandler(TitanoDatabase db, ArchiveImages images, J context.Log(kind == JobKind.Thumbs ? Loc.L("Archive.Log.ImagesDone", sequence.DisplayTitle, result.Built, result.Reused, result.Undecodable) : Loc.L("Archive.Log.ProxiesDone", sequence.DisplayTitle, result.Built, result.Reused, result.Undecodable, result.Waiting)); - await context.CheckpointAsync(string.Create(CultureInfo.InvariantCulture, $"{s + 1}:0"), s + 1, targets.Count).ConfigureAwait(false); + before += sequence.FrameCount; + await context.CheckpointAsync(string.Create(CultureInfo.InvariantCulture, $"{s + 1}:0"), Math.Min(total, before), total).ConfigureAwait(false); } } diff --git a/src/Titano.Data/Jobs/JobEngine.cs b/src/Titano.Data/Jobs/JobEngine.cs index 09a84eb0..c365e436 100644 --- a/src/Titano.Data/Jobs/JobEngine.cs +++ b/src/Titano.Data/Jobs/JobEngine.cs @@ -23,6 +23,9 @@ public sealed record JobEngineOptions /// Finished jobs older than this are purged (BRIEF §14.6: 90 days). public TimeSpan HistoryRetention { get; init; } = TimeSpan.FromDays(90); + + /// Clock of the throughput windows and the checkpoint interval (tests pass their own). + public TimeProvider Time { get; init; } = TimeProvider.System; } /// @@ -182,17 +185,29 @@ public sealed class JobEngine : IAsyncDisposable _shutdown.Dispose(); } + /// Broadcasts live progress. A subscriber that throws never fails the job it watches (logged once per job). internal void PublishProgress(JobContext context) { - var (rate, eta) = context.Rate(); - Progress?.Invoke(new JobProgressInfo(context.Job.Id, context.Job.Kind, context.Job.TargetLabel, context.Done, context.Total, rate, eta, context.Message)); - } - - internal async Task PersistAsync(JobContext context) - { - var (rate, eta) = context.Rate(); try { + var (rate, eta) = context.Rate(); + Progress?.Invoke(new JobProgressInfo(context.Job.Id, context.Job.Kind, context.Job.TargetLabel, context.Done, context.Total, rate, eta, context.Message)); + } + catch (Exception ex) + { + if (context.FirstProgressFailure()) Log.Warning("jobs", $"Progress of {context.Job.Kind} job {context.Job.Id} not published", ex); + } + } + + /// + /// Saves progress, checkpoint and log tail; false when the job no longer runs here (cancelled or paused elsewhere). + /// Saving is best effort and never throws: a failure is logged and the job goes on, so its final state is always written. + /// + internal async Task PersistAsync(JobContext context) + { + try + { + var (rate, eta) = context.Rate(); return await _db.Jobs.UpdateProgressAsync(context.Job.Id, context.Done, context.Total, rate, eta, context.Checkpoint, context.LogTail, CancellationToken.None) .ConfigureAwait(false); } @@ -201,6 +216,11 @@ public sealed class JobEngine : IAsyncDisposable Log.Warning("jobs", "Progress not saved (transient database error)", ex); return true; } + catch (Exception ex) + { + Log.Warning("jobs", $"Progress of {context.Job.Kind} job {context.Job.Id} not saved", ex); + return true; + } } /// True when this engine claims jobs of (it has a handler and the kind is not filtered out). diff --git a/src/Titano.Data/Jobs/JobHandler.cs b/src/Titano.Data/Jobs/JobHandler.cs index f78f9246..293cc7bc 100644 --- a/src/Titano.Data/Jobs/JobHandler.cs +++ b/src/Titano.Data/Jobs/JobHandler.cs @@ -1,4 +1,3 @@ -using System.Diagnostics; using System.Text; using Titano.Core.Model; @@ -39,23 +38,26 @@ public sealed class JobContext { private const int LogTailLines = 40; private readonly JobEngine _engine; - private readonly Stopwatch _clock = Stopwatch.StartNew(); + private readonly TimeProvider _time; + private readonly long _started; private readonly Queue _log = new(); private readonly Lock _gate = new(); - private long _lastPersistTicks; - private long _rateDone; - private double _rateSeconds; - private double? _rate; + private readonly JobThroughput _throughput; + private long _lastPersist; + private int _progressFailures; internal JobContext(JobEngine engine, Job job, CancellationToken cancellation) { _engine = engine; + _time = engine.Options.Time; + _started = _time.GetTimestamp(); + _lastPersist = _started; Job = job; Cancellation = cancellation; Checkpoint = job.Checkpoint; Done = job.ProgressDone; Total = job.ProgressTotal; - _rateDone = Done; + _throughput = new JobThroughput(Done); if (job.LogTail is { Length: > 0 } tail) { foreach (var line in tail.Split('\n')) _log.Enqueue(line); @@ -122,35 +124,25 @@ public sealed class JobContext } } - /// Throughput as a moving average over windows of at least two seconds, and the time left at that rate. + /// Throughput and time left (); never throws, whatever the progress reported. internal (double? Rate, TimeSpan? Eta) Rate() { - lock (_gate) - { - var seconds = _clock.Elapsed.TotalSeconds; - var span = seconds - _rateSeconds; - if (span >= 2 && Done >= _rateDone) - { - var sample = (Done - _rateDone) / span; - _rate = _rate is { } previous ? previous * 0.7 + sample * 0.3 : sample; - _rateDone = Done; - _rateSeconds = seconds; - } - TimeSpan? eta = _rate is > 0 && Total > Done ? TimeSpan.FromSeconds((Total - Done) / _rate.Value) : null; - return (_rate, eta); - } + lock (_gate) return _throughput.Sample(_time.GetElapsedTime(_started).TotalSeconds, Done, Total); } + /// True the first time publishing this job's progress failed, so the failure is logged once. + internal bool FirstProgressFailure() => Interlocked.Increment(ref _progressFailures) == 1; + private async ValueTask ReportCoreAsync(long done, long total, string? message, bool force) { Done = done; Total = total; Message = message; - var now = _clock.ElapsedTicks; - var due = now - Interlocked.Read(ref _lastPersistTicks) >= _engine.Options.CheckpointInterval.TotalSeconds * Stopwatch.Frequency; + var now = _time.GetTimestamp(); + var due = _time.GetElapsedTime(Interlocked.Read(ref _lastPersist), now) >= _engine.Options.CheckpointInterval; _engine.PublishProgress(this); if (!force && !due) return; - Interlocked.Exchange(ref _lastPersistTicks, now); + Interlocked.Exchange(ref _lastPersist, now); if (!await _engine.PersistAsync(this).ConfigureAwait(false)) _engine.StopJob(Job.Id); // cancelled or paused by someone else } diff --git a/src/Titano.Data/Jobs/JobThroughput.cs b/src/Titano.Data/Jobs/JobThroughput.cs new file mode 100644 index 00000000..c57fd529 --- /dev/null +++ b/src/Titano.Data/Jobs/JobThroughput.cs @@ -0,0 +1,58 @@ +namespace Titano.Data.Jobs; + +/// +/// Time left of a job: unknown (null) when nothing remains, the rate is unknown, or the result is not a finite duration +/// of at most . Every conversion of a stored or reported time left goes through here, so a stalled job +/// shows no time left instead of overflowing . +/// +public static class JobEta +{ + /// Longest time left worth showing; beyond it the job reads as stalled. + public static readonly TimeSpan Max = TimeSpan.FromDays(365); + + /// The time items take at . + public static TimeSpan? Of(long remaining, double? perSecond) => + remaining > 0 && perSecond is > 0 and var rate ? FromSeconds(remaining / rate) : null; + + /// A stored or reported number of seconds as a time left, or null when it is not a usable one. + public static TimeSpan? FromSeconds(double? seconds) => + seconds is { } s && double.IsFinite(s) && s >= 0 && s <= Max.TotalSeconds ? TimeSpan.FromSeconds(s) : null; +} + +/// +/// Throughput of a running job as a moving average over windows of at least two seconds. The first window that saw +/// progress seeds the average; each later window weighs 30 %. A window without progress lowers the rate, which tends to +/// zero without reaching it: below it reads as unknown, and the time left with it. +/// +internal sealed class JobThroughput(long done) +{ + private const double WindowSeconds = 2; + + /// Items per second below which a job counts as stalled. + internal const double MinRate = 1e-6; + + private long _done = done; + private double _seconds; + private double? _rate; + + /// Takes a sample at since the job started and returns the rate and time left. + public (double? Rate, TimeSpan? Eta) Sample(double seconds, long done, long total) + { + if (done < _done) + { + // Progress went back (a handler restarted its count): start a new window there. + _done = done; + _seconds = seconds; + } + else if (seconds - _seconds >= WindowSeconds) + { + var sample = (done - _done) / (seconds - _seconds); + if (_rate is { } previous) _rate = previous * 0.7 + sample * 0.3; + else if (sample > 0) _rate = sample; + _done = done; + _seconds = seconds; + } + var rate = _rate is >= MinRate ? _rate : null; + return (rate, JobEta.Of(total - done, rate)); + } +} diff --git a/src/Titano.Data/Jobs/JobWire.cs b/src/Titano.Data/Jobs/JobWire.cs index 40498295..a893598d 100644 --- a/src/Titano.Data/Jobs/JobWire.cs +++ b/src/Titano.Data/Jobs/JobWire.cs @@ -48,7 +48,7 @@ public static class JobWire ProgressDone = dto.ProgressDone, ProgressTotal = dto.ProgressTotal, ItemsPerSecond = dto.ItemsPerSecond, - Eta = dto.EtaSeconds is { } eta ? TimeSpan.FromSeconds(eta) : null, + Eta = JobEta.FromSeconds(dto.EtaSeconds), LogTail = dto.LogTail, NodeId = dto.NodeId, Attempts = dto.Attempts, diff --git a/src/Titano.Data/Processing/AnalysisFollowUp.cs b/src/Titano.Data/Processing/AnalysisFollowUp.cs index 771df7a0..2f44bd23 100644 --- a/src/Titano.Data/Processing/AnalysisFollowUp.cs +++ b/src/Titano.Data/Processing/AnalysisFollowUp.cs @@ -40,10 +40,14 @@ internal static class AnalysisFollowUp await context.EnqueueFollowUpAsync(request.Kind, request.Targets, request.Label, request.ParametersJson, request.Priority).ConfigureAwait(false); } - /// Sequences of without a current light analysis (new, adopted, or with frames a scan added). + /// + /// Sequences of without a current light analysis (new, adopted, or with frames a scan added), + /// and those with frames stored as GPR that are DNGs: the light analysis probes them again and records the DNG format + /// and its native tier (R4, owner review 1). + /// public static async Task> UnanalysedAsync(TitanoDatabase db, Guid archiveId, CancellationToken cancellationToken) { - var ids = new List(); + var ids = new List(await db.Frames.ListSequencesWithStaleGprAsync(archiveId, cancellationToken).ConfigureAwait(false)); var query = new SequenceQuery { ArchiveId = archiveId, WithoutStatus = SequenceStatus.AnalyzedLight, Sort = SequenceSort.Oldest, Limit = 1000 }; do { @@ -52,6 +56,6 @@ internal static class AnalysisFollowUp query = query with { Cursor = page.NextCursor }; } while (query.Cursor is not null); - return ids; + return [.. ids.Distinct()]; } } diff --git a/src/Titano.Data/Processing/RenderNodeClient.cs b/src/Titano.Data/Processing/RenderNodeClient.cs index c01cf157..9fa8c598 100644 --- a/src/Titano.Data/Processing/RenderNodeClient.cs +++ b/src/Titano.Data/Processing/RenderNodeClient.cs @@ -300,8 +300,11 @@ public sealed class RenderNodeClient : IAsyncDisposable } try { - var jpeg = await Task.Run(() => ArchiveImages.MakeProxy(_processing.Archive.Decoder, original, frame, camera, spec.LongEdge, spec.Quality, - cancellationToken), cancellationToken).ConfigureAwait(false); + var jpeg = await Task.Run(async () => + { + await Task.Yield(); + return ArchiveImages.MakeProxy(_processing.Archive.Decoder, original, frame, camera, spec.LongEdge, spec.Quality, cancellationToken); + }, cancellationToken).ConfigureAwait(false); if (jpeg is null) { unsent++; diff --git a/src/Titano.Data/Processing/SequenceFrameSource.cs b/src/Titano.Data/Processing/SequenceFrameSource.cs index bdf7591c..8ffcba43 100644 --- a/src/Titano.Data/Processing/SequenceFrameSource.cs +++ b/src/Titano.Data/Processing/SequenceFrameSource.cs @@ -191,7 +191,9 @@ internal sealed class SequenceFrameSource : IFrameSource, IRenderFrameSource, IA try { var companion = proxied ? null : Companions?.GetValueOrDefault(frame.Id); - decoded = _decoder.Decode(new DecodeRequest(file, maxLongEdge, purpose, Companion: companion), cancellationToken); + // Analyses and previews take an adequate embedded preview of a RAW (fast); renders develop it (R4, owner review 1). + decoded = _decoder.Decode(new DecodeRequest(file, maxLongEdge, purpose, Companion: companion, PreferPreview: purpose != DecodePurpose.Render), + cancellationToken); } catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { @@ -200,7 +202,8 @@ internal sealed class SequenceFrameSource : IFrameSource, IRenderFrameSource, IA return null; } // A file that vanished is missing, not undecodable (a verify flags it); only what decoding found is recorded. - if (Originals && !proxied && (decoded is not null || File.Exists(file))) + // A preview taken by choice says how these pixels were made, not what the file can give. + if (Originals && !proxied && decoded is not { ByChoice: true } && (decoded is not null || File.Exists(file))) { _observed[index] = decoded switch { diff --git a/src/Titano.Data/Repositories/FrameRepository.cs b/src/Titano.Data/Repositories/FrameRepository.cs index 61beae27..a8c715b2 100644 --- a/src/Titano.Data/Repositories/FrameRepository.cs +++ b/src/Titano.Data/Repositories/FrameRepository.cs @@ -23,7 +23,7 @@ public sealed record DuplicateFrame(string Sha256, Guid FrameId, Guid SequenceId public readonly record struct FrameLightStats(Guid FrameId, double? MeanLogLuminance, double? ClipLow, double? ClipHigh); /// Decode-tier fields of one frame (BRIEF §8.2): its flags and the stored size of its largest embedded preview. -public readonly record struct FrameTierFields(Guid FrameId, FrameFlags Flags, int PreviewWidth, int PreviewHeight); +public readonly record struct FrameTierFields(Guid FrameId, FrameFlags Flags, int PreviewWidth, int PreviewHeight, ImageFileFormat Format); /// Per-format totals and flagged-frame counts of one sequence. public sealed record SequenceFrameStats(IReadOnlyList ByFormat, long Missing, long Corrupt, long Duplicate, long Excluded); @@ -175,19 +175,20 @@ public sealed class FrameRepository for (var start = 0; start < frames.Count; start += Batch) { var count = Math.Min(Batch, frames.Count - start); - var sql = new StringBuilder("UPDATE frames AS f SET flags = v.fl, preview_width = v.w, preview_height = v.h FROM (VALUES "); - var args = new DbParam[count * 4]; + var sql = new StringBuilder("UPDATE frames AS f SET flags = v.fl, preview_width = v.w, preview_height = v.h, format = v.fmt FROM (VALUES "); + var args = new DbParam[count * 5]; for (var i = 0; i < count; i++) { var f = frames[start + i]; - sql.Append(i > 0 ? ", (" : "(").Append('$').Append(4 * i + 1).Append(", $").Append(4 * i + 2) - .Append(", $").Append(4 * i + 3).Append(", $").Append(4 * i + 4).Append(')'); - args[4 * i] = f.FrameId; - args[4 * i + 1] = (int)f.Flags; - args[4 * i + 2] = f.PreviewWidth; - args[4 * i + 3] = f.PreviewHeight; + sql.Append(i > 0 ? ", (" : "(").Append('$').Append(5 * i + 1).Append(", $").Append(5 * i + 2) + .Append(", $").Append(5 * i + 3).Append(", $").Append(5 * i + 4).Append(", $").Append(5 * i + 5).Append(')'); + args[5 * i] = f.FrameId; + args[5 * i + 1] = (int)f.Flags; + args[5 * i + 2] = f.PreviewWidth; + args[5 * i + 3] = f.PreviewHeight; + args[5 * i + 4] = (int)f.Format; } - sql.Append(") AS v(id, fl, w, h) WHERE f.id = v.id"); + sql.Append(") AS v(id, fl, w, h, fmt) WHERE f.id = v.id"); updated += await session.ExecuteAsync(sql.ToString(), args, cancellationToken).ConfigureAwait(false); } } @@ -195,8 +196,8 @@ public sealed class FrameRepository { foreach (var f in frames) { - updated += await session.ExecuteAsync("UPDATE frames SET flags = $2, preview_width = $3, preview_height = $4 WHERE id = $1", - [f.FrameId, (int)f.Flags, f.PreviewWidth, f.PreviewHeight], cancellationToken).ConfigureAwait(false); + updated += await session.ExecuteAsync("UPDATE frames SET flags = $2, preview_width = $3, preview_height = $4, format = $5 WHERE id = $1", + [f.FrameId, (int)f.Flags, f.PreviewWidth, f.PreviewHeight, (int)f.Format], cancellationToken).ConfigureAwait(false); } } return updated; @@ -263,6 +264,16 @@ public sealed class FrameRepository "ORDER BY f.sha256, s.first_capture, f.sequence_id, f.idx", [archiveId], r => new DuplicateFrame(r.GetString(0), r.GetGuid(1), r.GetGuid(2), r.GetInt32(3), r.GetString(4)), cancellationToken); + /// + /// Sequences of an archive with frames stored as GPR whose file is not a .gpr: indexed before GoPro DNGs converted by + /// Adobe software counted as DNG (R4, owner review 1); their next light analysis probes them again. + /// + public Task> ListSequencesWithStaleGprAsync(Guid archiveId, CancellationToken cancellationToken = default) => + _db.ListAsync( + "SELECT DISTINCT f.sequence_id FROM frames f JOIN sequences s ON s.id = f.sequence_id " + + "WHERE s.archive_id = $1 AND f.format = $2 AND lower(f.file_name) NOT LIKE '%.gpr'", + [archiveId, (int)ImageFileFormat.Gpr], r => r.GetGuid(0), cancellationToken); + /// Frames of an archive that carry every bit of . public Task> ListFlaggedAsync(Guid archiveId, FrameFlags flags, CancellationToken cancellationToken = default) => _db.ListAsync( diff --git a/src/Titano.Data/Repositories/JobRepository.cs b/src/Titano.Data/Repositories/JobRepository.cs index 1226f9dc..acf1f804 100644 --- a/src/Titano.Data/Repositories/JobRepository.cs +++ b/src/Titano.Data/Repositories/JobRepository.cs @@ -1,5 +1,6 @@ using System.Globalization; using Titano.Core.Model; +using Titano.Data.Jobs; namespace Titano.Data.Repositories; @@ -209,7 +210,7 @@ public sealed class JobRepository ProgressDone = r.GetInt64(7), ProgressTotal = r.GetInt64(8), ItemsPerSecond = r.GetDoubleOrNull(9), - Eta = r.GetDoubleOrNull(10) is { } seconds ? TimeSpan.FromSeconds(seconds) : null, + Eta = JobEta.FromSeconds(r.GetDoubleOrNull(10)), Checkpoint = r.GetStringOrNull(11), LogTail = r.GetStringOrNull(12), CreatedBy = r.GetGuidOrNull(13), diff --git a/src/Titano.Server/Jobs/RenderNodeService.cs b/src/Titano.Server/Jobs/RenderNodeService.cs index 4bb8a0d8..2fd11956 100644 --- a/src/Titano.Server/Jobs/RenderNodeService.cs +++ b/src/Titano.Server/Jobs/RenderNodeService.cs @@ -2,6 +2,7 @@ using System.Globalization; using System.Text.Json; using Titano.Core.Model; using Titano.Data; +using Titano.Data.Jobs; using Titano.Data.Repositories; using Titano.Protocol; using Titano.Server.Api; @@ -99,13 +100,14 @@ public sealed class RenderNodeService( { if (await OwnedNodeAsync(caller, nodeId, cancellationToken) is not { } node) return Outcome.Fail(404, "not_found", "node"); if (await AssignedJobAsync(node, jobId, cancellationToken) is not { } job) return Outcome.Fail(409, "job_not_assigned"); - double? eta = progress.ItemsPerSecond is > 0 && progress.Total > progress.Done ? (progress.Total - progress.Done) / progress.ItemsPerSecond.Value : null; + // A node reports any rate (a tiny one when it stalls): only a usable time left is stored and broadcast. + var rate = progress.ItemsPerSecond is { } r && double.IsFinite(r) && r > 0 ? r : (double?)null; + var eta = JobEta.Of(progress.Total - progress.Done, rate); var tail = AppendLog(job.LogTail, progress.LogLine); - if (!await db.Jobs.UpdateNodeProgressAsync(jobId, NodeKey(node), progress.Done, progress.Total, progress.ItemsPerSecond, - eta is { } seconds ? TimeSpan.FromSeconds(seconds) : null, tail, cancellationToken)) + if (!await db.Jobs.UpdateNodeProgressAsync(jobId, NodeKey(node), progress.Done, progress.Total, rate, eta, tail, cancellationToken)) return Outcome.Fail(409, "job_not_assigned"); await TouchAsync(node, cancellationToken); - events.Publish(new JobProgressEvent(jobId, progress.Done, progress.Total, progress.ItemsPerSecond, eta)); + events.Publish(new JobProgressEvent(jobId, progress.Done, progress.Total, rate, eta?.TotalSeconds)); return true; } diff --git a/tests/Titano.App.Tests/Editor/ProjectStoreTests.cs b/tests/Titano.App.Tests/Editor/ProjectStoreTests.cs index 6fd23079..9ad8357a 100644 --- a/tests/Titano.App.Tests/Editor/ProjectStoreTests.cs +++ b/tests/Titano.App.Tests/Editor/ProjectStoreTests.cs @@ -289,6 +289,44 @@ public sealed class ProjectStoreTests(TestContext context) } /// A temporary archive with one adopted folder of synthetic JPEGs, indexed. + /// + /// A decode superseded by a newer edit (R4, owner review 1): the caller sees a cancellation, never an unreadable frame, + /// and the provider's cancellation stays inside the source's own task. + /// + [Test] + public async Task ACancelledDecodeIsACancellationNotAnUnreadableFrame() + { + var (db, sequenceId, _) = await ArchiveAsync(4); + await using (db) + { + var entered = new TaskCompletionSource(); + var blocking = new ImageDecoder([new BlockingProvider(entered)]); + var options = new ArchiveServiceOptions { Owner = "test", LeaseWait = TimeSpan.FromSeconds(20) }; + await using var source = new LocalSequenceSource(db, sequenceId, blocking, null, options); + await source.LoadAsync(context.Cancellation); + using var cts = new CancellationTokenSource(); + var decode = source.DecodeAsync(1, 64, DecodePurpose.Proxy, cts.Token).AsTask(); + await entered.Task.WaitAsync(TimeSpan.FromSeconds(10)); + await cts.CancelAsync(); + await Assert.ThrowsAsync(() => decode); + } + } + + /// Decodes nothing until its token is cancelled, then throws the cancellation, as WIC does between bands. + private sealed class BlockingProvider(TaskCompletionSource entered) : IImageDecoderProvider + { + public string Name => "blocking"; + public DecodeTier? TierFor(ImageFileFormat format) => DecodeTier.Native; + + public DecodedImage? Decode(DecodeRequest request, CancellationToken cancellationToken = default) + { + entered.TrySetResult(); + cancellationToken.WaitHandle.WaitOne(TimeSpan.FromSeconds(10)); + cancellationToken.ThrowIfCancellationRequested(); + return null; + } + } + private async Task<(TitanoDatabase Db, Guid SequenceId, string Root)> ArchiveAsync(int frames) { var directory = context.CreateTempDirectory("editor"); diff --git a/tests/Titano.App.Tests/Editor/SchedulingTests.cs b/tests/Titano.App.Tests/Editor/SchedulingTests.cs index 0132922e..80a17bec 100644 --- a/tests/Titano.App.Tests/Editor/SchedulingTests.cs +++ b/tests/Titano.App.Tests/Editor/SchedulingTests.cs @@ -48,6 +48,25 @@ public sealed class SchedulingTests Assert.True(first.IsCompletedSuccessfully, "a superseded run ends quietly"); } + /// Synchronous work that throws when superseded (the export estimates) ends quietly as well (R4, owner review 1). + [Test] + public async Task ASupersededSynchronousRunEndsQuietly() + { + using var runner = new LatestRunner(TimeSpan.Zero); + var started = new ManualResetEventSlim(); + var first = runner.Schedule(token => + { + started.Set(); + token.WaitHandle.WaitOne(TimeSpan.FromSeconds(10)); + token.ThrowIfCancellationRequested(); + return Task.CompletedTask; + }); + Assert.True(started.Wait(TimeSpan.FromSeconds(10))); + var second = runner.Schedule(_ => Task.CompletedTask); + await Task.WhenAll(first, second); + Assert.True(first.IsCompletedSuccessfully, "a superseded run ends quietly"); + } + [Test] public async Task ImmediateRequestsSkipTheDelay() { diff --git a/tests/Titano.App.Tests/Jobs/JobListModelTests.cs b/tests/Titano.App.Tests/Jobs/JobListModelTests.cs index be90578c..dc319bbf 100644 --- a/tests/Titano.App.Tests/Jobs/JobListModelTests.cs +++ b/tests/Titano.App.Tests/Jobs/JobListModelTests.cs @@ -1,4 +1,5 @@ using System.Globalization; +using Titano.App.Infrastructure; using Titano.App.Jobs; using Titano.Core.Localization; using Titano.Core.Model; @@ -154,7 +155,11 @@ public sealed class JobListModelTests }; Assert.Equal("Render · Harbour sunset · 2,232 / 3,600 · 11.3 fps · 2 min left", JobText.Bar(running)); Assert.Equal("2 min", JobText.Left(running, 0)); - Assert.Equal("118/s", JobText.Speed(JobKind.Import, 118)); + // Imports and verifies count bytes; scans count folders; frame jobs read in fps (owner review 1). + Assert.Equal("118 B/s", JobText.Speed(JobKind.Import, 118)); + Assert.Equal(JobText.Speed(JobKind.Verify, 57_000_000), Loc.L("Jobs.Speed.Bytes", Formatting.Bytes(57_000_000))); + Assert.Equal("4/s", JobText.Speed(JobKind.Scan, 4)); + Assert.Equal("1.7 fps", JobText.Speed(JobKind.Proxies, 1.7)); Assert.Equal(string.Empty, JobText.Speed(JobKind.Render, null)); Assert.Equal("this PC", JobText.Where("STUDIO#2", "studio")); Assert.Equal("render-box", JobText.Where("render-box", "studio")); diff --git a/tests/Titano.Core.Tests/Decoding/ManagedDecoderProviderTests.cs b/tests/Titano.Core.Tests/Decoding/ManagedDecoderProviderTests.cs index aa161f84..cbb677f8 100644 --- a/tests/Titano.Core.Tests/Decoding/ManagedDecoderProviderTests.cs +++ b/tests/Titano.Core.Tests/Decoding/ManagedDecoderProviderTests.cs @@ -306,6 +306,57 @@ public sealed class ManagedDecoderProviderTests(TestContext context) Assert.Throws(() => DecoderFactory.CreateServer().Decode(new DecodeRequest(Path.Combine(_dir, "vanished.jpg")))); } + /// + /// The owner's archive (R4, owner review 1): GoPro DNGs converted by Lightroom or DNG Converter carry a full-size JPEG + /// preview in IFD0 and a lossless or lossy raw image in a SubIFD. They are DNGs, developed natively; only a VC-5 raw + /// image (or the .gpr extension) makes a GPR. + /// + [Test] + public void AGoProDngIsGprOnlyWhenItsRawImageIsVc5() + { + using var scene = SyntheticRaw.Smooth(W, H); + var converted = Write("GOPR0100.dng", SyntheticDng.Write(scene, new DngSpec { Make = "GoPro", RawInSubIfd = true, PreviewJpeg = JpegFile(W, H, 1) })); + Assert.Equal(ImageFileFormat.Dng, Signature(converted)); + using (var decoded = DecoderFactory.CreateServer().Decode(new DecodeRequest(converted))) + Assert.Equal((DecodeTier.Native, "managed-dng"), (decoded!.Tier, decoded.Decoder)); + + var vc5 = new IfdSpec().Long(TiffTags.NewSubfileType, 0).Long(TiffTags.ImageWidth, 64).Long(TiffTags.ImageLength, 48) + .Short(TiffTags.BitsPerSample, 16).Short(TiffTags.Compression, 9).Short(TiffTags.PhotometricInterpretation, 32803); + var gpr = Write("GOPR0101.dng", TiffFile.Build(Fixtures.Ifd0("GoPro", "HERO8 Black", 1).Bytes(TiffTags.DngVersion, 1, 4, 0, 0).Child(TiffTags.SubIfds, vc5))); + Assert.Equal(ImageFileFormat.Gpr, Signature(gpr)); + var renamed = Write("GOPR0102.GPR", File.ReadAllBytes(converted)); + Assert.Equal(ImageFileFormat.Gpr, Signature(renamed)); + } + + private static ImageFileFormat Signature(string path) + { + using var stream = File.OpenRead(path); + return ImageSignature.Detect(stream, path); + } + + [Test] + public void APreferredPreviewIsTakenByChoiceOnlyWhenItIsLargeEnough() + { + using var scene = SyntheticRaw.Smooth(W, H); + var dng = Write("preview.dng", SyntheticDng.Write(scene, new DngSpec { RawInSubIfd = true, PreviewJpeg = JpegFile(W, H, 1) })); + var server = DecoderFactory.CreateServer(); + + // Analysis size within the preview: the preview, marked as taken by choice (the frame still decodes natively). + using (var quick = server.Decode(new DecodeRequest(dng, MaxLongEdge: 48, Purpose: DecodePurpose.Analysis, PreferPreview: true))) + { + Assert.Equal((DecodeTier.EmbeddedPreview, "managed-preview", true), (quick!.Tier, quick.Decoder, quick.ByChoice)); + Assert.Equal(48, quick.Pixels.Width); + } + // Larger than the preview, or no size limit: developed. + using (var native = server.Decode(new DecodeRequest(dng, MaxLongEdge: 4 * W, Purpose: DecodePurpose.Analysis, PreferPreview: true))) + Assert.Equal((DecodeTier.Native, "managed-dng", false), (native!.Tier, native.Decoder, native.ByChoice)); + using (var whole = server.Decode(new DecodeRequest(dng, PreferPreview: true))) + Assert.Equal((DecodeTier.Native, false), (whole!.Tier, whole.ByChoice)); + // Renders never prefer the preview. + using (var render = server.Decode(new DecodeRequest(dng, MaxLongEdge: 48))) + Assert.Equal((DecodeTier.Native, "managed-dng", false), (render!.Tier, render.Decoder, render.ByChoice)); + } + /// A GoPro GPR as far as Titano reads it: a DNG made by "GoPro" whose only decodable image is a YCbCr JPEG preview. private static byte[] Gpr(int previewWidth, int previewHeight) { diff --git a/tests/Titano.Core.Tests/Raw/SyntheticRaw.cs b/tests/Titano.Core.Tests/Raw/SyntheticRaw.cs index b8c16155..07f36387 100644 --- a/tests/Titano.Core.Tests/Raw/SyntheticRaw.cs +++ b/tests/Titano.Core.Tests/Raw/SyntheticRaw.cs @@ -186,6 +186,12 @@ internal sealed record DngSpec /// Put the raw image in a SubIFD behind an IFD0 thumbnail, like camera DNGs. public bool RawInSubIfd { get; init; } + /// With : IFD0 holds this JPEG as the embedded preview (like Adobe-converted DNGs). + public byte[]? PreviewJpeg { get; init; } + + /// IFD0 Make. + public string Make { get; init; } = "Titano"; + /// Raw-value transform applied after mosaicking (e.g. the inverse of a gain map), stored-unit domain. public Func? RawTransform { get; init; } } @@ -301,7 +307,25 @@ internal static class SyntheticDng if (spec.OpcodeList3 is { } o3) raw.Add(TiffTags.OpcodeList3, TiffType.Undefined, o3.Length, o3); var ifd0 = raw; - if (spec.RawInSubIfd) + if (spec.RawInSubIfd && spec.PreviewJpeg is { } jpeg) + { + if (output.Position % 2 != 0) output.WriteByte(0); + var offset = output.Position; + output.Write(jpeg); + var info = Titano.Core.Codecs.Jpeg.JpegDecoder.ReadInfo(jpeg); + ifd0 = new TiffDirectory(); + ifd0.Long(TiffTags.NewSubfileType, 1); + ifd0.Long(TiffTags.ImageWidth, (uint)info.Width); + ifd0.Long(TiffTags.ImageLength, (uint)info.Height); + ifd0.Short(TiffTags.BitsPerSample, 8, 8, 8); + ifd0.Short(TiffTags.Compression, 7); + ifd0.Short(TiffTags.PhotometricInterpretation, 6); + ifd0.Short(TiffTags.SamplesPerPixel, 3); + ifd0.Long(TiffTags.StripOffsets, (uint)offset); + ifd0.Long(TiffTags.StripByteCounts, (uint)jpeg.Length); + ifd0.Child(TiffTags.SubIfds, raw); + } + else if (spec.RawInSubIfd) { ifd0 = new TiffDirectory(); ifd0.Long(TiffTags.NewSubfileType, 1); @@ -315,7 +339,7 @@ internal static class SyntheticDng ifd0.Long(TiffTags.StripByteCounts, 48); ifd0.Child(TiffTags.SubIfds, raw); } - ifd0.Ascii(TiffTags.Make, "Titano"); + ifd0.Ascii(TiffTags.Make, spec.Make); ifd0.Ascii(TiffTags.Model, "Synthetic"); ifd0.Short(TiffTags.Orientation, spec.Orientation); ifd0.Bytes(TiffTags.DngVersion, 1, 6, 0, 0); diff --git a/tests/Titano.Data.Tests/Archiving/PartialRowWriterTests.cs b/tests/Titano.Data.Tests/Archiving/PartialRowWriterTests.cs index 5014e921..daa423e2 100644 --- a/tests/Titano.Data.Tests/Archiving/PartialRowWriterTests.cs +++ b/tests/Titano.Data.Tests/Archiving/PartialRowWriterTests.cs @@ -473,7 +473,7 @@ public abstract class PartialRowWriterTests(TestContext context) : DatabaseTest( ManifestStore.WriteSequence(folder.ManifestPath, tiered); var first = tiered.Frames[0]; await tx.Sequences.RecordTiersAsync(sequence.Id, SequenceStatus.None, 1, fx.Ct); - await tx.Frames.UpdateTiersAsync([new FrameTierFields(first.Id, first.Flags, first.PreviewW ?? 0, first.PreviewH ?? 0)], fx.Ct); + await tx.Frames.UpdateTiersAsync([new FrameTierFields(first.Id, first.Flags, first.PreviewW ?? 0, first.PreviewH ?? 0, first.Format)], fx.Ct); await tx.CommitAsync(fx.Ct); } Assert.SequenceEqual([sequence.Id], (await scan).Sequences); diff --git a/tests/Titano.Data.Tests/Jobs/JobThroughputTests.cs b/tests/Titano.Data.Tests/Jobs/JobThroughputTests.cs new file mode 100644 index 00000000..0ff61454 --- /dev/null +++ b/tests/Titano.Data.Tests/Jobs/JobThroughputTests.cs @@ -0,0 +1,147 @@ +using Titano.Core.Model; +using Titano.Data.Jobs; +using Titano.Protocol; +using Titano.Testing; + +namespace Titano.Data.Tests.Jobs; + +/// A clock the test moves by hand (BCL , no package). +internal sealed class ManualTime : TimeProvider +{ + private long _ticks; + + public override long TimestampFrequency => TimeSpan.TicksPerSecond; + + public override long GetTimestamp() => Interlocked.Read(ref _ticks); + + public void Advance(TimeSpan by) => Interlocked.Add(ref _ticks, by.Ticks); +} + +[Category("jobs")] +public sealed class JobThroughputTests(TestContext context) +{ + [Test] + public void TheFirstWindowWithProgressSeedsTheRate() + { + var throughput = new JobThroughput(0); + Assert.Null(throughput.Sample(2, 0, 100).Rate); + var (rate, eta) = throughput.Sample(4, 10, 100); + Assert.Equal(5.0, rate); + Assert.Equal(TimeSpan.FromSeconds(18), eta); + } + + [Test] + public void AStalledJobLosesItsRateAndTimeLeftWithoutOverflowing() + { + // The owner's log: one sequence of 17 done, then a long one checkpointed every 10 s without moving the count. + var throughput = new JobThroughput(0); + throughput.Sample(600, 1, 17); + (double? Rate, TimeSpan? Eta) last = default; + for (var i = 1; i <= 2000; i++) last = throughput.Sample(600 + i * 10, 1, 17); + Assert.Null(last.Rate); + Assert.Null(last.Eta); + } + + [Test] + public void ProgressThatGoesBackStartsANewWindow() + { + var throughput = new JobThroughput(0); + throughput.Sample(2, 20, 100); + throughput.Sample(3, 5, 100); + var (rate, _) = throughput.Sample(5, 15, 100); + Assert.Approximately(0.7 * 10 + 0.3 * 5, rate!.Value, 1e-9); + } + + [Theory] + [Case(double.NaN)] + [Case(double.PositiveInfinity)] + [Case(-1.0)] + [Case(1e300)] + [Case(4e7)] + public void UnusableSecondsGiveNoTimeLeft(double seconds) => Assert.Null(JobEta.FromSeconds(seconds)); + + [Test] + public void UsableSecondsAndRatesGiveTheTimeLeft() + { + Assert.Equal(TimeSpan.FromSeconds(90), JobEta.FromSeconds(90)); + Assert.Equal(TimeSpan.FromSeconds(4), JobEta.Of(8, 2)); + Assert.Null(JobEta.Of(0, 2)); + Assert.Null(JobEta.Of(8, null)); + Assert.Null(JobEta.Of(8, 1e-300)); + } + + [Test] + public void ServerTimeLeftBeyondTheMaximumReadsUnknown() + { + var dto = new JobDto(Guid.NewGuid(), "render", [], null, "running", "normal", 1, 17, 1e-11, 1e300, null, null, 0, null, + DateTimeOffset.UtcNow, null, null); + Assert.Null(JobWire.FromDto(dto)!.Eta); + } + + [Test] + public async Task AJobWhoseCountStallsForHoursStillEndsDone() + { + var time = new ManualTime(); + var reported = new List(); + await using var db = await TitanoDatabase.OpenAsync(DatabaseOptions.Sqlite(Path.Combine(context.CreateTempDirectory(), "jobs.db")), context.Cancellation); + var handler = new CallbackHandler(JobKind.Proxies, async c => + { + time.Advance(TimeSpan.FromSeconds(600)); + await c.CheckpointAsync("1:0", 1, 17); + for (var frame = 1; frame <= 400; frame++) + { + time.Advance(TimeSpan.FromSeconds(11)); + await c.CheckpointAsync($"1:{frame}", 1, 17); + } + }); + await using var engine = new JobEngine(db, [handler], new JobEngineOptions { Workers = 1, WorkerId = "t", Time = time }); + engine.Progress += p => + { + lock (reported) reported.Add(p); + }; + await engine.StartAsync(); + var job = await engine.EnqueueAsync(JobKind.Proxies, [Guid.NewGuid()]); + var done = await WaitForAsync(db, job.Id, JobState.Done); + Assert.Null(done.Eta); + Assert.Null(done.ItemsPerSecond); + lock (reported) Assert.Null(reported[^1].Eta); + } + + [Test] + public async Task AProgressSubscriberThatThrowsNeverFailsTheJob() + { + await using var db = await TitanoDatabase.OpenAsync(DatabaseOptions.Sqlite(Path.Combine(context.CreateTempDirectory(), "jobs.db")), context.Cancellation); + var handler = new CallbackHandler(JobKind.Verify, async c => + { + for (var i = 1; i <= 5; i++) await c.CheckpointAsync(i.ToString(System.Globalization.CultureInfo.InvariantCulture), i, 5); + }); + await using var engine = new JobEngine(db, [handler], new JobEngineOptions { Workers = 1, WorkerId = "t" }); + engine.Progress += _ => throw new InvalidOperationException("broken subscriber"); + await engine.StartAsync(); + var first = await engine.EnqueueAsync(JobKind.Verify, [Guid.NewGuid()]); + var second = await engine.EnqueueAsync(JobKind.Verify, [Guid.NewGuid()]); + Assert.Equal(5L, (await WaitForAsync(db, first.Id, JobState.Done)).ProgressDone); + await WaitForAsync(db, second.Id, JobState.Done); + } + + private sealed class CallbackHandler(JobKind kind, Func run) : IJobHandler + { + public JobKind Kind => kind; + + public Task RunAsync(JobContext context) => run(context); + } + + private static async Task WaitForAsync(TitanoDatabase db, Guid id, JobState state) + { + var until = DateTime.UtcNow.AddSeconds(15); + Job? job = null; + while (DateTime.UtcNow < until) + { + job = await db.Jobs.GetAsync(id); + if (job?.State == state) return job; + await Task.Delay(20); + } + Assert.Fail($"Job {id} is {job?.State}, not {state}"); + return null!; + } +} diff --git a/tests/Titano.Data.Tests/Processing/AnalysisJobTests.cs b/tests/Titano.Data.Tests/Processing/AnalysisJobTests.cs index 05f0416c..d5c94413 100644 --- a/tests/Titano.Data.Tests/Processing/AnalysisJobTests.cs +++ b/tests/Titano.Data.Tests/Processing/AnalysisJobTests.cs @@ -708,6 +708,60 @@ public sealed class AnalysisJobTests(TestContext context) Assert.Empty(SequenceAnalyser.ReadReport(fx.Folder(sequence), sequence.FrameCount)!.Issues.Undecodable); } + /// + /// The owner's archive (R4, owner review 1): GoPro DNGs converted by Adobe software were indexed as GPR and recorded + /// preview-only. The scan follow-up lists their sequences again, and the light analysis probes them: they become + /// DNGs decoded natively, in the sidecar and the index. + /// + [Test] + public async Task GoProDngsIndexedAsGprAreProbedAgainAndBecomeNativeDngs() + { + await using var fx = await ProcessingFixture.CreateAsync(context); + var card = Path.Combine(context.CreateTempDirectory("card"), "DCIM", "100GOPRO"); + Directory.CreateDirectory(card); + var start = new DateTime(2024, 10, 11, 18, 0, 0); + for (var i = 0; i < 3; i++) + { + var metadata = new FrameMetadata { Make = "GoPro", Model = "HERO8 Black", BodySerial = "C3441", CapturedAt = start.AddSeconds(5 * i) }; + using var sensor = new ImageBuffer(64, 48); + sensor.Plane(1).Fill(0.2f + 0.1f * i); + File.WriteAllBytes(Path.Combine(card, $"GOPR{i + 1:0000}.dng"), + LinearDngWriter.Write(sensor, new LinearDngOptions { Exif = ExifWriter.BuildTiff(metadata), TileSize = 64 })); + } + var service = fx.Archive.Service; + var plan = await service.PlanImportAsync(fx.Archive.Archive.Id, Path.GetDirectoryName(Path.GetDirectoryName(card))!, new ImportOptions(), + cancellationToken: fx.Ct); + await service.Imports.ExecuteAsync(new ImportJobParameters(fx.Archive.Archive.Id, plan, null, true, null), Guid.NewGuid(), 0, + _ => ValueTask.CompletedTask, null, fx.Ct); + var session = plan.Sessions.Single(); + Assert.Equal(ImageFileFormat.Dng, session.Format); + var id = await fx.Db.Sequences.FindBySessionKeyAsync(fx.Archive.Archive.Id, session.SessionKey, fx.Ct); + var sequence = (await fx.Db.Sequences.GetAsync(id!.Value, fx.Ct))!; + + // What an index from before owner review 1 holds: GPR, preview-only, already light-analysed. + var folder = fx.Folder(sequence); + var manifest = ManifestStore.ReadSequence(folder.ManifestPath); + ManifestStore.WriteSequence(folder.ManifestPath, manifest with + { + Frames = [.. manifest.Frames.Select(f => f with { Format = ImageFileFormat.Gpr, Tier = DecodeTier.EmbeddedPreview, Flags = f.Flags | FrameFlags.PreviewOnly, PreviewW = 64, PreviewH = 48 })], + }); + var rows = await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct); + await fx.Db.Frames.UpdateTiersAsync([.. rows.Select(r => new FrameTierFields(r.Id, r.Flags | FrameFlags.PreviewOnly, 64, 48, ImageFileFormat.Gpr))], fx.Ct); + await fx.Db.Sequences.UpsertAsync(sequence with { Status = sequence.Status | SequenceStatus.AnalyzedLight }, fx.Ct); + Assert.Contains(sequence.Id, await AnalysisFollowUp.UnanalysedAsync(fx.Db, fx.Archive.Archive.Id, fx.Ct)); + + await fx.StartEngineAsync(); + var light = await fx.EnqueueAsync(ProcessingJobs.LightAnalysis([sequence.Id])); + await fx.WaitForAsync(light.Id, JobState.Done); + var sidecar = ManifestStore.ReadSequence(folder.ManifestPath).Frames; + Assert.True(sidecar.All(f => f is { Format: ImageFileFormat.Dng, Tier: DecodeTier.Native } && (f.Flags & FrameFlags.PreviewOnly) == 0), + string.Join(", ", sidecar.Select(f => $"{f.Format}/{f.Tier}/{f.Flags}"))); + var indexed = await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct); + Assert.True(indexed.All(f => f.Format == ImageFileFormat.Dng && (f.Flags & FrameFlags.PreviewOnly) == 0), "the index follows"); + Assert.Equal(0, (await fx.Db.Sequences.GetAsync(sequence.Id, fx.Ct))!.PreviewOnlyCount); + Assert.DoesNotContain(sequence.Id, await AnalysisFollowUp.UnanalysedAsync(fx.Db, fx.Archive.Archive.Id, fx.Ct)); + } + [Test] public async Task DeepAnalysisNeverFlagsFramesThatVanishedOrCouldNotBeRead() { diff --git a/tests/Titano.Data.Tests/Repositories/CatalogRepositoryTests.cs b/tests/Titano.Data.Tests/Repositories/CatalogRepositoryTests.cs index b9bd4b22..d95a3c5b 100644 --- a/tests/Titano.Data.Tests/Repositories/CatalogRepositoryTests.cs +++ b/tests/Titano.Data.Tests/Repositories/CatalogRepositoryTests.cs @@ -323,7 +323,7 @@ public abstract class CatalogRepositoryTests(TestContext context) : RepositoryTe var frames = Enumerable.Range(0, count).Select(i => TestData.Frame(sequence.Id, i) with { Flags = FrameFlags.Duplicate }).ToList(); await db.Frames.BulkInsertAsync(frames, Ct); - var tiers = frames.Select(f => new FrameTierFields(f.Id, f.Index % 2 == 0 ? FrameFlags.PreviewOnly : FrameFlags.Undecodable, 1620 + f.Index, 1080)).ToList(); + var tiers = frames.Select(f => new FrameTierFields(f.Id, f.Index % 2 == 0 ? FrameFlags.PreviewOnly : FrameFlags.Undecodable, 1620 + f.Index, 1080, f.Format)).ToList(); Assert.Equal(count, await db.Frames.UpdateTiersAsync(tiers, Ct)); var read = await Titano.Data.Processing.SequenceFrames.ListAsync(db, sequence.Id, Ct); Assert.SequenceEqual(tiers.Select(t => (t.Flags, t.PreviewWidth, t.PreviewHeight)), read.Select(f => (f.Flags, f.PreviewWidth, f.PreviewHeight))); diff --git a/tests/Titano.Server.Tests/Api/SequenceTests.cs b/tests/Titano.Server.Tests/Api/SequenceTests.cs index 31226433..ef8eed1a 100644 --- a/tests/Titano.Server.Tests/Api/SequenceTests.cs +++ b/tests/Titano.Server.Tests/Api/SequenceTests.cs @@ -327,7 +327,7 @@ public sealed class SequenceTests(TestContext context) } // What a light analysis on the server records for CR3s it reads only through their previews. var frames = await db.Frames.ListBySequenceAsync(first.SequenceId); - await db.Frames.UpdateTiersAsync([.. frames.Select(f => new Titano.Data.Repositories.FrameTierFields(f.Id, Titano.Core.Model.FrameFlags.PreviewOnly, 1620, 1080))]); + await db.Frames.UpdateTiersAsync([.. frames.Select(f => new Titano.Data.Repositories.FrameTierFields(f.Id, Titano.Core.Model.FrameFlags.PreviewOnly, 1620, 1080, f.Format))]); var sequence = (await db.Sequences.GetAsync(first.SequenceId))!; await db.Sequences.UpsertAsync(sequence with { PreviewOnlyCount = 2 }); -- 2.54.1 From 43b6871cdc2580f9a4dab1a7300df065b89d8850 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Fri, 16 Oct 2026 14:56:24 +0200 Subject: [PATCH 3/5] feat: jobs run one at a time, parallelism per photo and a priority queue Owner review 1, phase 2 (docs/requests/2026-10-15-owner-review-1.md, R2). Jobs now run one at a time on the desktop and on the server. Parallelism (Settings > Rendering, TITANO_PARALLELISM) is how many photos the running job processes at once: thumbnail and proxy passes draw that many photos together and still write the pack and checkpoints in frame order, decode tiers are probed that many at a time, the deep analysis measures that many frames and a render decodes that many ahead. Wherever originals are developed whole (TIFF, PNG, RAW without a usable preview), fewer run at once within the memory budget, which the running job now has whole; the server's frame window is sized to the host instead of 1 GiB. A new job waits its turn and pausing the running job starts the next one. An optional priority queue gives each job kind a level (renders, imports and downloads high, verifies and proxies low by default): a queued job of a higher level pauses the running one without asking, and that job goes back to the queue with its checkpoint and resumes by itself afterwards. Jobs of the same level, and a job's own follow-ups, never interrupt it. The Jobs screen and the admin panel show the parallelism and the queue; Settings > Rendering and the admin panel's Settings set them, at once. TITANO_WORKERS and the Workers key of server.json still set the parallelism (1 to 64, with a warning at start for the variable). Titano.Tools gains i18n prune, which removed the renamed keys from the 36 machine-translated languages; the new strings are translated in all 38. Found while testing: uploads and imports failed when a pass read the sidecar while they wrote it (atomic writes now retry the rename while a reader holds the file, and never for a read-only one), and taking a lease just released while another process read it failed on Windows (the create now waits for the reader). Five adversarial review rounds checked the phase before this commit. Also updates BRIEF (12.8, 14.6, 14.8, 14.9, 24), DECISIONS, CHANGELOG, ARCHITECTURE, STATUS, the request file and the compose/Unraid templates. Co-Authored-By: Claude Opus 5.5 --- deploy/docker/docker-compose.yml | 5 + deploy/unraid/titano.xml | 2 + docs/ARCHITECTURE.md | 6 +- docs/BRIEF.md | 26 +- docs/CHANGELOG.md | 32 +- docs/DECISIONS.md | 9 + docs/STATUS.md | 2 +- docs/requests/2026-10-15-owner-review-1.md | 2 +- i18n/ar/Admin.ar.resx | 20 +- i18n/ar/Jobs.ar.resx | 7 +- i18n/ar/Settings.ar.resx | 5 + i18n/ar/Tooltips.ar.resx | 11 +- i18n/bg/Admin.bg.resx | 16 +- i18n/bg/Jobs.bg.resx | 5 +- i18n/bg/Settings.bg.resx | 5 + i18n/bg/Tooltips.bg.resx | 11 +- i18n/cs/Admin.cs.resx | 18 +- i18n/cs/Jobs.cs.resx | 6 +- i18n/cs/Settings.cs.resx | 5 + i18n/cs/Tooltips.cs.resx | 11 +- i18n/da/Admin.da.resx | 16 +- i18n/da/Jobs.da.resx | 5 +- i18n/da/Settings.da.resx | 5 + i18n/da/Tooltips.da.resx | 11 +- i18n/de/Admin.de.resx | 16 +- i18n/de/Jobs.de.resx | 5 +- i18n/de/Settings.de.resx | 5 + i18n/de/Tooltips.de.resx | 11 +- i18n/el/Admin.el.resx | 16 +- i18n/el/Jobs.el.resx | 5 +- i18n/el/Settings.el.resx | 5 + i18n/el/Tooltips.el.resx | 11 +- i18n/en/Admin.resx | 16 +- i18n/en/Jobs.resx | 5 +- i18n/en/Settings.resx | 5 + i18n/en/Tooltips.resx | 11 +- i18n/es/Admin.es.resx | 16 +- i18n/es/Jobs.es.resx | 5 +- i18n/es/Settings.es.resx | 5 + i18n/es/Tooltips.es.resx | 11 +- i18n/et/Admin.et.resx | 16 +- i18n/et/Jobs.et.resx | 5 +- i18n/et/Settings.et.resx | 5 + i18n/et/Tooltips.et.resx | 11 +- i18n/fi/Admin.fi.resx | 16 +- i18n/fi/Jobs.fi.resx | 5 +- i18n/fi/Settings.fi.resx | 5 + i18n/fi/Tooltips.fi.resx | 11 +- i18n/fr/Admin.fr.resx | 16 +- i18n/fr/Jobs.fr.resx | 5 +- i18n/fr/Settings.fr.resx | 5 + i18n/fr/Tooltips.fr.resx | 11 +- i18n/he/Admin.he.resx | 18 +- i18n/he/Jobs.he.resx | 6 +- i18n/he/Settings.he.resx | 5 + i18n/he/Tooltips.he.resx | 11 +- i18n/hi/Admin.hi.resx | 16 +- i18n/hi/Jobs.hi.resx | 5 +- i18n/hi/Settings.hi.resx | 5 + i18n/hi/Tooltips.hi.resx | 11 +- i18n/hr/Admin.hr.resx | 18 +- i18n/hr/Jobs.hr.resx | 6 +- i18n/hr/Settings.hr.resx | 5 + i18n/hr/Tooltips.hr.resx | 11 +- i18n/hu/Admin.hu.resx | 16 +- i18n/hu/Jobs.hu.resx | 5 +- i18n/hu/Settings.hu.resx | 5 + i18n/hu/Tooltips.hu.resx | 11 +- i18n/id/Admin.id.resx | 16 +- i18n/id/Jobs.id.resx | 5 +- i18n/id/Settings.id.resx | 5 + i18n/id/Tooltips.id.resx | 11 +- i18n/it/Admin.it.resx | 16 +- i18n/it/Jobs.it.resx | 7 +- i18n/it/Settings.it.resx | 5 + i18n/it/Tooltips.it.resx | 19 +- i18n/ja/Admin.ja.resx | 16 +- i18n/ja/Jobs.ja.resx | 5 +- i18n/ja/Settings.ja.resx | 5 + i18n/ja/Tooltips.ja.resx | 11 +- i18n/ko/Admin.ko.resx | 16 +- i18n/ko/Jobs.ko.resx | 5 +- i18n/ko/Settings.ko.resx | 5 + i18n/ko/Tooltips.ko.resx | 11 +- i18n/lt/Admin.lt.resx | 18 +- i18n/lt/Jobs.lt.resx | 6 +- i18n/lt/Settings.lt.resx | 5 + i18n/lt/Tooltips.lt.resx | 11 +- i18n/lv/Admin.lv.resx | 18 +- i18n/lv/Jobs.lv.resx | 6 +- i18n/lv/Settings.lv.resx | 5 + i18n/lv/Tooltips.lv.resx | 11 +- i18n/ms/Admin.ms.resx | 16 +- i18n/ms/Jobs.ms.resx | 5 +- i18n/ms/Settings.ms.resx | 5 + i18n/ms/Tooltips.ms.resx | 11 +- i18n/nb/Admin.nb.resx | 16 +- i18n/nb/Jobs.nb.resx | 5 +- i18n/nb/Settings.nb.resx | 5 + i18n/nb/Tooltips.nb.resx | 11 +- i18n/nl/Admin.nl.resx | 16 +- i18n/nl/Jobs.nl.resx | 5 +- i18n/nl/Settings.nl.resx | 5 + i18n/nl/Tooltips.nl.resx | 11 +- i18n/pl/Admin.pl.resx | 20 +- i18n/pl/Jobs.pl.resx | 7 +- i18n/pl/Settings.pl.resx | 5 + i18n/pl/Tooltips.pl.resx | 11 +- i18n/pt-BR/Admin.pt-BR.resx | 16 +- i18n/pt-BR/Jobs.pt-BR.resx | 5 +- i18n/pt-BR/Settings.pt-BR.resx | 5 + i18n/pt-BR/Tooltips.pt-BR.resx | 11 +- i18n/pt-PT/Admin.pt-PT.resx | 16 +- i18n/pt-PT/Jobs.pt-PT.resx | 5 +- i18n/pt-PT/Settings.pt-PT.resx | 5 + i18n/pt-PT/Tooltips.pt-PT.resx | 11 +- i18n/ro/Admin.ro.resx | 18 +- i18n/ro/Jobs.ro.resx | 6 +- i18n/ro/Settings.ro.resx | 5 + i18n/ro/Tooltips.ro.resx | 11 +- i18n/ru/Admin.ru.resx | 20 +- i18n/ru/Jobs.ru.resx | 7 +- i18n/ru/Settings.ru.resx | 5 + i18n/ru/Tooltips.ru.resx | 11 +- i18n/sk/Admin.sk.resx | 18 +- i18n/sk/Jobs.sk.resx | 6 +- i18n/sk/Settings.sk.resx | 5 + i18n/sk/Tooltips.sk.resx | 11 +- i18n/sl/Admin.sl.resx | 18 +- i18n/sl/Jobs.sl.resx | 6 +- i18n/sl/Settings.sl.resx | 5 + i18n/sl/Tooltips.sl.resx | 11 +- i18n/sv/Admin.sv.resx | 16 +- i18n/sv/Jobs.sv.resx | 5 +- i18n/sv/Settings.sv.resx | 5 + i18n/sv/Tooltips.sv.resx | 11 +- i18n/th/Admin.th.resx | 16 +- i18n/th/Jobs.th.resx | 5 +- i18n/th/Settings.th.resx | 5 + i18n/th/Tooltips.th.resx | 11 +- i18n/tr/Admin.tr.resx | 16 +- i18n/tr/Jobs.tr.resx | 5 +- i18n/tr/Settings.tr.resx | 5 + i18n/tr/Tooltips.tr.resx | 11 +- i18n/uk/Admin.uk.resx | 20 +- i18n/uk/Jobs.uk.resx | 7 +- i18n/uk/Settings.uk.resx | 5 + i18n/uk/Tooltips.uk.resx | 11 +- i18n/vi/Admin.vi.resx | 16 +- i18n/vi/Jobs.vi.resx | 5 +- i18n/vi/Settings.vi.resx | 5 + i18n/vi/Tooltips.vi.resx | 11 +- i18n/zh-Hans/Admin.zh-Hans.resx | 16 +- i18n/zh-Hans/Jobs.zh-Hans.resx | 5 +- i18n/zh-Hans/Settings.zh-Hans.resx | 5 + i18n/zh-Hans/Tooltips.zh-Hans.resx | 11 +- i18n/zh-Hant/Admin.zh-Hant.resx | 16 +- i18n/zh-Hant/Jobs.zh-Hant.resx | 5 +- i18n/zh-Hant/Settings.zh-Hant.resx | 5 + i18n/zh-Hant/Tooltips.zh-Hant.resx | 11 +- src/Titano.App/DesignTime/SampleData.cs | 33 +- src/Titano.App/Infrastructure/AppServices.cs | 24 +- src/Titano.App/Infrastructure/AppSettings.cs | 11 +- src/Titano.App/Jobs/JobListModel.cs | 16 +- src/Titano.App/Jobs/JobQueue.cs | 6 +- src/Titano.App/Sections/JobsView.xaml | 10 +- src/Titano.App/Sections/JobsViewModel.cs | 17 +- src/Titano.App/Sections/SettingsView.xaml | 32 +- src/Titano.App/Sections/SettingsViewModel.cs | 44 +- src/Titano.App/Settings/ProcessingTuning.cs | 31 +- src/Titano.App/Settings/SettingsRows.cs | 32 ++ src/Titano.App/Shell/ScreenCapture.cs | 4 + src/Titano.Core/Archiving/IndexSnapshot.cs | 2 +- src/Titano.Core/Archiving/IngestJournal.cs | 2 +- src/Titano.Core/Archiving/LeaseFile.cs | 11 +- src/Titano.Core/Archiving/ManifestStore.cs | 4 +- src/Titano.Core/IO/AtomicFile.cs | 107 ++++- src/Titano.Data/Archiving/ArchiveImages.cs | 274 ++++++++----- src/Titano.Data/Archiving/ArchiveIndexer.cs | 5 +- src/Titano.Data/Archiving/DecodeBudget.cs | 47 +++ src/Titano.Data/Archiving/FrameTiers.cs | 18 +- src/Titano.Data/Archiving/OrderedWork.cs | 112 +++++ src/Titano.Data/Archiving/ProjectPositions.cs | 2 +- src/Titano.Data/Archiving/SequenceMapping.cs | 3 +- src/Titano.Data/Archiving/SequenceWriter.cs | 19 + src/Titano.Data/Jobs/JobEngine.cs | 385 +++++++++++------- src/Titano.Data/Jobs/JobHandler.cs | 9 +- src/Titano.Data/Jobs/JobPriorityQueue.cs | 118 ++++++ .../Processing/ProcessingOptions.cs | 15 + src/Titano.Data/Processing/ProjectStore.cs | 2 +- .../Processing/SequenceAnalyser.cs | 17 + .../Processing/SequenceFrameSource.cs | 39 +- src/Titano.Data/Processing/SequenceFrames.cs | 15 + src/Titano.Data/Repositories/JobRepository.cs | 33 +- src/Titano.Protocol/Admin.cs | 14 +- src/Titano.Server/Admin/web/admin.css | 3 + .../Admin/web/pages/dashboard.js | 2 +- src/Titano.Server/Admin/web/pages/settings.js | 28 +- src/Titano.Server/Admin/web/ui.js | 4 + src/Titano.Server/Api/AdminEndpoints.cs | 9 +- src/Titano.Server/Api/DiagnosticsEndpoints.cs | 8 +- .../Configuration/ServerOptions.cs | 52 ++- .../Configuration/ServerSettingsStore.cs | 64 ++- .../Hosting/ServerCommandLine.cs | 5 +- src/Titano.Server/Hosting/ServerHost.cs | 5 + src/Titano.Server/Jobs/JobEngineHost.cs | 12 +- src/Titano.Server/Storage/ArchiveModule.cs | 10 +- src/Titano.Server/Storage/ProcessingModule.cs | 12 +- src/Titano.Tools/Commands/I18nCommand.cs | 43 +- .../Jobs/JobListModelTests.cs | 16 + .../Jobs/JobsScreenSmokeTests.cs | 4 +- .../Server/ServerScreenSmokeTests.cs | 3 +- .../Settings/SettingsLogicTests.cs | 23 +- .../Archiving/LeaseFileTests.cs | 24 ++ .../Archiving/ManifestStoreTests.cs | 28 ++ .../Foundation/AtomicFileTests.cs | 41 ++ .../Archiving/OrderedWorkTests.cs | 132 ++++++ .../Archiving/ParallelPassTests.cs | 97 +++++ .../Titano.Data.Tests/Jobs/JobEngineTests.cs | 205 ++++++++-- .../Jobs/JobPriorityQueueTests.cs | 106 +++++ .../Processing/DecodeParallelismTests.cs | 176 ++++++++ .../Repositories/JobRepositoryTests.cs | 21 + tests/Titano.Server.Tests/Api/AdminTests.cs | 56 +++ .../Hosting/StartupTests.cs | 31 ++ tests/Titano.Server.Tests/Jobs/JobApiTests.cs | 2 +- .../Storage/ProcessingModuleTests.cs | 15 + tests/Titano.Server.Tests/TestServer.cs | 2 +- tests/Titano.Tools.Tests/I18nCommandTests.cs | 28 +- 228 files changed, 3535 insertions(+), 793 deletions(-) create mode 100644 src/Titano.Data/Archiving/DecodeBudget.cs create mode 100644 src/Titano.Data/Archiving/OrderedWork.cs create mode 100644 src/Titano.Data/Jobs/JobPriorityQueue.cs create mode 100644 tests/Titano.Data.Tests/Archiving/OrderedWorkTests.cs create mode 100644 tests/Titano.Data.Tests/Archiving/ParallelPassTests.cs create mode 100644 tests/Titano.Data.Tests/Jobs/JobPriorityQueueTests.cs create mode 100644 tests/Titano.Data.Tests/Processing/DecodeParallelismTests.cs diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index 46666e3e..563cdcac 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -34,6 +34,11 @@ services: # TITANO_TRUSTED_PROXIES: "172.30.0.10" # TITANO_PUBLIC_HTTPS_PORT: "8443" TITANO_SERVER_NAME: Titano Server + # Jobs run one at a time. Photos the running job processes at once (default: half the cores), and the priority queue + # (a higher job pauses the running one, which resumes afterwards). Set here, they can no longer be changed in the + # admin panel's Settings. + # TITANO_PARALLELISM: "4" + # TITANO_PRIORITY_QUEUE: "true" # Trace, Debug, Information, Warning or Error TITANO_LOG_LEVEL: Information PUID: ${PUID:-1000} diff --git a/deploy/unraid/titano.xml b/deploy/unraid/titano.xml index b7c059f1..b78768a4 100644 --- a/deploy/unraid/titano.xml +++ b/deploy/unraid/titano.xml @@ -37,6 +37,8 @@ auto Titano Server + + Information 99 100 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 8525ddb3..cc124d20 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -55,8 +55,8 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | `Sqlite`, `Postgres` | SQLite P/Invoke binding (winsqlite3 / libsqlite3), in-house PostgreSQL wire protocol v3 client with pool and LISTEN | | `Migrations/{sqlite,postgres}/NNNN_name.sql` | Embedded, applied in one transaction at open (`MigrationRunner`) | | `Repositories` | `TitanoDatabase` facade: archives, sequences, frames, tags, renders, jobs, cards, users, tokens, uploads, render nodes, settings, audit; `DatabaseBackups` (daily `VACUUM INTO` copies of an SQLite index kept ×3, restore staged for the next start and carried out before the index opens, so it also recovers one that no longer opens) | -| `Jobs` | `JobEngine` (its number of workers can change while it runs), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs), `JobThroughput`/`JobEta` (rate and bounded time left) | -| `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index), `ArchiveIndexer` (scan, rebuild), `ArchiveIngest` (uploads and imports), `ImportService`, `ArchiveVerifier`, `ArchiveImages`, `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance`, `MassRenamer`, `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails), job handlers | +| `Jobs` | `JobEngine` (one job at a time; reviews the priority queue and makes a lower running job yield, requeued with its checkpoint), `JobPriorityQueue` (a level per job kind, the claim order, settings round trip), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs that never interrupt their parent), `JobThroughput`/`JobEta` (rate and bounded time left) | +| `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index), `ArchiveIndexer` (scan, rebuild), `ArchiveIngest` (uploads and imports), `ImportService`, `ArchiveVerifier`, `ArchiveImages` (thumbnail and proxy passes, several photos at once through `OrderedWork`, which hands results back in frame order), `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance`, `MassRenamer`, `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails), job handlers | | `Processing` | `ProcessingService`, `SequenceAnalyser`, `DeepReports` (a saved deep report while it still describes the frames), `SequenceRender`, `ProjectStore`, `ProjectBundles` (a `.titano` file for a sequence, and the sequence a file names), `RenderNodeClient`, job handlers | | `Sync` | `SyncService` (sync table of one server: compare, link by content, settle conflicts, enqueue transfers), `SyncRules` (status, settings merge and differences, no I/O), `SyncPositions` (the settings' frame positions translated by photo to the frames of the copy they go to), `SyncLinkStore` (`sync_links`, `sync_state`), `SyncTransfers` and `SyncJobHandler` (resumable, hash-verified uploads and downloads as jobs; downloads commit through the archive ingest), `SyncAgent` (background comparison, server events, backoff, offline proxies), `ProxyCache` and `RemoteSequence` (server sequences opened with proxies), `ISyncRemote` (the server calls; `TitanoSyncRemote` over `TitanoClient`) | @@ -71,7 +71,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | `Import` | `CardPool` (inserted cards, remembered cards, folders), camera profiles, plans and choices, destinations (archive, folder, server through `ServerImportSink`), card actions (verified delete, format, eject) | | `Archive` | `CurrentArchive`, `ArchiveTree`, figures for the charts, maintenance reports, mass rename and move, delete and trash dialogs (`SequenceDeletion`, `DeletePlans`), `ArchiveFailures` | | `Server` | `ServerSession`, `ConnectFlow` (trust on first use), `SyncHost` (sync engine, agent, metered hold, editor connections, Export Sync), sync table, `RemoteSequenceApi` | -| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows, encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job), `InterfacePriority`, language catalog, naming preview; update check and download | +| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows, encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job: parallelism, memory budget, quality), `InterfacePriority`, language catalog, naming preview; update check and download | | `Infrastructure` | `AppServices` (composition root), `AppSettings`, `AppEnvironment` (installed or portable), `AppClock` (today's date, frozen by `--capture`), `StartWithWindows` (this copy's sign-in entry), `UiLanguage`, `LiveRegion`, `RenderNodeHost`, `DiagnosticsBundle`, `ShellActions` (BRIEF §8.6), `SingleInstance` (one Titano per data folder; a later launch hands its file over a named pipe, or waits for a closing one to exit and starts in its place), device monitor | | `DesignTime` | `SampleData`: the archive, jobs and server the screenshots and smoke tests run on, dated from the fixed `SampleData.Now` | diff --git a/docs/BRIEF.md b/docs/BRIEF.md index a8d2136f..eddcddf9 100644 --- a/docs/BRIEF.md +++ b/docs/BRIEF.md @@ -838,7 +838,9 @@ Sections (list on the left, controls on the right, no descriptions — tooltips General (language, theme, startup, notifications), Archive (root, templates, proxy policy, thumbnail size, network polling), Import (defaults, session rules, verify, post-actions), Analysis (widths, thresholds, deep analysis auto-run), Rendering (quality profile, memory -budget, spill folder, parallelism, encoders detected, hardware preference), Formats (per +budget, spill folder, parallelism = photos the running job processes at once, priority queue +with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2), +Formats (per format tier on this PC, codec install links), Server (last servers, trusted fingerprints, render node), Updates (check on start), Advanced (portable mode, logs, database backup/ restore, reset). Import/export settings as JSON. @@ -952,10 +954,17 @@ it itself (managed formats) or hands it to a render node. ### 14.6 Job engine -Persistent queue in the DB; N worker threads (configurable, default = cores/2); job kinds -in §5; checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities +Persistent queue in the DB; jobs run one at a time, and the parallelism (configurable, +default = cores/2) is how many photos the running job processes at once; job kinds in §5; +checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities (user-initiated > background analysis); cancellation cooperative; logs per job; retention -of history 90 days. +of history 90 days. By default a new job waits its turn, and pausing the running job lets +the next one start. An optional priority queue (Settings › Rendering on the desktop, the +admin panel's Settings on the server) gives each job kind a level (high, normal, low): +higher kinds are claimed first, and a queued job of a higher level makes the running job +of a lower level yield without asking; that job returns to the queue with its checkpoint +and resumes by itself afterwards. Jobs of the same level never interrupt each other, and a +job's own follow-ups never interrupt it. (Amended 2026-10-16, R2.) ### 14.7 Render nodes @@ -982,8 +991,8 @@ available and says so in the job log. Pages: Login · Dashboard · Users (table; create/edit/disable/reset/roles/quota) · Archive (path, templates, proxy policy, scan/rebuild/verify, stats) · Jobs (queue/history/nodes, -cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, limits, -language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/ +cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, jobs: +parallelism and priority queue, limits, language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/ dark, localised via `/api/v1/i18n`, keyboard accessible. ### 14.9 Configuration and Docker @@ -995,7 +1004,9 @@ at first login), `TITANO_ARCHIVE_PATH=/archive`, `TITANO_DATA_PATH=/data`, `TITANO_DB_NAME`, `TITANO_DB_USER`, `TITANO_DB_PASSWORD`, `TITANO_DB_SSLMODE=prefer`, `TITANO_HTTP_PORT=8080`, `TITANO_HTTPS_PORT=8443`, `TITANO_TLS_MODE=auto|pem|proxy`, `TITANO_TLS_CERT`, `TITANO_TLS_KEY`, `TITANO_SERVER_NAME`, `TITANO_LANG=en`, -`TITANO_WORKERS`, `TITANO_DISCOVERY=true` (LAN UDP beacon), `PUID`, `PGID`, `TZ`. +`TITANO_PARALLELISM` (photos the running job processes at once; `TITANO_WORKERS`, its former +name, still sets it), `TITANO_PRIORITY_QUEUE=false`, `TITANO_DISCOVERY=true` (LAN UDP beacon), +`PUID`, `PGID`, `TZ`. (Amended 2026-10-16, R2.) Dockerfile: multi-stage on `mcr.microsoft.com/dotnet/sdk:10.0` → `aspnet:10.0`, non-root user via `PUID/PGID` entrypoint, volumes `/archive` and `/data`, `HEALTHCHECK` on @@ -1315,6 +1326,7 @@ questions asked and the answers; DECISIONS rows give the reasons. | Date | Request | Sections | What changed | |---|---|---|---| | 2026-10-16 | Owner review 1, R4 | §8.1, §8.2 | DNG decodes through the managed decoder (WIC only through the Raw Image Extension, never DNG); a GoPro DNG is GPR only when VC-5; analyses and previews take an adequate embedded preview by choice, renders decode natively. | +| 2026-10-16 | Owner review 1, R2 | §12.8, §14.6, §14.8, §14.9 | Jobs run one at a time; the parallelism is photos the running job processes at once; an optional priority queue by job kind pauses lower jobs and resumes them by itself; `TITANO_PARALLELISM` (former `TITANO_WORKERS`) and `TITANO_PRIORITY_QUEUE`. | ## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 48418fe0..00bf8376 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -167,6 +167,26 @@ commits follow Conventional Commits (release notes are generated from them by `T sequence's frames changed since the settings' frame positions were written. `GET /api/v1/sequences/{id}/manifest` returns frames, frames version and settings of one frames version. +### Changed +- Owner review 1 (2026-10-16, R2, `docs/requests/2026-10-15-owner-review-1.md`): + - jobs run one at a time, on the desktop and on the server. Settings › Rendering › Parallelism (server: + `TITANO_PARALLELISM`, admin panel › Settings › Jobs) is now how many photos the running job processes at once: + thumbnail and proxy passes draw that many photos together, decode tiers are probed that many at a time, the deep + analysis measures that many frames and a render decodes that many ahead (fewer wherever large originals are + developed whole, within the memory budget); the server's renders get a frame window sized to the host (a quarter + of the memory available) instead of 1 GiB; the running job has the whole memory budget; + - a new job waits its turn, and pausing the running job lets the next one start. An optional priority queue + (Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) gives each job kind a level; by + default renders, imports and downloads are high and verifies and proxies low. A queued job of a higher level pauses + the running one without asking, and that one resumes by itself afterwards from its checkpoint; + - the Jobs screen shows "8 photos at once", and a Priority queue chip while the queue is on; the admin dashboard + shows the parallelism; + - `Titano.Tools i18n prune` removes from the translations the keys English no longer has. + +### Deprecated +- `TITANO_WORKERS` and the `Workers` key of `server.json` set the parallelism (photos the running job processes at + once, 1 to 64); the server logs a warning at start when the variable is set. Use `TITANO_PARALLELISM`. + ### Fixed - Owner review 1 (2026-10-16, `docs/requests/2026-10-15-owner-review-1.md`): - thumbnail and proxy jobs over several sequences failed after 10–20 minutes with "TimeSpan overflowed" and then @@ -178,7 +198,13 @@ commits follow Conventional Commits (release notes are generated from them by `T - GoPro DNGs converted by Lightroom or DNG Converter were treated as GPR and read only through their 8-bit embedded preview, and DNGs Windows' preview-only DNG decoder read were reported as decoded natively. Videos now develop them natively at 16 bits, analyses and the editor preview use the embedded preview when it is large enough, and the - archive's existing frames are reclassified by the next light analysis (R4). + archive's existing frames are reclassified by the next light analysis (R4); + - an upload or a card import could fail with "Access to the path is denied" (server: 503 `commit_failed`) when a + thumbnail or proxy pass, an analysis or a scan was reading the sequence's sidecar at that moment: the write now + waits a moment for the reader (found while testing phase 2); + - taking a sequence's lease could fail with "Access to the path is denied" when the previous holder had just released + it while another process was reading it (Windows keeps the file pending deletion meanwhile): the lease is now taken + once the reader lets go (found while testing phase 2). - Opening the repository in VS Code with C# Dev Kit before the first build listed MSB3073 for Titano, the Uploader and Setup: design-time builds no longer generate the program icons, and log WPF's MC1000 about projects not built yet as a message. @@ -204,8 +230,8 @@ commits follow Conventional Commits (release notes are generated from them by `T - Release workflow: the server image and its `:latest` tag were pushed before the Windows tests passed, and publishing an older tag again moved `:latest` back; the image now follows the tests and `:latest` the newest stable release. Stable release notes started at the last release candidate instead of the previous stable tag. -- Settings › Rendering quality, parallelism and background priority had no effect on jobs. Parallelism Auto is now the - engine's half of the logical cores, and concurrent jobs share the memory budget. +- Settings › Rendering quality, parallelism and background priority had no effect on jobs. Parallelism Auto is now half + the logical cores (owner review 1 makes it the photos the running job processes at once; see Changed). - A restore staged in Settings › Advanced now runs before the index opens, so it recovers an index that no longer opens. A copy failing quick_check is set aside before any backup is made, and a restored copy is never applied twice. diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 05836d0b..056b0be9 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -402,3 +402,12 @@ One line per decision: date · decision · alternative · reason. | 2026-10-16 | WIC decodes a camera RAW only when the decoder it chose is the Raw Image Extension (CLSID read per file), never a DNG, and never for a request that prefers the embedded preview. Refines 2026-10-02 'Camera RAW is "native" via WIC only when the Raw Image Extension package is installed.' (Owner review 1, R4.) | Trust `CodecInventory` per format; force the Raw Image Extension by CLSID for DNG | With the extension installed, WIC still picks Windows' in-box "DNG Decoder" for every DNG with a JPEG preview; it reads only that 8-bit preview, which the provider labelled native (a smaller preview was a silent downscale). The Raw Image Extension develops DNG to 8 bits and fails on Lightroom's lossy LinearRaw DNGs; the managed decoder develops all of the owner's files at 16 bits. | | 2026-10-16 | A DNG is GPR only when its raw image is VC-5 (Compression 9) or its extension is .gpr; Make=GoPro alone no longer counts. Frames stored as GPR whose file is not a .gpr are probed again by the next light analysis, which the scan follow-up queues for their sequences, and the format the probe finds replaces the stored one in the sidecar and in `frames.format`. (Owner review 1, R4.) | A migration that rewrites every sidecar; leave existing frames as indexed | The owner's 84,400 GoPro DNGs were converted by Lightroom or DNG Converter (lossy LinearRaw, lossless CFA), which the managed DNG decoder develops, but every one was indexed GPR and preview-only. A light analysis reads only metadata and already probes tiers under the sequence lease. | | 2026-10-16 | Decode policy, the owner's choice: analyses, thumbnails, proxies and the editor's preview set `DecodeRequest.PreferPreview`, so a RAW gives an embedded preview whose long edge reaches the requested size when it has one and is developed otherwise; renders never set it and develop natively at 16 bits. Such a result is `DecodedImage.ByChoice` and is never recorded as the frame's tier. (Owner review 1, R4.) | Native development everywhere; the preview everywhere | Developing one of the owner's 12 MP DNGs takes 0.8–2.6 s against about 0.1 s for its preview: an analysis of the 84,400 frames would take about 18 hours instead of about 2. Exposure measured on a preview is tone-mapped by the converter, so deflicker corrections computed on it only approximate those of the native pixels the render corrects; the owner chose speed for analysis and quality for videos. | +| 2026-10-16 | Jobs run one at a time (owner review 1, R2): the engine has one worker by default (`JobEngineOptions.Workers` stays for tests of concurrent claims) and `SetWorkers` is gone. The parallelism reaches the work through the hosts' options, asked at the start of each sequence or job: `ArchiveServiceOptions.Parallelism` (thumbnail and proxy passes, tier probes) and `ProcessingOptions.WithParallelism` (deep analysis threads, render read-ahead and decodes). The running job has the whole memory budget. Refines 2026-10-12 'Settings › Rendering › Parallelism Auto is the job engine's default'. | Keep N workers with per-job caps; a `JobContext.Parallelism` passed through every handler and service | The owner's answer. The hosts already tune both option sets per job, render nodes reuse the desktop tuning, and no handler signature changes. | +| 2026-10-16 | The priority queue gives each job kind a level (high, normal, low), off by default: claim order level → priority → age; a queued job of a higher level that the engine would claim makes the running job of the lowest level yield without asking (cancelled, its checkpoint and a log line saved, then `JobRepository.RequeueAsync` back to Queued unless the user paused or cancelled it meanwhile); it resumes by itself when nothing above it waits. Reviewed at every `Wake` (enqueue, resume, settings saved) and every poll (3 s). Jobs of the same level never interrupt each other, a job's own follow-ups never interrupt it, and only a full engine interrupts. Defaults: render, import and download high; verify and proxies low. | An ordered list of all kinds; asking before pausing | The owner: set priorities so that a render started during a scan pauses the scan without confirmation and the scan resumes afterwards. A total order would make every pair of kinds interrupt each other (each periodic scan would pause hours of deep analysis); follow-ups work on what their parent produces. | +| 2026-10-16 | Thumbnail and proxy passes work on several photos at once through `OrderedWork`: up to the parallelism run on the thread pool (twice as many results wait) and their results come back in frame order on the pass's flow, so the pack writer, the counters and the checkpoints stay sequential and a checkpoint still means every frame before it is done; a parallelism of one runs inline. Decodes that develop originals whole run fewer at once for large originals (`DecodeBudget.PhotosAtOnce`): memory budget ÷ (largest frame × 32 bytes per pixel), 24 MP when no size is known, a size a damaged file claims saturating instead of overflowing. Proxy passes always count; thumbnail passes, deep analyses and every window of a render or its preparation count only the frames a decode at their size develops whole (`DecodeBudget.Developed`, `SequenceFrames.DevelopedPixels`): not a JPEG at least twice the size asked for (it decodes scaled down), not a frame read through its proxy or from a JPEG file, not a RAW's embedded preview of that size when previews are preferred (never in a render; another format's stored preview, such as a JPEG-compressed TIFF strip, may need the file's own tables and fall back to a full decode); a TIFF, a PNG or a developed RAW counts whole, so a render node's originals and a preparation over TIFFs are held back too. A frame window that develops originals gates every decode with that limit, read-ahead and demand loads alike (the window itself caps only its read-ahead). The server's frame window gets the host's memory budget (a quarter of the memory available, as the desktop's Auto) instead of the window's 1 GiB default. Tier probes run that many at a time (`Parallel.ForEachAsync`). | `Parallel.ForEach` with a lock around the pack; a byte semaphore per frame | Output identical to a pass of one photo at a time (tested byte for byte). The frames of a sequence share one size, so a limit per sequence is as good as a gate per frame. | +| 2026-10-16 | Verify, import and scan stay sequential inside their job. | Hash, copy or read metadata in parallel | They are bound by one disk or one card reader, where parallel reads are slower; the verify log keeps its order. | +| 2026-10-16 | Server: `TITANO_PARALLELISM` replaces `TITANO_WORKERS`, which still sets it (TITANO_PARALLELISM wins when both are set) and logs a warning at start; the `Workers` key of `server.json` still sets the parallelism and saving the setting removes it. `TITANO_PRIORITY_QUEUE` sets the queue on or off. The parallelism is 1 to 64 (the admin panel's range); a larger value from the environment or `server.json`, or the default on a machine with more than 128 threads, is brought down to 64, so a value the panel cannot change never blocks saving the others. Both apply at once (no restart), `server.json` keeps only the levels that differ from the defaults, and the admin panel lists the 14 kinds a server runs. `ServerSettingsDto` and `DashboardDto` replace `Workers` with `Parallelism` and add the priority queue. | Keep the name Workers; require a restart | The meaning changed (jobs at once → photos at once) and an older value keeps working. The admin panel ships with the server, so the DTO rename breaks no client. | +| 2026-10-16 | `Titano.Tools i18n prune` removes orphan keys (not in English and not a plural form of an English plural key) from every translation, rewriting only the files that had some, as `import` writes them. | Hand edits; regex | A renamed or removed key otherwise stays an orphan in 36 languages, and resx files are never mass-edited with regular expressions. | +| 2026-10-16 | Desktop: the Jobs toolbar shows "8 photos at once" (Settings › Rendering › Parallelism) and a Priority queue chip while the queue is on, instead of "Workers n / m"; Settings › Rendering lists the 16 job kinds with a level dropdown only while the queue is on; the Jobs list orders the queue with the engine's `JobPriorityQueue.ClaimsBefore`. The Jobs, Settings and Admin mockups follow in phase 6 with the rest of the review. | Keep the workers readout | One job runs at a time, so a count of busy workers says nothing. | +| 2026-10-16 | `AtomicFile` tries the rename over the target again for some 1 s (15 attempts, 10 ms × n) while another handle holds it: a sharing or lock violation, or Windows' "access denied" for an open file that is neither read-only nor a folder (those, like a missing file, fail at once). Sidecars, ingest journals, index snapshots and `project.json` are read whole and at once with `AtomicFile.ReadAllBytes`/`ReadAllText` (sharing read and delete, never a writer in place; above 2 GB an `IOException`, as `File.ReadAllBytes`). Windows refuses `MoveFileEx` over an open file even when the reader shares deletion. | Rename with POSIX semantics (`SetFileInformationByHandle`, Windows interop in Core); take the sequence lease for every sidecar read | Readers hold these files for milliseconds; a lease per read would queue thumbnail passes behind uploads, and Core stays free of Windows interop. Found when the faster passes of phase 2 made an upload's commit fail in the server tests. | +| 2026-10-16 | `LeaseFile.TryCreate` treats "access denied" on creating a lease as the name of a lease just released while a reader still holds it (pending deletion on Windows, since readers share deletion) and tries again for some 130 ms (8 attempts, 1 ms doubling), as it already did for the create-or-check race. | Return "held" at once; stop sharing deletion in readers | Returning "held" makes the caller wait its whole poll back-off for a name free milliseconds later, and readers must never block a release or a takeover. A real permission problem still fails after the short retry. Found when the phase 2 test runs hit it in `MassRenameTests` under load. | diff --git a/docs/STATUS.md b/docs/STATUS.md index 18aedcd1..f98ee2f3 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -13,7 +13,7 @@ Phase plan: docs/BRIEF.md §22. Windows behaviour is verified on CI (`windows-la | 6 Engine, encoding, editor | Done: render pipeline, MP4/AVI/GIF/APNG/image sequences, Media Foundation H.264/HEVC/AV1 with managed fallbacks; the sequence editor (Frames, Exposure, Camera, Motion and Export tabs, preview tools, section charts, curve editor, undo/redo, batch export) for local and server sequences. Gate: self-test suite green; the in-house inspector validates the containers the tests write; the encoder in use is logged. Playback: MediaPlayer opens the Media Foundation output and a source reader decodes its first frame (Windows tests). The pixel diff of every `--capture` screen against `tests/visual/baselines` (`screenshots diff`, BRIEF §20.2) is wired into CI but not armed: no baseline is committed yet, so the step compares nothing and only warns until the first baselines are accepted from `ci-screenshots` (Next steps). | | 7 Server, sync, uploader | Done: server (API, auth, uploads, jobs, render nodes, events, admin panel with light and dark themes, Windows service), Uploader, client sync (sync table, conflicts with *Save both*, proxies kept offline, metered pause), server sequences edited with proxies and rendered where the originals are, this PC as a render node. Gate covered in-process: a sequence uploaded from one PC downloads identically on another, interrupted uploads and downloads resume, server events update a PC, renders run on a node and on the server's managed fallback, jobs resume after a restart, sign-ins and administrative actions are audited. The run with two real PCs and the Uploader against the Docker server is part of the release test. | | 8 Release readiness | Release pipeline end to end (installers, portable and server zips, SHA256SUMS, release notes, optional signing, multi-arch GHCR image, public releases repository content), update check with verified download, scrubbed diagnostics bundles (desktop and server), performance gates, 38 cultures (`en`, `it` and 36 machine translations with glossaries and independent reviews), RTL pass (`ar`, `he`: mirrored windows, left-to-right islands for media, charts, numbers and paths; any right-to-left culture added later follows), accessibility pass (names, live regions, keyboard paths for charts and the curve editor). CI installs the packed installers silently on a clean `windows-latest` runner, runs the installed programs, upgrades in place and uninstalls (files, Add/Remove Programs, shortcuts, file type, user data kept, exit codes). Pending: a tagged pre-release published from CI, the interactive install on a real PC, Unraid template validation on a real server. | -| 8.1 Owner review 1 | In progress (request, answers and plan: `docs/requests/2026-10-15-owner-review-1.md`). Phase 1 done: stalled thumbnail and proxy jobs no longer fail and stay Running (frame-counted progress, bounded time left, final state always written); the editor's cancelled decodes stay in their tasks (no debugger stops in `WicDecoderProvider.cs`); WIC decodes RAW only through the Raw Image Extension and never DNG; GoPro DNGs converted by Adobe software are DNGs, developed natively for videos, read through their embedded preview for analyses and previews, and reclassified in existing archives by the next light analysis. Next: phase 2, jobs one at a time with photo parallelism and a priority queue. | +| 8.1 Owner review 1 | In progress (request, answers and plan: `docs/requests/2026-10-15-owner-review-1.md`). Phase 1 done: stalled thumbnail and proxy jobs no longer fail and stay Running (frame-counted progress, bounded time left, final state always written); the editor's cancelled decodes stay in their tasks (no debugger stops in `WicDecoderProvider.cs`); WIC decodes RAW only through the Raw Image Extension and never DNG; GoPro DNGs converted by Adobe software are DNGs, developed natively for videos, read through their embedded preview for analyses and previews, and reclassified in existing archives by the next light analysis. Phase 2 done: jobs run one at a time on the desktop and the server; Parallelism is how many photos the running job processes at once (thumbnail and proxy passes, tier probes, deep analysis, render decodes); pausing the running job starts the next; an optional priority queue by job kind (Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) pauses lower jobs and resumes them by themselves; `TITANO_PARALLELISM` replaces `TITANO_WORKERS`. Next: phase 3, wider collapsible rail and the Edit section as a guided path. | | 9 Monetization | Not started: requires explicit approval (§22). | ## Verification (2026-10-12) diff --git a/docs/requests/2026-10-15-owner-review-1.md b/docs/requests/2026-10-15-owner-review-1.md index d51dfdcc..e077400d 100644 --- a/docs/requests/2026-10-15-owner-review-1.md +++ b/docs/requests/2026-10-15-owner-review-1.md @@ -58,7 +58,7 @@ | Phase | Content | State | Commit | |---|---|---|---| | 1 | Bugs: R10 job throughput/ETA and stuck jobs; R4 cancellation boundary, WIC decoder truth, GoPro DNG classification, decode policy (preview for analysis, native for renders) | done 2026-10-16: BRIEF §8.1, §8.2, §24; five DECISIONS rows dated 2026-10-16; all test suites, i18n check, format, package guard and xaml-lint green | phase 1 commit | -| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | todo | | +| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | done 2026-10-16: BRIEF §12.8, §14.6, §14.8, §14.9, §24; nine DECISIONS rows dated 2026-10-16 (engine, priority queue, parallel passes and decode budget, sequential IO jobs, server settings, `i18n prune`, Jobs toolbar, atomic writes that wait for a reader, leases taken after a reader lets go); three adversarial review rounds before the commit; levels per kind rather than an ordered list (DECISIONS) | phase 2 commit | | 3 | R1 rail and admin sidebar; R7 Edit section, picker, guided path | todo | | | 4 | R5 visual crop, proportions win; R6 transforms, straighten, colour filters | todo | | | 5 | R3 export panel and Render menu; R8 export options; R9 videos library (desktop, server API, admin page, copy folder, trash) | todo | | diff --git a/i18n/ar/Admin.ar.resx b/i18n/ar/Admin.ar.resx index 0e0925ce..413f7b11 100644 --- a/i18n/ar/Admin.ar.resx +++ b/i18n/ar/Admin.ar.resx @@ -100,10 +100,15 @@ من {0} متصلة الملفات الأصلية {0} + {0} صور في وقت واحد + {0} صورة في وقت واحد + {0} صورة في وقت واحد + {0} صورة في وقت واحد {0} صور {0} صورة صورة واحدة {0} صورة + قائمة انتظار الأولوية قائمة الانتظار والسجل فتح صفحة المهام {0} في الانتظار @@ -123,10 +128,6 @@ {0} تسلسلًا بلا نسخ وكيلة تسلسل واحد بلا نسخ وكيلة {0} تسلسل بلا نسخ وكيلة - {0} وحدات تنفيذ - {0} وحدة تنفيذ - وحدة تنفيذ واحدة - {0} وحدة تنفيذ لم يستجب الخادم؛ حاول مرة أخرى. ضم تحليل معمّق @@ -305,6 +306,8 @@ منفذ واجهة API عبر TLS لتطبيقات Titano سجل المهام (أيام) عدد أيام الاحتفاظ بالمهام المنتهية + مستوى «{0}» في قائمة انتظار الأولوية: مهام المستوى الأعلى تعمل أولًا وتوقف مهام المستويات الأدنى مؤقتًا + المهام اللغة لغة رسائل الخادم عندما لا يطلب العميل لغة معينة الحدود والاحتفاظ @@ -312,8 +315,15 @@ أقصى حجم للملف (ميغابايت) أكبر حجم مقبول للملف الواحد المرفوع الشبكة وبروتوكول TLS + التوازي + عدد الصور التي تعالجها المهمة الجارية في وقت واحد؛ وتعمل المهام واحدة تلو الأخرى لم يُعثر على ملف PEM؛ أدخل مساره الكامل على الخادم. يُستخدم في وضع «شهادة خاصة» فقط + عالية + منخفضة + عادية + قائمة انتظار الأولوية + مفعّلة: المهمة ذات المستوى الأعلى توقف المهمة الجارية مؤقتًا دون سؤال، وتُستأنف الأخيرة تلقائيًا بعد ذلك. متوقفة: تنتظر المهام دورها ليس عبر الوكيل وضع TLS هو «وكيل عكسي»، لكن هذه الصفحة لم تصل عبر وكيل موثوق باستخدام HTTPS. افتحها عبر الوكيل، أو أضف عنوان الوكيل إلى TITANO_TRUSTED_PROXIES. يلزم إعادة التشغيل @@ -334,8 +344,6 @@ عدد الأيام التي يبقى فيها العميل مسجّل الدخول دون استخدام تُهمَل بعد (س) عدد الساعات التي تُحذف بعدها عمليات الرفع غير المكتملة - وحدات التنفيذ - عدد المهام التي يشغّلها هذا الخادم في الوقت نفسه تسجيل الخروج تسجيل الخروج من لوحة الإدارة التبديل بين السمة الفاتحة والداكنة diff --git a/i18n/ar/Jobs.ar.resx b/i18n/ar/Jobs.ar.resx index 9a318d19..7f1f3181 100644 --- a/i18n/ar/Jobs.ar.resx +++ b/i18n/ar/Jobs.ar.resx @@ -52,10 +52,16 @@ تحقق بعد {0} التالية + متوقفة مؤقتًا لصالح مهمة ذات أولوية أعلى ({0})؛ وتُستأنف تلقائيًا لا توجد أسطر في السجل بعد إخفاء السجل إظهار السجل + {0} صور في وقت واحد + {0} صورة في وقت واحد + {0} صورة في وقت واحد + {0} صورة في وقت واحد إيقاف الكل مؤقتًا + قائمة انتظار الأولوية إعدادات التصيير {0} · {1} البحث في الهدف أو النوع @@ -70,5 +76,4 @@ قيد التشغيل {0} · {1} هذا الكمبيوتر - وحدات التنفيذ {0} / {1} diff --git a/i18n/ar/Settings.ar.resx b/i18n/ar/Settings.ar.resx index fdd9ef48..d001afbd 100644 --- a/i18n/ar/Settings.ar.resx +++ b/i18n/ar/Settings.ar.resx @@ -140,6 +140,11 @@ {0} fps · ناجح تفضيل العتاد العتاد للمعاينات فقط + عالية + منخفضة + عادية + قائمة انتظار الأولوية + مفعّلة ملف تعريف الجودة متوازن الأفضل diff --git a/i18n/ar/Tooltips.ar.resx b/i18n/ar/Tooltips.ar.resx index ead567c0..2c67cd17 100644 --- a/i18n/ar/Tooltips.ar.resx +++ b/i18n/ar/Tooltips.ar.resx @@ -322,9 +322,11 @@ جلب الصور من بطاقة أو مجلد؛ ثم تظهر هنا عمليات الاستيراد والتحليل والتصيير رفع الأولوية: تعمل قبل المهام ذات الأولوية الأدنى فتح ما عملت عليه هذه المهمة + تعمل المهام واحدة تلو الأخرى؛ وتعالج المهمة الجارية هذا العدد من الصور في وقت واحد («الإعدادات › التصيير › التوازي») إيقاف مؤقت عند نقطة الاستئناف التالية؛ ويتابع زر «استئناف» من هناك إيقاف كل المهام الجارية مؤقتًا؛ وتحتفظ قائمة الانتظار بترتيبها إبقاء هذه المهمة في قائمة الانتظار حتى تستأنفها + قائمة انتظار الأولوية مفعّلة: المهمة ذات المستوى الأعلى توقف المهمة الجارية مؤقتًا، وتُستأنف الأخيرة تلقائيًا بعد ذلك («الإعدادات › التصيير») الإزالة من قائمة الانتظار؛ وتُلغى المهمة التوازي، وتفضيل العتاد، وميزانية الذاكرة إعادة المهمة إلى قائمة الانتظار؛ وتتابع من نقطة استئنافها @@ -338,7 +340,6 @@ متوقفة مؤقتًا؛ ويمكن متابعتها بزر «استئناف» من نقطة الاستئناف بانتظار وحدة تنفيذ على هذا الكمبيوتر تعمل الآن - المهام الجارية على هذا الكمبيوتر من أصل وحدات التنفيذ في محرك المهام فهرسة الصور الموجودة لديك في مكانها؛ اختر مجلدها الأعلى تحليل معمّق لكل إطار · يعمل كمهمة في الخلفية تحليل معمّق للتسلسلات المحددة · يعمل كمهمة واحدة @@ -574,6 +575,7 @@ تحميل الإعدادات من ملف JSON؛ وتبقى الجلسة وتخطيط النافذة على حالهما فتح صفحة Microsoft Store لهذا الملحق المجاني أو المدفوع؛ ثم استخدم «إعادة الكشف» بعد تثبيته عندما يكون Titano في المقدمة، تحظى واجهته بالأولوية على المهام لتبقى سلسة أثناء التصيير والتحليل + مستوى «{0}» في قائمة انتظار الأولوية: مهام المستوى الأعلى تعمل أولًا وتوقف مهام المستويات الأدنى مؤقتًا؛ ولا تقاطع المهام من المستوى نفسه بعضها بعضًا أبدًا إبقاء إعدادات هذا الأرشيف على حالها إبقاء ذاكرة التخزين المؤقت على حالها إبقاء الفهرس على حاله @@ -597,11 +599,15 @@ الخادم الافتراضي، وعقدة التصيير، والشهادات الموثوقة مجلد التخزين المؤقت، والصور المصغرة في الذاكرة، وحد التخزين المؤقت التحقق من التحديثات عند البدء + عدد الصور التي تعالجها المهمة الجارية في وقت واحد؛ وتعمل المهام واحدة تلو الأخرى. العدد الأقل يترك مجالًا أكبر للبرامج الأخرى · Enter للتطبيق، Esc للتراجع + تلقائي: نصف النوى المنطقية + العودة إلى «تلقائي»: نصف النوى المنطقية مدى تكرار إعادة Titano فحص الأرشيف بحثًا عن تغييرات أُجريت في مكان آخر، كالتي يُجريها خادم يتشاركه مفعّل عند وجود portable.txt بجانب Titano.exe: تبقى كل البيانات في مجلد البيانات الخاص به استخدام مرمّز عتادي عندما يدعم الإعداد المسبق، وإلا فالمرمّز البرمجي أول ثلاثة أسماء لاستيراد تجريبي بهذه القوالب العتاد للمعاينات، والترميز البرمجي لإعدادات الأرشفة المسبقة + مفعّلة: المهمة ذات المستوى الأعلى توقف المهمة الجارية مؤقتًا دون سؤال، وتُستأنف الأخيرة تلقائيًا بعد ذلك. متوقفة: تنتظر المهام دورها؛ أوقف المهمة الجارية مؤقتًا لبدء التالية الضلع الطويل للنسخ الوكيلة بتنسيق JPEG في هذا الأرشيف وللنسخ الجديدة؛ تحتفظ النسخ الوكيلة المُنشأة سابقًا بحجمها حتى يُعاد إنشاؤها «متوازن» يناسب معظم الأعمال؛ «الأفضل» يقيس بضعف الدقة ويقرأ مسبقًا لمسافة أبعد؛ «سريع» يقيس بنصف الدقة مع حركة تقريبية سرد المرمّزات مجددًا بعد تثبيت برنامج تشغيل أو برنامج ترميز @@ -629,9 +635,6 @@ يُفك ترميز كل بكسل لا توجد على هذا الكمبيوتر أداة فك ترميز تقرأ بكسلاته؛ وتُستبعد هذه الإطارات من التصيير إرسال إحصاء يومي مجهول للإصدارات واللغات المستخدمة؛ لا شيء غير ذلك، ومتوقف افتراضيًا - عدد المهام والإطارات التي تُعالَج في وقت واحد؛ العدد الأقل يترك مجالًا أكبر للبرامج الأخرى · Enter للتطبيق، Esc للتراجع - تلقائي: تعمل مهام بعدد نصف النوى المنطقية في وقت واحد، ولكل منها عددها الخاص من مؤشرات الترابط - العودة إلى «تلقائي»: نصف النوى المنطقية التثبيت في Program Files لكل الحسابات · يطلب موافقة المسؤول {0} · يعمل كخدمة Windows، لذا يُثبَّت لكل المستخدمين في Program Files العودة إلى الخيارات دون تغيير أي شيء diff --git a/i18n/bg/Admin.bg.resx b/i18n/bg/Admin.bg.resx index 4f3ad40c..25b4d872 100644 --- a/i18n/bg/Admin.bg.resx +++ b/i18n/bg/Admin.bg.resx @@ -92,8 +92,11 @@ от {0} онлайн оригинали {0} + {0} снимка наведнъж + {0} снимки наведнъж {0} снимка {0} снимки + Приоритетна опашка Опашка и история Отваря страницата „Задачи“ {0} на опашка @@ -107,8 +110,6 @@ Качвания · последните 30 дни {0} серия без прокси {0} серии без прокси - {0} обработчик - {0} обработчика Сървърът не отговори; опитайте отново. Присъединяване Задълбочен анализ @@ -279,6 +280,8 @@ Порт на API през TLS за клиентите на Titano История на задачите (дни) Брой дни, през които завършените задачи се пазят + Ниво на „{0}“ в приоритетната опашка: задачите с по-високо ниво се изпълняват първи и поставят на пауза по-ниските + Задачи Език Език на съобщенията на сървъра, когато клиентът не е поискал конкретен език Ограничения и съхранение @@ -286,8 +289,15 @@ Макс. файл (МБ) Най-голямото приемано единично качване Мрежа и TLS + Паралелизъм + Снимки, които изпълняваната задача обработва наведнъж; задачите се изпълняват една по една PEM файлът не е намерен; въведете пълния му път на сървъра. Използва се само в режим „Собствен сертификат“ + Висок + Нисък + Нормален + Приоритетна опашка + Включена: задача с по-високо ниво поставя на пауза изпълняваната, без да пита, а тя после се възобновява сама. Изключена: задачите чакат реда си Без прокси Режимът на TLS е „Обратен прокси сървър“, но тази страница не е дошла през доверен прокси сървър по HTTPS. Отворете я през вашия прокси сървър или добавете адреса му в TITANO_TRUSTED_PROXIES. Нужно е рестартиране @@ -308,8 +318,6 @@ Брой дни, през които клиентът остава влязъл, без да бъде използван Изоставено след (ч) Часове, след които незавършените качвания се изхвърлят - Обработчици - Брой задачи, които този сървър изпълнява едновременно Излизане Излизане от администраторския панел Превключва между светла и тъмна тема diff --git a/i18n/bg/Jobs.bg.resx b/i18n/bg/Jobs.bg.resx index 9592c3a4..b6e1890c 100644 --- a/i18n/bg/Jobs.bg.resx +++ b/i18n/bg/Jobs.bg.resx @@ -50,10 +50,14 @@ Проверка след {0} следваща + На пауза заради задача с по-висок приоритет ({0}); възобновява се сама Още няма редове в журнала Скриване на журнала Показване на журнала + {0} снимка наведнъж + {0} снимки наведнъж Пауза на всички + Приоритетна опашка Настройки на рендерирането {0} · {1} Търсене по обект или тип @@ -68,5 +72,4 @@ изпълнява се {0} · {1} този компютър - Обработчици {0} / {1} diff --git a/i18n/bg/Settings.bg.resx b/i18n/bg/Settings.bg.resx index b45611c5..5bbdc7ce 100644 --- a/i18n/bg/Settings.bg.resx +++ b/i18n/bg/Settings.bg.resx @@ -136,6 +136,11 @@ {0} fps · OK Предпочитане на хардуер Хардуер само за визуализации + Висок + Нисък + Нормален + Приоритетна опашка + Включена Профил на качеството Балансиран Най-добър diff --git a/i18n/bg/Tooltips.bg.resx b/i18n/bg/Tooltips.bg.resx index bce24b39..7d240c5f 100644 --- a/i18n/bg/Tooltips.bg.resx +++ b/i18n/bg/Tooltips.bg.resx @@ -320,9 +320,11 @@ Импортира снимки от карта или папка; след това импортиранията, анализите и рендериранията се показват тук Повишава приоритета: задачата се изпълнява преди задачите с по-нисък приоритет Отваря това, върху което е работила задачата + Задачите се изпълняват една по една; изпълняваната задача обработва толкова снимки наведнъж (Настройки › Рендериране › Паралелизъм) Спира временно при следващата контролна точка; „Възобновяване“ продължава оттам Поставя на пауза всички изпълнявани задачи; опашката запазва реда си Задържа тази задача в опашката, докато не я възобновите + Приоритетната опашка е включена: задача с по-високо ниво поставя на пауза изпълняваната, която после се възобновява сама (Настройки › Рендериране) Премахва от опашката; задачата се отменя Паралелизъм, предпочитание за хардуер, бюджет на паметта Връща задачата в опашката; тя продължава от контролната си точка @@ -336,7 +338,6 @@ На пауза; „Възобновяване“ продължава от контролната точка Чака свободен обработчик на този компютър Работи в момента - Задачи, изпълнявани на този компютър, спрямо броя на обработчиците Индексира снимките, които вече имате, на място; изберете горната им папка Задълбочен анализ на всеки кадър · изпълнява се като задача във фонов режим Задълбочен анализ на избраните серии · изпълнява се като една задача @@ -540,6 +541,7 @@ Зарежда настройки от JSON файл; сесията и подредбата на прозореца остават непроменени Отваря страницата в Microsoft Store на това безплатно или платено разширение; след инсталирането натиснете „Повторно откриване“ Докато Titano е на преден план, интерфейсът му има предимство пред задачите и остава плавен по време на рендериране и анализ + Ниво на „{0}“ в приоритетната опашка: задачите с по-високо ниво се изпълняват първи и поставят на пауза по-ниските; задачите от едно ниво никога не се прекъсват взаимно Оставя настройките на този архив непроменени Оставя кеша както е Оставя индекса непроменен @@ -563,11 +565,15 @@ Сървър по подразбиране, възел за рендериране, доверени сертификати Папка на кеша, миниатюри в паметта, лимит на кеша Проверка за актуализации при стартиране + Снимки, които изпълняваната задача обработва наведнъж; задачите се изпълняват една по една. По-малък брой оставя повече ресурси за другите програми · Enter прилага, Esc връща + Авто: половината от логическите ядра + Връщане към „Авто“: половината от логическите ядра Колко често Titano сканира отново архива за промени, направени другаде, например от сървър, който го споделя Включен, когато portable.txt е до Titano.exe: всички данни остават в неговата папка с данни Използва хардуерен кодер, когато някой поддържа пресета; иначе софтуерен Първите три имена от примерно импортиране с тези шаблони Хардуер за визуализациите, софтуер за архивните пресети + Включена: задача с по-високо ниво поставя на пауза изпълняваната, без да пита, а тя после се възобновява сама. Изключена: задачите чакат реда си; поставете изпълняваната задача на пауза, за да започне следващата Дългата страна на JPEG прокси файловете на този архив и на новите архиви; създадените по-рано прокси запазват размера си до преизграждането им „Балансиран“ е подходящ в повечето случаи; „Най-добър“ измерва при двойна резолюция и чете повече кадри напред; „Бърз“ измерва при половин резолюция с чернова на движението Изброява кодерите отново след инсталиране на драйвер или кодек @@ -595,9 +601,6 @@ Декодира се всеки пиксел Нито един декодер на този компютър не чете пикселите на този формат; такива кадри се изключват от рендерите Изпраща ежедневно анонимен брой на използваните версии и езици; нищо друго, изключено по подразбиране - Задачи и кадри, обработвани едновременно; по-малък брой оставя повече ресурси за другите програми · Enter прилага, Esc връща - Авто: половината от логическите ядра изпълняват задачи едновременно, всяка със собствен брой нишки - Връщане към „Авто“: половината от логическите ядра Инсталира в Program Files за всички акаунти · изисква одобрение от администратор {0} · работи като услуга на Windows, затова се инсталира за всички потребители в Program Files Връща към опциите, без да променя нищо diff --git a/i18n/cs/Admin.cs.resx b/i18n/cs/Admin.cs.resx index 32fe403a..d42bae0d 100644 --- a/i18n/cs/Admin.cs.resx +++ b/i18n/cs/Admin.cs.resx @@ -96,9 +96,13 @@ z {0} online originály {0} + {0} fotografie najednou + {0} fotografie najednou + {0} fotografií najednou {0} fotografie {0} fotografie {0} fotografií + Prioritní fronta Fronta a historie Otevře stránku Úlohy {0} ve frontě @@ -115,9 +119,6 @@ {0} sekvence bez proxy {0} sekvence bez proxy {0} sekvencí bez proxy - {0} pracovní procesy - {0} pracovní proces - {0} pracovních procesů Server neodpověděl; zkuste to znovu. Převzetí Hloubková analýza @@ -292,6 +293,8 @@ Port API přes TLS pro klienty Titano Historie úloh (dny) Počet dní, po které se dokončené úlohy uchovávají + Úroveň „{0}“ v prioritní frontě: vyšší úroveň běží dřív a pozastavuje nižší úrovně + Úlohy Jazyk Jazyk zpráv serveru, pokud klient žádný nevyžaduje Limity a uchovávání @@ -299,8 +302,15 @@ Max. soubor (MB) Největší přijatý jednotlivý soubor při nahrávání Síť a TLS + Paralelismus + Počet fotografií, které běžící úloha zpracovává najednou; úlohy běží jedna po druhé Soubor PEM nebyl nalezen; zadejte jeho úplnou cestu na serveru. Používá se jen v režimu Vlastní certifikát + Vysoká + Nízká + Normální + Prioritní fronta + Zapnutá: úloha vyšší úrovně bez dotazu pozastaví běžící úlohu a ta pak sama pokračuje. Vypnutá: úlohy čekají na své pořadí Mimo proxy Režim TLS je „Reverzní proxy“, ale tato stránka nepřišla přes důvěryhodnou proxy pomocí HTTPS. Otevřete ji přes svou proxy, nebo přidejte adresu proxy do TITANO_TRUSTED_PROXIES. Vyžaduje restart @@ -321,8 +331,6 @@ Počet dní, po které klient zůstane přihlášen, i když se nepoužívá Opuštěno po (h) Počet hodin, po kterých se nedokončená nahrávání zahodí - Pracovní procesy - Počet úloh, které tento server spouští současně Odhlásit se Odhlásí vás z panelu správy Přepne mezi světlým a tmavým motivem diff --git a/i18n/cs/Jobs.cs.resx b/i18n/cs/Jobs.cs.resx index 99df717c..9b37b1a4 100644 --- a/i18n/cs/Jobs.cs.resx +++ b/i18n/cs/Jobs.cs.resx @@ -51,10 +51,15 @@ Ověření před ní: {0} na řadě + Pozastaveno kvůli úloze s vyšší prioritou ({0}); bude pokračovat automaticky Zatím žádné řádky protokolu Skrýt protokol Zobrazit protokol + {0} fotografie najednou + {0} fotografie najednou + {0} fotografií najednou Pozastavit vše + Prioritní fronta Nastavení renderování {0} · {1} Hledat cíl nebo typ @@ -69,5 +74,4 @@ běží {0} · {1} tento počítač - Pracovní procesy {0} / {1} diff --git a/i18n/cs/Settings.cs.resx b/i18n/cs/Settings.cs.resx index 6dece63b..5606a99c 100644 --- a/i18n/cs/Settings.cs.resx +++ b/i18n/cs/Settings.cs.resx @@ -138,6 +138,11 @@ {0} fps · OK Upřednostnit hardware Hardware jen pro náhledy + Vysoká + Nízká + Normální + Prioritní fronta + Zapnutá Profil kvality Vyvážený Nejlepší diff --git a/i18n/cs/Tooltips.cs.resx b/i18n/cs/Tooltips.cs.resx index ac2cb226..12b26a0a 100644 --- a/i18n/cs/Tooltips.cs.resx +++ b/i18n/cs/Tooltips.cs.resx @@ -321,9 +321,11 @@ Importuje fotografie z karty nebo složky; importy, analýzy a rendery se pak zobrazí zde Zvýší prioritu: úloha poběží před úlohami s nižší prioritou Otevře to, na čem úloha pracovala + Úlohy běží jedna po druhé; běžící úloha zpracovává najednou tento počet fotografií (Nastavení › Renderování › Paralelismus) Pozastaví úlohu v dalším kontrolním bodě; tlačítko Pokračovat ji odtud obnoví Pozastaví všechny spuštěné úlohy; fronta si zachová pořadí Podrží tuto úlohu ve frontě, dokud ji neobnovíte + Prioritní fronta je zapnutá: úloha vyšší úrovně pozastaví běžící úlohu, která pak sama pokračuje (Nastavení › Renderování) Odebere úlohu z fronty; úloha se zruší Paralelismus, upřednostnění hardwaru, limit paměti Vrátí úlohu do fronty; bude pokračovat od svého kontrolního bodu @@ -337,7 +339,6 @@ Pozastaveno; tlačítko Pokračovat obnoví úlohu od kontrolního bodu Čeká na pracovní proces v tomto počítači Právě běží - Úlohy běžící v tomto počítači z celkového počtu pracovních procesů modulu úloh Zaindexuje fotografie, které už máte, na jejich místě; vyberte jejich nejvyšší složku Hloubková analýza každého snímku · běží jako úloha na pozadí Hloubková analýza vybraných sekvencí · běží jako jedna úloha @@ -557,6 +558,7 @@ Načte nastavení ze souboru JSON; relace a rozložení okna zůstanou beze změny Otevře stránku tohoto bezplatného nebo placeného rozšíření v Microsoft Store; po instalaci klikněte na Znovu zjistit Když je Titano v popředí, jeho rozhraní má přednost před úlohami, takže zůstává plynulé i během renderování a analýz + Úroveň „{0}“ v prioritní frontě: vyšší úroveň běží dřív a pozastavuje nižší úrovně; úlohy stejné úrovně se navzájem nikdy nepřerušují Ponechá nastavení tohoto archivu beze změny Ponechá mezipaměť beze změny Ponechá index beze změny @@ -580,11 +582,15 @@ Výchozí server, renderovací uzel, důvěryhodné certifikáty Složka mezipaměti, miniatury v paměti, limit mezipaměti Kontrola aktualizací při spuštění + Počet fotografií, které běžící úloha zpracovává najednou; úlohy běží jedna po druhé. Menší počet ponechá více prostoru jiným programům · Enter použije, Esc vrátí zpět + Auto: polovina logických jader + Zpět na Auto: polovina logických jader Jak často Titano znovu prohledává archiv kvůli změnám provedeným jinde, například serverem, který ho sdílí Zapnuto, když vedle souboru Titano.exe leží portable.txt: všechna data zůstávají v jeho datové složce Použije hardwarový kodér, pokud předvolbu podporuje; jinak softwarový První tři názvy ukázkového importu s těmito šablonami Hardware pro náhledy, software pro archivní předvolby + Zapnutá: úloha vyšší úrovně bez dotazu pozastaví běžící úlohu a ta pak sama pokračuje. Vypnutá: úlohy čekají na své pořadí; chcete-li spustit další, pozastavte běžící úlohu Delší strana JPEG proxy tohoto archivu a nových archivů; dříve vytvořené proxy si velikost ponechají, dokud se znovu nevytvoří Vyvážený vyhovuje většině práce; Nejlepší měří ve dvojnásobném rozlišení a načítá více snímků dopředu; Rychlý měří v polovičním rozlišení s hrubým odhadem pohybu Znovu vypíše kodéry po instalaci ovladače nebo kodeku @@ -612,9 +618,6 @@ Dekóduje se každý pixel Žádný dekodér v tomto počítači nepřečte jeho pixely; takové snímky se do renderů nezahrnou Jednou denně odešle anonymní počty používaných verzí a jazyků; nic jiného, ve výchozím nastavení vypnuto - Počet úloh a snímků zpracovávaných současně; menší počet ponechá více prostoru jiným programům · Enter použije, Esc vrátí zpět - Auto: současně běží tolik úloh, kolik je polovina logických jader, každá s vlastním počtem vláken - Zpět na Auto: polovina logických jader Nainstaluje do složky Program Files pro všechny účty · vyžaduje souhlas správce {0} · běží jako služba systému Windows, proto se instaluje pro všechny uživatele do složky Program Files Vrátí se k možnostem beze změn diff --git a/i18n/da/Admin.da.resx b/i18n/da/Admin.da.resx index 4e0b0271..7e9c99ef 100644 --- a/i18n/da/Admin.da.resx +++ b/i18n/da/Admin.da.resx @@ -92,8 +92,11 @@ af {0} online originaler {0} + {0} foto ad gangen + {0} fotos ad gangen {0} foto {0} fotos + Prioritetskø Kø og historik Åbn siden Job {0} i kø @@ -107,8 +110,6 @@ Uploads · seneste 30 dage {0} sekvens uden proxyer {0} sekvenser uden proxyer - {0} proces - {0} processer Serveren svarede ikke; prøv igen. Overtagelse Dybdeanalyse @@ -279,6 +280,8 @@ Port til API'et over TLS for Titano-klienter Jobhistorik (dage) Antal dage, som færdige job gemmes + Niveauet for »{0}« i prioritetskøen: et højere niveau kører først og sætter lavere niveauer på pause + Job Sprog Sproget i servermeddelelser, når en klient ikke beder om et bestemt sprog Grænser og opbevaring @@ -286,8 +289,15 @@ Maks. fil (MB) Den største enkeltupload, der accepteres Netværk og TLS + Parallelitet + Fotos, som det kørende job behandler samtidig; job kører ét ad gangen PEM-filen blev ikke fundet; angiv dens fulde sti på serveren. Bruges kun i tilstanden Eget certifikat + Høj + Lav + Normal + Prioritetskø + Når funktionen er slået til, sætter et job på et højere niveau det kørende job på pause uden at spørge, og det genoptages derefter af sig selv. Når funktionen er slået fra, venter job på deres tur Ikke via proxy TLS-tilstanden er Omvendt proxy, men denne side kom ikke via en betroet proxy over HTTPS. Åbn den via din proxy, eller føj proxyens adresse til TITANO_TRUSTED_PROXIES. Genstart påkrævet @@ -308,8 +318,6 @@ Antal dage, en klient forbliver logget på uden at blive brugt Opgivet efter (t) Antal timer, før ufærdige uploads kasseres - Processer - Antal job, som denne server kører på samme tid Log af Log af administrationspanelet Skift mellem lyst og mørkt tema diff --git a/i18n/da/Jobs.da.resx b/i18n/da/Jobs.da.resx index 1360e10c..3a37fdd5 100644 --- a/i18n/da/Jobs.da.resx +++ b/i18n/da/Jobs.da.resx @@ -50,10 +50,14 @@ Verificering efter {0} næste + Sat på pause for et job med højere prioritet ({0}); genoptages af sig selv Ingen loglinjer endnu Skjul log Vis log + {0} foto ad gangen + {0} fotos ad gangen Pause alle + Prioritetskø Renderingsindstillinger {0} · {1} Søg i mål eller type @@ -68,5 +72,4 @@ kører {0} · {1} denne pc - Processer {0} / {1} diff --git a/i18n/da/Settings.da.resx b/i18n/da/Settings.da.resx index a4b63bf6..5c99e519 100644 --- a/i18n/da/Settings.da.resx +++ b/i18n/da/Settings.da.resx @@ -136,6 +136,11 @@ {0} fps · ok Foretræk hardware Hardware kun til forhåndsvisning + Høj + Lav + Normal + Prioritetskø + Til Kvalitetsprofil Afbalanceret Bedst diff --git a/i18n/da/Tooltips.da.resx b/i18n/da/Tooltips.da.resx index a6b9339e..4ccbfbc3 100644 --- a/i18n/da/Tooltips.da.resx +++ b/i18n/da/Tooltips.da.resx @@ -320,9 +320,11 @@ Hent fotos ind fra et kort eller en mappe; importer, analyser og renderinger vises derefter her Hæv prioriteten: jobbet kører før job med lavere prioritet Åbn det, som dette job arbejdede på + Job kører ét ad gangen; det kørende job behandler dette antal fotos samtidig (Indstillinger › Rendering › Parallelitet) Sæt på pause ved næste kontrolpunkt; Genoptag fortsætter derfra Sæt alle kørende job på pause; køen bevarer sin rækkefølge Hold dette job i køen, indtil du genoptager det + Prioritetskøen er slået til: et job på et højere niveau sætter det kørende job på pause, og det genoptages derefter af sig selv (Indstillinger › Rendering) Fjern fra køen; jobbet annulleres Parallelitet, hardwarepræference, hukommelsesbudget Sæt jobbet tilbage i køen; det fortsætter fra sit kontrolpunkt @@ -336,7 +338,6 @@ På pause; Genoptag fortsætter fra kontrolpunktet Venter på en ledig proces på denne pc Arbejder nu - Job, der kører på denne pc, ud af jobmotorens processer Indekser fotos, du allerede har, hvor de ligger; vælg deres øverste mappe Dybdeanalyse af alle billeder · kører som et job i baggrunden Dybdeanalyse af de valgte sekvenser · kører som ét job @@ -540,6 +541,7 @@ Indlæs indstillinger fra en JSON-fil; sessionen og vindueslayoutet forbliver uændrede Åbn Microsoft Store-siden for denne gratis eller betalte udvidelse; klik på Find igen efter installationen Når Titano er i forgrunden, har brugerfladen forrang frem for jobbene, så den kører flydende under renderinger og analyser + Niveauet for »{0}« i prioritetskøen: et højere niveau kører først og sætter lavere niveauer på pause; job på samme niveau afbryder aldrig hinanden Lad dette arkivs indstillinger være, som de er Behold cachen, som den er Behold indekset, som det er @@ -563,11 +565,15 @@ Standardserver, renderingsnode, betroede certifikater Cachemappe, miniaturer i hukommelsen, cachegrænse Søg efter opdateringer ved start + Fotos, som det kørende job behandler samtidig; job kører ét ad gangen. Færre giver mere plads til andre programmer · Enter anvender, Esc fortryder + Auto: halvdelen af de logiske kerner + Tilbage til Auto: halvdelen af de logiske kerner Hvor ofte Titano scanner arkivet igen for ændringer foretaget andre steder, f.eks. af en server, der deler det Til, når portable.txt ligger ved siden af Titano.exe: alle data bliver i programmets datamappe Brug en hardwareencoder, når en understøtter forudindstillingen; ellers software De tre første navne fra en prøveimport med disse skabeloner Hardware til forhåndsvisninger, software til arkivforudindstillinger + Når funktionen er slået til, sætter et job på et højere niveau det kørende job på pause uden at spørge, og det genoptages derefter af sig selv. Når funktionen er slået fra, venter job på deres tur; sæt det kørende job på pause for at starte det næste Den lange side af JPEG-proxyerne i dette arkiv og i nye arkiver; proxyer, der allerede er bygget, beholder deres størrelse, indtil de genopbygges Afbalanceret passer til det meste; Bedst måler i dobbelt opløsning og læser længere frem; Hurtig måler i halv opløsning med flowkvaliteten Kladde Find encoderne igen efter installation af en driver eller et codec @@ -595,9 +601,6 @@ Alle pixel afkodes Ingen dekoder på denne pc kan læse formatets pixel; sådanne billeder udelades fra renderinger Send en daglig anonym optælling af versioner og sprog i brug; intet andet, slået fra som standard - Job og billeder, der behandles samtidig; færre giver mere plads til andre programmer · Enter anvender, Esc fortryder - Auto: halvdelen af de logiske kerner kører job samtidig, hver med sit eget antal tråde - Tilbage til Auto: halvdelen af de logiske kerner Installer i Program Files for alle konti · beder om administratorgodkendelse {0} · kører som en Windows-tjeneste og installeres derfor for alle brugere i Program Files Gå tilbage til valgmulighederne uden at ændre noget diff --git a/i18n/de/Admin.de.resx b/i18n/de/Admin.de.resx index 2cbed1d6..46b1748d 100644 --- a/i18n/de/Admin.de.resx +++ b/i18n/de/Admin.de.resx @@ -92,8 +92,11 @@ von {0} online Originale {0} + {0} Foto gleichzeitig + {0} Fotos gleichzeitig {0} Foto {0} Fotos + Prioritätswarteschlange Warteschlange und Verlauf Seite „Aufträge“ öffnen {0} in Warteschlange @@ -107,8 +110,6 @@ Uploads · letzte 30 Tage {0} Sequenz ohne Proxys {0} Sequenzen ohne Proxys - {0} Worker - {0} Worker Der Server hat nicht geantwortet; versuchen Sie es erneut. Einbindung Tiefenanalyse @@ -279,6 +280,8 @@ Port der API über TLS für Titano-Clients Auftragsverlauf (Tage) Anzahl Tage, die abgeschlossene Aufträge aufbewahrt werden + Stufe von „{0}“ in der Prioritätswarteschlange: Eine höhere Stufe läuft zuerst und hält niedrigere an + Aufträge Sprache Sprache der Servermeldungen, wenn ein Client keine angibt Limits und Aufbewahrung @@ -286,8 +289,15 @@ Max. Datei (MB) Größter angenommener Einzel-Upload Netzwerk und TLS + Parallelität + Fotos, die der laufende Auftrag gleichzeitig verarbeitet; Aufträge laufen nacheinander Die PEM-Datei wurde nicht gefunden; geben Sie ihren vollständigen Pfad auf dem Server ein. Nur im Modus „Eigenes Zertifikat“ verwendet + Hoch + Niedrig + Normal + Prioritätswarteschlange + Aktiviert: Ein Auftrag einer höheren Stufe hält den laufenden ohne Rückfrage an, und dieser wird danach von selbst fortgesetzt. Deaktiviert: Aufträge warten, bis sie an der Reihe sind Ohne Proxy Der TLS-Modus ist „Reverse-Proxy“, aber diese Seite wurde nicht über einen vertrauenswürdigen Proxy per HTTPS aufgerufen. Öffnen Sie sie über Ihren Proxy, oder fügen Sie die Adresse des Proxys zu TITANO_TRUSTED_PROXIES hinzu. Neustart erforderlich @@ -308,8 +318,6 @@ Tage, die ein Client ohne Nutzung angemeldet bleibt Verwerfen nach (h) Stunden, nach denen unvollständige Uploads verworfen werden - Worker - Aufträge, die dieser Server gleichzeitig ausführt Abmelden Vom Admin-Bereich abmelden Zwischen hellem und dunklem Design wechseln diff --git a/i18n/de/Jobs.de.resx b/i18n/de/Jobs.de.resx index 718819cd..1369b0f9 100644 --- a/i18n/de/Jobs.de.resx +++ b/i18n/de/Jobs.de.resx @@ -50,10 +50,14 @@ Prüfung nach {0} als Nächstes + Angehalten für einen Auftrag mit höherer Priorität ({0}); wird von selbst fortgesetzt Noch keine Protokollzeilen Protokoll ausblenden Protokoll einblenden + {0} Foto gleichzeitig + {0} Fotos gleichzeitig Alle anhalten + Prioritätswarteschlange Rendereinstellungen {0} · {1} Ziel oder Art suchen @@ -68,5 +72,4 @@ läuft {0} · {1} dieser PC - Worker {0} / {1} diff --git a/i18n/de/Settings.de.resx b/i18n/de/Settings.de.resx index afc09106..b9945a61 100644 --- a/i18n/de/Settings.de.resx +++ b/i18n/de/Settings.de.resx @@ -136,6 +136,11 @@ {0} fps · OK Hardware bevorzugen Hardware nur für Vorschauen + Hoch + Niedrig + Normal + Prioritätswarteschlange + Aktiviert Qualitätsprofil Ausgewogen Beste diff --git a/i18n/de/Tooltips.de.resx b/i18n/de/Tooltips.de.resx index 318da544..260044b0 100644 --- a/i18n/de/Tooltips.de.resx +++ b/i18n/de/Tooltips.de.resx @@ -320,9 +320,11 @@ Fotos von einer Karte oder aus einem Ordner importieren; Importe, Analysen und Renderings erscheinen dann hier Priorität erhöhen: Der Auftrag läuft vor Aufträgen mit niedrigerer Priorität Öffnen, woran dieser Auftrag gearbeitet hat + Aufträge laufen nacheinander; der laufende Auftrag verarbeitet so viele Fotos gleichzeitig (Einstellungen › Rendering › Parallelität) Beim nächsten Zwischenstand anhalten; „Fortsetzen“ macht dort weiter Alle laufenden Aufträge anhalten; die Warteschlange behält ihre Reihenfolge Diesen Auftrag in der Warteschlange zurückhalten, bis Sie ihn fortsetzen + Prioritätswarteschlange aktiviert: Ein Auftrag einer höheren Stufe hält den laufenden an, der danach von selbst fortgesetzt wird (Einstellungen › Rendering) Aus der Warteschlange entfernen; der Auftrag wird abgebrochen Parallelität, Hardwarepräferenz, Arbeitsspeicher-Budget Auftrag wieder in die Warteschlange stellen; er setzt ab seinem Zwischenstand fort @@ -336,7 +338,6 @@ Angehalten; „Fortsetzen“ macht ab dem Zwischenstand weiter Wartet auf einen Worker auf diesem PC Läuft gerade - Auf diesem PC laufende Aufträge im Verhältnis zu den Workern der Auftragsengine Bereits vorhandene Fotos an Ort und Stelle indizieren; wählen Sie ihren obersten Ordner Tiefenanalyse jedes Frames · läuft als Auftrag im Hintergrund Tiefenanalyse der ausgewählten Sequenzen · läuft als ein Auftrag @@ -540,6 +541,7 @@ Einstellungen aus einer JSON-Datei laden; Sitzung und Fensteranordnung bleiben unverändert Die Seite dieser kostenlosen oder kostenpflichtigen Erweiterung im Microsoft Store öffnen; nach der Installation „Neu erkennen“ wählen Solange Titano im Vordergrund ist, hat seine Oberfläche Vorrang vor den Aufträgen und bleibt so beim Rendern und Analysieren flüssig + Stufe von „{0}“ in der Prioritätswarteschlange: Eine höhere Stufe läuft zuerst und hält niedrigere an; Aufträge derselben Stufe unterbrechen sich nie gegenseitig Die Einstellungen dieses Archivs unverändert lassen Cache unverändert lassen Index unverändert lassen @@ -563,11 +565,15 @@ Standardserver, Render-Knoten, vertrauenswürdige Zertifikate Cache-Ordner, Miniaturansichten im Arbeitsspeicher, Cache-Limit Updateprüfung beim Start + Fotos, die der laufende Auftrag gleichzeitig verarbeitet; Aufträge laufen nacheinander. Weniger lassen anderen Programmen mehr Raum · Enter übernimmt, Esc macht rückgängig + Auto: die Hälfte der logischen Kerne + Zurück zu Auto: die Hälfte der logischen Kerne Wie oft Titano das Archiv erneut nach Änderungen scannt, die anderswo vorgenommen wurden, etwa von einem Server, der es mitbenutzt Aktiv, wenn portable.txt neben Titano.exe liegt: Alle Daten bleiben im Datenordner daneben Einen Hardware-Encoder verwenden, wenn einer die Vorgabe unterstützt, sonst Software Die ersten drei Namen eines Beispielimports mit diesen Vorlagen Hardware für Vorschauen, Software für Archivvorgaben + Aktiviert: Ein Auftrag einer höheren Stufe hält den laufenden ohne Rückfrage an, und dieser wird danach von selbst fortgesetzt. Deaktiviert: Aufträge warten, bis sie an der Reihe sind; halten Sie den laufenden Auftrag an, um den nächsten zu starten Lange Kante der JPEG-Proxys dieses Archivs und neuer Archive; zuvor erstellte Proxys behalten ihre Größe, bis sie neu erstellt werden „Ausgewogen“ passt für die meisten Arbeiten; „Beste“ misst mit doppelter Auflösung und liest weiter voraus; „Schnell“ misst mit halber Auflösung und Bewegung in Entwurfsqualität Encoder nach einer Treiber- oder Codec-Installation erneut auflisten @@ -595,9 +601,6 @@ Jedes Pixel wird dekodiert Kein Decoder auf diesem PC liest die Pixel; solche Frames werden beim Rendern ausgelassen Täglich eine anonyme Zählung der verwendeten Versionen und Sprachen senden; sonst nichts, standardmäßig aus - Gleichzeitig verarbeitete Aufträge und Frames; weniger lassen anderen Programmen mehr Raum · Enter übernimmt, Esc macht rückgängig - Auto: so viele gleichzeitige Aufträge wie die Hälfte der logischen Kerne, jeder mit eigener Anzahl von Threads - Zurück zu Auto: die Hälfte der logischen Kerne In „Programme“ für alle Konten installieren · erfordert Administratorgenehmigung {0} · läuft als Windows-Dienst und wird daher für alle Benutzer in „Programme“ installiert Ohne Änderungen zu den Optionen zurückkehren diff --git a/i18n/el/Admin.el.resx b/i18n/el/Admin.el.resx index b5e5cbe3..1952233d 100644 --- a/i18n/el/Admin.el.resx +++ b/i18n/el/Admin.el.resx @@ -92,8 +92,11 @@ από {0} σε σύνδεση πρωτότυπα {0} + {0} φωτογραφία τη φορά + {0} φωτογραφίες τη φορά {0} φωτογραφία {0} φωτογραφίες + Ουρά προτεραιότητας Ουρά και ιστορικό Άνοιγμα της σελίδας Εργασίες {0} στην ουρά @@ -107,8 +110,6 @@ Αποστολές · τελευταίες 30 ημέρες {0} ακολουθία χωρίς proxy {0} ακολουθίες χωρίς proxy - {0} εκτελεστής - {0} εκτελεστές Ο διακομιστής δεν απάντησε. Δοκιμάστε ξανά. Ενσωμάτωση Ανάλυση σε βάθος @@ -279,6 +280,8 @@ Θύρα του API μέσω TLS για τα προγράμματα-πελάτες Titano Ιστορικό εργασιών (ημέρες) Ημέρες διατήρησης των ολοκληρωμένων εργασιών + Επίπεδο για «{0}» στην ουρά προτεραιότητας: ένα υψηλότερο επίπεδο εκτελείται πρώτο και θέτει σε παύση τα χαμηλότερα + Εργασίες Γλώσσα Γλώσσα των μηνυμάτων του διακομιστή όταν ένα πρόγραμμα-πελάτης δεν ζητά καμία Όρια και διατήρηση @@ -286,8 +289,15 @@ Μέγ. αρχείο (MB) Το μεγαλύτερο μεμονωμένο αρχείο που γίνεται δεκτό σε μια αποστολή Δίκτυο και TLS + Παραλληλισμός + Φωτογραφίες που επεξεργάζεται ταυτόχρονα η εργασία σε εκτέλεση. Οι εργασίες εκτελούνται μία τη φορά Το αρχείο PEM δεν βρέθηκε. Εισαγάγετε την πλήρη διαδρομή του στον διακομιστή. Χρησιμοποιείται μόνο στη λειτουργία «Δικό σας πιστοποιητικό» + Υψηλή + Χαμηλή + Κανονική + Ουρά προτεραιότητας + Ενεργή: μια εργασία υψηλότερου επιπέδου θέτει σε παύση την εργασία σε εκτέλεση χωρίς ερώτηση, κι εκείνη συνεχίζει μόνη της μετά. Ανενεργή: οι εργασίες περιμένουν τη σειρά τους Όχι μέσω proxy Η λειτουργία TLS είναι «Μέσω reverse proxy», αλλά αυτή η σελίδα δεν ήρθε μέσω αξιόπιστου proxy με HTTPS. Ανοίξτε την μέσω του proxy σας ή προσθέστε τη διεύθυνση του proxy στο TITANO_TRUSTED_PROXIES. Απαιτείται επανεκκίνηση @@ -308,8 +318,6 @@ Ημέρες που ένα πρόγραμμα-πελάτης παραμένει συνδεδεμένο χωρίς να χρησιμοποιείται Εγκατάλειψη μετά (ώρες) Ώρες μετά τις οποίες απορρίπτονται οι ημιτελείς αποστολές - Εκτελεστές - Εργασίες που εκτελεί ταυτόχρονα αυτός ο διακομιστής Έξοδος Έξοδος από τον πίνακα διαχείρισης Εναλλαγή μεταξύ φωτεινού και σκοτεινού θέματος diff --git a/i18n/el/Jobs.el.resx b/i18n/el/Jobs.el.resx index fcf3a9c1..1976d691 100644 --- a/i18n/el/Jobs.el.resx +++ b/i18n/el/Jobs.el.resx @@ -50,10 +50,14 @@ Επαλήθευση μετά από {0} επόμενη + Σε παύση λόγω εργασίας υψηλότερης προτεραιότητας ({0}). Συνεχίζει μόνη της Καμία γραμμή καταγραφής ακόμη Απόκρυψη καταγραφής Εμφάνιση καταγραφής + {0} φωτογραφία τη φορά + {0} φωτογραφίες τη φορά Παύση όλων + Ουρά προτεραιότητας Ρυθμίσεις απόδοσης {0} · {1} Αναζήτηση στόχου ή είδους @@ -68,5 +72,4 @@ σε εκτέλεση {0} · {1} αυτός ο υπολογιστής - Εκτελεστές {0} / {1} diff --git a/i18n/el/Settings.el.resx b/i18n/el/Settings.el.resx index db031bd3..9220fa0e 100644 --- a/i18n/el/Settings.el.resx +++ b/i18n/el/Settings.el.resx @@ -136,6 +136,11 @@ {0} fps · OK Προτίμηση υλικού Υλικό μόνο για προεπισκοπήσεις + Υψηλή + Χαμηλή + Κανονική + Ουρά προτεραιότητας + Ενεργή Προφίλ ποιότητας Ισορροπημένο Βέλτιστο diff --git a/i18n/el/Tooltips.el.resx b/i18n/el/Tooltips.el.resx index 2b690a42..9cbd0ea6 100644 --- a/i18n/el/Tooltips.el.resx +++ b/i18n/el/Tooltips.el.resx @@ -320,9 +320,11 @@ Εισαγωγή φωτογραφιών από κάρτα ή φάκελο. Οι εισαγωγές, οι αναλύσεις και οι αποδόσεις εμφανίζονται στη συνέχεια εδώ Αύξηση της προτεραιότητας: εκτελείται πριν από εργασίες χαμηλότερης προτεραιότητας Άνοιγμα του αντικειμένου αυτής της εργασίας + Οι εργασίες εκτελούνται μία τη φορά. Η εργασία σε εκτέλεση επεξεργάζεται τόσες φωτογραφίες ταυτόχρονα (Ρυθμίσεις › Απόδοση › Παραλληλισμός) Παύση στο επόμενο σημείο συνέχισης. Με «Συνέχιση» συνεχίζει από εκεί Παύση όλων των εργασιών σε εκτέλεση. Η ουρά διατηρεί τη σειρά της Κράτηση αυτής της εργασίας στην ουρά μέχρι να τη συνεχίσετε + Ουρά προτεραιότητας ενεργή: μια εργασία υψηλότερου επιπέδου θέτει σε παύση την εργασία σε εκτέλεση, η οποία συνεχίζει μόνη της μετά (Ρυθμίσεις › Απόδοση) Αφαίρεση από την ουρά. Η εργασία ακυρώνεται Παραλληλισμός, προτίμηση υλικού, όριο μνήμης Επιστροφή της εργασίας στην ουρά. Συνεχίζει από το σημείο συνέχισής της @@ -336,7 +338,6 @@ Σε παύση. Με «Συνέχιση» συνεχίζει από το σημείο συνέχισης Σε αναμονή για εκτελεστή σε αυτόν τον υπολογιστή Εκτελείται τώρα - Εργασίες που εκτελούνται σε αυτόν τον υπολογιστή, σε σχέση με τους εκτελεστές της μηχανής εργασιών Καταχώριση στο ευρετήριο φωτογραφιών που έχετε ήδη, στη θέση τους. Επιλέξτε τον ανώτερο φάκελό τους Ανάλυση σε βάθος κάθε καρέ · εκτελείται ως εργασία στο παρασκήνιο Ανάλυση σε βάθος των επιλεγμένων ακολουθιών · εκτελείται ως μία εργασία @@ -540,6 +541,7 @@ Φόρτωση ρυθμίσεων από αρχείο JSON. Η περίοδος σύνδεσης και η διάταξη του παραθύρου παραμένουν ως έχουν Άνοιγμα της σελίδας του Microsoft Store για αυτήν τη δωρεάν ή επί πληρωμή επέκταση. Μετά την εγκατάσταση, πατήστε «Νέος εντοπισμός» Όταν το Titano είναι σε πρώτο πλάνο, το περιβάλλον εργασίας του έχει προτεραιότητα έναντι των εργασιών, ώστε να παραμένει ομαλό κατά τις αποδόσεις και τις αναλύσεις + Επίπεδο για «{0}» στην ουρά προτεραιότητας: ένα υψηλότερο επίπεδο εκτελείται πρώτο και θέτει σε παύση τα χαμηλότερα. Εργασίες του ίδιου επιπέδου δεν διακόπτουν ποτέ η μία την άλλη Διατήρηση των ρυθμίσεων αυτής της αρχειοθήκης ως έχουν Διατήρηση της κρυφής μνήμης ως έχει Διατήρηση του ευρετηρίου ως έχει @@ -563,11 +565,15 @@ Προεπιλεγμένος διακομιστής, κόμβος απόδοσης, αξιόπιστα πιστοποιητικά Φάκελος κρυφής μνήμης, μικρογραφίες στη μνήμη, όριο κρυφής μνήμης Έλεγχος για ενημερώσεις κατά την εκκίνηση + Φωτογραφίες που επεξεργάζεται ταυτόχρονα η εργασία σε εκτέλεση. Οι εργασίες εκτελούνται μία τη φορά. Λιγότερες αφήνουν περισσότερο χώρο σε άλλα προγράμματα · Enter για εφαρμογή, Esc για αναίρεση + Αυτόματο: οι μισοί λογικοί πυρήνες + Επαναφορά σε Αυτόματο: οι μισοί λογικοί πυρήνες Πόσο συχνά το Titano σαρώνει ξανά την αρχειοθήκη για αλλαγές που έγιναν αλλού, για παράδειγμα από έναν διακομιστή που τη μοιράζεται Ενεργή όταν το portable.txt βρίσκεται δίπλα στο Titano.exe: όλα τα δεδομένα μένουν στον φάκελο δεδομένων του Χρήση κωδικοποιητή υλικού όταν κάποιος υποστηρίζει την προρύθμιση, διαφορετικά κωδικοποιητή λογισμικού Τα τρία πρώτα ονόματα μιας δοκιμαστικής εισαγωγής με αυτά τα πρότυπα Υλικό για προεπισκοπήσεις, λογισμικό για προρυθμίσεις αρχειοθέτησης + Ενεργή: μια εργασία υψηλότερου επιπέδου θέτει σε παύση την εργασία σε εκτέλεση χωρίς ερώτηση, κι εκείνη συνεχίζει μόνη της μετά. Ανενεργή: οι εργασίες περιμένουν τη σειρά τους. Θέστε σε παύση την εργασία σε εκτέλεση για να ξεκινήσει η επόμενη Μεγάλη πλευρά των proxy JPEG αυτής της αρχειοθήκης και των νέων αρχειοθηκών. Τα proxy που δημιουργήθηκαν πριν διατηρούν το μέγεθός τους μέχρι να δημιουργηθούν ξανά Το «Ισορροπημένο» ταιριάζει στις περισσότερες εργασίες. Το «Βέλτιστο» μετρά σε διπλή ανάλυση και διαβάζει πιο μπροστά. Το «Γρήγορο» μετρά στη μισή ανάλυση με πρόχειρη εκτίμηση κίνησης Νέα καταγραφή των κωδικοποιητών μετά από εγκατάσταση προγράμματος οδήγησης ή codec @@ -595,9 +601,6 @@ Αποκωδικοποιείται κάθε pixel Κανένας αποκωδικοποιητής σε αυτόν τον υπολογιστή δεν διαβάζει τα pixel της. Αυτά τα καρέ εξαιρούνται από τις αποδόσεις Αποστολή ημερήσιων ανώνυμων στατιστικών για τις εκδόσεις και τις γλώσσες που χρησιμοποιούνται. Τίποτα άλλο, ανενεργό από προεπιλογή - Εργασίες και καρέ που επεξεργάζονται ταυτόχρονα. Λιγότερα αφήνουν περισσότερο χώρο σε άλλα προγράμματα · Enter για εφαρμογή, Esc για αναίρεση - Αυτόματο: τόσες ταυτόχρονες εργασίες όσοι οι μισοί λογικοί πυρήνες, η καθεμία με τον δικό της αριθμό νημάτων - Επαναφορά σε Αυτόματο: οι μισοί λογικοί πυρήνες Εγκατάσταση στο Program Files για όλους τους λογαριασμούς · ζητά έγκριση διαχειριστή {0} · εκτελείται ως υπηρεσία των Windows, οπότε εγκαθίσταται για όλους τους χρήστες στο Program Files Επιστροφή στις επιλογές χωρίς καμία αλλαγή diff --git a/i18n/en/Admin.resx b/i18n/en/Admin.resx index 677b4ffc..ea608fe8 100644 --- a/i18n/en/Admin.resx +++ b/i18n/en/Admin.resx @@ -92,8 +92,11 @@ of {0} online originals {0} + {0} photo at once + {0} photos at once {0} photo {0} photos + Priority queue Queue and history Open the Jobs page {0} queued @@ -107,8 +110,6 @@ Uploads · last 30 days {0} sequence without proxieslong {0} sequences without proxieslong - {0} worker - {0} workers The server did not answer; try again.long Adopt Deep analysis @@ -279,6 +280,8 @@ Port of the API over TLS for Titano clients Job history (days) Days finished jobs are kept + Level of “{0}” in the priority queue: a higher level runs first and pauses lower ones + Jobs Language Language of server messages when a client asks for none Limits and retention @@ -286,8 +289,15 @@ Max file (MB) Largest single upload accepted Network and TLS + Parallelism + Photos the running job processes at once; jobs run one at a time The PEM file was not found; enter its full path on the server.long Used only in Own certificate mode + High + Low + Normal + Priority queue + On: a job of a higher level pauses the running one without asking, and that one resumes by itself afterwards. Off: jobs wait their turn Not via proxy TLS mode is Reverse proxy, but this page did not come through a trusted proxy over HTTPS. Open it through your proxy, or add the proxy's address to TITANO_TRUSTED_PROXIES. Restart required @@ -308,8 +318,6 @@ Days a client stays signed in without being used Abandoned after (h) Hours after which unfinished uploads are discarded - Workers - Jobs this server runs at the same time Sign out Sign out of the admin panel Switch between light and dark diff --git a/i18n/en/Jobs.resx b/i18n/en/Jobs.resx index 53edb502..06bbcd5e 100644 --- a/i18n/en/Jobs.resx +++ b/i18n/en/Jobs.resx @@ -50,10 +50,14 @@ Verify after {0} next + Paused for a higher-priority job ({0}); resumes by itselflong: job log line No log lines yet Hide log Show log + {0} photo at once + {0} photos at once Pause all + Priority queue Rendering settings {0} · {1} {0}: {1}invariant @@ -71,5 +75,4 @@ {0} → {1}invariant; {0} sequence title; {1} export preset {0} ← {1}invariant; right-to-left languages: the arrow points from the sequence to the preset this PC - Workers {0} / {1} diff --git a/i18n/en/Settings.resx b/i18n/en/Settings.resx index d183a3f6..f9c63410 100644 --- a/i18n/en/Settings.resx +++ b/i18n/en/Settings.resx @@ -139,6 +139,11 @@ {0} fps · ok Prefer hardware Hardware for previews + High + Low + Normal + Priority queue + On Quality profile Balanced Best diff --git a/i18n/en/Tooltips.resx b/i18n/en/Tooltips.resx index ffd83e9b..6b846e8f 100644 --- a/i18n/en/Tooltips.resx +++ b/i18n/en/Tooltips.resx @@ -320,9 +320,11 @@ Bring photos in from a card or a folder; imports, analyses and renders then show up here Raise the priority: it runs before jobs of lower priority Open what this job worked on + Jobs run one at a time; the running job processes this many photos at once (Settings › Rendering › Parallelism) Pause at the next checkpoint; Resume continues from there Pause every running job; the queue keeps its order Hold this job in the queue until you resume it + Priority queue on: a job of a higher level pauses the running one, which resumes by itself afterwards (Settings › Rendering) Remove from the queue; the job is cancelled Parallelism, hardware preference, memory budget Put the job back in the queue; it continues from its checkpoint @@ -336,7 +338,6 @@ Paused; Resume continues from the checkpoint Waiting for a worker on this PC Working now - Jobs running on this PC out of the job engine's workers Index photos you already have, in place; choose their top folder Deep analysis of every frame · runs as a job in the background Deep analysis of the selected sequences · runs as one job @@ -540,6 +541,7 @@ Load settings from a JSON file; the session and the window layout stay as they are Open the Microsoft Store page of this free or paid extension; Re-detect after installing it While Titano is in front, its interface runs ahead of the jobs so it stays fluid during renders and analyses + Level of “{0}” in the priority queue: a higher level runs first and pauses lower ones; jobs of the same level never interrupt each other Leave this archive's settings as they are Keep the cache as it is Keep the index as it is @@ -563,11 +565,15 @@ Default server, render node, trusted certificates Cache folder, thumbnails in memory, cache limit Update check on start + Photos the running job processes at once; jobs run one at a time. Fewer leave more room to other programs · Enter applies, Esc reverts + Auto: half the logical cores + Back to Auto: half the logical cores How often Titano rescans the archive for changes made elsewhere, such as by a server sharing it On when portable.txt sits next to Titano.exe: all data stays in its data folder Use a hardware encoder when one supports the preset; software otherwise First three names of a sample import with these templates Hardware for previews, software for archive presets + On: a job of a higher level pauses the running one without asking, and that one resumes by itself afterwards. Off: jobs wait their turn; pause the running job to start the next Long edge of the JPEG proxies of this archive and of new ones; proxies built before keep their size until rebuilt Balanced suits most work; Best measures at double resolution and reads further ahead; Fast measures at half resolution with draft motion List the encoders again after a driver or codec install @@ -595,9 +601,6 @@ Every pixel is decoded No decoder on this PC reads its pixels; such frames are left out of renders Send a daily anonymous count of versions and languages in use; nothing else, off by default - Jobs and frames processed at once; fewer leave more room to other programs · Enter applies, Esc reverts - Auto: half the logical cores run jobs at once, each with its own number of threads - Back to Auto: half the logical cores Install in Program Files for every account · asks for administrator approval {0} · it runs as a Windows service, so it installs for all users in Program Files Return to the options without changing anything diff --git a/i18n/es/Admin.es.resx b/i18n/es/Admin.es.resx index 67aa9467..ace8383e 100644 --- a/i18n/es/Admin.es.resx +++ b/i18n/es/Admin.es.resx @@ -92,8 +92,11 @@ de {0} en línea originales {0} + {0} foto a la vez + {0} fotos a la vez {0} foto {0} fotos + Cola de prioridad Cola e historial Abre la página Tareas {0} en cola @@ -107,8 +110,6 @@ Subidas · últimos 30 días {0} secuencia sin proxies {0} secuencias sin proxies - {0} ejecutor - {0} ejecutores El servidor no respondió; inténtalo de nuevo. Incorporación Análisis profundo @@ -279,6 +280,8 @@ Puerto de la API por TLS para los clientes de Titano Historial de tareas (días) Días que se conservan las tareas terminadas + Nivel de «{0}» en la cola de prioridad: un nivel superior se ejecuta primero y pausa los inferiores + Tareas Idioma Idioma de los mensajes del servidor cuando un cliente no pide ninguno Límites y retención @@ -286,8 +289,15 @@ Archivo máx. (MB) Tamaño máximo aceptado para una sola subida Red y TLS + Paralelismo + Fotos que la tarea en curso procesa a la vez; las tareas se ejecutan de una en una No se encontró el archivo PEM; escribe su ruta completa en el servidor. Solo se usa en el modo Certificado propio + Alta + Baja + Normal + Cola de prioridad + Activada: una tarea de nivel superior pausa la que está en curso sin preguntar, y esta se reanuda sola después. Desactivada: las tareas esperan su turno Sin proxy El modo TLS es Proxy inverso, pero esta página no llegó a través de un proxy de confianza por HTTPS. Ábrela a través de tu proxy o añade la dirección del proxy a TITANO_TRUSTED_PROXIES. Reinicio necesario @@ -308,8 +318,6 @@ Días que un cliente mantiene la sesión iniciada sin usarse Abandonadas tras (h) Horas tras las cuales se descartan las subidas sin terminar - Ejecutores - Tareas que este servidor ejecuta a la vez Cerrar sesión Cierra la sesión del panel de administración Cambia entre el tema claro y el oscuro diff --git a/i18n/es/Jobs.es.resx b/i18n/es/Jobs.es.resx index 62d39822..1c2d1d30 100644 --- a/i18n/es/Jobs.es.resx +++ b/i18n/es/Jobs.es.resx @@ -50,10 +50,14 @@ Verificación tras {0} siguiente + En pausa por una tarea de mayor prioridad ({0}); se reanuda sola Aún no hay líneas de registro Ocultar registro Mostrar registro + {0} foto a la vez + {0} fotos a la vez Pausar todas + Cola de prioridad Configuración de renderizado {0} · {1} Buscar elemento o tipo @@ -68,5 +72,4 @@ en curso {0} · {1} este equipo - Ejecutores {0} / {1} diff --git a/i18n/es/Settings.es.resx b/i18n/es/Settings.es.resx index dde224d6..047fe9fc 100644 --- a/i18n/es/Settings.es.resx +++ b/i18n/es/Settings.es.resx @@ -136,6 +136,11 @@ {0} fps · correcta Preferir hardware Hardware solo para vistas previas + Alta + Baja + Normal + Cola de prioridad + Activada Perfil de calidad Equilibrado Óptimo diff --git a/i18n/es/Tooltips.es.resx b/i18n/es/Tooltips.es.resx index 828cb243..b1f567b4 100644 --- a/i18n/es/Tooltips.es.resx +++ b/i18n/es/Tooltips.es.resx @@ -320,9 +320,11 @@ Importa fotos de una tarjeta o una carpeta; las importaciones, los análisis y los renderizados aparecerán aquí Sube la prioridad: se ejecuta antes que las tareas de menor prioridad Abre aquello en lo que trabajó esta tarea + Las tareas se ejecutan de una en una; la tarea en curso procesa este número de fotos a la vez (Configuración › Renderizado › Paralelismo) Pausa la tarea en el siguiente punto de reanudación; Reanudar continúa desde ahí Pausa todas las tareas en curso; la cola mantiene su orden Retiene esta tarea en la cola hasta que la reanudes + Cola de prioridad activada: una tarea de nivel superior pausa la que está en curso, que luego se reanuda sola (Configuración › Renderizado) Quita la tarea de la cola; la tarea se cancela Paralelismo, preferencia de hardware, memoria asignada Devuelve la tarea a la cola; continúa desde su punto de reanudación @@ -336,7 +338,6 @@ En pausa; Reanudar continúa desde el punto de reanudación Esperando a un ejecutor en este equipo En ejecución ahora - Tareas en ejecución en este equipo sobre el total de ejecutores del motor de tareas Indexa en su sitio las fotos que ya tienes; elige su carpeta superior Análisis profundo de cada fotograma · se ejecuta como tarea en segundo plano Análisis profundo de las secuencias seleccionadas · se ejecuta como una sola tarea @@ -540,6 +541,7 @@ Carga la configuración desde un archivo JSON; la sesión y la disposición de la ventana no cambian Abre la página de Microsoft Store de esta extensión gratuita o de pago; después de instalarla, pulsa Volver a detectar Mientras Titano está en primer plano, su interfaz tiene prioridad sobre las tareas para seguir fluida durante los renderizados y análisis + Nivel de «{0}» en la cola de prioridad: un nivel superior se ejecuta primero y pausa los inferiores; las tareas del mismo nivel nunca se interrumpen entre sí Deja la configuración de esta fototeca como está Deja la caché como está Deja el índice como está @@ -563,11 +565,15 @@ Servidor predeterminado, nodo de renderizado, certificados de confianza Carpeta de caché, miniaturas en memoria, límite de caché Búsqueda de actualizaciones al iniciar + Fotos que la tarea en curso procesa a la vez; las tareas se ejecutan de una en una. Cuantas menos, más margen queda para otros programas · Enter aplica, Esc revierte + Auto: la mitad de los núcleos lógicos + Volver a Auto: la mitad de los núcleos lógicos Con qué frecuencia Titano vuelve a escanear la fototeca en busca de cambios hechos en otro lugar, por ejemplo por un servidor que la comparte Activado cuando portable.txt está junto a Titano.exe: todos los datos se quedan en su carpeta de datos Usa un codificador por hardware cuando alguno admite el preajuste; si no, por software Primeros tres nombres de una importación de ejemplo con estas plantillas Hardware para las vistas previas y software para los preajustes de archivado + Activada: una tarea de nivel superior pausa la que está en curso sin preguntar, y esta se reanuda sola después. Desactivada: las tareas esperan su turno; pausa la tarea en curso para iniciar la siguiente Lado largo de los proxies JPEG de esta fototeca y de las fototecas nuevas; los proxies ya generados conservan su tamaño hasta que se regeneran Equilibrado sirve para casi todo; Óptimo mide a doble resolución y lee más fotogramas por adelantado; Rápido mide a media resolución con movimiento en borrador Vuelve a listar los codificadores tras instalar un controlador o un códec @@ -595,9 +601,6 @@ Se decodifican todos los píxeles Ningún decodificador de este equipo lee sus píxeles; esos fotogramas quedan fuera de los renderizados Envía cada día un recuento anónimo de las versiones e idiomas en uso; nada más, desactivado de forma predeterminada - Tareas y fotogramas que se procesan a la vez; cuantos menos, más margen queda para otros programas · Enter aplica, Esc revierte - Auto: la mitad de los núcleos lógicos ejecutan tareas a la vez, cada una con su propio número de hilos - Volver a Auto: la mitad de los núcleos lógicos Instala en Archivos de programa para todas las cuentas · pide aprobación de administrador {0} · se ejecuta como servicio de Windows, así que se instala para todos los usuarios en Archivos de programa Vuelve a las opciones sin cambiar nada diff --git a/i18n/et/Admin.et.resx b/i18n/et/Admin.et.resx index 02d978ac..cdf53183 100644 --- a/i18n/et/Admin.et.resx +++ b/i18n/et/Admin.et.resx @@ -92,8 +92,11 @@ / {0} võrgus originaalid {0} + {0} foto korraga + {0} fotot korraga {0} foto {0} fotot + Prioriteedijärjekord Järjekord ja ajalugu Avage tööde leht {0} järjekorras @@ -107,8 +110,6 @@ Üleslaadimised · viimased 30 päeva {0} jada proksideta {0} jada proksideta - {0} töölõim - {0} töölõime Server ei vastanud; proovige uuesti. Ülevõtmine Süvaanalüüs @@ -279,6 +280,8 @@ Titano klientide API port TLS-i kaudu Tööde ajalugu (päevi) Mitu päeva lõpetatud töid säilitatakse + Tööliigi „{0}“ tase prioriteedijärjekorras: kõrgem tase käivitub esimesena ja peatab madalamad + Tööd Keel Serveri teadete keel, kui klient keelt ei määra Piirangud ja säilitamine @@ -286,8 +289,15 @@ Maks. fail (MB) Suurim vastuvõetav üksikfail Võrk ja TLS + Paralleelsus + Fotod, mida käimasolev töö korraga töötleb; tööd käivad ükshaaval PEM-faili ei leitud; sisestage selle täielik tee serveris. Kasutatakse ainult režiimis „Oma sertifikaat“ + Kõrge + Madal + Tavaline + Prioriteedijärjekord + Sees: kõrgema taseme töö peatab käimasoleva töö küsimata ja see jätkub hiljem iseenesest. Väljas: tööd ootavad oma korda Pole puhverserveri kaudu TLS-režiim on „Pöördpuhverserver“, kuid seda lehte ei edastatud usaldusväärse puhverserveri vahendusel HTTPS-i kaudu. Avage leht oma puhverserveri kaudu või lisage puhverserveri aadress muutujasse TITANO_TRUSTED_PROXIES. Vajab taaskäivitust @@ -308,8 +318,6 @@ Mitu päeva jääb kasutamata klient sisselogituks Hüljatakse pärast (h) Mitme tunni pärast lõpetamata üleslaadimised kustutatakse - Töölõimed - Mitu tööd see server korraga käitab Logi välja Logige halduspaneelist välja Lülitage heleda ja tumeda kujunduse vahel diff --git a/i18n/et/Jobs.et.resx b/i18n/et/Jobs.et.resx index 58d39411..9e9d72d4 100644 --- a/i18n/et/Jobs.et.resx +++ b/i18n/et/Jobs.et.resx @@ -50,10 +50,14 @@ Kontrollimine pärast {0} tööd järgmine + Peatatud kõrgema prioriteediga töö tõttu ({0}); jätkub iseenesest Logiridu veel pole Peida logi Kuva logi + {0} foto korraga + {0} fotot korraga Peata kõik + Prioriteedijärjekord Renderdussätted {0} · {1} Otsi objekti või liiki @@ -68,5 +72,4 @@ käimas {0} · {1} see arvuti - Töölõimed {0} / {1} diff --git a/i18n/et/Settings.et.resx b/i18n/et/Settings.et.resx index 944fd8df..2c4cac78 100644 --- a/i18n/et/Settings.et.resx +++ b/i18n/et/Settings.et.resx @@ -136,6 +136,11 @@ {0} fps · OK Eelista riistvara Riistvara ainult eelvaadeteks + Kõrge + Madal + Tavaline + Prioriteedijärjekord + Sees Kvaliteediprofiil Tasakaalustatud Parim diff --git a/i18n/et/Tooltips.et.resx b/i18n/et/Tooltips.et.resx index db98fcbb..802bdd1c 100644 --- a/i18n/et/Tooltips.et.resx +++ b/i18n/et/Tooltips.et.resx @@ -320,9 +320,11 @@ Tooge fotod kaardilt või kaustast; impordid, analüüsid ja renderdused ilmuvad seejärel siia Tõstke prioriteeti: töö käivitub enne madalama prioriteediga töid Avage see, millega töö tegeles + Tööd käivad ükshaaval; käimasolev töö töötleb korraga nii palju fotosid (Sätted › Renderdamine › Paralleelsus) Peatage järgmises jätkamispunktis; „Jätka“ jätkab sealt Peatage kõik käimasolevad tööd; järjekord säilitab oma järjestuse Hoidke seda tööd järjekorras, kuni selle jätkate + Prioriteedijärjekord on sees: kõrgema taseme töö peatab käimasoleva töö, mis jätkub hiljem iseenesest (Sätted › Renderdamine) Eemaldage järjekorrast; töö tühistatakse Paralleelsus, riistvara eelistus, mälueelarve Pange töö tagasi järjekorda; see jätkub oma jätkamispunktist @@ -336,7 +338,6 @@ Peatatud; „Jätka“ jätkab jätkamispunktist Ootab selles arvutis vaba töölõime Praegu töös - Selles arvutis käimasolevad tööd tööde mootori töölõimede koguarvust Indekseerige olemasolevad fotod nende praeguses asukohas; valige nende ülemkaust Iga kaadri süvaanalüüs · käib taustal tööna Valitud jadade süvaanalüüs · käib ühe tööna @@ -540,6 +541,7 @@ Laadige sätted JSON-failist; seanss ja akende paigutus jäävad muutmata Avage selle tasuta või tasulise laienduse Microsoft Store'i leht; pärast installimist valige „Tuvasta uuesti“ Kui Titano on esiplaanil, eelistatakse selle liidest töödele, nii et see püsib renderdamise ja analüüsi ajal sujuv + Tööliigi „{0}“ tase prioriteedijärjekorras: kõrgem tase käivitub esimesena ja peatab madalamad; sama taseme tööd ei katkesta kunagi üksteist Jätke selle arhiivi sätted nii, nagu on Jätke vahemälu nii, nagu on Jätke indeks nii, nagu on @@ -563,11 +565,15 @@ Vaikeserver, renderdussõlm, usaldatud sertifikaadid Vahemälu kaust, pisipildid mälus, vahemälu piirang Värskenduste otsimine käivitamisel + Fotod, mida käimasolev töö korraga töötleb; tööd käivad ükshaaval. Väiksem arv jätab teistele programmidele rohkem ruumi · Enter rakendab, Esc taastab + Auto: pool loogilistest tuumadest + Tagasi režiimile Auto: pool loogilistest tuumadest Kui tihti Titano skannib arhiivi uuesti, et leida mujal (näiteks arhiivi jagavas serveris) tehtud muudatusi Sees, kui portable.txt asub Titano.exe kõrval: kõik andmed jäävad selle andmekausta Kasutab riistvarakodeerijat, kui see toetab eelseadistust; muul juhul tarkvara Nende mallidega näidisimpordi kolm esimest nime Riistvara eelvaadeteks, tarkvara arhiivi eelseadistusteks + Sees: kõrgema taseme töö peatab käimasoleva töö küsimata ja see jätkub hiljem iseenesest. Väljas: tööd ootavad oma korda; järgmise käivitamiseks peatage käimasolev töö Selle arhiivi ja uute arhiivide JPEG-prokside pikem külg; varem loodud proksid säilitavad oma suuruse, kuni need uuesti luuakse Tasakaalustatud sobib enamikul juhtudel; Parim mõõdab kahekordse eraldusvõimega ja loeb kaugemale ette; Kiire mõõdab poole eraldusvõimega ja liikumise ligikaudse hinnanguga Loetlege kodeerijad uuesti pärast draiveri või koodeki installimist @@ -595,9 +601,6 @@ Iga piksel dekodeeritakse Ükski selle arvuti dekodeerija ei loe selle piksleid; sellised kaadrid jäetakse renderdustest välja Saadab kord päevas anonüümse kasutusel olevate versioonide ja keelte arvu; mitte midagi muud, vaikimisi väljas - Korraga töödeldavad tööd ja kaadrid; väiksem arv jätab teistele programmidele rohkem ruumi · Enter rakendab, Esc taastab - Auto: pool loogilistest tuumadest käitab töid korraga, igaüks oma lõimede arvuga - Tagasi režiimile Auto: pool loogilistest tuumadest Installib kausta Program Files kõigile kontodele · küsib administraatori kinnitust {0} · töötab Windowsi teenusena, seega installitakse see kõigile kasutajatele kausta Program Files Naaske suvandite juurde midagi muutmata diff --git a/i18n/fi/Admin.fi.resx b/i18n/fi/Admin.fi.resx index e7974102..5d5c50d3 100644 --- a/i18n/fi/Admin.fi.resx +++ b/i18n/fi/Admin.fi.resx @@ -92,8 +92,11 @@ / {0} verkossa alkuperäiset {0} + {0} kuva kerrallaan + {0} kuvaa kerrallaan {0} kuva {0} kuvaa + Prioriteettijono Jono ja historia Avaa Työt-sivu {0} jonossa @@ -107,8 +110,6 @@ Lähetykset · 30 päivää {0} sarja ilman proxyja {0} sarjaa ilman proxyja - {0} suorittaja - {0} suorittajaa Palvelin ei vastannut; yritä uudelleen. Sisällytys Syväanalyysi @@ -279,6 +280,8 @@ TLS-suojatun API:n portti Titano-asiakasohjelmille Työhistoria (päivää) Montako päivää valmiit työt säilytetään + Työn ”{0}” taso prioriteettijonossa: korkeampi taso suoritetaan ensin ja keskeyttää alemmat + Työt Kieli Palvelimen viestien kieli, kun asiakasohjelma ei pyydä mitään kieltä Rajat ja säilytys @@ -286,8 +289,15 @@ Tiedosto enint. (Mt) Suurin hyväksytty yksittäinen lähetys Verkko ja TLS + Rinnakkaisuus + Kuvat, jotka käynnissä oleva työ käsittelee samanaikaisesti; työt suoritetaan yksi kerrallaan PEM-tiedostoa ei löytynyt; anna sen koko polku palvelimella. Käytetään vain Oma varmenne -tilassa + Korkea + Matala + Normaali + Prioriteettijono + Päällä: korkeamman tason työ keskeyttää käynnissä olevan työn kysymättä, ja se jatkuu sen jälkeen itsestään. Pois: työt odottavat vuoroaan Ei välityspalvelimen kautta TLS-tila on Käänteinen välityspalvelin, mutta tämä sivu ei tullut luotetun välityspalvelimen kautta HTTPS-yhteydellä. Avaa sivu välityspalvelimesi kautta tai lisää välityspalvelimen osoite muuttujaan TITANO_TRUSTED_PROXIES. Uudelleenkäynnistys tarvitaan @@ -308,8 +318,6 @@ Montako päivää asiakasohjelma pysyy kirjautuneena, jos sitä ei käytetä Hylkäysaika (h) Tuntimäärä, jonka jälkeen keskeneräiset lähetykset hylätään - Suorittajat - Montako työtä tämä palvelin suorittaa samanaikaisesti Kirjaudu ulos Kirjaudu ulos hallintapaneelista Vaihda vaalean ja tumman teeman välillä diff --git a/i18n/fi/Jobs.fi.resx b/i18n/fi/Jobs.fi.resx index 6217b882..e7c3a583 100644 --- a/i18n/fi/Jobs.fi.resx +++ b/i18n/fi/Jobs.fi.resx @@ -50,10 +50,14 @@ Tarkistus {0} työn jälkeen seuraavana + Keskeytetty korkeamman prioriteetin työn vuoksi ({0}); jatkuu itsestään Ei vielä lokirivejä Piilota loki Näytä loki + {0} kuva kerrallaan + {0} kuvaa kerrallaan Keskeytä kaikki + Prioriteettijono Renderöintiasetukset {0} · {1} Hae kohdetta tai tyyppiä @@ -68,5 +72,4 @@ käynnissä {0} · {1} tämä tietokone - Suorittajat {0} / {1} diff --git a/i18n/fi/Settings.fi.resx b/i18n/fi/Settings.fi.resx index fdb74ce4..9a59d6cc 100644 --- a/i18n/fi/Settings.fi.resx +++ b/i18n/fi/Settings.fi.resx @@ -136,6 +136,11 @@ {0} fps · ok Suosi laitteistoa Laitteisto vain esikatseluun + Korkea + Matala + Normaali + Prioriteettijono + Päällä Laatuprofiili Tasapainoinen Paras diff --git a/i18n/fi/Tooltips.fi.resx b/i18n/fi/Tooltips.fi.resx index 7c7527d0..d5a200a6 100644 --- a/i18n/fi/Tooltips.fi.resx +++ b/i18n/fi/Tooltips.fi.resx @@ -320,9 +320,11 @@ Tuo kuvia kortilta tai kansiosta; tuonnit, analyysit ja renderöinnit näkyvät sitten täällä Nosta prioriteettia: työ suoritetaan ennen alemman prioriteetin töitä Avaa kohde, jota tämä työ käsitteli + Työt suoritetaan yksi kerrallaan; käynnissä oleva työ käsittelee näin monta kuvaa samanaikaisesti (Asetukset › Renderöinti › Rinnakkaisuus) Keskeytä seuraavassa jatkamiskohdassa; ”Jatka” jatkaa siitä Keskeytä kaikki käynnissä olevat työt; jono säilyttää järjestyksensä Pidä tämä työ jonossa, kunnes jatkat sitä + Prioriteettijono päällä: korkeamman tason työ keskeyttää käynnissä olevan työn, joka jatkuu sen jälkeen itsestään (Asetukset › Renderöinti) Poista jonosta; työ perutaan Rinnakkaisuus, laitteistovalinta, muistibudjetti Palauta työ jonoon; se jatkaa jatkamiskohdastaan @@ -336,7 +338,6 @@ Keskeytetty; ”Jatka” jatkaa jatkamiskohdasta Odottaa vapaata suorittajaa tällä tietokoneella Käynnissä nyt - Tällä tietokoneella käynnissä olevat työt suhteessa työmoottorin suorittajiin Indeksoi jo olemassa olevat kuvasi paikallaan; valitse niiden ylin kansio Jokaisen kuvan syväanalyysi · suoritetaan työnä taustalla Valittujen sarjojen syväanalyysi · suoritetaan yhtenä työnä @@ -540,6 +541,7 @@ Tuo asetukset JSON-tiedostosta; istunto ja ikkunoiden asettelu pysyvät ennallaan Avaa tämän ilmaisen tai maksullisen laajennuksen Microsoft Store -sivu; valitse asennuksen jälkeen ”Tunnista uudelleen” Kun Titano on edustalla, sen käyttöliittymä on etusijalla töihin nähden, joten se pysyy sujuvana renderöintien ja analyysien aikana + Työn ”{0}” taso prioriteettijonossa: korkeampi taso suoritetaan ensin ja keskeyttää alemmat; saman tason työt eivät koskaan keskeytä toisiaan Jätä tämän arkiston asetukset ennalleen Säilytä välimuisti sellaisenaan Säilytä indeksi sellaisenaan @@ -563,11 +565,15 @@ Oletuspalvelin, renderöintisolmu, luotetut varmenteet Välimuistikansio, pikkukuvat muistissa, välimuistin raja Päivitysten tarkistus käynnistettäessä + Kuvat, jotka käynnissä oleva työ käsittelee samanaikaisesti; työt suoritetaan yksi kerrallaan. Pienempi määrä jättää enemmän tilaa muille ohjelmille · Enter ottaa käyttöön, Esc palauttaa + Automaattinen: puolet loogisista ytimistä + Palauta automaattinen: puolet loogisista ytimistä Kuinka usein Titano skannaa arkiston uudelleen muualla (esimerkiksi arkistoa jakavalla palvelimella) tehtyjen muutosten varalta Käytössä, kun portable.txt on Titano.exe-tiedoston vieressä: kaikki tiedot pysyvät sen datakansiossa Käytä laitteistokooderia, kun jokin tukee esiasetusta; muuten ohjelmistoa Näillä malleilla tehdyn esimerkkituonnin kolme ensimmäistä nimeä Laitteisto esikatseluihin, ohjelmisto arkiston esiasetuksiin + Päällä: korkeamman tason työ keskeyttää käynnissä olevan työn kysymättä, ja se jatkuu sen jälkeen itsestään. Pois: työt odottavat vuoroaan; keskeytä käynnissä oleva työ, jotta seuraava alkaa Tämän arkiston ja uusien arkistojen JPEG-proxyjen pitkä sivu; aiemmin luodut proxyt säilyttävät kokonsa, kunnes ne luodaan uudelleen Tasapainoinen sopii useimpiin tarkoituksiin; Paras mittaa kaksinkertaisella tarkkuudella ja lukee pidemmälle eteenpäin; Nopea mittaa puolella tarkkuudella ja karkealla liikearviolla Luettele kooderit uudelleen ohjaimen tai koodekin asennuksen jälkeen @@ -595,9 +601,6 @@ Jokainen pikseli puretaan Mikään tämän tietokoneen dekooderi ei lue sen pikseleitä; tällaiset kuvat jätetään pois renderöinneistä Lähetä päivittäin nimetön määrä käytössä olevista versioista ja kielistä; ei mitään muuta, oletuksena pois päältä - Samanaikaisesti käsiteltävät työt ja kuvat; pienempi määrä jättää enemmän tilaa muille ohjelmille · Enter ottaa käyttöön, Esc palauttaa - Automaattinen: puolet loogisista ytimistä suorittaa töitä samanaikaisesti, kukin omalla säiemäärällään - Palauta automaattinen: puolet loogisista ytimistä Asenna Program Files -kansioon kaikille tileille · pyytää järjestelmänvalvojan hyväksynnän {0} · toimii Windows-palveluna, joten se asennetaan kaikille käyttäjille Program Files -kansioon Palaa valintoihin muuttamatta mitään diff --git a/i18n/fr/Admin.fr.resx b/i18n/fr/Admin.fr.resx index c4818f6b..5a5b8669 100644 --- a/i18n/fr/Admin.fr.resx +++ b/i18n/fr/Admin.fr.resx @@ -92,8 +92,11 @@ sur {0} en ligne originaux {0} + {0} photo à la fois + {0} photos à la fois {0} photo {0} photos + File de priorité File et historique Ouvrir la page Tâches {0} en attente @@ -107,8 +110,6 @@ Envois · 30 derniers jours {0} séquence sans proxys {0} séquences sans proxys - {0} exécuteur - {0} exécuteurs Le serveur n'a pas répondu ; réessayez. Adoption Analyse approfondie @@ -279,6 +280,8 @@ Port de l'API en TLS pour les clients Titano Historique des tâches (jours) Nombre de jours de conservation des tâches terminées + Niveau de « {0} » dans la file de priorité : un niveau supérieur passe en premier et suspend les niveaux inférieurs + Tâches Langue Langue des messages du serveur quand un client n'en demande aucune Limites et conservation @@ -286,8 +289,15 @@ Fichier max. (Mo) Taille maximale acceptée pour un seul envoi Réseau et TLS + Parallélisme + Photos traitées simultanément par la tâche en cours ; les tâches s'exécutent une par une Le fichier PEM est introuvable ; saisissez son chemin complet sur le serveur. Utilisé uniquement en mode Certificat personnel + Haute + Basse + Normale + File de priorité + Activée : une tâche de niveau supérieur suspend la tâche en cours sans demander, et celle-ci reprend ensuite d'elle-même. Désactivée : les tâches attendent leur tour Sans proxy Le mode TLS est « Proxy inverse », mais cette page n'est pas passée par un proxy approuvé en HTTPS. Ouvrez-la via votre proxy ou ajoutez l'adresse du proxy à TITANO_TRUSTED_PROXIES. Redémarrage requis @@ -308,8 +318,6 @@ Nombre de jours pendant lesquels la session d'un client inutilisé reste ouverte Abandon après (h) Nombre d'heures après lequel les envois inachevés sont supprimés - Exécuteurs - Nombre de tâches que ce serveur exécute simultanément Fermer la session Fermer la session du panneau d'administration Basculer entre le thème clair et le thème sombre diff --git a/i18n/fr/Jobs.fr.resx b/i18n/fr/Jobs.fr.resx index cb905959..14628e98 100644 --- a/i18n/fr/Jobs.fr.resx +++ b/i18n/fr/Jobs.fr.resx @@ -50,10 +50,14 @@ Vérification après {0} prochaine + En pause pour une tâche de priorité supérieure ({0}) ; reprend d'elle-même Aucune ligne de journal pour l'instant Masquer le journal Afficher le journal + {0} photo à la fois + {0} photos à la fois Tout suspendre + File de priorité Paramètres de rendu {0} · {1} Rechercher une cible ou un type @@ -68,5 +72,4 @@ en cours {0} · {1} ce PC - Exécuteurs {0} / {1} diff --git a/i18n/fr/Settings.fr.resx b/i18n/fr/Settings.fr.resx index b9b29104..9809219f 100644 --- a/i18n/fr/Settings.fr.resx +++ b/i18n/fr/Settings.fr.resx @@ -136,6 +136,11 @@ {0} fps · ok Préférer le matériel Matériel pour les aperçus seulement + Haute + Basse + Normale + File de priorité + Activée Profil de qualité Équilibré Optimal diff --git a/i18n/fr/Tooltips.fr.resx b/i18n/fr/Tooltips.fr.resx index 2c6f59c2..a403fa4f 100644 --- a/i18n/fr/Tooltips.fr.resx +++ b/i18n/fr/Tooltips.fr.resx @@ -320,9 +320,11 @@ Importer des photos depuis une carte ou un dossier ; les importations, analyses et rendus s'affichent ensuite ici Augmenter la priorité : la tâche passe avant celles de priorité inférieure Ouvrir l'élément traité par cette tâche + Les tâches s'exécutent une par une ; la tâche en cours traite ce nombre de photos simultanément (Paramètres › Rendu › Parallélisme) Suspendre au prochain point de reprise ; Reprendre continue à partir de là Suspendre toutes les tâches en cours ; la file d'attente conserve son ordre Retenir cette tâche dans la file d'attente jusqu'à ce que vous la repreniez + File de priorité activée : une tâche de niveau supérieur suspend la tâche en cours, qui reprend ensuite d'elle-même (Paramètres › Rendu) Retirer de la file d'attente ; la tâche est annulée Parallélisme, préférence matérielle, budget mémoire Remettre la tâche dans la file d'attente ; elle continue à partir de son point de reprise @@ -336,7 +338,6 @@ En pause ; Reprendre continue à partir du point de reprise En attente d'un exécuteur sur ce PC En cours d'exécution - Tâches en cours sur ce PC par rapport aux exécuteurs du moteur de tâches Indexer sur place des photos que vous possédez déjà ; choisissez leur dossier racine Analyse approfondie de chaque image · s'exécute comme tâche en arrière-plan Analyse approfondie des séquences sélectionnées · s'exécute comme une seule tâche @@ -540,6 +541,7 @@ Charger les paramètres depuis un fichier JSON ; la session et la disposition des fenêtres restent inchangées Ouvrir la page de cette extension gratuite ou payante dans le Microsoft Store ; après l'installation, cliquer sur Redétecter Tant que Titano est au premier plan, son interface passe avant les tâches et reste fluide pendant les rendus et les analyses + Niveau de « {0} » dans la file de priorité : un niveau supérieur passe en premier et suspend les niveaux inférieurs ; les tâches de même niveau ne s'interrompent jamais entre elles Laisser les paramètres de cette archive tels quels Conserver le cache tel quel Conserver l'index tel quel @@ -563,11 +565,15 @@ Serveur par défaut, nœud de rendu, certificats approuvés Dossier du cache, miniatures en mémoire, limite du cache Recherche de mises à jour au démarrage + Photos traitées simultanément par la tâche en cours ; les tâches s'exécutent une par une. Une valeur plus faible laisse plus de place aux autres programmes · Enter pour appliquer, Esc pour rétablir + Auto : la moitié des cœurs logiques + Revenir à Auto : la moitié des cœurs logiques Fréquence à laquelle Titano rescanne l'archive pour détecter les modifications faites ailleurs, par exemple par un serveur qui la partage Activé quand portable.txt se trouve à côté de Titano.exe : toutes les données restent dans son dossier de données Utiliser un encodeur matériel s'il prend en charge le préréglage, sinon l'encodeur logiciel Trois premiers noms d'un exemple d'importation avec ces modèles Matériel pour les aperçus, logiciel pour les préréglages d'archivage + Activée : une tâche de niveau supérieur suspend la tâche en cours sans demander, et celle-ci reprend ensuite d'elle-même. Désactivée : les tâches attendent leur tour ; suspendez la tâche en cours pour lancer la suivante Grand côté des proxys JPEG de cette archive et des nouvelles archives ; les proxys déjà créés gardent leur taille jusqu'à leur reconstruction Équilibré convient à la plupart des travaux ; Optimal mesure à double résolution et lit davantage à l'avance ; Rapide mesure à demi-résolution avec un mouvement en qualité brouillon Lister de nouveau les encodeurs après l'installation d'un pilote ou d'un codec @@ -595,9 +601,6 @@ Chaque pixel est décodé Aucun décodeur de ce PC ne lit ses pixels ; ces images sont exclues des rendus Envoyer chaque jour un décompte anonyme des versions et des langues utilisées ; rien d'autre, désactivé par défaut - Tâches et images traitées simultanément ; une valeur plus faible laisse plus de place aux autres programmes · Enter pour appliquer, Esc pour rétablir - Auto : autant de tâches simultanées que la moitié des cœurs logiques, chacune avec son propre nombre de threads - Revenir à Auto : la moitié des cœurs logiques Installer dans Program Files pour tous les comptes · demande l'approbation d'un administrateur {0} · s'exécute en tant que service Windows et s'installe donc pour tous les utilisateurs dans Program Files Revenir aux options sans rien modifier diff --git a/i18n/he/Admin.he.resx b/i18n/he/Admin.he.resx index a4a6ba79..13464f77 100644 --- a/i18n/he/Admin.he.resx +++ b/i18n/he/Admin.he.resx @@ -96,9 +96,13 @@ מתוך {0} מקוונים מקוריים {0} + {0} תמונות בכל פעם + {0} תמונה בכל פעם + {0} תמונות בכל פעם {0} תמונות תמונה אחת {0} תמונות + תור עדיפויות תור והיסטוריה פתיחת דף המשימות {0} בתור @@ -115,9 +119,6 @@ {0} רצפים ללא פרוקסי רצף אחד ללא פרוקסי {0} רצפים ללא פרוקסי - {0} תהליכי עבודה - תהליך עבודה אחד - {0} תהליכי עבודה השרת לא הגיב; יש לנסות שוב. אימוץ ניתוח מעמיק @@ -292,6 +293,8 @@ היציאה של ה-API ב-TLS עבור לקוחות Titano היסטוריית משימות (ימים) מספר הימים שבהם נשמרות משימות שהסתיימו + הרמה של "{0}" בתור העדיפויות: רמה גבוהה יותר פועלת קודם ומשהה רמות נמוכות יותר + משימות שפה שפת ההודעות של השרת כאשר הלקוח אינו מבקש שפה מגבלות ושמירה @@ -299,8 +302,15 @@ קובץ מרבי (MB) הקובץ הגדול ביותר שמתקבל בהעלאה בודדת רשת ו-TLS + מקביליות + מספר התמונות שהמשימה הפועלת מעבדת בו-זמנית; המשימות פועלות אחת בכל פעם קובץ ה-PEM לא נמצא; יש להזין את הנתיב המלא שלו בשרת. משמש רק במצב "תעודה משלך" + גבוהה + נמוכה + רגילה + תור עדיפויות + במצב פעיל: משימה ברמה גבוהה יותר משהה את המשימה הפועלת בלי לשאול, וזו ממשיכה מעצמה לאחר מכן. במצב כבוי: המשימות ממתינות לתורן לא דרך הפרוקסי מצב ה-TLS הוא "פרוקסי הפוך", אך הדף הזה לא הגיע דרך פרוקסי מהימן ב-HTTPS. יש לפתוח אותו דרך הפרוקסי, או להוסיף את כתובת הפרוקסי ל-TITANO_TRUSTED_PROXIES. נדרשת הפעלה מחדש @@ -321,8 +331,6 @@ מספר הימים שבהם לקוח נשאר מחובר בלי שנעשה בו שימוש ננטש לאחר (שעות) מספר השעות שלאחריהן העלאות שלא הושלמו נמחקות - תהליכי עבודה - מספר המשימות שהשרת מריץ בו-זמנית צא יציאה מממשק הניהול מעבר בין ערכת נושא בהירה לכהה diff --git a/i18n/he/Jobs.he.resx b/i18n/he/Jobs.he.resx index a4928eb0..bd0348c6 100644 --- a/i18n/he/Jobs.he.resx +++ b/i18n/he/Jobs.he.resx @@ -51,10 +51,15 @@ אימות אחרי {0} הבאה בתור + הושהתה לטובת משימה בעדיפות גבוהה יותר ({0}); תמשיך מעצמה אין שורות ביומן עדיין הסתר יומן הצג יומן + {0} תמונות בכל פעם + {0} תמונה בכל פעם + {0} תמונות בכל פעם השהה הכול + תור עדיפויות הגדרות רינדור {0} · {1} חיפוש לפי יעד או סוג @@ -69,5 +74,4 @@ פועלת {0} · {1} המחשב הזה - תהליכי עבודה {0} / {1} diff --git a/i18n/he/Settings.he.resx b/i18n/he/Settings.he.resx index eb73badd..890924d9 100644 --- a/i18n/he/Settings.he.resx +++ b/i18n/he/Settings.he.resx @@ -138,6 +138,11 @@ {0} fps · תקין העדף חומרה חומרה לתצוגות מקדימות בלבד + גבוהה + נמוכה + רגילה + תור עדיפויות + פעיל פרופיל איכות מאוזן הטוב ביותר diff --git a/i18n/he/Tooltips.he.resx b/i18n/he/Tooltips.he.resx index ecb88852..b166efe8 100644 --- a/i18n/he/Tooltips.he.resx +++ b/i18n/he/Tooltips.he.resx @@ -321,9 +321,11 @@ הבאת תמונות מכרטיס או מתיקייה; ייבואים, ניתוחים ורינדורים יופיעו כאן העלאת העדיפות: המשימה תפעל לפני משימות בעדיפות נמוכה יותר פתיחת הפריט שהמשימה עבדה עליו + המשימות פועלות אחת בכל פעם; המשימה הפועלת מעבדת מספר זה של תמונות בו-זמנית (הגדרות › רינדור › מקביליות) השהיה בנקודת השמירה הבאה; "המשך" ימשיך משם השהיית כל המשימות הפועלות; התור שומר על הסדר שלו החזקת המשימה בתור עד לחידוש ידני + תור העדיפויות פעיל: משימה ברמה גבוהה יותר משהה את המשימה הפועלת, וזו ממשיכה מעצמה לאחר מכן (הגדרות › רינדור) הסרה מהתור; המשימה מבוטלת מקביליות, העדפת חומרה, תקציב זיכרון החזרת המשימה לתור; היא תמשיך מנקודת השמירה שלה @@ -337,7 +339,6 @@ מושהית; "המשך" ממשיך מנקודת השמירה ממתינה לתהליך עבודה במחשב הזה פועלת כעת - משימות שפועלות במחשב הזה מתוך תהליכי העבודה של מנוע המשימות הוספת תמונות קיימות לאינדקס במקומן; יש לבחור את תיקיית העל שלהן ניתוח מעמיק של כל פריים · פועל כמשימה ברקע ניתוח מעמיק של הרצפים שנבחרו · פועל כמשימה אחת @@ -557,6 +558,7 @@ טעינת הגדרות מקובץ JSON; הסשן ופריסת החלון נשארים ללא שינוי פתיחת הדף של ההרחבה הזו, החינמית או בתשלום, ב-Microsoft Store; אחרי ההתקנה יש ללחוץ על "זהה מחדש" כש-Titano בחזית, הממשק שלו מקבל עדיפות על פני המשימות כדי שיישאר חלק במהלך רינדורים וניתוחים + הרמה של "{0}" בתור העדיפויות: רמה גבוהה יותר פועלת קודם ומשהה רמות נמוכות יותר; משימות באותה רמה לעולם אינן קוטעות זו את זו השארת ההגדרות של הארכיון הזה כפי שהן השארת המטמון כפי שהוא השארת האינדקס כפי שהוא @@ -580,11 +582,15 @@ שרת ברירת מחדל, צומת רינדור, תעודות מהימנות תיקיית מטמון, תמונות ממוזערות בזיכרון, מגבלת מטמון בדיקת עדכונים בעת ההפעלה + מספר התמונות שהמשימה הפועלת מעבדת בו-זמנית; המשימות פועלות אחת בכל פעם. מספר קטן יותר משאיר יותר מקום לתוכניות אחרות · Enter מחיל, Esc מבטל + אוטומטי: מחצית מהליבות הלוגיות + חזרה לאוטומטי: מחצית מהליבות הלוגיות באיזו תדירות Titano סורק מחדש את הארכיון לאיתור שינויים שנעשו במקום אחר, למשל על ידי שרת שמשתף אותו פעיל כאשר portable.txt נמצא לצד Titano.exe: כל הנתונים נשמרים בתיקיית הנתונים שלו שימוש במקודד חומרה כאשר יש כזה שתומך בפריסט; אחרת, קידוד בתוכנה שלושת השמות הראשונים בייבוא לדוגמה עם התבניות האלה חומרה לתצוגות מקדימות, תוכנה לפריסטים של ארכיון + במצב פעיל: משימה ברמה גבוהה יותר משהה את המשימה הפועלת בלי לשאול, וזו ממשיכה מעצמה לאחר מכן. במצב כבוי: המשימות ממתינות לתורן; כדי להתחיל את הבאה יש להשהות את המשימה הפועלת הצד הארוך של קובצי הפרוקסי מסוג JPEG בארכיון הזה ושל קבצים חדשים; קובצי פרוקסי שנבנו קודם שומרים על גודלם עד שייבנו מחדש "מאוזן" מתאים לרוב העבודה; "הטוב ביותר" מודד ברזולוציה כפולה וקורא רחוק יותר קדימה; "מהיר" מודד בחצי רזולוציה עם תנועה באיכות טיוטה רישום המקודדים מחדש לאחר התקנת מנהל התקן או קודק @@ -612,9 +618,6 @@ כל פיקסל מפוענח אין במחשב הזה מפענח שקורא את הפיקסלים שלו; פריימים כאלה מושמטים מרינדורים שליחת ספירה יומית אנונימית של הגרסאות והשפות שבשימוש; שום דבר אחר, כבוי כברירת מחדל - משימות ופריימים שמעובדים בו-זמנית; מספר קטן יותר משאיר יותר מקום לתוכניות אחרות · Enter מחיל, Esc מבטל - אוטומטי: משימות במספר השווה למחצית הליבות הלוגיות פועלות בו-זמנית, כל אחת עם מספר הליכי משנה משלה - חזרה לאוטומטי: מחצית מהליבות הלוגיות התקנה ב-Program Files עבור כל החשבונות · נדרש אישור מנהל מערכת {0} · פועל כשירות Windows, ולכן מותקן לכל המשתמשים ב-Program Files חזרה לאפשרויות ללא שינוי diff --git a/i18n/hi/Admin.hi.resx b/i18n/hi/Admin.hi.resx index 9c2de892..4c47538d 100644 --- a/i18n/hi/Admin.hi.resx +++ b/i18n/hi/Admin.hi.resx @@ -92,8 +92,11 @@ / {0} ऑनलाइन मूल फ़ाइलें {0} + {0} फ़ोटो एक साथ + {0} फ़ोटो एक साथ {0} फ़ोटो {0} फ़ोटो + प्राथमिकता कतार कतार और इतिहास कार्य पेज खोलें {0} कतार में @@ -107,8 +110,6 @@ अपलोड · पिछले 30 दिन प्रॉक्सी के बिना {0} सीक्वेंस प्रॉक्सी के बिना {0} सीक्वेंस - {0} वर्कर - {0} वर्कर सर्वर ने जवाब नहीं दिया; फिर से प्रयास करें। अपनाना गहन विश्लेषण @@ -279,6 +280,8 @@ Titano क्लाइंट के लिए TLS पर API का पोर्ट कार्य इतिहास (दिन) पूर्ण कार्य कितने दिन रखे जाते हैं + प्राथमिकता कतार में “{0}” का स्तर: उच्च स्तर पहले चलता है और निचले स्तरों को विराम देता है + कार्य भाषा जब क्लाइंट कोई भाषा न माँगे, तब सर्वर संदेशों की भाषा सीमाएँ और अवधारण @@ -286,8 +289,15 @@ अधिकतम फ़ाइल (MB) स्वीकार किया जाने वाला सबसे बड़ा एकल अपलोड नेटवर्क और TLS + समानांतरता + चल रहा कार्य एक साथ कितनी फ़ोटो संसाधित करता है; कार्य एक-एक करके चलते हैं PEM फ़ाइल नहीं मिली; सर्वर पर उसका पूरा पथ दर्ज करें। केवल अपना प्रमाणपत्र मोड में उपयोग किया जाता है + उच्च + निम्न + सामान्य + प्राथमिकता कतार + चालू: उच्च स्तर का कार्य बिना पूछे चल रहे कार्य को विराम देता है, और वह बाद में अपने आप फिर से शुरू हो जाता है। बंद: कार्य अपनी बारी की प्रतीक्षा करते हैं बिना प्रॉक्सी TLS मोड रिवर्स प्रॉक्सी है, लेकिन यह पेज HTTPS पर किसी विश्वसनीय प्रॉक्सी से होकर नहीं आया। इसे अपने प्रॉक्सी के ज़रिए खोलें, या प्रॉक्सी का पता TITANO_TRUSTED_PROXIES में जोड़ें। पुनरारंभ आवश्यक @@ -308,8 +318,6 @@ उपयोग न होने पर क्लाइंट कितने दिन साइन इन रहता है त्याग अवधि (घंटे) कितने घंटे बाद अधूरे अपलोड हटा दिए जाते हैं - वर्कर - यह सर्वर एक साथ कितने कार्य चलाता है साइन आउट करें व्यवस्थापक पैनल से साइन आउट करें हल्की और गहरी थीम के बीच बदलें diff --git a/i18n/hi/Jobs.hi.resx b/i18n/hi/Jobs.hi.resx index fde774b8..31795771 100644 --- a/i18n/hi/Jobs.hi.resx +++ b/i18n/hi/Jobs.hi.resx @@ -50,10 +50,14 @@ सत्यापन {0} के बाद अगला + उच्च प्राथमिकता वाले कार्य ({0}) के लिए विराम दिया गया; यह अपने आप फिर से शुरू होगा अभी कोई लॉग पंक्ति नहीं लॉग छिपाएँ लॉग दिखाएँ + {0} फ़ोटो एक साथ + {0} फ़ोटो एक साथ सभी को विराम दें + प्राथमिकता कतार रेंडरिंग सेटिंग्स {0} · {1} लक्ष्य या प्रकार खोजें @@ -68,5 +72,4 @@ चल रहा है {0} · {1} यह PC - वर्कर {0} / {1} diff --git a/i18n/hi/Settings.hi.resx b/i18n/hi/Settings.hi.resx index 1c9e70c6..05abc4d7 100644 --- a/i18n/hi/Settings.hi.resx +++ b/i18n/hi/Settings.hi.resx @@ -136,6 +136,11 @@ {0} fps · ठीक हार्डवेयर को प्राथमिकता हार्डवेयर केवल पूर्वावलोकन हेतु + उच्च + निम्न + सामान्य + प्राथमिकता कतार + चालू गुणवत्ता प्रोफ़ाइल संतुलित सर्वोत्तम diff --git a/i18n/hi/Tooltips.hi.resx b/i18n/hi/Tooltips.hi.resx index ffd31fec..9410ad43 100644 --- a/i18n/hi/Tooltips.hi.resx +++ b/i18n/hi/Tooltips.hi.resx @@ -320,9 +320,11 @@ किसी कार्ड या फ़ोल्डर से फ़ोटो लाएँ; फिर आयात, विश्लेषण और रेंडर यहाँ दिखते हैं प्राथमिकता बढ़ाएँ: यह कम प्राथमिकता वाले कार्यों से पहले चलता है इस कार्य ने जिस पर काम किया, उसे खोलें + कार्य एक-एक करके चलते हैं; चल रहा कार्य एक साथ इतनी फ़ोटो संसाधित करता है (सेटिंग्स › रेंडरिंग › समानांतरता) अगले चेकपॉइंट पर विराम दें; फिर से शुरू करने पर यह वहीं से जारी रहता है हर चल रहे कार्य को विराम दें; कतार का क्रम बना रहता है जब तक आप फिर से शुरू न करें, इस कार्य को कतार में रोके रखें + प्राथमिकता कतार चालू: उच्च स्तर का कार्य चल रहे कार्य को विराम देता है, जो बाद में अपने आप फिर से शुरू हो जाता है (सेटिंग्स › रेंडरिंग) कतार से निकालें; कार्य रद्द हो जाता है समानांतरता, हार्डवेयर प्राथमिकता, मेमोरी बजट कार्य को कतार में वापस रखें; यह अपने चेकपॉइंट से जारी रहता है @@ -336,7 +338,6 @@ विराम पर; फिर से शुरू करने पर चेकपॉइंट से जारी रहता है इस PC पर किसी वर्कर की प्रतीक्षा में अभी चल रहा है - कार्य इंजन के कुल वर्कर में से इस PC पर चल रहे कार्य आपकी मौजूदा फ़ोटो को उसी जगह इंडेक्स करें; उनका शीर्ष फ़ोल्डर चुनें हर फ़्रेम का गहन विश्लेषण · पृष्ठभूमि में कार्य के रूप में चलता है चयनित सीक्वेंस का गहन विश्लेषण · एक कार्य के रूप में चलता है @@ -540,6 +541,7 @@ JSON फ़ाइल से सेटिंग्स लोड करें; सत्र और विंडो लेआउट जैसे हैं वैसे रहते हैं इस मुफ़्त या सशुल्क एक्सटेंशन का Microsoft Store पेज खोलें; इंस्टॉल करने के बाद “फिर से पहचानें” चुनें जब Titano सामने हो, तब इसके इंटरफ़ेस को कार्यों से अधिक प्राथमिकता मिलती है, ताकि रेंडर और विश्लेषण के दौरान भी यह सुचारु बना रहे + प्राथमिकता कतार में “{0}” का स्तर: उच्च स्तर पहले चलता है और निचले स्तरों को विराम देता है; एक ही स्तर के कार्य कभी एक-दूसरे को बाधित नहीं करते इस संग्रह की सेटिंग्स जैसी हैं वैसी ही रहने दें कैश को जैसा है वैसा रखें इंडेक्स को जैसा है वैसा रखें @@ -563,11 +565,15 @@ डिफ़ॉल्ट सर्वर, रेंडर नोड, विश्वसनीय प्रमाणपत्र कैश फ़ोल्डर, मेमोरी में थंबनेल, कैश सीमा शुरू होने पर अपडेट की जाँच + चल रहा कार्य एक साथ कितनी फ़ोटो संसाधित करता है; कार्य एक-एक करके चलते हैं। कम होने पर अन्य प्रोग्रामों के लिए अधिक जगह बचती है · Enter से लागू, Esc से पूर्ववत + ऑटो: आधे तार्किक कोर + ऑटो पर लौटें: आधे तार्किक कोर Titano कितनी बार संग्रह को कहीं और किए गए बदलावों के लिए फिर से स्कैन करता है, जैसे इसे साझा करने वाले किसी सर्वर द्वारा जब portable.txt, Titano.exe के बगल में हो तब चालू: सारा डेटा उसके डेटा फ़ोल्डर में रहता है जब कोई हार्डवेयर एनकोडर प्रीसेट को सपोर्ट करे तो उसका उपयोग करें; अन्यथा सॉफ़्टवेयर इन टेम्पलेट के साथ नमूना आयात के पहले तीन नाम पूर्वावलोकन के लिए हार्डवेयर, संग्रह प्रीसेट के लिए सॉफ़्टवेयर + चालू: उच्च स्तर का कार्य बिना पूछे चल रहे कार्य को विराम देता है, और वह बाद में अपने आप फिर से शुरू हो जाता है। बंद: कार्य अपनी बारी की प्रतीक्षा करते हैं; अगला कार्य शुरू करने के लिए चल रहे कार्य को विराम दें इस संग्रह और नए संग्रहों के JPEG प्रॉक्सी का लंबा किनारा; पहले बने प्रॉक्सी फिर से बनाए जाने तक अपना आकार रखते हैं “संतुलित” ज़्यादातर काम के लिए उपयुक्त है; “सर्वोत्तम” दोगुने रिज़ॉल्यूशन पर मापता है और आगे तक पढ़ता है; “तेज़” आधे रिज़ॉल्यूशन पर ड्राफ़्ट मोशन के साथ मापता है ड्राइवर या कोडेक इंस्टॉल करने के बाद एनकोडर फिर से सूचीबद्ध करें @@ -595,9 +601,6 @@ हर पिक्सेल डिकोड किया जाता है इस PC पर कोई डिकोडर इसके पिक्सेल नहीं पढ़ता; ऐसे फ़्रेम रेंडर से बाहर रखे जाते हैं उपयोग में संस्करणों और भाषाओं की दैनिक अनाम गणना भेजें; इसके अलावा कुछ नहीं, डिफ़ॉल्ट रूप से बंद - एक साथ संसाधित होने वाले कार्य और फ़्रेम; कम होने पर अन्य प्रोग्रामों के लिए अधिक जगह बचती है · Enter से लागू, Esc से पूर्ववत - ऑटो: तार्किक कोर के आधे जितने कार्य एक साथ चलते हैं, हर कार्य अपनी थ्रेड संख्या के साथ - ऑटो पर लौटें: आधे तार्किक कोर हर खाते के लिए Program Files में इंस्टॉल करें · व्यवस्थापक अनुमोदन माँगता है {0} · यह Windows सेवा के रूप में चलता है, इसलिए Program Files में सभी उपयोगकर्ताओं के लिए इंस्टॉल होता है कुछ भी बदले बिना विकल्पों पर लौटें diff --git a/i18n/hr/Admin.hr.resx b/i18n/hr/Admin.hr.resx index 45f7ac76..2621f03f 100644 --- a/i18n/hr/Admin.hr.resx +++ b/i18n/hr/Admin.hr.resx @@ -96,9 +96,13 @@ od {0} na mreži izvornici: {0} + {0} fotografije odjednom + {0} fotografija odjednom + {0} fotografija odjednom {0} fotografije {0} fotografija {0} fotografija + Prioritetni red čekanja Red čekanja i povijest Otvara stranicu „Zadaci” {0} u redu čekanja @@ -115,9 +119,6 @@ {0} sekvence bez proxy kopija {0} sekvenca bez proxy kopija {0} sekvenci bez proxy kopija - {0} radna procesa - {0} radni proces - {0} radnih procesa Poslužitelj nije odgovorio; pokušajte ponovno. Usvajanje Dubinska analiza @@ -292,6 +293,8 @@ Priključak API-ja preko TLS-a za klijente Titano Povijest zadataka (dani) Broj dana tijekom kojih se čuvaju dovršeni zadaci + Razina za „{0}” u prioritetnom redu čekanja: viša razina izvodi se prva i pauzira niže razine + Zadaci Jezik Jezik poruka poslužitelja kada klijent ne zatraži nijedan Ograničenja i čuvanje @@ -299,8 +302,15 @@ Najveća datoteka (MB) Najveći prihvaćeni pojedinačni prijenos Mreža i TLS + Paralelizam + Broj fotografija koje zadatak u tijeku obrađuje odjednom; zadaci se izvode jedan po jedan Datoteka PEM nije pronađena; unesite njezinu potpunu putanju na poslužitelju. Upotrebljava se samo u načinu „Vlastiti certifikat” + Visoki + Niski + Normalni + Prioritetni red čekanja + Uključen: zadatak više razine bez pitanja pauzira zadatak u tijeku, a on se zatim sam nastavlja. Isključen: zadaci čekaju svoj red Bez proxyja Način TLS-a je „Obrnuti proxy”, ali ova stranica nije stigla preko pouzdanog proxyja putem HTTPS-a. Otvorite je preko svojeg proxyja ili dodajte adresu proxyja u TITANO_TRUSTED_PROXIES. Potrebno ponovno pokretanje @@ -321,8 +331,6 @@ Broj dana tijekom kojih klijent ostaje prijavljen bez korištenja Napušteno nakon (h) Broj sati nakon kojih se nedovršeni prijenosi odbacuju - Radni procesi - Broj zadataka koje ovaj poslužitelj izvodi istodobno Odjavi se Odjavljuje vas s administratorske ploče Prebacuje između svijetle i tamne teme diff --git a/i18n/hr/Jobs.hr.resx b/i18n/hr/Jobs.hr.resx index 595e5be9..83841f5b 100644 --- a/i18n/hr/Jobs.hr.resx +++ b/i18n/hr/Jobs.hr.resx @@ -51,10 +51,15 @@ Provjera nakon {0} sljedeći + Pauzirano zbog zadatka višeg prioriteta ({0}); nastavit će se automatski Još nema redaka zapisnika Sakrij zapisnik Prikaži zapisnik + {0} fotografije odjednom + {0} fotografija odjednom + {0} fotografija odjednom Pauziraj sve + Prioritetni red čekanja Postavke renderiranja {0} · {1} Pretraži cilj ili vrstu @@ -69,5 +74,4 @@ u tijeku {0} · {1} ovo računalo - Radni procesi {0} / {1} diff --git a/i18n/hr/Settings.hr.resx b/i18n/hr/Settings.hr.resx index 88c48f6f..b9e4ae2f 100644 --- a/i18n/hr/Settings.hr.resx +++ b/i18n/hr/Settings.hr.resx @@ -138,6 +138,11 @@ {0} fps · u redu Prednost hardveru Hardver samo za pretpreglede + Visoki + Niski + Normalni + Prioritetni red čekanja + Uključen Profil kvalitete Uravnoteženo Najbolje diff --git a/i18n/hr/Tooltips.hr.resx b/i18n/hr/Tooltips.hr.resx index c999fa93..3e593ec7 100644 --- a/i18n/hr/Tooltips.hr.resx +++ b/i18n/hr/Tooltips.hr.resx @@ -321,9 +321,11 @@ Uvozi fotografije s kartice ili iz mape; ovdje se zatim prikazuju uvozi, analize i renderiranja Povisuje prioritet: zadatak se izvodi prije zadataka nižeg prioriteta Otvara ono na čemu je zadatak radio + Zadaci se izvode jedan po jedan; zadatak u tijeku obrađuje toliko fotografija odjednom (Postavke › Renderiranje › Paralelizam) Pauzira na sljedećoj kontrolnoj točki; „Nastavi” nastavlja odande Pauzira sve zadatke u tijeku; red čekanja zadržava redoslijed Zadržava ovaj zadatak u redu čekanja dok ga ne nastavite + Prioritetni red čekanja je uključen: zadatak više razine pauzira zadatak u tijeku, koji se zatim sam nastavlja (Postavke › Renderiranje) Uklanja iz reda čekanja; zadatak se otkazuje Paralelizam, prednost hardveru, dopuštena memorija Vraća zadatak u red čekanja; nastavlja se od svoje kontrolne točke @@ -337,7 +339,6 @@ Pauzirano; „Nastavi” nastavlja od kontrolne točke Čeka slobodan radni proces na ovom računalu Upravo se izvodi - Zadaci koji se izvode na ovom računalu u odnosu na radne procese mehanizma zadataka Indeksira fotografije koje već imate, na mjestu gdje se nalaze; odaberite njihovu glavnu mapu Dubinska analiza svakog kadra · izvodi se kao zadatak u pozadini Dubinska analiza odabranih sekvenci · izvodi se kao jedan zadatak @@ -557,6 +558,7 @@ Učitava postavke iz datoteke JSON; sesija i raspored prozora ostaju nepromijenjeni Otvara stranicu ovog besplatnog ili plaćenog proširenja u trgovini Microsoft Store; nakon instalacije kliknite „Ponovno otkrij” Dok je Titano u prvom planu, njegovo sučelje ima prednost pred zadacima pa radi glatko tijekom renderiranja i analiza + Razina za „{0}” u prioritetnom redu čekanja: viša razina izvodi se prva i pauzira niže razine; zadaci iste razine nikad ne prekidaju jedni druge Ostavlja postavke ove arhive kakve jesu Ostavlja predmemoriju kakva jest Ostavlja indeks kakav jest @@ -580,11 +582,15 @@ Zadani poslužitelj, čvor za renderiranje, pouzdani certifikati Mapa predmemorije, minijature u memoriji, ograničenje predmemorije Provjera ažuriranja pri pokretanju + Broj fotografija koje zadatak u tijeku obrađuje odjednom; zadaci se izvode jedan po jedan. Manji broj ostavlja više prostora drugim programima · Enter primjenjuje, Esc vraća + Auto: polovica logičkih jezgri + Vraća na Auto: polovica logičkih jezgri Koliko često Titano ponovno skenira arhivu radi promjena napravljenih drugdje, npr. s poslužitelja koji je dijeli Uključeno kada se portable.txt nalazi pokraj datoteke Titano.exe: svi podaci ostaju u njezinoj mapi data Upotrebljava hardverski koder kada podržava preset; inače softverski Prva tri naziva oglednog uvoza s ovim predlošcima Hardver za pretpreglede, softver za arhivske presete + Uključen: zadatak više razine bez pitanja pauzira zadatak u tijeku, a on se zatim sam nastavlja. Isključen: zadaci čekaju svoj red; pauzirajte zadatak u tijeku da biste pokrenuli sljedeći Dulja stranica JPEG proxy kopija ove arhive i novih arhiva; ranije izrađene proxy kopije zadržavaju svoju veličinu dok se ponovno ne izrade Uravnoteženo odgovara većini poslova; Najbolje mjeri u dvostrukoj razlučivosti i čita dalje unaprijed; Brzo mjeri u upola manjoj razlučivosti s optičkim tokom u kvaliteti Nacrt Ponovno navodi kodere nakon instalacije upravljačkog programa ili kodeka @@ -612,9 +618,6 @@ Dekodira se svaki piksel Nijedan dekoder na ovom računalu ne čita njegove piksele; takvi se kadrovi izostavljaju iz rendera Svakodnevno šalje anonimni broj verzija i jezika u upotrebi; ništa drugo, zadano je isključeno - Broj zadataka i kadrova koji se obrađuju istodobno; manji broj ostavlja više prostora drugim programima · Enter primjenjuje, Esc vraća - Auto: polovica logičkih jezgri izvodi zadatke istodobno, svaki s vlastitim brojem niti - Vraća na Auto: polovica logičkih jezgri Instalira u Program Files za sve račune · traži administratorsko odobrenje {0} · izvodi se kao usluga sustava Windows pa se instalira za sve korisnike u Program Files Vraća na mogućnosti bez ikakvih promjena diff --git a/i18n/hu/Admin.hu.resx b/i18n/hu/Admin.hu.resx index eae6321d..28a21176 100644 --- a/i18n/hu/Admin.hu.resx +++ b/i18n/hu/Admin.hu.resx @@ -92,8 +92,11 @@ / {0} online eredeti fájlok: {0} + {0} fotó egyszerre + {0} fotó egyszerre {0} fotó {0} fotó + Prioritásos várólista Várólista és előzmények Megnyitja a Feladatok oldalt {0} várólistán @@ -107,8 +110,6 @@ Feltöltések · utolsó 30 nap {0} sorozat proxyk nélkül {0} sorozat proxyk nélkül - {0} feldolgozó - {0} feldolgozó A szerver nem válaszolt; próbálja újra. Átvétel Részletes elemzés @@ -279,6 +280,8 @@ Az API TLS-portja a Titano kliensek számára Feladatelőzmények (nap) Ennyi napig maradnak meg a befejezett feladatok + „{0}” szintje a prioritásos várólistán: a magasabb szint előbb fut, és szünetelteti az alacsonyabbakat + Feladatok Nyelv A szerverüzenetek nyelve, ha a kliens nem kér konkrét nyelvet Korlátok és megőrzés @@ -286,8 +289,15 @@ Max. fájlméret (MB) A legnagyobb elfogadott egyedi feltöltés Hálózat és TLS + Párhuzamosság + Ennyi fotót dolgoz fel egyszerre a futó feladat; a feladatok egyenként futnak A PEM-fájl nem található; adja meg a teljes elérési útját a szerveren. Csak Saját tanúsítvány módban használatos + Magas + Alacsony + Normál + Prioritásos várólista + Bekapcsolva: egy magasabb szintű feladat kérdés nélkül szünetelteti a futó feladatot, amely utána magától folytatódik. Kikapcsolva: a feladatok kivárják a sorukat Proxy nélkül A TLS-mód Fordított proxy, de ez az oldal nem egy megbízható proxyn keresztül, HTTPS-en érkezett. Nyissa meg a proxyn keresztül, vagy adja hozzá a proxy címét a TITANO_TRUSTED_PROXIES változóhoz. Újraindítás szükséges @@ -308,8 +318,6 @@ Ennyi napig marad bejelentkezve egy kliens használat nélkül Elévülés (óra) Ennyi óra után törlődnek a befejezetlen feltöltések - Feldolgozók - Ennyi feladatot futtat a szerver egyszerre Kijelentkezés Kijelentkezés a felügyeleti panelből Vált a világos és a sötét téma között diff --git a/i18n/hu/Jobs.hu.resx b/i18n/hu/Jobs.hu.resx index dbedbc4c..40000a0a 100644 --- a/i18n/hu/Jobs.hu.resx +++ b/i18n/hu/Jobs.hu.resx @@ -50,10 +50,14 @@ Ellenőrzés {0} feladat után következő + Szüneteltetve egy magasabb prioritású feladat miatt ({0}); magától folytatódik Még nincsenek naplósorok Napló elrejtése Napló megjelenítése + {0} fotó egyszerre + {0} fotó egyszerre Összes szüneteltetése + Prioritásos várólista Renderelési beállítások {0} · {1} Keresés cél vagy típus szerint @@ -68,5 +72,4 @@ fut {0} · {1} ez a számítógép - Feldolgozók: {0} / {1} diff --git a/i18n/hu/Settings.hu.resx b/i18n/hu/Settings.hu.resx index ff7f2a33..040ca88b 100644 --- a/i18n/hu/Settings.hu.resx +++ b/i18n/hu/Settings.hu.resx @@ -136,6 +136,11 @@ {0} fps · rendben Hardver előnyben részesítése Hardver csak előnézethez + Magas + Alacsony + Normál + Prioritásos várólista + Bekapcsolva Minőségi profil Kiegyensúlyozott Legjobb diff --git a/i18n/hu/Tooltips.hu.resx b/i18n/hu/Tooltips.hu.resx index e45c2268..d0799c21 100644 --- a/i18n/hu/Tooltips.hu.resx +++ b/i18n/hu/Tooltips.hu.resx @@ -320,9 +320,11 @@ Fotók importálása kártyáról vagy mappából; az importálások, elemzések és renderelések ezután itt jelennek meg Megemeli a prioritást: az alacsonyabb prioritású feladatok előtt fut Megnyitja azt, amin a feladat dolgozott + A feladatok egyenként futnak; a futó feladat egyszerre ennyi fotót dolgoz fel (Beállítások › Renderelés › Párhuzamosság) A következő folytatási pontnál szünetel; a Folytatás gomb onnan folytatja Minden futó feladatot szüneteltet; a várólista sorrendje megmarad A feladatot a várólistán tartja, amíg nem folytatja + A prioritásos várólista be van kapcsolva: egy magasabb szintű feladat szünetelteti a futó feladatot, amely utána magától folytatódik (Beállítások › Renderelés) Eltávolítja a várólistáról; a feladat megszakad Párhuzamosság, hardverpreferencia, memóriakeret Visszateszi a feladatot a várólistára; a folytatási pontjától folytatódik @@ -336,7 +338,6 @@ Szüneteltetve; a Folytatás gomb a folytatási ponttól folytatja Szabad feldolgozóra vár ezen a számítógépen Éppen fut - Az ezen a számítógépen futó feladatok száma a feladatmotor összes feldolgozójához képest Helyben indexeli a meglévő fotóit; válassza ki a legfelső mappájukat Minden képkocka részletes elemzése · feladatként fut a háttérben A kijelölt sorozatok részletes elemzése · egyetlen feladatként fut @@ -540,6 +541,7 @@ Beállításokat tölt be egy JSON-fájlból; a munkamenet és az ablakelrendezés változatlan marad Megnyitja ennek az ingyenes vagy fizetős bővítménynek a Microsoft Store-oldalát; a telepítés után kattintson az Újbóli észlelés gombra Amíg a Titano az előtérben van, a felülete elsőbbséget kap a feladatokkal szemben, így renderelés és elemzés közben is gördülékeny marad + „{0}” szintje a prioritásos várólistán: a magasabb szint előbb fut, és szünetelteti az alacsonyabbakat; az azonos szintű feladatok sosem szakítják meg egymást Változatlanul hagyja az archívum beállításait Változatlanul hagyja a gyorsítótárat Változatlanul hagyja az indexet @@ -563,11 +565,15 @@ Alapértelmezett szerver, renderelő csomópont, megbízható tanúsítványok Gyorsítótár mappája, miniatűrök a memóriában, gyorsítótár korlátja Frissítések keresése indításkor + Ennyi fotót dolgoz fel egyszerre a futó feladat; a feladatok egyenként futnak. A kisebb érték több erőforrást hagy a többi programnak · Enter: alkalmaz, Esc: visszavon + Auto: a logikai magok fele + Vissza Auto értékre: a logikai magok fele Ilyen gyakran vizsgálja át újra a Titano az archívumot, hogy észlelje a máshol (például egy azt közösen használó szerveren) végzett módosításokat Bekapcsolva, ha a portable.txt a Titano.exe mellett van: minden adat a saját data mappájában marad Hardveres kódolót használ, ha valamelyik támogatja az előbeállítást; egyébként szoftverest Egy mintaimportálás első három neve ezekkel a sablonokkal Hardver az előnézetekhez, szoftver az archiváló előbeállításokhoz + Bekapcsolva: egy magasabb szintű feladat kérdés nélkül szünetelteti a futó feladatot, amely utána magától folytatódik. Kikapcsolva: a feladatok kivárják a sorukat; a következő indításához szüneteltesse a futó feladatot A JPEG-proxyk hosszabbik oldala ebben az archívumban és az újakban; a korábban készült proxyk az újraépítésükig megtartják a méretüket A Kiegyensúlyozott a legtöbb munkához megfelel; a Legjobb kétszeres felbontáson mér, és több képkockát olvas előre; a Gyors fél felbontáson mér, vázlatos mozgásbecsléssel Újra listázza a kódolókat illesztőprogram vagy kodek telepítése után @@ -595,9 +601,6 @@ Minden képpontot dekódol Ezen a számítógépen egyik dekóder sem tudja olvasni a képpontjait; az ilyen képkockák kimaradnak a renderelésből Naponta névtelen statisztikát küld a használt verziókról és nyelvekről; semmi mást, és alapértelmezés szerint ki van kapcsolva - Egyszerre feldolgozott feladatok és képkockák; a kisebb érték több erőforrást hagy a többi programnak · Enter: alkalmaz, Esc: visszavon - Auto: a logikai magok fele futtat egyszerre feladatokat, mindegyik saját szálszámmal - Vissza Auto értékre: a logikai magok fele Telepítés a Program Files mappába minden fiók számára · rendszergazdai jóváhagyást kér {0} · Windows-szolgáltatásként fut, ezért minden felhasználó számára, a Program Files mappába települ Visszatérés a beállításokhoz módosítás nélkül diff --git a/i18n/id/Admin.id.resx b/i18n/id/Admin.id.resx index a34a5ac5..9a8107c2 100644 --- a/i18n/id/Admin.id.resx +++ b/i18n/id/Admin.id.resx @@ -92,8 +92,11 @@ dari {0} online file asli {0} + {0} foto sekaligus + {0} foto sekaligus {0} foto {0} foto + Antrean prioritas Antrean dan riwayat Buka halaman Tugas {0} dalam antrean @@ -107,8 +110,6 @@ Unggahan · 30 hari terakhir {0} sekuens tanpa proksi {0} sekuens tanpa proksi - {0} pekerja - {0} pekerja Server tidak merespons; coba lagi. Adopsi Analisis mendalam @@ -279,6 +280,8 @@ Port API melalui TLS untuk klien Titano Riwayat tugas (hari) Jumlah hari tugas yang selesai disimpan + Tingkat “{0}” dalam antrean prioritas: tingkat yang lebih tinggi berjalan lebih dulu dan menjeda tingkat yang lebih rendah + Tugas Bahasa Bahasa pesan server jika klien tidak meminta bahasa tertentu Batas dan retensi @@ -286,8 +289,15 @@ File maks. (MB) Ukuran unggahan tunggal terbesar yang diterima Jaringan dan TLS + Paralelisme + Jumlah foto yang diproses sekaligus oleh tugas yang sedang berjalan; tugas berjalan satu per satu File PEM tidak ditemukan; masukkan jalur lengkapnya di server. Hanya digunakan dalam mode Sertifikat sendiri + Tinggi + Rendah + Normal + Antrean prioritas + Aktif: tugas dengan tingkat lebih tinggi menjeda tugas yang sedang berjalan tanpa bertanya, lalu tugas itu berlanjut dengan sendirinya. Nonaktif: tugas menunggu gilirannya Tidak melalui proksi Mode TLS adalah Proksi balik, tetapi halaman ini tidak datang melalui proksi tepercaya lewat HTTPS. Buka halaman ini melalui proksi Anda, atau tambahkan alamat proksi ke TITANO_TRUSTED_PROXIES. Perlu dimulai ulang @@ -308,8 +318,6 @@ Jumlah hari klien tetap masuk tanpa digunakan Dibuang setelah (jam) Jumlah jam sebelum unggahan yang belum selesai dibuang - Pekerja - Jumlah tugas yang dijalankan server ini secara bersamaan Keluar Keluar dari panel admin Beralih antara terang dan gelap diff --git a/i18n/id/Jobs.id.resx b/i18n/id/Jobs.id.resx index 53865b97..44333628 100644 --- a/i18n/id/Jobs.id.resx +++ b/i18n/id/Jobs.id.resx @@ -50,10 +50,14 @@ Verifikasi setelah {0} berikutnya + Dijeda untuk tugas berprioritas lebih tinggi ({0}); akan berlanjut dengan sendirinya Belum ada baris log Sembunyikan log Tampilkan log + {0} foto sekaligus + {0} foto sekaligus Jeda semua + Antrean prioritas Pengaturan render {0} · {1} Cari target atau jenis @@ -68,5 +72,4 @@ berjalan {0} · {1} PC ini - Pekerja {0} / {1} diff --git a/i18n/id/Settings.id.resx b/i18n/id/Settings.id.resx index e435604b..90830b60 100644 --- a/i18n/id/Settings.id.resx +++ b/i18n/id/Settings.id.resx @@ -136,6 +136,11 @@ {0} fps · ok Utamakan perangkat keras Perangkat keras hanya untuk pratinjau + Tinggi + Rendah + Normal + Antrean prioritas + Aktif Profil kualitas Seimbang Terbaik diff --git a/i18n/id/Tooltips.id.resx b/i18n/id/Tooltips.id.resx index d8761ba1..1679ed70 100644 --- a/i18n/id/Tooltips.id.resx +++ b/i18n/id/Tooltips.id.resx @@ -320,9 +320,11 @@ Impor foto dari kartu atau folder; impor, analisis, dan render kemudian muncul di sini Naikkan prioritas: tugas ini berjalan sebelum tugas berprioritas lebih rendah Buka hal yang dikerjakan tugas ini + Tugas berjalan satu per satu; tugas yang sedang berjalan memproses foto sebanyak ini sekaligus (Pengaturan › Render › Paralelisme) Jeda di titik simpan berikutnya; Lanjutkan akan meneruskan dari sana Jeda semua tugas yang berjalan; urutan antrean tetap terjaga Tahan tugas ini di antrean sampai Anda melanjutkannya + Antrean prioritas aktif: tugas dengan tingkat lebih tinggi menjeda tugas yang sedang berjalan, yang kemudian berlanjut dengan sendirinya (Pengaturan › Render) Hapus dari antrean; tugas akan dibatalkan Paralelisme, preferensi perangkat keras, anggaran memori Kembalikan tugas ke antrean; tugas berlanjut dari titik simpannya @@ -336,7 +338,6 @@ Dijeda; Lanjutkan akan meneruskan dari titik simpan Menunggu pekerja di PC ini Sedang berjalan - Tugas yang berjalan di PC ini dari total pekerja mesin tugas Indeks foto yang sudah Anda miliki di lokasinya; pilih folder teratasnya Analisis mendalam setiap bingkai · berjalan sebagai tugas di latar belakang Analisis mendalam sekuens yang dipilih · berjalan sebagai satu tugas @@ -540,6 +541,7 @@ Muat pengaturan dari file JSON; sesi dan tata letak jendela tetap seperti semula Buka halaman Microsoft Store untuk ekstensi gratis atau berbayar ini; klik Deteksi ulang setelah menginstalnya Saat Titano berada di latar depan, antarmukanya didahulukan dari tugas agar tetap lancar selama render dan analisis + Tingkat “{0}” dalam antrean prioritas: tingkat yang lebih tinggi berjalan lebih dulu dan menjeda tingkat yang lebih rendah; tugas dengan tingkat yang sama tidak pernah saling menyela Biarkan pengaturan arsip ini apa adanya Biarkan cache apa adanya Biarkan indeks apa adanya @@ -563,11 +565,15 @@ Server default, node render, sertifikat tepercaya Folder cache, gambar mini di memori, batas cache Pemeriksaan pembaruan saat mulai + Jumlah foto yang diproses sekaligus oleh tugas yang sedang berjalan; tugas berjalan satu per satu. Makin sedikit, makin banyak ruang untuk program lain · Enter menerapkan, Esc membatalkan + Otomatis: setengah dari inti logis + Kembali ke Otomatis: setengah dari inti logis Seberapa sering Titano memindai ulang arsip untuk mencari perubahan yang dibuat di tempat lain, misalnya oleh server yang berbagi arsip ini Aktif bila portable.txt berada di samping Titano.exe: semua data tetap di folder data miliknya Gunakan encoder perangkat keras jika ada yang mendukung preset; jika tidak, gunakan perangkat lunak Tiga nama pertama dari contoh impor dengan templat ini Perangkat keras untuk pratinjau, perangkat lunak untuk preset arsip + Aktif: tugas dengan tingkat lebih tinggi menjeda tugas yang sedang berjalan tanpa bertanya, lalu tugas itu berlanjut dengan sendirinya. Nonaktif: tugas menunggu gilirannya; jeda tugas yang sedang berjalan untuk memulai tugas berikutnya Sisi panjang proksi JPEG arsip ini dan arsip baru; proksi yang dibuat sebelumnya mempertahankan ukurannya hingga dibangun ulang Seimbang cocok untuk sebagian besar pekerjaan; Terbaik mengukur pada resolusi ganda dan membaca lebih jauh ke depan; Cepat mengukur pada setengah resolusi dengan gerakan draf Daftar ulang encoder setelah menginstal driver atau codec @@ -595,9 +601,6 @@ Setiap piksel didekode Tidak ada dekoder di PC ini yang dapat membaca pikselnya; bingkai seperti ini tidak disertakan dalam render Kirim hitungan anonim harian tentang versi dan bahasa yang digunakan; tidak ada data lain, nonaktif secara default - Tugas dan bingkai yang diproses sekaligus; makin sedikit, makin banyak ruang untuk program lain · Enter menerapkan, Esc membatalkan - Otomatis: setengah dari inti logis menjalankan tugas sekaligus, masing-masing dengan jumlah thread sendiri - Kembali ke Otomatis: setengah dari inti logis Instal di Program Files untuk setiap akun · meminta persetujuan administrator {0} · berjalan sebagai layanan Windows, sehingga diinstal untuk semua pengguna di Program Files Kembali ke opsi tanpa mengubah apa pun diff --git a/i18n/it/Admin.it.resx b/i18n/it/Admin.it.resx index 62a019fc..0ed9862d 100644 --- a/i18n/it/Admin.it.resx +++ b/i18n/it/Admin.it.resx @@ -92,8 +92,11 @@ di {0} online originali {0} + {0} foto alla volta + {0} foto alla volta {0} foto {0} foto + Coda di priorità Coda e cronologia Apri la pagina Job {0} in coda @@ -107,8 +110,6 @@ Caricamenti · ultimi 30 giorni {0} sequenza senza proxy {0} sequenze senza proxy - {0} worker - {0} worker Il server non ha risposto; riprova. Adozione Analisi completa @@ -279,6 +280,8 @@ Porta delle API in TLS per i client Titano Cronologia job (giorni) Giorni di conservazione dei job conclusi + Livello di «{0}» nella coda di priorità: un livello più alto parte prima e mette in pausa quelli più bassi + Attività Lingua Lingua dei messaggi del server se il client non ne chiede una Limiti e conservazione @@ -286,8 +289,15 @@ File massimo (MB) Caricamento singolo più grande accettato Rete e TLS + Parallelismo + Foto che l'attività in corso elabora insieme; le attività girano una alla volta File PEM non trovato; inserisci il percorso completo sul server. Usato solo in modalità Certificato proprio + Alta + Bassa + Normale + Coda di priorità + Attiva: un'attività di livello più alto mette in pausa quella in corso senza chiedere, e quella riprende da sola dopo. Disattiva: le attività aspettano il loro turno Senza proxy La modalità TLS è Reverse proxy, ma questa pagina non è arrivata da un proxy attendibile in HTTPS. Aprila tramite il proxy o aggiungi l'indirizzo del proxy a TITANO_TRUSTED_PROXIES. Riavvio richiesto @@ -308,8 +318,6 @@ Giorni in cui un client resta connesso senza essere usato Abbandono dopo (h) Ore dopo le quali i caricamenti incompleti vengono scartati - Worker - Job che questo server esegue contemporaneamente Esci Esci dal pannello di amministrazione Alterna tema chiaro e scuro diff --git a/i18n/it/Jobs.it.resx b/i18n/it/Jobs.it.resx index 81cb1311..55bf20cc 100644 --- a/i18n/it/Jobs.it.resx +++ b/i18n/it/Jobs.it.resx @@ -50,17 +50,21 @@ Verifica dopo {0} prossima + In pausa per un'attività con priorità più alta ({0}); riprende da sola Ancora nessuna riga di log Nascondi log Mostra log + {0} foto alla volta + {0} foto alla volta Sospendi tutte + Coda di priorità Impostazioni di rendering {0} · {1} {0}: {1} Cerca oggetto o tipo + {0}/s {0} fps {0}/s - {0}/s annullata conclusa non riuscita @@ -69,5 +73,4 @@ in corso {0} · {1} questo PC - Processi {0} / {1} diff --git a/i18n/it/Settings.it.resx b/i18n/it/Settings.it.resx index f171f9e0..b861997e 100644 --- a/i18n/it/Settings.it.resx +++ b/i18n/it/Settings.it.resx @@ -136,6 +136,11 @@ {0} fps · ok Preferisci hardware Hardware per anteprime + Alta + Bassa + Normale + Coda di priorità + Attiva Profilo di qualità Bilanciato Massima qualità diff --git a/i18n/it/Tooltips.it.resx b/i18n/it/Tooltips.it.resx index 78e9ea04..1aaab1b7 100644 --- a/i18n/it/Tooltips.it.resx +++ b/i18n/it/Tooltips.it.resx @@ -320,9 +320,11 @@ Porta dentro le foto da una scheda o da una cartella; importazioni, analisi e rendering compaiono poi qui Alza la priorità: verrà eseguita prima delle attività a priorità più bassa Apre l'oggetto di questa attività + Le attività girano una alla volta; quella in corso elabora insieme questo numero di foto (Impostazioni › Rendering › Parallelismo) Mette in pausa al prossimo punto di ripresa; Riprendi continua da lì Mette in pausa tutte le attività in corso; la coda mantiene il suo ordine Trattiene l'attività in coda finché non la riprendi + Coda di priorità attiva: un'attività di livello più alto mette in pausa quella in corso, che riprende da sola dopo (Impostazioni › Rendering) Rimuove dalla coda; l'attività viene annullata Parallelismo, preferenza hardware, memoria disponibile Rimette l'attività in coda; riparte dal suo punto di ripresa @@ -336,7 +338,6 @@ In pausa; Riprendi continua dal punto di ripresa In attesa di un processo libero su questo PC In esecuzione - Attività in esecuzione su questo PC rispetto ai processi disponibili Indicizza le foto che hai già, dove si trovano; scegli la loro cartella principale Analisi approfondita di ogni fotogramma · viene eseguita come attività in background Analisi approfondita delle sequenze selezionate · un'unica attività @@ -421,7 +422,7 @@ Verifica gli hash delle sequenze selezionate · un'unica attività Mostra la ricerca, i filtri e l'ordinamento salvati con questo nome Dimentica la vista salvata in uso; nessuna sequenza viene toccata - Un nome breve, ad esempio "Notte, 4K, non renderizzate" + Un nome breve, ad esempio "Notte, 4K, non renderizzate" Dai un altro nome alla vista salvata in uso Rinomina la vista · Invio Salva come vista con nome la ricerca, i filtri e l'ordinamento in uso @@ -506,11 +507,11 @@ Invia o ricevi le impostazioni cambiate da una sola parte Sostituisci le impostazioni di questo PC con la copia del server Copia originali e impostazioni sul server ({0}) - Invia al server ogni sequenza solo locale ({0:N0} sequenza, {1}) - Invia al server ogni sequenza solo locale ({0:N0} sequenze, {1}) Il tuo account non può caricare su questo server Collegati a un server per caricare Nessuna sequenza è solo su questo PC + Invia al server ogni sequenza solo locale ({0:N0} sequenza, {1}) + Invia al server ogni sequenza solo locale ({0:N0} sequenze, {1}) Considera attendibile questo certificato per questo server e prosegui con l'accesso Usa questo indirizzo Scheda grafica ed encoder Media Foundation trovati @@ -540,6 +541,7 @@ Carica le impostazioni da un file JSON; la sessione e la disposizione della finestra restano invariate Apri la pagina del Microsoft Store di questa estensione, gratuita o a pagamento; dopo averla installata premi Rileva di nuovo Mentre Titano è in primo piano, l'interfaccia ha la precedenza sulle attività e resta fluida durante rendering e analisi + Livello di «{0}» nella coda di priorità: un livello più alto parte prima e mette in pausa quelli più bassi; le attività dello stesso livello non si interrompono mai Lascia le impostazioni dell'archivio come sono Lascia la cache com'è Lascia l'indice com'è @@ -552,22 +554,26 @@ Senza questa estensione alcuni formati si leggono solo dall'anteprima incorporata, o per niente, su questo PC I fotogrammi con luminosità media al massimo pari a questa quota del bianco contano come notturni (campi stellari, preset notturni) · Invio applica, Esc annulla Apri la cartella dati in Esplora file + Quando Titano è ridotto a icona o in secondo piano, schede inserite, attività finite e messaggi del server compaiono anche come notifiche di Windows Modalità portatile, log, diagnostica, backup e ripristino del database, valori predefiniti Larghezza di analisi, soglie di notte e stelle, analisi profonda Cartella dell'archivio, modelli dei nomi, dimensione di proxy e miniature, riscansioni Quale decodificatore legge ogni formato su questo PC, link per installare i codec Lingua, tema, avvio, notifiche Regole delle sessioni, verifica, duplicati, azioni dopo l'importazione - Quando Titano è ridotto a icona o in secondo piano, schede inserite, attività finite e messaggi del server compaiono anche come notifiche di Windows Profilo di qualità, memoria, parallelismo, encoder Server predefinito, nodo di rendering, certificati attendibili Cartella della cache, miniature in memoria, limite della cache Controllo degli aggiornamenti all'avvio + Foto che l'attività in corso elabora insieme; le attività girano una alla volta. Meno lasciano più spazio agli altri programmi · Invio applica, Esc annulla + Auto: metà dei core logici + Torna ad Auto: metà dei core logici Ogni quanto Titano riscansiona l'archivio per le modifiche fatte altrove, per esempio da un server che lo condivide Attiva quando portable.txt si trova accanto a Titano.exe: tutti i dati restano nella sua cartella data Usa un encoder hardware quando supporta il preset; altrimenti il software I primi tre nomi di un'importazione di esempio con questi modelli Hardware per le anteprime, software per i preset d'archivio + Attiva: un'attività di livello più alto mette in pausa quella in corso senza chiedere, e quella riprende da sola dopo. Disattiva: le attività aspettano il loro turno; metti in pausa quella in corso per far partire la successiva Lato lungo dei proxy JPEG di questo archivio e di quelli nuovi; i proxy già creati tengono la loro dimensione finché non li ricrei Bilanciato va bene quasi sempre; Massima qualità misura a risoluzione doppia e legge più avanti; Veloce misura a metà risoluzione con movimento in bozza Elenca di nuovo gli encoder dopo l'installazione di un driver o di un codec @@ -595,9 +601,6 @@ Ogni pixel viene decodificato Nessun decodificatore su questo PC ne legge i pixel; questi fotogrammi restano fuori dai rendering Invia ogni giorno un conteggio anonimo di versioni e lingue in uso; nient'altro, disattivato per impostazione predefinita - Attività e fotogrammi elaborati insieme; meno lasciano più spazio agli altri programmi · Invio applica, Esc annulla - Auto: metà dei core logici esegue attività insieme, ognuna con il proprio numero di thread - Torna ad Auto: metà dei core logici Installa in Programmi per tutti gli account · chiede l'autorizzazione di amministratore {0} · è un servizio di Windows, quindi si installa per tutti gli utenti in Programmi Torna alle opzioni senza modificare nulla diff --git a/i18n/ja/Admin.ja.resx b/i18n/ja/Admin.ja.resx index 949f455c..fefe495e 100644 --- a/i18n/ja/Admin.ja.resx +++ b/i18n/ja/Admin.ja.resx @@ -92,8 +92,11 @@ / {0} オンライン オリジナル {0} + 一度に写真 {0} 枚 + 一度に写真 {0} 枚 写真 {0} 枚 写真 {0} 枚 + 優先度キュー キューと履歴 ジョブのページを開きます。 待機中 {0} 件 @@ -107,8 +110,6 @@ アップロード · 過去 30 日間 プロキシのないシーケンス {0} 個 プロキシのないシーケンス {0} 個 - ワーカー {0} 個 - ワーカー {0} 個 サーバーから応答がありませんでした。もう一度お試しください。 登録 詳細分析 @@ -279,6 +280,8 @@ Titano クライアント向けに TLS で提供する API のポートです。 ジョブ履歴 (日数) 完了したジョブを保持する日数です。 + 優先度キューにおける「{0}」のレベルです。上位レベルが先に実行され、下位レベルを一時停止します。 + ジョブ 言語 クライアントが言語を指定しない場合のサーバーメッセージの言語です。 制限と保持 @@ -286,8 +289,15 @@ 最大ファイル (MB) 1 回のアップロードで受け付ける最大サイズです。 ネットワークと TLS + 並列処理 + 実行中のジョブが同時に処理する写真の枚数です。ジョブは 1 件ずつ実行されます。 PEM ファイルが見つかりません。サーバー上の完全なパスを入力してください。 「独自の証明書」モードでのみ使用します。 + 高 + 低 + 標準 + 優先度キュー + 有効にすると、上位レベルのジョブが確認なしで実行中のジョブを一時停止し、そのジョブは後で自動的に再開されます。無効にすると、ジョブは順番を待ちます。 プロキシ未経由 TLS モードは「リバースプロキシ」ですが、このページは信頼済みのプロキシから HTTPS 経由で届いていません。プロキシ経由で開くか、プロキシのアドレスを TITANO_TRUSTED_PROXIES に追加してください。 再起動が必要 @@ -308,8 +318,6 @@ クライアントが使用されないままサインイン状態を保つ日数です。 破棄まで (時間) 未完了のアップロードを破棄するまでの時間です。 - ワーカー - このサーバーが同時に実行するジョブの数です。 サインアウト 管理パネルからサインアウトします。 ライトとダークを切り替えます。 diff --git a/i18n/ja/Jobs.ja.resx b/i18n/ja/Jobs.ja.resx index 1465cbd2..b45f0a6e 100644 --- a/i18n/ja/Jobs.ja.resx +++ b/i18n/ja/Jobs.ja.resx @@ -50,10 +50,14 @@ 検証 {0} 件の後 次 + 優先度の高いジョブ ({0}) のために一時停止しました。自動的に再開されます。 ログはまだありません ログを非表示 ログを表示 + 一度に写真 {0} 枚 + 一度に写真 {0} 枚 すべて一時停止 + 優先度キュー レンダリング設定 {0} · {1} 対象または種類を検索 @@ -68,5 +72,4 @@ 実行中 {0} · {1} この PC - ワーカー {0} / {1} diff --git a/i18n/ja/Settings.ja.resx b/i18n/ja/Settings.ja.resx index 73a61808..c6861574 100644 --- a/i18n/ja/Settings.ja.resx +++ b/i18n/ja/Settings.ja.resx @@ -136,6 +136,11 @@ {0} fps · OK ハードウェアを優先 プレビューのみハードウェア + 高 + 低 + 標準 + 優先度キュー + 有効 品質プロファイル バランス 最高品質 diff --git a/i18n/ja/Tooltips.ja.resx b/i18n/ja/Tooltips.ja.resx index 5c45e10a..25822a9f 100644 --- a/i18n/ja/Tooltips.ja.resx +++ b/i18n/ja/Tooltips.ja.resx @@ -320,9 +320,11 @@ カードまたはフォルダーから写真を取り込みます。その後、インポート、分析、レンダリングがここに表示されます。 優先度を上げます。優先度の低いジョブより先に実行されます。 このジョブの対象を開きます。 + ジョブは 1 件ずつ実行されます。実行中のジョブは、この枚数の写真を同時に処理します (設定 › レンダリング › 並列処理)。 次のチェックポイントで一時停止します。「再開」でそこから続行します。 実行中のすべてのジョブを一時停止します。キューの順序は保持されます。 再開するまで、このジョブをキューで保留します。 + 優先度キューが有効です。上位レベルのジョブが実行中のジョブを一時停止し、一時停止したジョブは後で自動的に再開されます (設定 › レンダリング)。 キューから削除します。ジョブはキャンセルされます。 並列処理、ハードウェアの優先設定、メモリ割り当て ジョブをキューに戻します。チェックポイントから続行します。 @@ -336,7 +338,6 @@ 一時停止中です。「再開」でチェックポイントから続行します。 この PC のワーカーの空きを待っています。 実行中です。 - この PC で実行中のジョブ数 / ジョブエンジンのワーカー数 既にある写真をその場所のままインデックス化します。最上位のフォルダーを選択してください。 すべてのフレームを詳細分析します · バックグラウンドでジョブとして実行 選択したシーケンスを詳細分析します · 1 つのジョブとして実行 @@ -540,6 +541,7 @@ JSON ファイルから設定を読み込みます。セッションとウィンドウのレイアウトは変更されません。 この無料または有料の拡張機能の Microsoft Store ページを開きます。インストール後に「再検出」を押してください。 Titano が前面にある間はインターフェイスをジョブより優先して実行し、レンダリングや分析の最中も操作がなめらかになるようにします。 + 優先度キューにおける「{0}」のレベルです。上位レベルが先に実行され、下位レベルを一時停止します。同じレベルのジョブどうしが中断し合うことはありません。 このアーカイブの設定をそのままにします。 キャッシュをそのままにします。 インデックスをそのままにします。 @@ -563,11 +565,15 @@ 既定のサーバー、レンダリングノード、信頼済みの証明書 キャッシュフォルダー、メモリ内のサムネイル、キャッシュの上限 起動時のアップデート確認 + 実行中のジョブが同時に処理する写真の枚数です。ジョブは 1 件ずつ実行されます。少ないほど他のプログラムに余裕ができます · Enter で適用、Esc で元に戻す + 自動: 論理コア数の半分 + 自動に戻す: 論理コア数の半分 他の場所 (アーカイブを共有するサーバーなど) で行われた変更を確認するために、Titano がアーカイブを再スキャンする間隔です。 Titano.exe と同じ場所に portable.txt があるとオンになります。すべてのデータはそのデータフォルダーに保存されます。 プリセットに対応するハードウェアエンコーダーがあればそれを使用し、なければソフトウェアを使用します。 これらのテンプレートでインポートした場合の、最初の 3 つの名前の例 プレビューにはハードウェア、アーカイブ用プリセットにはソフトウェアを使用します。 + 有効にすると、上位レベルのジョブが確認なしで実行中のジョブを一時停止し、そのジョブは後で自動的に再開されます。無効にすると、ジョブは順番を待ちます。次のジョブを開始するには、実行中のジョブを一時停止してください。 このアーカイブと新しいアーカイブの JPEG プロキシの長辺です。作成済みのプロキシは、再作成するまでサイズが変わりません。 「バランス」はほとんどの作業に適しています。「最高品質」は 2 倍の解像度で測定し、より先まで読み込みます。「高速」は半分の解像度で測定し、動きはドラフト品質になります。 ドライバーやコーデックをインストールした後に、エンコーダーを再度一覧表示します。 @@ -595,9 +601,6 @@ すべてのピクセルをデコードします。 この PC にはピクセルを読み取れるデコーダーがありません。このようなフレームはレンダリングから除外されます。 使用中のバージョンと言語の匿名の集計を 1 日 1 回送信します。それ以外は送信されません。既定ではオフです。 - 同時に処理するジョブとフレームの数です。少ないほど他のプログラムに余裕ができます · Enter で適用、Esc で元に戻す - 自動: 論理コア数の半分のジョブを同時に実行し、各ジョブが独自のスレッド数を使います。 - 自動に戻す: 論理コア数の半分 すべてのアカウント用に Program Files にインストールします · 管理者の承認が必要です {0} · Windows サービスとして実行されるため、すべてのユーザー用に Program Files にインストールされます 何も変更せずにオプションに戻ります。 diff --git a/i18n/ko/Admin.ko.resx b/i18n/ko/Admin.ko.resx index 7de5b40e..b2bb2b44 100644 --- a/i18n/ko/Admin.ko.resx +++ b/i18n/ko/Admin.ko.resx @@ -92,8 +92,11 @@ / {0} 온라인 원본 {0} + 한 번에 사진 {0}장 + 한 번에 사진 {0}장 사진 {0}장 사진 {0}장 + 우선순위 대기열 대기열 및 기록 작업 페이지를 엽니다. 대기 중 {0}개 @@ -107,8 +110,6 @@ 업로드 · 최근 30일 프록시 없는 시퀀스 {0}개 프록시 없는 시퀀스 {0}개 - 워커 {0}개 - 워커 {0}개 서버가 응답하지 않았습니다. 다시 시도하십시오. 등록 정밀 분석 @@ -279,6 +280,8 @@ Titano 클라이언트용 TLS를 통한 API의 포트 작업 기록(일) 완료된 작업을 보관하는 일수 + 우선순위 대기열에서 ‘{0}’의 수준입니다. 상위 수준이 먼저 실행되며 하위 수준을 일시 중지합니다. + 작업 언어 클라이언트가 언어를 지정하지 않을 때 쓰는 서버 메시지 언어 제한 및 보존 @@ -286,8 +289,15 @@ 최대 파일(MB) 허용되는 단일 업로드의 최대 크기 네트워크 및 TLS + 병렬 처리 + 실행 중인 작업이 동시에 처리하는 사진 수입니다. 작업은 한 번에 하나씩 실행됩니다. PEM 파일을 찾을 수 없습니다. 서버에 있는 파일의 전체 경로를 입력하십시오. ‘사용자 지정 인증서’ 모드에서만 사용됩니다. + 높음 + 낮음 + 보통 + 우선순위 대기열 + 켜면 상위 수준의 작업이 묻지 않고 실행 중인 작업을 일시 중지하며, 그 작업은 나중에 자동으로 재개됩니다. 끄면 작업이 차례를 기다립니다. 프록시 미경유 TLS 모드가 ‘역방향 프록시’이지만 이 페이지는 신뢰하는 프록시를 거쳐 HTTPS로 전달되지 않았습니다. 사용 중인 프록시를 통해 이 페이지를 열거나 프록시 주소를 TITANO_TRUSTED_PROXIES에 추가하십시오. 다시 시작 필요 @@ -308,8 +318,6 @@ 사용하지 않는 클라이언트가 로그인 상태를 유지하는 일수 미완료 폐기(시간) 완료되지 않은 업로드를 폐기하기까지의 시간 - 워커 - 이 서버가 동시에 실행하는 작업 수 로그아웃 관리 패널에서 로그아웃합니다. 밝은 테마와 어두운 테마 간에 전환합니다. diff --git a/i18n/ko/Jobs.ko.resx b/i18n/ko/Jobs.ko.resx index 72405f43..95531a5e 100644 --- a/i18n/ko/Jobs.ko.resx +++ b/i18n/ko/Jobs.ko.resx @@ -50,10 +50,14 @@ 검증 작업 {0}개 다음 다음 차례 + 우선순위가 더 높은 작업({0}) 때문에 일시 중지되었습니다. 자동으로 재개됩니다. 아직 로그가 없습니다 로그 숨기기 로그 표시 + 한 번에 사진 {0}장 + 한 번에 사진 {0}장 모두 일시 중지 + 우선순위 대기열 렌더링 설정 {0} · {1} 대상 또는 종류 검색 @@ -68,5 +72,4 @@ 실행 중 {0} · {1} 이 PC - 워커 {0} / {1} diff --git a/i18n/ko/Settings.ko.resx b/i18n/ko/Settings.ko.resx index db247c51..3dfd639f 100644 --- a/i18n/ko/Settings.ko.resx +++ b/i18n/ko/Settings.ko.resx @@ -136,6 +136,11 @@ {0} fps · 정상 하드웨어 우선 미리 보기만 하드웨어 + 높음 + 낮음 + 보통 + 우선순위 대기열 + 켬 품질 프로필 균형 최고 diff --git a/i18n/ko/Tooltips.ko.resx b/i18n/ko/Tooltips.ko.resx index 9fd7ced8..7776c0da 100644 --- a/i18n/ko/Tooltips.ko.resx +++ b/i18n/ko/Tooltips.ko.resx @@ -320,9 +320,11 @@ 카드나 폴더에서 사진을 가져옵니다. 가져오기, 분석, 렌더링 작업이 여기에 표시됩니다. 우선순위를 높입니다. 우선순위가 낮은 작업보다 먼저 실행됩니다. 이 작업의 대상을 엽니다. + 작업은 한 번에 하나씩 실행됩니다. 실행 중인 작업이 이 수만큼의 사진을 동시에 처리합니다(설정 › 렌더링 › 병렬 처리). 다음 체크포인트에서 일시 중지합니다. ‘재개’하면 그 지점부터 이어서 진행합니다. 실행 중인 모든 작업을 일시 중지합니다. 대기열 순서는 유지됩니다. 재개할 때까지 이 작업을 대기열에 보류합니다. + 우선순위 대기열이 켜져 있습니다. 상위 수준의 작업이 실행 중인 작업을 일시 중지하며, 일시 중지된 작업은 나중에 자동으로 재개됩니다(설정 › 렌더링). 대기열에서 제거합니다. 작업은 취소됩니다. 병렬 처리, 하드웨어 우선 설정, 메모리 한도 작업을 대기열에 다시 넣습니다. 체크포인트부터 이어서 진행합니다. @@ -336,7 +338,6 @@ 일시 중지되었습니다. ‘재개’하면 체크포인트부터 이어서 진행합니다. 이 PC의 워커를 기다리는 중 지금 실행 중 - 작업 엔진의 워커 중 이 PC에서 실행 중인 작업 수 이미 가지고 있는 사진을 제자리에서 인덱싱합니다. 최상위 폴더를 선택하십시오. 모든 프레임을 정밀 분석합니다 · 백그라운드 작업으로 실행 선택한 시퀀스를 정밀 분석합니다 · 하나의 작업으로 실행 @@ -540,6 +541,7 @@ JSON 파일에서 설정을 불러옵니다. 세션과 창 레이아웃은 그대로 유지됩니다. 이 무료 또는 유료 확장의 Microsoft Store 페이지를 엽니다. 설치한 후 ‘다시 감지’를 누르십시오. Titano가 포그라운드에 있는 동안 인터페이스가 작업보다 우선 실행되어 렌더링과 분석 중에도 부드럽게 유지됩니다. + 우선순위 대기열에서 ‘{0}’의 수준입니다. 상위 수준이 먼저 실행되며 하위 수준을 일시 중지합니다. 같은 수준의 작업끼리는 서로 중단시키지 않습니다. 이 아카이브의 설정을 그대로 둡니다. 캐시를 그대로 둡니다. 인덱스를 그대로 둡니다. @@ -563,11 +565,15 @@ 기본 서버, 렌더링 노드, 신뢰하는 인증서 캐시 폴더, 메모리 내 썸네일, 캐시 한도 시작할 때 업데이트 확인 + 실행 중인 작업이 동시에 처리하는 사진 수입니다. 작업은 한 번에 하나씩 실행됩니다. 적을수록 다른 프로그램에 여유가 생깁니다 · Enter로 적용, Esc로 되돌리기 + 자동: 논리 코어 수의 절반 + 자동으로 되돌리기: 논리 코어 수의 절반 다른 곳(예: 아카이브를 공유하는 서버)에서 변경한 내용을 찾기 위해 Titano가 아카이브를 다시 스캔하는 간격입니다. Titano.exe 옆에 portable.txt가 있으면 켜집니다. 모든 데이터가 해당 데이터 폴더에 보관됩니다. 프리셋을 지원하는 하드웨어 인코더가 있으면 사용하고, 없으면 소프트웨어를 사용합니다. 이 템플릿으로 가져올 때의 처음 세 이름 예시 미리 보기에는 하드웨어, 보관용 프리셋에는 소프트웨어 + 켜면 상위 수준의 작업이 묻지 않고 실행 중인 작업을 일시 중지하며, 그 작업은 나중에 자동으로 재개됩니다. 끄면 작업이 차례를 기다립니다. 다음 작업을 시작하려면 실행 중인 작업을 일시 중지하십시오. 이 아카이브와 새 아카이브의 JPEG 프록시 긴 변입니다. 이미 만든 프록시는 다시 만들 때까지 크기가 유지됩니다. ‘균형’은 대부분의 작업에 적합합니다. ‘최고’는 두 배 해상도로 측정하고 더 멀리 미리 읽으며, ‘빠름’은 절반 해상도로 측정하고 초안 수준의 움직임을 사용합니다. 드라이버나 코덱을 설치한 후 인코더 목록을 다시 만듭니다. @@ -595,9 +601,6 @@ 모든 픽셀을 디코딩합니다. 이 PC에는 픽셀을 읽을 수 있는 디코더가 없습니다. 이러한 프레임은 렌더링에서 제외됩니다. 사용 중인 버전과 언어의 익명 통계를 하루 한 번 보냅니다. 그 외에는 아무것도 보내지 않으며 기본적으로 꺼져 있습니다. - 동시에 처리하는 작업과 프레임 수입니다. 적을수록 다른 프로그램에 여유가 생깁니다 · Enter로 적용, Esc로 되돌리기 - 자동: 논리 코어 수의 절반만큼 작업을 동시에 실행하며, 작업마다 자체 스레드 수를 사용합니다. - 자동으로 되돌리기: 논리 코어 수의 절반 모든 계정을 위해 Program Files에 설치합니다 · 관리자 승인 필요 {0} · Windows 서비스로 실행되므로 Program Files에 모든 사용자용으로 설치됩니다 아무것도 변경하지 않고 옵션으로 돌아갑니다. diff --git a/i18n/lt/Admin.lt.resx b/i18n/lt/Admin.lt.resx index 04260cc2..8cdb4720 100644 --- a/i18n/lt/Admin.lt.resx +++ b/i18n/lt/Admin.lt.resx @@ -96,9 +96,13 @@ iš {0} prisijungę originalai {0} + {0} nuotraukos vienu metu + {0} nuotrauka vienu metu + {0} nuotraukų vienu metu {0} nuotraukos {0} nuotrauka {0} nuotraukų + Prioritetinė eilė Eilė ir istorija Atidaryti užduočių puslapį {0} eilėje @@ -115,9 +119,6 @@ {0} sekos be tarpinių kopijų {0} seka be tarpinių kopijų {0} sekų be tarpinių kopijų - {0} vykdytojai - {0} vykdytojas - {0} vykdytojų Serveris neatsakė; bandykite dar kartą. Perėmimas Išsami analizė @@ -292,6 +293,8 @@ API prievadas per TLS Titano klientams Užduočių istorija (d.) Kiek dienų saugomos baigtos užduotys + Užduoties „{0}“ lygis prioritetinėje eilėje: aukštesnis lygis vykdomas pirmiau ir pristabdo žemesnius + Užduotys Kalba Serverio pranešimų kalba, kai klientas jos nenurodo Ribos ir saugojimas @@ -299,8 +302,15 @@ Didžiausias failas (MB) Didžiausias priimamo vieno įkeliamo failo dydis Tinklas ir TLS + Lygiagretumas + Kiek nuotraukų vykdoma užduotis apdoroja vienu metu; užduotys vykdomos po vieną PEM failas nerastas; įveskite visą jo kelią serveryje. Naudojama tik režimu „Nuosavas sertifikatas“ + Aukštas + Žemas + Įprastas + Prioritetinė eilė + Įjungta: aukštesnio lygio užduotis neklausdama pristabdo vykdomą užduotį, o ši vėliau tęsiama automatiškai. Išjungta: užduotys laukia savo eilės Be tarpinio serverio TLS režimas – „Atvirkštinis tarpinis serveris“, bet šis puslapis gautas ne per patikimą tarpinį serverį HTTPS ryšiu. Atidarykite jį per savo tarpinį serverį arba įtraukite tarpinio serverio adresą į TITANO_TRUSTED_PROXIES. Reikia paleisti iš naujo @@ -321,8 +331,6 @@ Kiek dienų nenaudojamas klientas lieka prisijungęs Atmetama po (val.) Valandos, po kurių nebaigti įkėlimai atmetami - Vykdytojai - Kiek užduočių šis serveris vykdo vienu metu Atsijungti Atsijungti nuo administravimo skydelio Perjungti šviesią arba tamsią temą diff --git a/i18n/lt/Jobs.lt.resx b/i18n/lt/Jobs.lt.resx index beeeeb3c..6fe4aea7 100644 --- a/i18n/lt/Jobs.lt.resx +++ b/i18n/lt/Jobs.lt.resx @@ -51,10 +51,15 @@ Patikra po {0} kita + Pristabdyta dėl aukštesnio prioriteto užduoties ({0}); bus tęsiama automatiškai Žurnalo eilučių dar nėra Slėpti žurnalą Rodyti žurnalą + {0} nuotraukos vienu metu + {0} nuotrauka vienu metu + {0} nuotraukų vienu metu Pristabdyti visas + Prioritetinė eilė Atvaizdavimo parametrai {0} · {1} Ieškoti objekto ar tipo @@ -69,5 +74,4 @@ vykdoma {0} · {1} šis kompiuteris - Vykdytojai {0} / {1} diff --git a/i18n/lt/Settings.lt.resx b/i18n/lt/Settings.lt.resx index b911a6b0..37d5125b 100644 --- a/i18n/lt/Settings.lt.resx +++ b/i18n/lt/Settings.lt.resx @@ -138,6 +138,11 @@ {0} fps · gerai Pirmenybė aparatinei įrangai Aparatinis tik peržiūroms + Aukštas + Žemas + Įprastas + Prioritetinė eilė + Įjungta Kokybės profilis Subalansuotas Geriausias diff --git a/i18n/lt/Tooltips.lt.resx b/i18n/lt/Tooltips.lt.resx index 05385d6c..37fe88b5 100644 --- a/i18n/lt/Tooltips.lt.resx +++ b/i18n/lt/Tooltips.lt.resx @@ -321,9 +321,11 @@ Importuoti nuotraukas iš kortelės ar aplanko; importavimo, analizės ir atvaizdavimo užduotys tada rodomos čia Padidinti prioritetą: užduotis vykdoma prieš žemesnio prioriteto užduotis Atidaryti tai, ką apdorojo ši užduotis + Užduotys vykdomos po vieną; vykdoma užduotis vienu metu apdoroja tiek nuotraukų (Parametrai › Atvaizdavimas › Lygiagretumas) Pristabdyti ties kitu tęsimo tašku; „Tęsti“ tęsia nuo ten Pristabdyti visas vykdomas užduotis; eilės tvarka išlieka Laikyti šią užduotį eilėje, kol ją pratęsite + Prioritetinė eilė įjungta: aukštesnio lygio užduotis pristabdo vykdomą užduotį, kuri vėliau tęsiama automatiškai (Parametrai › Atvaizdavimas) Pašalinti iš eilės; užduotis atšaukiama Lygiagretumas, aparatinės įrangos pirmenybė, atminties limitas Grąžinti užduotį į eilę; ji tęsiama nuo tęsimo taško @@ -337,7 +339,6 @@ Pristabdyta; „Tęsti“ tęsia nuo tęsimo taško Laukia vykdytojo šiame kompiuteryje Vykdoma dabar - Kiek užduočių vykdoma šiame kompiuteryje iš visų užduočių variklio vykdytojų Indeksuoti turimas nuotraukas jų vietoje; pasirinkite viršutinį jų aplanką Išsami kiekvieno kadro analizė · vykdoma kaip foninė užduotis Išsami pažymėtų sekų analizė · vykdoma kaip viena užduotis @@ -557,6 +558,7 @@ Įkelti parametrus iš JSON failo; seansas ir langų išdėstymas nekeičiami Atidaryti šio nemokamo arba mokamo plėtinio „Microsoft Store“ puslapį; įdiegę spustelėkite „Aptikti iš naujo“ Kai Titano yra priekiniame plane, sąsajai teikiama pirmenybė prieš užduotis, todėl atvaizduojant ir analizuojant ji veikia sklandžiai + Užduoties „{0}“ lygis prioritetinėje eilėje: aukštesnis lygis vykdomas pirmiau ir pristabdo žemesnius; to paties lygio užduotys niekada nepertraukia viena kitos Palikti šio archyvo parametrus kaip yra Palikti talpyklą kaip yra Palikti indeksą kaip yra @@ -580,11 +582,15 @@ Numatytasis serveris, atvaizdavimo mazgas, patikimi sertifikatai Talpyklos aplankas, miniatiūros atmintyje, talpyklos riba Naujinimų tikrinimas paleidžiant + Kiek nuotraukų vykdoma užduotis apdoroja vienu metu; užduotys vykdomos po vieną. Kuo mažiau, tuo daugiau vietos kitoms programoms · Enter – taikyti, Esc – atšaukti + Auto: pusė loginių branduolių + Grįžti į Auto: pusė loginių branduolių Kaip dažnai Titano iš naujo nuskaito archyvą ieškant kitur atliktų pakeitimų, pvz., jį bendrai naudojančio serverio Įjungta, kai šalia Titano.exe yra portable.txt: visi duomenys lieka programos duomenų aplanke Naudoti aparatinį koduotuvą, kai jis palaiko išankstinę nuostatą; kitu atveju – programinį Pirmieji trys pavyzdinio importavimo pavadinimai pagal šiuos šablonus Aparatinis peržiūroms, programinis archyvavimo išankstinėms nuostatoms + Įjungta: aukštesnio lygio užduotis neklausdama pristabdo vykdomą užduotį, o ši vėliau tęsiama automatiškai. Išjungta: užduotys laukia savo eilės; norėdami paleisti kitą, pristabdykite vykdomą užduotį Šio ir naujų archyvų JPEG tarpinių kopijų ilgoji kraštinė; anksčiau sukurtos tarpinės kopijos išlaiko savo dydį, kol bus perkurtos „Subalansuotas“ tinka daugumai darbų; „Geriausias“ matuoja dviguba skyra ir skaito toliau į priekį; „Greitas“ matuoja perpus mažesne skyra su juodraštiniu judesiu Iš naujo išvardyti koduotuvus įdiegus tvarkyklę ar kodeką @@ -612,9 +618,6 @@ Iškoduojamas kiekvienas pikselis Joks šio kompiuterio iškoduotuvas neskaito jo pikselių; tokie kadrai neįtraukiami į atvaizdavimą Kasdien siųsti anoniminę naudojamų versijų ir kalbų statistiką; nieko daugiau, pagal numatytuosius parametrus išjungta - Vienu metu apdorojamos užduotys ir kadrai; kuo mažiau, tuo daugiau vietos kitoms programoms · Enter – taikyti, Esc – atšaukti - Auto: pusė loginių branduolių vienu metu vykdo užduotis, kiekviena su savo gijų skaičiumi - Grįžti į Auto: pusė loginių branduolių Įdiegti aplanke Program Files visoms paskyroms · reikia administratoriaus patvirtinimo {0} · veikia kaip Windows tarnyba, todėl diegiama visiems naudotojams aplanke Program Files Grįžti į parinktis nieko nekeičiant diff --git a/i18n/lv/Admin.lv.resx b/i18n/lv/Admin.lv.resx index c5f3e11d..09efd270 100644 --- a/i18n/lv/Admin.lv.resx +++ b/i18n/lv/Admin.lv.resx @@ -96,9 +96,13 @@ no {0} tiešsaistē oriģināli {0} + {0} fotoattēlu vienlaikus + {0} fotoattēls vienlaikus + {0} fotoattēli vienlaikus {0} fotoattēlu {0} fotoattēls {0} fotoattēli + Prioritāšu rinda Rinda un vēsture Atvērt lapu Darbi {0} rindā @@ -115,9 +119,6 @@ {0} secību bez proxy attēliem {0} secība bez proxy attēliem {0} secības bez proxy attēliem - {0} izpildītāju - {0} izpildītājs - {0} izpildītāji Serveris neatbildēja; mēģiniet vēlreiz. Pārņemšana Padziļinātā analīze @@ -292,6 +293,8 @@ API ports Titano klientiem, izmantojot TLS Darbu vēsture (dienas) Cik dienas glabāt pabeigtos darbus + Darba „{0}” līmenis prioritāšu rindā: augstāks līmenis tiek izpildīts pirmais un pauzē zemākos + Darbi Valoda Servera ziņojumu valoda, ja klients to nenorāda Ierobežojumi un glabāšana @@ -299,8 +302,15 @@ Maks. fails (MB) Lielākais pieņemtais viena faila augšupielādes apjoms Tīkls un TLS + Paralēlisms + Fotoattēli, ko aktīvais darbs apstrādā vienlaikus; darbi tiek izpildīti pa vienam PEM fails netika atrasts; ievadiet tā pilno ceļu serverī. Tiek izmantots tikai režīmā „Savs sertifikāts” + Augsta + Zema + Normāla + Prioritāšu rinda + Ieslēgta: augstāka līmeņa darbs bez jautāšanas pauzē aktīvo darbu, un tas pēc tam atsākas automātiski. Izslēgta: darbi gaida savu kārtu Bez starpniekservera TLS režīms ir „Reversais starpniekserveris”, taču šī lapa netika atvērta caur uzticamu starpniekserveri, izmantojot HTTPS. Atveriet to caur savu starpniekserveri vai pievienojiet starpniekservera adresi mainīgajam TITANO_TRUSTED_PROXIES. Jārestartē @@ -321,8 +331,6 @@ Cik dienas klients paliek pierakstījies, ja netiek izmantots Pamests pēc (h) Stundas, pēc kurām nepabeigtās augšupielādes tiek atmestas - Izpildītāji - Darbi, ko šis serveris izpilda vienlaikus Izrakstīties Izrakstīties no administrēšanas paneļa Pārslēgt starp gaišo un tumšo motīvu diff --git a/i18n/lv/Jobs.lv.resx b/i18n/lv/Jobs.lv.resx index fe200c2f..0f8ff0c9 100644 --- a/i18n/lv/Jobs.lv.resx +++ b/i18n/lv/Jobs.lv.resx @@ -51,10 +51,15 @@ Verificēšana pēc {0} nākamais + Pauzēts augstākas prioritātes darba dēļ ({0}); atsāksies automātiski Žurnālā vēl nav rindiņu Paslēpt žurnālu Rādīt žurnālu + {0} fotoattēlu vienlaikus + {0} fotoattēls vienlaikus + {0} fotoattēli vienlaikus Pauzēt visus + Prioritāšu rinda Renderēšanas iestatījumi {0} · {1} Meklēt mērķi vai veidu @@ -69,5 +74,4 @@ darbojas {0} · {1} šis dators - Izpildītāji {0} / {1} diff --git a/i18n/lv/Settings.lv.resx b/i18n/lv/Settings.lv.resx index a5c382bf..b40fca4a 100644 --- a/i18n/lv/Settings.lv.resx +++ b/i18n/lv/Settings.lv.resx @@ -138,6 +138,11 @@ {0} fps · labi Dot priekšroku aparatūrai Aparatūra tikai priekšskatījumiem + Augsta + Zema + Normāla + Prioritāšu rinda + Ieslēgta Kvalitātes profils Līdzsvarots Labākais diff --git a/i18n/lv/Tooltips.lv.resx b/i18n/lv/Tooltips.lv.resx index af217f85..e273e30a 100644 --- a/i18n/lv/Tooltips.lv.resx +++ b/i18n/lv/Tooltips.lv.resx @@ -321,9 +321,11 @@ Ienest fotoattēlus no kartes vai mapes; importēšanas, analīzes un renderēšanas darbi pēc tam parādās šeit Paaugstināt prioritāti: darbs tiek izpildīts pirms zemākas prioritātes darbiem Atvērt to, ar ko strādāja šis darbs + Darbi tiek izpildīti pa vienam; aktīvais darbs vienlaikus apstrādā tik daudz fotoattēlu (Iestatījumi › Renderēšana › Paralēlisms) Pauzēt nākamajā kontrolpunktā; ar „Atsākt” darbs turpinās no turienes Pauzēt visus aktīvos darbus; rinda saglabā savu kārtību Aizturēt šo darbu rindā, līdz to atsāksiet + Prioritāšu rinda ieslēgta: augstāka līmeņa darbs pauzē aktīvo darbu, kas pēc tam atsākas automātiski (Iestatījumi › Renderēšana) Noņemt no rindas; darbs tiek atcelts Paralēlisms, aparatūras priekšroka, atmiņas budžets Atgriezt darbu rindā; tas turpinās no sava kontrolpunkta @@ -337,7 +339,6 @@ Pauzēts; ar „Atsākt” var turpināt no kontrolpunkta Gaida izpildītāju šajā datorā Darbojas tagad - Šajā datorā aktīvie darbi no darbu dzinēja izpildītāju kopskaita Indeksēt jau esošus fotoattēlus to pašreizējā vietā; izvēlieties to augšējo mapi Katra kadra padziļinātā analīze · darbojas kā fona darbs Atlasīto secību padziļinātā analīze · darbojas kā viens darbs @@ -557,6 +558,7 @@ Ielādēt iestatījumus no JSON faila; sesija un loga izkārtojums paliek nemainīti Atvērt šī bezmaksas vai maksas paplašinājuma lapu veikalā Microsoft Store; pēc instalēšanas noklikšķiniet uz „Noteikt vēlreiz” Kamēr Titano ir priekšplānā, tā saskarnei ir priekšroka pār darbiem, tāpēc renderēšanas un analīžu laikā tā darbojas plūstoši + Darba „{0}” līmenis prioritāšu rindā: augstāks līmenis tiek izpildīts pirmais un pauzē zemākos; viena līmeņa darbi nekad nepārtrauc cits citu Atstāt šī arhīva iestatījumus nemainītus Atstāt kešatmiņu, kā ir Atstāt indeksu nemainītu @@ -580,11 +582,15 @@ Noklusējuma serveris, renderēšanas mezgls, uzticamie sertifikāti Kešatmiņas mape, sīktēli atmiņā, kešatmiņas ierobežojums Atjauninājumu pārbaude startējot + Fotoattēli, ko aktīvais darbs apstrādā vienlaikus; darbi tiek izpildīti pa vienam. Mazāks skaits atstāj vairāk vietas citām programmām · Enter piemēro, Esc atsauc + Auto: puse no loģiskajiem kodoliem + Atpakaļ uz Auto: puse no loģiskajiem kodoliem Cik bieži Titano atkārtoti skenē arhīvu, meklējot izmaiņas, kas veiktas citur, piemēram, serverī, kas to koplieto Ieslēgts, ja blakus Titano.exe atrodas portable.txt: visi dati paliek tā datu mapē Izmantot aparatūras kodētāju, ja kāds atbalsta priekšiestatījumu; citādi programmatūras Pirmie trīs nosaukumi parauga importēšanai ar šīm veidnēm Aparatūra priekšskatījumiem, programmatūra arhīva priekšiestatījumiem + Ieslēgta: augstāka līmeņa darbs bez jautāšanas pauzē aktīvo darbu, un tas pēc tam atsākas automātiski. Izslēgta: darbi gaida savu kārtu; lai sāktu nākamo, pauzējiet aktīvo darbu Šī arhīva un jaunu arhīvu JPEG proxy attēlu garākā mala; iepriekš izveidotie proxy attēli saglabā savu izmēru, līdz tiek pārbūvēti „Līdzsvarots” der lielākajai daļai darbu; „Labākais” mēra divkāršā izšķirtspējā un nolasa tālāk uz priekšu; „Ātrs” mēra uz pusi mazākā izšķirtspējā ar aptuvenu kustību Vēlreiz uzskaitīt kodētājus pēc draivera vai kodeka instalēšanas @@ -612,9 +618,6 @@ Tiek dekodēts katrs pikselis Neviens šī datora dekodētājs nenolasa tā pikseļus; šādi kadri netiek iekļauti renderējumos Sūtīt ikdienas anonīmu lietoto versiju un valodu skaitu; nekas cits, pēc noklusējuma izslēgts - Vienlaikus apstrādājamie darbi un kadri; mazāks skaits atstāj vairāk vietas citām programmām · Enter piemēro, Esc atsauc - Auto: puse no loģiskajiem kodoliem vienlaikus izpilda darbus, katrs ar savu pavedienu skaitu - Atpakaļ uz Auto: puse no loģiskajiem kodoliem Instalēt mapē Program Files visiem kontiem · nepieciešams administratora apstiprinājums {0} · darbojas kā Windows pakalpojums, tāpēc tiek instalēts visiem lietotājiem mapē Program Files Atgriezties pie opcijām, neko nemainot diff --git a/i18n/ms/Admin.ms.resx b/i18n/ms/Admin.ms.resx index 628ced14..26678071 100644 --- a/i18n/ms/Admin.ms.resx +++ b/i18n/ms/Admin.ms.resx @@ -92,8 +92,11 @@ daripada {0} dalam talian fail asal {0} + {0} foto serentak + {0} foto serentak {0} foto {0} foto + Baris gilir keutamaan Baris gilir dan sejarah Buka halaman Tugas {0} dalam baris gilir @@ -107,8 +110,6 @@ Muat naik · 30 hari lepas {0} jujukan tanpa proksi {0} jujukan tanpa proksi - {0} pekerja - {0} pekerja Pelayan tidak menjawab; cuba semula. Terima pakai Analisis mendalam @@ -279,6 +280,8 @@ Port API melalui TLS untuk klien Titano Sejarah tugas (hari) Bilangan hari tugas yang selesai disimpan + Peringkat “{0}” dalam baris gilir keutamaan: peringkat lebih tinggi berjalan dahulu dan menjeda peringkat yang lebih rendah + Tugas Bahasa Bahasa mesej pelayan apabila klien tidak meminta sebarang bahasa Had dan pengekalan @@ -286,8 +289,15 @@ Fail maks (MB) Muat naik tunggal terbesar yang diterima Rangkaian dan TLS + Keselarian + Bilangan foto yang diproses serentak oleh tugas yang sedang berjalan; tugas berjalan satu per satu Fail PEM tidak ditemui; masukkan laluan penuhnya pada pelayan. Digunakan dalam mod Sijil sendiri sahaja + Tinggi + Rendah + Biasa + Baris gilir keutamaan + Hidup: tugas peringkat lebih tinggi menjeda tugas yang sedang berjalan tanpa bertanya, dan tugas itu kemudian bersambung semula dengan sendirinya. Mati: tugas menunggu giliran Tidak melalui proksi Mod TLS ialah Proksi songsang, tetapi halaman ini tidak diterima daripada proksi yang dipercayai melalui HTTPS. Buka halaman ini melalui proksi anda, atau tambahkan alamat proksi itu pada TITANO_TRUSTED_PROXIES. Perlu mula semula @@ -308,8 +318,6 @@ Bilangan hari klien kekal didaftar masuk tanpa digunakan Ditinggalkan selepas (j) Bilangan jam sebelum muat naik yang belum selesai dibuang - Pekerja - Bilangan tugas yang dijalankan serentak oleh pelayan ini Daftar keluar Daftar keluar daripada panel pentadbir Tukar antara tema cerah dan gelap diff --git a/i18n/ms/Jobs.ms.resx b/i18n/ms/Jobs.ms.resx index 46a6b577..ed642e90 100644 --- a/i18n/ms/Jobs.ms.resx +++ b/i18n/ms/Jobs.ms.resx @@ -50,10 +50,14 @@ Sahkan selepas {0} seterusnya + Dijeda untuk tugas berkeutamaan lebih tinggi ({0}); akan bersambung semula dengan sendirinya Belum ada baris log Sembunyikan log Tunjukkan log + {0} foto serentak + {0} foto serentak Jeda semua + Baris gilir keutamaan Tetapan render {0} · {1} Cari sasaran atau jenis @@ -68,5 +72,4 @@ berjalan {0} · {1} PC ini - Pekerja {0} / {1} diff --git a/i18n/ms/Settings.ms.resx b/i18n/ms/Settings.ms.resx index ab3ab6b9..d1bf1928 100644 --- a/i18n/ms/Settings.ms.resx +++ b/i18n/ms/Settings.ms.resx @@ -136,6 +136,11 @@ {0} fps · lulus Utamakan perkakasan Perkakasan untuk pratonton sahaja + Tinggi + Rendah + Biasa + Baris gilir keutamaan + Hidup Profil kualiti Seimbang Terbaik diff --git a/i18n/ms/Tooltips.ms.resx b/i18n/ms/Tooltips.ms.resx index be0c3e6c..3adcfc9b 100644 --- a/i18n/ms/Tooltips.ms.resx +++ b/i18n/ms/Tooltips.ms.resx @@ -320,9 +320,11 @@ Bawa masuk foto daripada kad atau folder; import, analisis dan render kemudian dipaparkan di sini Naikkan keutamaan: tugas ini berjalan sebelum tugas yang berkeutamaan lebih rendah Buka perkara yang dikerjakan oleh tugas ini + Tugas berjalan satu per satu; tugas yang sedang berjalan memproses bilangan foto ini serentak (Tetapan › Render › Keselarian) Jeda pada titik semak seterusnya; Sambung semula meneruskannya dari situ Jeda setiap tugas yang sedang berjalan; baris gilir mengekalkan susunannya Tahan tugas ini dalam baris gilir sehingga anda menyambungnya semula + Baris gilir keutamaan hidup: tugas peringkat lebih tinggi menjeda tugas yang sedang berjalan, yang kemudian bersambung semula dengan sendirinya (Tetapan › Render) Alih keluar daripada baris gilir; tugas itu dibatalkan Keselarian, keutamaan perkakasan, bajet memori Masukkan semula tugas ke baris gilir; ia diteruskan dari titik semaknya @@ -336,7 +338,6 @@ Dijeda; Sambung semula meneruskannya dari titik semak Menunggu pekerja pada PC ini Sedang berjalan - Tugas yang berjalan pada PC ini daripada jumlah pekerja enjin tugas Indekskan foto yang sudah anda miliki di lokasi asalnya; pilih folder teratasnya Analisis mendalam setiap bingkai · berjalan sebagai tugas di latar belakang Analisis mendalam jujukan yang dipilih · berjalan sebagai satu tugas @@ -540,6 +541,7 @@ Muatkan tetapan daripada fail JSON; sesi dan susun atur tetingkap kekal seperti sedia ada Buka halaman Microsoft Store bagi sambungan percuma atau berbayar ini; klik Kesan semula selepas memasangnya Semasa Titano berada di latar depan, antara mukanya didahulukan berbanding tugas supaya kekal lancar semasa render dan analisis + Peringkat “{0}” dalam baris gilir keutamaan: peringkat lebih tinggi berjalan dahulu dan menjeda peringkat yang lebih rendah; tugas pada peringkat yang sama tidak pernah mengganggu satu sama lain Biarkan tetapan arkib ini seperti sedia ada Kekalkan cache seperti sedia ada Kekalkan indeks seperti sedia ada @@ -563,11 +565,15 @@ Pelayan lalai, nod render, sijil dipercayai Folder cache, lakaran kecil dalam memori, had cache Semakan kemas kini semasa mula + Bilangan foto yang diproses serentak oleh tugas yang sedang berjalan; tugas berjalan satu per satu. Lebih sedikit memberi lebih banyak ruang kepada program lain · Enter untuk menggunakan, Esc untuk membatalkan + Auto: separuh daripada bilangan teras logik + Kembali ke Auto: separuh daripada bilangan teras logik Kekerapan Titano mengimbas semula arkib untuk perubahan yang dibuat di tempat lain, contohnya oleh pelayan yang berkongsi arkib itu Hidup apabila portable.txt terletak di sebelah Titano.exe: semua data kekal dalam folder datanya Gunakan pengekod perkakasan apabila ada yang menyokong praset; jika tidak, gunakan perisian Tiga nama pertama bagi contoh import dengan templat ini Perkakasan untuk pratonton, perisian untuk praset arkib + Hidup: tugas peringkat lebih tinggi menjeda tugas yang sedang berjalan tanpa bertanya, dan tugas itu kemudian bersambung semula dengan sendirinya. Mati: tugas menunggu giliran; jeda tugas yang sedang berjalan untuk memulakan tugas seterusnya Sisi panjang proksi JPEG bagi arkib ini dan arkib baharu; proksi yang dibina sebelum ini mengekalkan saiznya sehingga dibina semula Seimbang sesuai untuk kebanyakan kerja; Terbaik mengukur pada resolusi berganda dan membaca lebih jauh ke hadapan; Pantas mengukur pada separuh resolusi dengan gerakan draf Senaraikan pengekod sekali lagi selepas pemacu atau kodek dipasang @@ -595,9 +601,6 @@ Setiap piksel dinyahkod Tiada penyahkod pada PC ini yang dapat membaca pikselnya; bingkai sebegini tidak disertakan dalam render Hantar kiraan harian tanpa nama bagi versi dan bahasa yang digunakan; tiada yang lain, dimatikan secara lalai - Tugas dan bingkai yang diproses serentak; lebih sedikit memberi lebih banyak ruang kepada program lain · Enter untuk menggunakan, Esc untuk membatalkan - Auto: separuh daripada bilangan teras logik menjalankan tugas serentak, setiap satu dengan bilangan benangnya sendiri - Kembali ke Auto: separuh daripada bilangan teras logik Pasang dalam Program Files untuk setiap akaun · meminta kelulusan pentadbir {0} · ia berjalan sebagai perkhidmatan Windows, jadi ia dipasang untuk semua pengguna dalam Program Files Kembali ke pilihan tanpa mengubah apa-apa diff --git a/i18n/nb/Admin.nb.resx b/i18n/nb/Admin.nb.resx index e92daa3e..276c8184 100644 --- a/i18n/nb/Admin.nb.resx +++ b/i18n/nb/Admin.nb.resx @@ -92,8 +92,11 @@ av {0} på nett originaler {0} + {0} bilde om gangen + {0} bilder om gangen {0} bilde {0} bilder + Prioritetskø Kø og historikk Åpne Jobber-siden {0} i kø @@ -107,8 +110,6 @@ Opplastinger · siste 30 dager {0} sekvens uten proxyer {0} sekvenser uten proxyer - {0} arbeidsprosess - {0} arbeidsprosesser Serveren svarte ikke; prøv på nytt. Overtakelse Dybdeanalyse @@ -279,6 +280,8 @@ Port for API-et over TLS for Titano-klienter Jobbhistorikk (dager) Antall dager fullførte jobber beholdes + Nivået til «{0}» i prioritetskøen: et høyere nivå kjører først og setter lavere nivåer på pause + Jobber Språk Språket i servermeldinger når en klient ikke ber om et bestemt språk Grenser og oppbevaring @@ -286,8 +289,15 @@ Maks. filstørrelse (MB) Største enkeltopplasting som godtas Nettverk og TLS + Parallellitet + Bilder som den kjørende jobben behandler samtidig; jobber kjører én om gangen Finner ikke PEM-filen; angi den fullstendige banen til filen på serveren. Brukes bare i modusen Eget sertifikat + Høy + Lav + Normal + Prioritetskø + På: en jobb på et høyere nivå setter den kjørende jobben på pause uten å spørre, og den gjenopptas av seg selv etterpå. Av: jobber venter på tur Ikke via proxy TLS-modusen er Omvendt proxy, men denne siden kom ikke gjennom en klarert proxy over HTTPS. Åpne den gjennom proxyen din, eller legg til proxyens adresse i TITANO_TRUSTED_PROXIES. Omstart kreves @@ -308,8 +318,6 @@ Antall dager en klient forblir pålogget uten å bli brukt Forkastes etter (t) Antall timer før uferdige opplastinger forkastes - Arbeidsprosesser - Antall jobber denne serveren kjører samtidig Logg av Logg av administrasjonspanelet Bytt mellom lyst og mørkt tema diff --git a/i18n/nb/Jobs.nb.resx b/i18n/nb/Jobs.nb.resx index 9fe3d393..5ebb4aa9 100644 --- a/i18n/nb/Jobs.nb.resx +++ b/i18n/nb/Jobs.nb.resx @@ -50,10 +50,14 @@ Verifisering etter {0} neste + Satt på pause for en jobb med høyere prioritet ({0}); gjenopptas av seg selv Ingen logglinjer ennå Skjul logg Vis logg + {0} bilde om gangen + {0} bilder om gangen Pause alle + Prioritetskø Renderingsinnstillinger {0} · {1} Søk etter mål eller type @@ -68,5 +72,4 @@ kjører {0} · {1} denne PC-en - Arbeidsprosesser {0} / {1} diff --git a/i18n/nb/Settings.nb.resx b/i18n/nb/Settings.nb.resx index 05a6b0d9..a248a0ab 100644 --- a/i18n/nb/Settings.nb.resx +++ b/i18n/nb/Settings.nb.resx @@ -136,6 +136,11 @@ {0} fps · ok Foretrekk maskinvare Maskinvare for forhåndsvisninger + Høy + Lav + Normal + Prioritetskø + På Kvalitetsprofil Balansert Beste diff --git a/i18n/nb/Tooltips.nb.resx b/i18n/nb/Tooltips.nb.resx index e97d7ff4..bde0d0d9 100644 --- a/i18n/nb/Tooltips.nb.resx +++ b/i18n/nb/Tooltips.nb.resx @@ -320,9 +320,11 @@ Hent inn bilder fra et kort eller en mappe; importjobber, analyser og renderinger vises deretter her Øk prioriteten: jobben kjører før jobber med lavere prioritet Åpne det denne jobben arbeidet med + Jobber kjører én om gangen; den kjørende jobben behandler så mange bilder samtidig (Innstillinger › Rendering › Parallellitet) Sett på pause ved neste kontrollpunkt; «Gjenoppta» fortsetter derfra Sett alle kjørende jobber på pause; køen beholder rekkefølgen Hold denne jobben i køen til du gjenopptar den + Prioritetskøen er på: en jobb på et høyere nivå setter den kjørende jobben på pause, og den gjenopptas av seg selv etterpå (Innstillinger › Rendering) Fjern fra køen; jobben avbrytes Parallellitet, maskinvarepreferanse, minnebudsjett Sett jobben tilbake i køen; den fortsetter fra kontrollpunktet @@ -336,7 +338,6 @@ Satt på pause; «Gjenoppta» fortsetter fra kontrollpunktet Venter på en ledig arbeidsprosess på denne PC-en Arbeider nå - Jobber som kjører på denne PC-en, av jobbmotorens arbeidsprosesser Indekser bilder du allerede har, der de ligger; velg den øverste mappen deres Dybdeanalyse av hvert bilde · kjører som en jobb i bakgrunnen Dybdeanalyse av de valgte sekvensene · kjører som én jobb @@ -540,6 +541,7 @@ Last inn innstillinger fra en JSON-fil; økten og vindusoppsettet forblir som de er Åpne Microsoft Store-siden for denne gratis eller betalte utvidelsen; klikk på Oppdag på nytt etter installasjonen Når Titano er i forgrunnen, går grensesnittet foran jobbene, slik at det reagerer raskt under renderinger og analyser + Nivået til «{0}» i prioritetskøen: et høyere nivå kjører først og setter lavere nivåer på pause; jobber på samme nivå avbryter aldri hverandre La innstillingene for dette arkivet være som de er Behold hurtigbufferen som den er Behold indeksen som den er @@ -563,11 +565,15 @@ Standardserver, renderingsnode, klarerte sertifikater Hurtigbuffermappe, miniatyrbilder i minnet, hurtigbuffergrense Se etter oppdateringer ved oppstart + Bilder som den kjørende jobben behandler samtidig; jobber kjører én om gangen. Færre gir mer plass til andre programmer · Enter tar i bruk, Esc angrer + Auto: halvparten av de logiske kjernene + Tilbake til Auto: halvparten av de logiske kjernene Hvor ofte Titano skanner arkivet på nytt etter endringer gjort andre steder, for eksempel av en server som deler det På når portable.txt ligger ved siden av Titano.exe: alle data blir liggende i programmets egen datamappe Bruk en maskinvarekoder når en støtter forhåndsinnstillingen, ellers programvare De tre første navnene fra en eksempelimport med disse malene Maskinvare for forhåndsvisninger, programvare for arkivforhåndsinnstillinger + På: en jobb på et høyere nivå setter den kjørende jobben på pause uten å spørre, og den gjenopptas av seg selv etterpå. Av: jobber venter på tur; sett den kjørende jobben på pause for å starte den neste Langsiden på JPEG-proxyene i dette arkivet og i nye arkiver; proxyer som allerede er laget, beholder størrelsen sin til de gjenoppbygges Balansert passer til det meste; Beste måler med dobbel oppløsning og leser lenger frem; Rask måler med halv oppløsning og flytkvaliteten Utkast List opp koderne på nytt etter installasjon av en driver eller kodek @@ -595,9 +601,6 @@ Alle piksler dekodes Ingen dekoder på denne PC-en kan lese pikslene i formatet; slike bilder utelates fra renderinger Send en daglig anonym telling av versjoner og språk i bruk; ingenting annet, av som standard - Jobber og bilder som behandles samtidig; færre gir mer plass til andre programmer · Enter tar i bruk, Esc angrer - Auto: halvparten av de logiske kjernene kjører jobber samtidig, hver med sitt eget antall tråder - Tilbake til Auto: halvparten av de logiske kjernene Installer i Program Files for alle kontoer · ber om administratorgodkjenning {0} · kjører som en Windows-tjeneste og installeres derfor for alle brukere i Program Files Gå tilbake til alternativene uten å endre noe diff --git a/i18n/nl/Admin.nl.resx b/i18n/nl/Admin.nl.resx index a8b5bb02..7be8d144 100644 --- a/i18n/nl/Admin.nl.resx +++ b/i18n/nl/Admin.nl.resx @@ -92,8 +92,11 @@ van {0} online originelen {0} + {0} foto tegelijk + {0} foto's tegelijk {0} foto {0} foto's + Prioriteitswachtrij Wachtrij en geschiedenis Open de pagina Taken {0} in wachtrij @@ -107,8 +110,6 @@ Uploads · laatste 30 dagen {0} reeks zonder proxy's {0} reeksen zonder proxy's - {0} werkproces - {0} werkprocessen De server heeft niet gereageerd; probeer het opnieuw. Opnemen Diepgaande analyse @@ -279,6 +280,8 @@ Poort van de API via TLS voor Titano-clients Taakgeschiedenis (dagen) Aantal dagen dat voltooide taken worden bewaard + Niveau van “{0}” in de prioriteitswachtrij: een hoger niveau gaat eerst en onderbreekt lagere niveaus + Taken Taal Taal van serverberichten als een client er geen opgeeft Limieten en bewaartermijn @@ -286,8 +289,15 @@ Max. bestand (MB) Grootste afzonderlijke upload die wordt geaccepteerd Netwerk en TLS + Parallellisme + Foto's die de lopende taak tegelijk verwerkt; taken worden één voor één uitgevoerd Het PEM-bestand is niet gevonden; voer het volledige pad ervan op de server in. Alleen gebruikt in de modus Eigen certificaat + Hoog + Laag + Normaal + Prioriteitswachtrij + Ingeschakeld: een taak van een hoger niveau onderbreekt de lopende taak zonder te vragen, en die gaat daarna vanzelf verder. Uitgeschakeld: taken wachten op hun beurt Niet via proxy De TLS-modus is Reverse proxy, maar deze pagina is niet via een vertrouwde proxy over HTTPS binnengekomen. Open de pagina via je proxy of voeg het adres van de proxy toe aan TITANO_TRUSTED_PROXIES. Opnieuw opstarten vereist @@ -308,8 +318,6 @@ Aantal dagen dat een client aangemeld blijft zonder te worden gebruikt Verlaten na (u) Aantal uren waarna onvoltooide uploads worden verwijderd - Werkprocessen - Aantal taken dat deze server tegelijk uitvoert Afmelden Meld je af bij het beheerpaneel Schakel tussen licht en donker diff --git a/i18n/nl/Jobs.nl.resx b/i18n/nl/Jobs.nl.resx index f80ab89c..70348ae1 100644 --- a/i18n/nl/Jobs.nl.resx +++ b/i18n/nl/Jobs.nl.resx @@ -50,10 +50,14 @@ Verificatie na {0} volgende + Onderbroken voor een taak met hogere prioriteit ({0}); gaat vanzelf verder Nog geen logregels Logboek verbergen Logboek weergeven + {0} foto tegelijk + {0} foto's tegelijk Alle onderbreken + Prioriteitswachtrij Renderinstellingen {0} · {1} Zoek doel of type @@ -68,5 +72,4 @@ bezig {0} · {1} deze pc - Werkprocessen {0} / {1} diff --git a/i18n/nl/Settings.nl.resx b/i18n/nl/Settings.nl.resx index 03a72cff..c5a4e055 100644 --- a/i18n/nl/Settings.nl.resx +++ b/i18n/nl/Settings.nl.resx @@ -136,6 +136,11 @@ {0} fps · ok Voorkeur voor hardware Hardware alleen voor voorbeelden + Hoog + Laag + Normaal + Prioriteitswachtrij + Ingeschakeld Kwaliteitsprofiel Gebalanceerd Beste diff --git a/i18n/nl/Tooltips.nl.resx b/i18n/nl/Tooltips.nl.resx index 41275663..2b761f26 100644 --- a/i18n/nl/Tooltips.nl.resx +++ b/i18n/nl/Tooltips.nl.resx @@ -320,9 +320,11 @@ Haal foto's binnen van een kaart of uit een map; imports, analyses en renders verschijnen daarna hier Verhoog de prioriteit: de taak wordt uitgevoerd vóór taken met een lagere prioriteit Open waaraan deze taak heeft gewerkt + Taken worden één voor één uitgevoerd; de lopende taak verwerkt zoveel foto's tegelijk (Instellingen › Renderen › Parallellisme) Onderbreek bij het volgende controlepunt; Hervatten gaat vanaf daar verder Onderbreek alle lopende taken; de wachtrij behoudt de volgorde Houd deze taak in de wachtrij tot je hem hervat + Prioriteitswachtrij ingeschakeld: een taak van een hoger niveau onderbreekt de lopende taak, die daarna vanzelf verdergaat (Instellingen › Renderen) Verwijder uit de wachtrij; de taak wordt geannuleerd Parallellisme, hardwarevoorkeur, geheugenbudget Zet de taak terug in de wachtrij; die gaat verder vanaf het controlepunt @@ -336,7 +338,6 @@ Onderbroken; Hervatten gaat verder vanaf het controlepunt Wacht op een vrij werkproces op deze pc Nu bezig - Taken die op deze pc worden uitgevoerd ten opzichte van de werkprocessen van de taakengine Indexeer foto's die je al hebt, op hun huidige plek; kies hun bovenste map Diepgaande analyse van elk frame · wordt als taak op de achtergrond uitgevoerd Diepgaande analyse van de geselecteerde reeksen · wordt als één taak uitgevoerd @@ -540,6 +541,7 @@ Laad instellingen uit een JSON-bestand; de sessie en de vensterindeling blijven zoals ze zijn Open de Microsoft Store-pagina van deze gratis of betaalde extensie; kies na de installatie Opnieuw detecteren Zolang Titano op de voorgrond staat, krijgt de interface voorrang op de taken, zodat die vloeiend blijft tijdens renders en analyses + Niveau van “{0}” in de prioriteitswachtrij: een hoger niveau gaat eerst en onderbreekt lagere niveaus; taken van hetzelfde niveau onderbreken elkaar nooit Laat de instellingen van dit archief zoals ze zijn Laat de cache zoals die is Laat de index zoals die is @@ -563,11 +565,15 @@ Standaardserver, renderknooppunt, vertrouwde certificaten Cachemap, miniaturen in geheugen, cachelimiet Controleren op updates bij starten + Foto's die de lopende taak tegelijk verwerkt; taken worden één voor één uitgevoerd. Minder laat meer ruimte voor andere programma's · Enter past toe, Esc maakt ongedaan + Auto: de helft van de logische kernen + Terug naar Auto: de helft van de logische kernen Hoe vaak Titano het archief opnieuw scant op wijzigingen die elders zijn aangebracht, bijvoorbeeld door een server die het deelt Aan wanneer portable.txt naast Titano.exe staat: alle gegevens blijven in de bijbehorende gegevensmap Gebruik een hardware-encoder als die de voorinstelling ondersteunt; anders software Eerste drie namen van een voorbeeldimport met deze sjablonen Hardware voor voorbeelden, software voor archiefvoorinstellingen + Ingeschakeld: een taak van een hoger niveau onderbreekt de lopende taak zonder te vragen, en die gaat daarna vanzelf verder. Uitgeschakeld: taken wachten op hun beurt; onderbreek de lopende taak om de volgende te starten Lange zijde van de JPEG-proxy's van dit archief en van nieuwe archieven; eerder gemaakte proxy's behouden hun grootte tot ze opnieuw worden opgebouwd Gebalanceerd is geschikt voor het meeste werk; Beste meet op dubbele resolutie en leest verder vooruit; Snel meet op halve resolutie met conceptbeweging Toon de encoders opnieuw na installatie van een stuurprogramma of codec @@ -595,9 +601,6 @@ Elke pixel wordt gedecodeerd Geen enkele decoder op deze pc leest de pixels; zulke frames worden uit renders weggelaten Stuur dagelijks een anonieme telling van de gebruikte versies en talen; verder niets, standaard uit - Taken en frames die tegelijk worden verwerkt; minder laat meer ruimte voor andere programma's · Enter past toe, Esc maakt ongedaan - Auto: de helft van de logische kernen voert tegelijk taken uit, elk met een eigen aantal threads - Terug naar Auto: de helft van de logische kernen Installeer in Program Files voor elk account · vraagt om goedkeuring als beheerder {0} · draait als Windows-service en wordt dus voor alle gebruikers in Program Files geïnstalleerd Ga terug naar de opties zonder iets te wijzigen diff --git a/i18n/pl/Admin.pl.resx b/i18n/pl/Admin.pl.resx index cb5cb2fc..ba8a984a 100644 --- a/i18n/pl/Admin.pl.resx +++ b/i18n/pl/Admin.pl.resx @@ -100,10 +100,15 @@ z {0} online oryginały: {0} + {0} zdjęcia naraz + {0} zdjęć naraz + {0} zdjęcie naraz + {0} zdjęć naraz {0} zdjęcia {0} zdjęć {0} zdjęcie {0} zdjęć + Kolejka priorytetowa Kolejka i historia Otwórz stronę Zadania {0} w kolejce @@ -123,10 +128,6 @@ {0} sekwencji bez proxy {0} sekwencja bez proxy {0} sekwencji bez proxy - {0} procesy robocze - {0} procesów roboczych - {0} proces roboczy - {0} procesów roboczych Serwer nie odpowiedział; spróbuj ponownie. Dołączanie Dogłębna analiza @@ -305,6 +306,8 @@ Port API przez TLS dla klientów Titano Historia zadań (dni) Liczba dni przechowywania zakończonych zadań + Poziom „{0}” w kolejce priorytetowej: wyższy poziom jest wykonywany jako pierwszy i wstrzymuje niższe + Zadania Język Język komunikatów serwera, gdy klient nie wskaże żadnego Limity i przechowywanie @@ -312,8 +315,15 @@ Maks. rozmiar pliku (MB) Największy akceptowany rozmiar pojedynczego przesyłanego pliku Sieć i TLS + Równoległość + Liczba zdjęć przetwarzanych naraz przez wykonywane zadanie; zadania są wykonywane po jednym Nie znaleziono pliku PEM; wprowadź jego pełną ścieżkę na serwerze. Używany tylko w trybie Własny certyfikat + Wysoki + Niski + Normalny + Kolejka priorytetowa + Włączona: zadanie wyższego poziomu bez pytania wstrzymuje wykonywane zadanie, które potem samo się wznawia. Wyłączona: zadania czekają na swoją kolej Bez serwera proxy Tryb TLS to „Zwrotny serwer proxy”, ale ta strona nie dotarła przez zaufany serwer proxy połączeniem HTTPS. Otwórz ją przez swój serwer proxy lub dodaj jego adres do TITANO_TRUSTED_PROXIES. Wymagane ponowne uruchomienie @@ -334,8 +344,6 @@ Liczba dni, przez które nieużywany klient pozostaje zalogowany Porzucone po (h) Liczba godzin, po których nieukończone przesyłanie plików zostaje odrzucone - Procesy robocze - Liczba zadań uruchamianych jednocześnie przez ten serwer Wyloguj się Wyloguj się z panelu administracyjnego Przełącz między motywem jasnym a ciemnym diff --git a/i18n/pl/Jobs.pl.resx b/i18n/pl/Jobs.pl.resx index 35931be9..1ba955b9 100644 --- a/i18n/pl/Jobs.pl.resx +++ b/i18n/pl/Jobs.pl.resx @@ -52,10 +52,16 @@ Weryfikacja przed nim: {0} następne + Wstrzymane na rzecz zadania o wyższym priorytecie ({0}); wznowi się samo Brak wierszy dziennika Ukryj dziennik Pokaż dziennik + {0} zdjęcia naraz + {0} zdjęć naraz + {0} zdjęcie naraz + {0} zdjęć naraz Wstrzymaj wszystkie + Kolejka priorytetowa Ustawienia renderowania {0} · {1} Szukaj celu lub rodzaju @@ -70,5 +76,4 @@ w toku {0} · {1} ten komputer - Procesy robocze {0} / {1} diff --git a/i18n/pl/Settings.pl.resx b/i18n/pl/Settings.pl.resx index 1d6e26a0..c618ce08 100644 --- a/i18n/pl/Settings.pl.resx +++ b/i18n/pl/Settings.pl.resx @@ -140,6 +140,11 @@ {0} fps · ok Preferuj sprzętowe Sprzętowe tylko do podglądów + Wysoki + Niski + Normalny + Kolejka priorytetowa + Włączona Profil jakości Zrównoważony Najlepszy diff --git a/i18n/pl/Tooltips.pl.resx b/i18n/pl/Tooltips.pl.resx index bfe7fda8..75800e33 100644 --- a/i18n/pl/Tooltips.pl.resx +++ b/i18n/pl/Tooltips.pl.resx @@ -322,9 +322,11 @@ Zaimportuj zdjęcia z karty lub folderu; zadania importu, analizy i renderowania pojawią się potem tutaj Podnieś priorytet: zadanie zostanie uruchomione przed zadaniami o niższym priorytecie Otwórz element, na którym działało to zadanie + Zadania są wykonywane po jednym; wykonywane zadanie przetwarza naraz tyle zdjęć (Ustawienia › Renderowanie › Równoległość) Wstrzymaj w następnym punkcie wznowienia; przycisk Wznów kontynuuje od tego miejsca Wstrzymaj wszystkie uruchomione zadania; kolejka zachowuje kolejność Zatrzymaj to zadanie w kolejce, dopóki go nie wznowisz + Kolejka priorytetowa włączona: zadanie wyższego poziomu wstrzymuje wykonywane zadanie, które potem samo się wznawia (Ustawienia › Renderowanie) Usuń z kolejki; zadanie zostanie anulowane Równoległość, preferencje sprzętowe, budżet pamięci Przywróć zadanie do kolejki; będzie kontynuowane od punktu wznowienia @@ -338,7 +340,6 @@ Wstrzymane; przycisk Wznów kontynuuje od punktu wznowienia Czeka na proces roboczy na tym komputerze Wykonywane teraz - Zadania uruchomione na tym komputerze i łączna liczba procesów roboczych silnika zadań Zaindeksuj posiadane zdjęcia w ich obecnym miejscu; wybierz ich folder nadrzędny Dogłębna analiza każdej klatki · działa w tle jako zadanie Dogłębna analiza zaznaczonych sekwencji · działa jako jedno zadanie @@ -574,6 +575,7 @@ Wczytaj ustawienia z pliku JSON; sesja i układ okna pozostaną bez zmian Otwórz stronę tego bezpłatnego lub płatnego rozszerzenia w Microsoft Store; po instalacji kliknij przycisk Wykryj ponownie Gdy Titano jest na pierwszym planie, jego interfejs ma pierwszeństwo przed zadaniami, dzięki czemu pozostaje płynny podczas renderowania i analiz + Poziom „{0}” w kolejce priorytetowej: wyższy poziom jest wykonywany jako pierwszy i wstrzymuje niższe; zadania tego samego poziomu nigdy się wzajemnie nie przerywają Pozostaw ustawienia tego archiwum bez zmian Pozostaw pamięć podręczną bez zmian Pozostaw indeks bez zmian @@ -597,11 +599,15 @@ Serwer domyślny, węzeł renderowania, zaufane certyfikaty Folder pamięci podręcznej, miniatury w pamięci, limit pamięci podręcznej Sprawdzanie aktualizacji przy uruchomieniu + Liczba zdjęć przetwarzanych naraz przez wykonywane zadanie; zadania są wykonywane po jednym. Mniejsza wartość zostawia więcej zasobów innym programom · Enter stosuje, Esc przywraca + Auto: połowa rdzeni logicznych + Przywróć Auto: połowa rdzeni logicznych Jak często Titano ponownie skanuje archiwum w poszukiwaniu zmian wprowadzonych gdzie indziej, np. przez serwer, który je współdzieli Włączony, gdy obok Titano.exe znajduje się plik portable.txt: wszystkie dane pozostają w jego folderze danych Używaj enkodera sprzętowego, jeśli obsługuje on preset; w przeciwnym razie programowego Pierwsze trzy nazwy przykładowego importu z tymi szablonami Sprzętowe do podglądów, programowe dla presetów archiwalnych + Włączona: zadanie wyższego poziomu bez pytania wstrzymuje wykonywane zadanie, które potem samo się wznawia. Wyłączona: zadania czekają na swoją kolej; wstrzymaj wykonywane zadanie, aby uruchomić następne Dłuższa krawędź plików proxy JPEG tego archiwum i nowych archiwów; wcześniej utworzone pliki proxy zachowują swój rozmiar do czasu odbudowy Zrównoważony sprawdza się w większości zastosowań; Najlepszy mierzy w podwójnej rozdzielczości i wczytuje klatki z większym wyprzedzeniem; Szybki mierzy w połowie rozdzielczości z roboczym wyznaczaniem ruchu Ponownie wyświetl listę enkoderów po instalacji sterownika lub kodeka @@ -629,9 +635,6 @@ Dekodowany jest każdy piksel Żaden dekoder na tym komputerze nie odczytuje jego pikseli; takie klatki są pomijane w renderach Wysyłaj codziennie anonimową liczbę używanych wersji i języków; nic więcej, domyślnie wyłączone - Liczba zadań i klatek przetwarzanych jednocześnie; mniejsza wartość zostawia więcej zasobów innym programom · Enter stosuje, Esc przywraca - Auto: jednocześnie działa tyle zadań, ile wynosi połowa liczby rdzeni logicznych, każde z własną liczbą wątków - Przywróć Auto: połowa rdzeni logicznych Zainstaluj w folderze Program Files dla wszystkich kont · wymaga zgody administratora {0} · działa jako usługa systemu Windows, więc instaluje się dla wszystkich użytkowników w folderze Program Files Wróć do opcji bez wprowadzania zmian diff --git a/i18n/pt-BR/Admin.pt-BR.resx b/i18n/pt-BR/Admin.pt-BR.resx index c6c7ba94..67417b76 100644 --- a/i18n/pt-BR/Admin.pt-BR.resx +++ b/i18n/pt-BR/Admin.pt-BR.resx @@ -92,8 +92,11 @@ de {0} online originais {0} + {0} foto por vez + {0} fotos por vez {0} foto {0} fotos + Fila de prioridade Fila e histórico Abre a página Tarefas {0} na fila @@ -107,8 +110,6 @@ Envios · últimos 30 dias {0} sequência sem proxies {0} sequências sem proxies - {0} processo - {0} processos O servidor não respondeu; tente novamente. Adoção Análise aprofundada @@ -279,6 +280,8 @@ Porta da API via TLS para os clientes Titano Histórico de tarefas (dias) Dias em que as tarefas concluídas são mantidas + Nível de “{0}” na fila de prioridade: um nível mais alto é executado primeiro e pausa os mais baixos + Tarefas Idioma Idioma das mensagens do servidor quando o cliente não pede nenhum Limites e retenção @@ -286,8 +289,15 @@ Arquivo máximo (MB) Maior envio individual aceito Rede e TLS + Paralelismo + Fotos que a tarefa em execução processa ao mesmo tempo; as tarefas são executadas uma por vez O arquivo PEM não foi encontrado; insira o caminho completo dele no servidor. Usado só no modo Certificado próprio + Alta + Baixa + Normal + Fila de prioridade + Ativada: uma tarefa de nível mais alto pausa a que está em execução sem perguntar, e esta é retomada sozinha depois. Desativada: as tarefas aguardam a vez Sem proxy O modo TLS é Proxy reverso, mas esta página não chegou por um proxy confiável via HTTPS. Abra-a pelo seu proxy ou adicione o endereço do proxy a TITANO_TRUSTED_PROXIES. Reinicialização necessária @@ -308,8 +318,6 @@ Dias que um cliente permanece conectado sem ser usado Abandonado após (h) Horas após as quais os envios incompletos são descartados - Processos - Tarefas que este servidor executa ao mesmo tempo Sair Sai do painel de administração Alterna entre o tema claro e o escuro diff --git a/i18n/pt-BR/Jobs.pt-BR.resx b/i18n/pt-BR/Jobs.pt-BR.resx index 6e92e3b4..1750740f 100644 --- a/i18n/pt-BR/Jobs.pt-BR.resx +++ b/i18n/pt-BR/Jobs.pt-BR.resx @@ -50,10 +50,14 @@ Verificação após {0} próxima + Pausada por uma tarefa de prioridade mais alta ({0}); será retomada automaticamente Nenhuma linha de log ainda Ocultar log Mostrar log + {0} foto por vez + {0} fotos por vez Pausar todas + Fila de prioridade Configurações de renderização {0} · {1} Pesquisar alvo ou tipo @@ -68,5 +72,4 @@ em execução {0} · {1} este PC - Processos {0} / {1} diff --git a/i18n/pt-BR/Settings.pt-BR.resx b/i18n/pt-BR/Settings.pt-BR.resx index c80c8474..692f213d 100644 --- a/i18n/pt-BR/Settings.pt-BR.resx +++ b/i18n/pt-BR/Settings.pt-BR.resx @@ -136,6 +136,11 @@ {0} fps · ok Preferir hardware Hardware só para prévias + Alta + Baixa + Normal + Fila de prioridade + Ativada Perfil de qualidade Equilibrado Melhor diff --git a/i18n/pt-BR/Tooltips.pt-BR.resx b/i18n/pt-BR/Tooltips.pt-BR.resx index 2ad7e5e4..b786fcb6 100644 --- a/i18n/pt-BR/Tooltips.pt-BR.resx +++ b/i18n/pt-BR/Tooltips.pt-BR.resx @@ -320,9 +320,11 @@ Importa fotos de um cartão ou de uma pasta; importações, análises e renderizações aparecem aqui depois Aumenta a prioridade: a tarefa é executada antes das de prioridade mais baixa Abre o que esta tarefa processou + As tarefas são executadas uma por vez; a tarefa em execução processa esta quantidade de fotos ao mesmo tempo (Configurações › Renderização › Paralelismo) Pausa no próximo ponto de retomada; Retomar continua dali Pausa todas as tarefas em execução; a fila mantém a ordem Segura esta tarefa na fila até você retomá-la + Fila de prioridade ativada: uma tarefa de nível mais alto pausa a que está em execução, que depois é retomada sozinha (Configurações › Renderização) Remove da fila; a tarefa é cancelada Paralelismo, preferência de hardware, limite de memória Coloca a tarefa de volta na fila; ela continua a partir do ponto de retomada @@ -336,7 +338,6 @@ Pausada; Retomar continua a partir do ponto de retomada Aguardando um processo livre neste PC Em execução agora - Tarefas em execução neste PC em relação aos processos do mecanismo de tarefas Indexa as fotos que você já tem, onde estão; escolha a pasta principal delas Análise aprofundada de cada quadro · em uma tarefa em segundo plano Análise aprofundada das sequências selecionadas · em uma única tarefa @@ -540,6 +541,7 @@ Carrega configurações de um arquivo JSON; a sessão e o layout da janela ficam como estão Abre a página da Microsoft Store desta extensão gratuita ou paga; depois de instalá-la, clique em Detectar de novo Enquanto o Titano está em primeiro plano, a interface tem prioridade sobre as tarefas e continua fluida durante renderizações e análises + Nível de “{0}” na fila de prioridade: um nível mais alto é executado primeiro e pausa os mais baixos; tarefas do mesmo nível nunca interrompem umas às outras Mantém as configurações deste acervo como estão Mantém o cache como está Mantém o índice como está @@ -563,11 +565,15 @@ Servidor padrão, nó de renderização, certificados confiáveis Pasta do cache, miniaturas na memória, limite do cache Verificação de atualizações ao iniciar + Fotos que a tarefa em execução processa ao mesmo tempo; as tarefas são executadas uma por vez. Menos deixa mais espaço para outros programas · Enter aplica, Esc reverte + Auto: metade dos núcleos lógicos + Volta para Auto: metade dos núcleos lógicos Com que frequência o Titano examina o acervo de novo em busca de alterações feitas em outro lugar, por exemplo por um servidor que o compartilha Ativado quando portable.txt está ao lado de Titano.exe: todos os dados ficam na pasta data dele Usa um codificador de hardware quando algum suporta a predefinição; caso contrário, software Os três primeiros nomes de uma importação de exemplo com estes modelos Hardware para prévias, software para predefinições de acervo + Ativada: uma tarefa de nível mais alto pausa a que está em execução sem perguntar, e esta é retomada sozinha depois. Desativada: as tarefas aguardam a vez; pause a tarefa em execução para iniciar a próxima Lado maior dos proxies JPEG deste acervo e dos acervos novos; os proxies já criados mantêm o tamanho até serem recriados Equilibrado serve para quase tudo; Melhor mede em resolução dupla e lê mais à frente; Rápido mede em meia resolução com movimento em rascunho Lista os codificadores de novo após instalar um driver ou codec @@ -595,9 +601,6 @@ Todos os pixels são decodificados Nenhum decodificador neste PC lê os pixels; esses quadros ficam fora das renderizações Envia uma contagem anônima diária das versões e idiomas em uso; nada mais, desativado por padrão - Tarefas e quadros processados ao mesmo tempo; menos deixa mais espaço para outros programas · Enter aplica, Esc reverte - Auto: metade dos núcleos lógicos executa tarefas ao mesmo tempo, cada uma com o próprio número de threads - Volta para Auto: metade dos núcleos lógicos Instala em Arquivos de Programas para todas as contas · pede aprovação de administrador {0} · é executado como serviço do Windows, então é instalado para todos os usuários em Arquivos de Programas Volta às opções sem alterar nada diff --git a/i18n/pt-PT/Admin.pt-PT.resx b/i18n/pt-PT/Admin.pt-PT.resx index 04a5ae3b..42c40b7d 100644 --- a/i18n/pt-PT/Admin.pt-PT.resx +++ b/i18n/pt-PT/Admin.pt-PT.resx @@ -92,8 +92,11 @@ de {0} online originais {0} + {0} fotografia de cada vez + {0} fotografias de cada vez {0} fotografia {0} fotografias + Fila de prioridade Fila e histórico Abrir a página Tarefas {0} em fila @@ -107,8 +110,6 @@ Carregamentos · últimos 30 dias {0} sequência sem proxies {0} sequências sem proxies - {0} processo - {0} processos O servidor não respondeu; tente novamente. Adoção Análise aprofundada @@ -279,6 +280,8 @@ Porta da API por TLS para os clientes Titano Histórico de tarefas (dias) Dias durante os quais as tarefas terminadas são mantidas + Nível de «{0}» na fila de prioridade: um nível superior é executado primeiro e pausa os inferiores + Tarefas Idioma Idioma das mensagens do servidor quando um cliente não pede nenhum Limites e retenção @@ -286,8 +289,15 @@ Ficheiro máx. (MB) Maior carregamento individual aceite Rede e TLS + Paralelismo + Fotografias que a tarefa em curso processa em simultâneo; as tarefas são executadas uma de cada vez O ficheiro PEM não foi encontrado; introduza o caminho completo no servidor. Utilizado apenas no modo Certificado próprio + Alta + Baixa + Normal + Fila de prioridade + Ativada: uma tarefa de nível superior pausa a tarefa em curso sem perguntar, e esta é depois retomada automaticamente. Desativada: as tarefas aguardam a sua vez Sem proxy O modo TLS é Proxy inverso, mas esta página não chegou através de um proxy fidedigno por HTTPS. Abra-a através do seu proxy ou adicione o endereço do proxy a TITANO_TRUSTED_PROXIES. Reinício necessário @@ -308,8 +318,6 @@ Dias durante os quais um cliente mantém a sessão iniciada sem ser utilizado Abandonado após (h) Horas após as quais os carregamentos inacabados são descartados - Processos - Tarefas que este servidor executa em simultâneo Terminar sessão Terminar sessão no painel de administração Alternar entre o tema claro e o escuro diff --git a/i18n/pt-PT/Jobs.pt-PT.resx b/i18n/pt-PT/Jobs.pt-PT.resx index c76fe0cd..4cee42f4 100644 --- a/i18n/pt-PT/Jobs.pt-PT.resx +++ b/i18n/pt-PT/Jobs.pt-PT.resx @@ -50,10 +50,14 @@ Verificação após {0} a seguir + Em pausa devido a uma tarefa de prioridade superior ({0}); é retomada automaticamente Ainda sem linhas de registo Ocultar registo Mostrar registo + {0} fotografia de cada vez + {0} fotografias de cada vez Pausar tudo + Fila de prioridade Definições de renderização {0} · {1} Pesquisar alvo ou tipo @@ -68,5 +72,4 @@ em execução {0} · {1} este PC - Processos {0} / {1} diff --git a/i18n/pt-PT/Settings.pt-PT.resx b/i18n/pt-PT/Settings.pt-PT.resx index 1422b5cc..f9cb88cf 100644 --- a/i18n/pt-PT/Settings.pt-PT.resx +++ b/i18n/pt-PT/Settings.pt-PT.resx @@ -136,6 +136,11 @@ {0} fps · ok Preferir hardware Hardware só para pré-visualizações + Alta + Baixa + Normal + Fila de prioridade + Ativada Perfil de qualidade Equilibrado Melhor diff --git a/i18n/pt-PT/Tooltips.pt-PT.resx b/i18n/pt-PT/Tooltips.pt-PT.resx index f090c4e1..84ed7859 100644 --- a/i18n/pt-PT/Tooltips.pt-PT.resx +++ b/i18n/pt-PT/Tooltips.pt-PT.resx @@ -320,9 +320,11 @@ Importar fotografias de um cartão ou de uma pasta; as importações, as análises e as renderizações aparecem depois aqui Aumentar a prioridade: é executada antes das tarefas de prioridade inferior Abrir aquilo em que esta tarefa trabalhou + As tarefas são executadas uma de cada vez; a tarefa em curso processa este número de fotografias em simultâneo (Definições › Renderização › Paralelismo) Pausar no próximo ponto de retoma; «Retomar» continua a partir daí Pausar todas as tarefas em execução; a fila mantém a sua ordem Reter esta tarefa na fila até a retomar + Fila de prioridade ativada: uma tarefa de nível superior pausa a tarefa em curso, que depois é retomada automaticamente (Definições › Renderização) Remover da fila; a tarefa é cancelada Paralelismo, preferência de hardware, limite de memória Repor a tarefa na fila; continua a partir do respetivo ponto de retoma @@ -336,7 +338,6 @@ Em pausa; «Retomar» continua a partir do ponto de retoma À espera de um processo neste PC Em curso - Tarefas em execução neste PC, do total de processos do motor de tarefas Indexar as fotografias que já tem, sem as mover; escolha a pasta de nível superior Análise aprofundada de cada fotograma · executada como tarefa em segundo plano Análise aprofundada das sequências selecionadas · executada como uma única tarefa @@ -540,6 +541,7 @@ Carregar definições de um ficheiro JSON; a sessão e a disposição da janela mantêm-se Abrir a página da Microsoft Store desta extensão gratuita ou paga; depois de a instalar, use Detetar de novo Enquanto o Titano está em primeiro plano, a interface tem prioridade sobre as tarefas para se manter fluida durante renderizações e análises + Nível de «{0}» na fila de prioridade: um nível superior é executado primeiro e pausa os inferiores; as tarefas do mesmo nível nunca se interrompem umas às outras Manter as definições deste arquivo como estão Manter a cache como está Manter o índice como está @@ -563,11 +565,15 @@ Servidor predefinido, nó de renderização, certificados fidedignos Pasta da cache, miniaturas em memória, limite da cache Verificação de atualizações ao iniciar + Fotografias que a tarefa em curso processa em simultâneo; as tarefas são executadas uma de cada vez. Menos deixam mais espaço a outros programas · Enter aplica, Esc reverte + Auto: metade dos núcleos lógicos + Voltar a Auto: metade dos núcleos lógicos Com que frequência o Titano examina de novo o arquivo à procura de alterações feitas noutro local, por exemplo por um servidor que o partilha Ativado quando o portable.txt está junto ao Titano.exe: todos os dados ficam na respetiva pasta de dados Utilizar um codificador de hardware quando algum suporta a predefinição; caso contrário, software Os três primeiros nomes de uma importação de exemplo com estes modelos Hardware para pré-visualizações, software para as predefinições de arquivo + Ativada: uma tarefa de nível superior pausa a tarefa em curso sem perguntar, e esta é depois retomada automaticamente. Desativada: as tarefas aguardam a sua vez; pause a tarefa em curso para iniciar a seguinte Lado maior dos proxies JPEG deste arquivo e dos novos arquivos; os proxies criados antes mantêm o tamanho até serem recriados Equilibrado serve para a maioria dos trabalhos; Melhor mede com o dobro da resolução e lê mais à frente; Rápido mede com metade da resolução e movimento de rascunho Listar novamente os codificadores após instalar um controlador ou codec @@ -595,9 +601,6 @@ Todos os píxeis são descodificados Nenhum descodificador neste PC lê os respetivos píxeis; esses fotogramas ficam de fora das renderizações Enviar diariamente uma contagem anónima das versões e idiomas em uso; nada mais, desativado por predefinição - Tarefas e fotogramas processados em simultâneo; menos deixam mais espaço a outros programas · Enter aplica, Esc reverte - Auto: metade dos núcleos lógicos executa tarefas em simultâneo, cada uma com o seu próprio número de threads - Voltar a Auto: metade dos núcleos lógicos Instalar em Program Files para todas as contas · pede aprovação de administrador {0} · é executado como serviço do Windows, pelo que é instalado para todos os utilizadores em Program Files Voltar às opções sem alterar nada diff --git a/i18n/ro/Admin.ro.resx b/i18n/ro/Admin.ro.resx index a268a2d5..aa792371 100644 --- a/i18n/ro/Admin.ro.resx +++ b/i18n/ro/Admin.ro.resx @@ -96,9 +96,13 @@ din {0} online originale {0} + {0} fotografii odată + {0} fotografie odată + {0} de fotografii odată {0} fotografii {0} fotografie {0} de fotografii + Coadă cu priorități Coadă și istoric Deschideți pagina Lucrări în coadă: {0} @@ -115,9 +119,6 @@ {0} secvențe fără proxy-uri {0} secvență fără proxy-uri {0} de secvențe fără proxy-uri - {0} procese de lucru - {0} proces de lucru - {0} de procese de lucru Serverul nu a răspuns; încercați din nou. Adoptare Analiză aprofundată @@ -292,6 +293,8 @@ Portul API-ului prin TLS pentru clienții Titano Istoric lucrări (zile) Numărul de zile în care sunt păstrate lucrările încheiate + Nivelul pentru „{0}” în coada cu priorități: un nivel superior rulează primul și pune pe pauză nivelurile inferioare + Lucrări Limbă Limba mesajelor serverului atunci când clientul nu cere una anume Limite și păstrare @@ -299,8 +302,15 @@ Fișier maxim (MB) Cea mai mare încărcare individuală acceptată Rețea și TLS + Paralelism + Fotografiile pe care lucrarea în curs le procesează simultan; lucrările rulează pe rând Fișierul PEM nu a fost găsit; introduceți calea lui completă de pe server. Folosit doar în modul Certificat propriu + Ridicată + Scăzută + Normală + Coadă cu priorități + Activată: o lucrare de nivel superior pune pe pauză lucrarea în curs fără să întrebe, iar aceasta se reia apoi singură. Dezactivată: lucrările își așteaptă rândul Fără proxy Modul TLS este Proxy invers, dar această pagină nu a sosit prin HTTPS de la un proxy de încredere. Deschideți-o prin proxy-ul dumneavoastră sau adăugați adresa proxy-ului în TITANO_TRUSTED_PROXIES. Repornire necesară @@ -321,8 +331,6 @@ Numărul de zile în care un client rămâne autentificat fără a fi folosit Abandonat după (h) Numărul de ore după care încărcările neterminate sunt eliminate - Procese de lucru - Lucrările pe care acest server le rulează simultan Ieșire din cont Ieșiți din contul panoului de administrare Comutați între modul luminos și cel întunecat diff --git a/i18n/ro/Jobs.ro.resx b/i18n/ro/Jobs.ro.resx index 4e8ae006..a0dcbdbe 100644 --- a/i18n/ro/Jobs.ro.resx +++ b/i18n/ro/Jobs.ro.resx @@ -51,10 +51,15 @@ Verificare după {0} următoarea + Pusă pe pauză pentru o lucrare cu prioritate mai mare ({0}); se reia singură Niciun rând în jurnal încă Ascundere jurnal Afișare jurnal + {0} fotografii odată + {0} fotografie odată + {0} de fotografii odată Pauză pentru toate + Coadă cu priorități Setări de randare {0} · {1} Căutați ținta sau tipul @@ -69,5 +74,4 @@ în curs {0} · {1} acest PC - Procese de lucru {0} / {1} diff --git a/i18n/ro/Settings.ro.resx b/i18n/ro/Settings.ro.resx index 311effc6..f47a3171 100644 --- a/i18n/ro/Settings.ro.resx +++ b/i18n/ro/Settings.ro.resx @@ -138,6 +138,11 @@ {0} fps · ok Preferință hardware Hardware doar pentru previzualizări + Ridicată + Scăzută + Normală + Coadă cu priorități + Activată Profil de calitate Echilibrat Calitate maximă diff --git a/i18n/ro/Tooltips.ro.resx b/i18n/ro/Tooltips.ro.resx index 442517e9..b5702b84 100644 --- a/i18n/ro/Tooltips.ro.resx +++ b/i18n/ro/Tooltips.ro.resx @@ -321,9 +321,11 @@ Aduceți fotografii de pe un card sau dintr-un folder; importurile, analizele și randările apar apoi aici Creșteți prioritatea: lucrarea rulează înaintea lucrărilor cu prioritate mai mică Deschideți obiectul acestei lucrări + Lucrările rulează pe rând; lucrarea în curs procesează atâtea fotografii simultan (Setări › Randare › Paralelism) Puneți pe pauză la următorul punct de reluare; Reluare continuă de acolo Puneți pe pauză toate lucrările în curs; coada își păstrează ordinea Țineți această lucrare în coadă până când o reluați + Coada cu priorități este activată: o lucrare de nivel superior pune pe pauză lucrarea în curs, care apoi se reia singură (Setări › Randare) Eliminați din coadă; lucrarea este anulată Paralelism, preferință hardware, limită de memorie Repuneți lucrarea în coadă; continuă de la punctul ei de reluare @@ -337,7 +339,6 @@ În pauză; Reluare continuă de la punctul de reluare În așteptarea unui proces de lucru pe acest PC Rulează acum - Lucrări care rulează pe acest PC, din totalul proceselor de lucru ale motorului de lucrări Indexați pe loc fotografiile pe care le aveți deja; alegeți folderul lor principal Analiză aprofundată a fiecărui cadru · rulează ca lucrare în fundal Analiză aprofundată a secvențelor selectate · rulează ca o singură lucrare @@ -557,6 +558,7 @@ Încărcați setări dintr-un fișier JSON; sesiunea și aspectul ferestrei rămân neschimbate Deschideți pagina din Microsoft Store a acestei extensii gratuite sau cu plată; după instalare, apăsați Redetectare Cât timp Titano este în prim-plan, interfața sa are prioritate față de lucrări, astfel încât rămâne fluidă în timpul randărilor și analizelor + Nivelul pentru „{0}” în coada cu priorități: un nivel superior rulează primul și pune pe pauză nivelurile inferioare; lucrările de același nivel nu se întrerup niciodată între ele Lăsați setările acestei arhive așa cum sunt Păstrați memoria cache așa cum este Păstrați indexul așa cum este @@ -580,11 +582,15 @@ Server implicit, nod de randare, certificate de încredere Folderul cache, miniaturi în memorie, limita cache Verificarea actualizărilor la pornire + Fotografiile pe care lucrarea în curs le procesează simultan; lucrările rulează pe rând. Mai puține lasă mai mult loc altor programe · Enter aplică, Esc anulează + Auto: jumătate din nucleele logice + Revenire la Auto: jumătate din nucleele logice Cât de des rescanează Titano arhiva pentru modificări făcute în altă parte, de exemplu de un server care o partajează Activat când portable.txt se află lângă Titano.exe: toate datele rămân în folderul său de date Folosiți un codificator hardware când acesta acceptă presetarea; altfel, software Primele trei nume ale unui import de probă cu aceste șabloane Hardware pentru previzualizări, software pentru presetările de arhivă + Activată: o lucrare de nivel superior pune pe pauză lucrarea în curs fără să întrebe, iar aceasta se reia apoi singură. Dezactivată: lucrările își așteaptă rândul; puneți pe pauză lucrarea în curs pentru a o porni pe următoarea Latura lungă a proxy-urilor JPEG ale acestei arhive și ale arhivelor noi; proxy-urile create anterior își păstrează dimensiunea până la reconstruire Echilibrat se potrivește în majoritatea cazurilor; Calitate maximă măsoară la rezoluție dublă și citește mai mult în avans; Rapid măsoară la jumătate de rezoluție, cu flux optic de calitate Schiță Listați din nou codificatoarele după instalarea unui driver sau a unui codec @@ -612,9 +618,6 @@ Fiecare pixel este decodat Niciun decodificator de pe acest PC nu îi citește pixelii; astfel de cadre sunt excluse din randări Trimiteți zilnic o statistică anonimă a versiunilor și limbilor folosite; nimic altceva, dezactivat implicit - Lucrări și cadre procesate simultan; mai puține lasă mai mult loc altor programe · Enter aplică, Esc anulează - Auto: jumătate din nucleele logice rulează lucrări simultan, fiecare cu propriul număr de fire de execuție - Revenire la Auto: jumătate din nucleele logice Instalați în Program Files pentru toate conturile · necesită aprobarea administratorului {0} · rulează ca serviciu Windows, deci se instalează pentru toți utilizatorii în Program Files Reveniți la opțiuni fără a modifica nimic diff --git a/i18n/ru/Admin.ru.resx b/i18n/ru/Admin.ru.resx index 3207fd4c..841c9341 100644 --- a/i18n/ru/Admin.ru.resx +++ b/i18n/ru/Admin.ru.resx @@ -100,10 +100,15 @@ из {0} в сети оригиналы {0} + {0} фото одновременно + {0} фото одновременно + {0} фото одновременно + {0} фото одновременно {0} фото {0} фото {0} фото {0} фото + Очередь с приоритетами Очередь и история Открыть страницу «Задания» в очереди: {0} @@ -123,10 +128,6 @@ {0} серий без прокси {0} серия без прокси {0} серии без прокси - {0} обработчика - {0} обработчиков - {0} обработчик - {0} обработчика Сервер не ответил; повторите попытку. Присоединение Глубокий анализ @@ -305,6 +306,8 @@ Порт API по TLS для клиентов Titano История заданий (дн.) Сколько дней хранятся завершённые задания + Уровень «{0}» в очереди с приоритетами: более высокий уровень выполняется первым и приостанавливает более низкие + Задания Язык Язык сообщений сервера, если клиент не указал свой Ограничения и хранение @@ -312,8 +315,15 @@ Макс. размер файла (МБ) Наибольший размер одного принимаемого файла Сеть и TLS + Параллелизм + Сколько фото выполняемое задание обрабатывает одновременно; задания выполняются по одному PEM-файл не найден; введите его полный путь на сервере. Используется только в режиме «Свой сертификат» + Высокий + Низкий + Обычный + Очередь с приоритетами + Включена: задание более высокого уровня без запроса приостанавливает выполняемое, и оно затем возобновляется само. Выключена: задания ждут своей очереди Не через прокси Режим TLS — «Обратный прокси», но эта страница пришла не через доверенный прокси по HTTPS. Откройте её через свой прокси или добавьте адрес прокси в TITANO_TRUSTED_PROXIES. Требуется перезапуск @@ -334,8 +344,6 @@ Сколько дней клиент остаётся в системе, если им не пользуются Хранить незавершённые (ч) Через сколько часов незавершённые загрузки удаляются - Обработчики - Сколько заданий этот сервер выполняет одновременно Выйти Выйти из панели администрирования Переключиться между светлой и тёмной темой diff --git a/i18n/ru/Jobs.ru.resx b/i18n/ru/Jobs.ru.resx index 529b7736..fb656382 100644 --- a/i18n/ru/Jobs.ru.resx +++ b/i18n/ru/Jobs.ru.resx @@ -52,10 +52,16 @@ Проверка после {0} следующее + Приостановлено ради задания с более высоким приоритетом ({0}); возобновится автоматически Строк журнала пока нет Скрыть журнал Показать журнал + {0} фото одновременно + {0} фото одновременно + {0} фото одновременно + {0} фото одновременно Приостановить все + Очередь с приоритетами Параметры рендеринга {0} · {1} Поиск по объекту или типу @@ -70,5 +76,4 @@ выполняется {0} · {1} этот ПК - Обработчики {0} / {1} diff --git a/i18n/ru/Settings.ru.resx b/i18n/ru/Settings.ru.resx index 933d8503..f5549c96 100644 --- a/i18n/ru/Settings.ru.resx +++ b/i18n/ru/Settings.ru.resx @@ -140,6 +140,11 @@ {0} fps · ОК Предпочитать аппаратное Аппаратное только для предпросмотра + Высокий + Низкий + Обычный + Очередь с приоритетами + Включена Профиль качества Сбалансированный Наилучший diff --git a/i18n/ru/Tooltips.ru.resx b/i18n/ru/Tooltips.ru.resx index 25adc611..db6c7b5d 100644 --- a/i18n/ru/Tooltips.ru.resx +++ b/i18n/ru/Tooltips.ru.resx @@ -322,9 +322,11 @@ Импортировать фото с карты или из папки; затем здесь появятся задания импорта, анализа и рендеринга Повысить приоритет: задание выполнится раньше заданий с более низким приоритетом Открыть то, с чем работало это задание + Задания выполняются по одному; выполняемое задание обрабатывает столько фото одновременно («Параметры › Рендеринг › Параллелизм») Приостановить на следующей контрольной точке; «Возобновить» продолжит с неё Приостановить все выполняемые задания; порядок очереди сохраняется Удерживать это задание в очереди, пока вы его не возобновите + Очередь с приоритетами включена: задание более высокого уровня приостанавливает выполняемое, и оно затем возобновляется само («Параметры › Рендеринг») Убрать из очереди; задание отменяется Параллелизм, предпочтение аппаратного кодирования, лимит памяти Вернуть задание в очередь; оно продолжится с контрольной точки @@ -338,7 +340,6 @@ Приостановлено; «Возобновить» продолжит с контрольной точки Ожидает свободного обработчика на этом ПК Выполняется сейчас - Сколько заданий выполняется на этом ПК из общего числа обработчиков Проиндексировать уже имеющиеся фото на месте; выберите их верхнюю папку Глубокий анализ каждого кадра · выполняется как фоновое задание Глубокий анализ выбранных серий · выполняется одним заданием @@ -574,6 +575,7 @@ Импортировать параметры из файла JSON; сеанс и расположение окон не меняются Открыть в Microsoft Store страницу этого бесплатного или платного расширения; после установки нажмите «Обнаружить заново» Пока Titano на переднем плане, его интерфейс получает приоритет над заданиями и остаётся плавным во время рендеринга и анализа + Уровень «{0}» в очереди с приоритетами: более высокий уровень выполняется первым и приостанавливает более низкие; задания одного уровня никогда не прерывают друг друга Оставить параметры этого архива как есть Оставить кэш как есть Оставить индекс как есть @@ -597,11 +599,15 @@ Сервер по умолчанию, узел рендеринга, доверенные сертификаты Папка кэша, эскизы в памяти, лимит кэша Проверка обновлений при запуске + Сколько фото выполняемое задание обрабатывает одновременно; задания выполняются по одному. Меньшее число оставляет больше ресурсов другим программам · Enter — применить, Esc — отменить + Авто: половина логических ядер + Вернуть «Авто»: половина логических ядер Как часто Titano пересканирует архив в поисках изменений, сделанных в другом месте, например сервером, который тоже его использует Включён, если рядом с Titano.exe лежит portable.txt: все данные хранятся в его папке данных Использовать аппаратный кодировщик, если он поддерживает пресет; иначе программный Первые три имени примерного импорта с этими шаблонами Аппаратное кодирование для предпросмотра, программное — для архивных пресетов + Включена: задание более высокого уровня без запроса приостанавливает выполняемое, и оно затем возобновляется само. Выключена: задания ждут своей очереди; приостановите выполняемое задание, чтобы запустить следующее Длинная сторона JPEG-прокси этого архива и новых архивов; созданные ранее прокси сохраняют свой размер, пока их не пересоздадут «Сбалансированный» подходит для большинства задач; «Наилучший» измеряет в двойном разрешении и читает дальше вперёд; «Быстрый» измеряет в половинном разрешении с черновой оценкой движения Заново составить список кодировщиков после установки драйвера или кодека @@ -629,9 +635,6 @@ Декодируется каждый пиксель Ни один декодер на этом ПК не читает пиксели этого формата; такие кадры не попадают в рендеры Раз в день отправлять анонимную статистику используемых версий и языков; больше ничего, по умолчанию выключено - Сколько заданий и кадров обрабатывается одновременно; меньшее число оставляет больше ресурсов другим программам · Enter — применить, Esc — отменить - Авто: одновременно выполняется столько заданий, сколько составляет половина логических ядер, и у каждого задания своё число потоков - Вернуть «Авто»: половина логических ядер Установить в Program Files для всех учётных записей · потребуются права администратора {0} · работает как служба Windows, поэтому устанавливается для всех пользователей в Program Files Вернуться к параметрам, ничего не меняя diff --git a/i18n/sk/Admin.sk.resx b/i18n/sk/Admin.sk.resx index e42fe247..5b033434 100644 --- a/i18n/sk/Admin.sk.resx +++ b/i18n/sk/Admin.sk.resx @@ -96,9 +96,13 @@ z {0} online originály {0} + {0} fotografie naraz + {0} fotografia naraz + {0} fotografií naraz {0} fotografie {0} fotografia {0} fotografií + Prioritný front Front a história Otvorí stránku Úlohy {0} vo fronte @@ -115,9 +119,6 @@ {0} sekvencie bez proxy {0} sekvencia bez proxy {0} sekvencií bez proxy - {0} pracovné procesy - {0} pracovný proces - {0} pracovných procesov Server neodpovedal; skúste to znova. Prevzatie Hĺbková analýza @@ -292,6 +293,8 @@ Port rozhrania API cez TLS pre klientov Titano História úloh (dni) Počet dní, počas ktorých sa uchovávajú dokončené úlohy + Úroveň „{0}“ v prioritnom fronte: vyššia úroveň beží skôr a pozastavuje nižšie úrovne + Úlohy Jazyk Jazyk správ servera, keď klient žiadny nepožaduje Limity a uchovávanie @@ -299,8 +302,15 @@ Max. súbor (MB) Najväčší jednotlivý súbor, ktorý server pri nahrávaní prijme Sieť a TLS + Paralelizmus + Počet fotografií, ktoré bežiaca úloha spracúva naraz; úlohy bežia jedna po druhej Súbor PEM sa nenašiel; zadajte jeho úplnú cestu na serveri. Používa sa iba v režime Vlastný certifikát + Vysoká + Nízka + Normálna + Prioritný front + Zapnutý: úloha vyššej úrovne bez opýtania pozastaví bežiacu úlohu a tá potom sama pokračuje. Vypnutý: úlohy čakajú, kým prídu na rad Mimo proxy Režim TLS je nastavený na Reverzný proxy server, ale táto stránka neprišla prostredníctvom dôveryhodného proxy servera cez HTTPS. Otvorte ju cez svoj proxy server alebo pridajte jeho adresu do TITANO_TRUSTED_PROXIES. Vyžaduje sa reštart @@ -321,8 +331,6 @@ Počet dní, počas ktorých klient zostane prihlásený bez používania Zahodiť po (h) Počet hodín, po ktorých sa nedokončené nahrávania zahodia - Pracovné procesy - Počet úloh, ktoré tento server spúšťa súčasne Odhlásiť sa Odhlási vás z panela správy Prepína medzi svetlým a tmavým motívom diff --git a/i18n/sk/Jobs.sk.resx b/i18n/sk/Jobs.sk.resx index ee748634..5b50f5fd 100644 --- a/i18n/sk/Jobs.sk.resx +++ b/i18n/sk/Jobs.sk.resx @@ -51,10 +51,15 @@ Overenie pred ňou: {0} na rade + Pozastavené kvôli úlohe s vyššou prioritou ({0}); bude pokračovať automaticky Zatiaľ žiadne riadky denníka Skryť denník Zobraziť denník + {0} fotografie naraz + {0} fotografia naraz + {0} fotografií naraz Pozastaviť všetko + Prioritný front Nastavenia renderovania {0} · {1} Hľadať cieľ alebo druh @@ -69,5 +74,4 @@ beží {0} · {1} tento počítač - Procesy {0} / {1} diff --git a/i18n/sk/Settings.sk.resx b/i18n/sk/Settings.sk.resx index 11d54cfb..bb6582c8 100644 --- a/i18n/sk/Settings.sk.resx +++ b/i18n/sk/Settings.sk.resx @@ -138,6 +138,11 @@ {0} fps · OK Uprednostniť hardvér Hardvér iba na náhľady + Vysoká + Nízka + Normálna + Prioritný front + Zapnutý Profil kvality Vyvážený Najlepší diff --git a/i18n/sk/Tooltips.sk.resx b/i18n/sk/Tooltips.sk.resx index 4afee548..33f229ab 100644 --- a/i18n/sk/Tooltips.sk.resx +++ b/i18n/sk/Tooltips.sk.resx @@ -321,9 +321,11 @@ Prenesie fotografie z karty alebo priečinka; importy, analýzy a renderovania sa potom zobrazia tu Zvýši prioritu: úloha sa spustí pred úlohami s nižšou prioritou Otvorí to, na čom úloha pracovala + Úlohy bežia jedna po druhej; bežiaca úloha spracúva naraz tento počet fotografií (Nastavenia › Renderovanie › Paralelizmus) Pozastaví úlohu pri ďalšom kontrolnom bode; tlačidlom Pokračovať v nej budete pokračovať odtiaľ Pozastaví všetky bežiace úlohy; front si zachová poradie Podrží túto úlohu vo fronte, kým v nej nebudete pokračovať + Prioritný front je zapnutý: úloha vyššej úrovne pozastaví bežiacu úlohu, ktorá potom sama pokračuje (Nastavenia › Renderovanie) Odoberie úlohu z frontu; úloha sa zruší Paralelizmus, uprednostnenie hardvéru, limit pamäte Vráti úlohu do frontu; bude pokračovať od svojho kontrolného bodu @@ -337,7 +339,6 @@ Pozastavené; tlačidlom Pokračovať budete pokračovať od kontrolného bodu Čaká na voľný pracovný proces na tomto počítači Práve beží - Úlohy bežiace na tomto počítači z celkového počtu pracovných procesov Indexuje fotografie, ktoré už máte, na ich mieste; vyberte ich najvyšší priečinok Hĺbková analýza každej snímky · beží ako úloha na pozadí Hĺbková analýza vybratých sekvencií · beží ako jedna úloha @@ -557,6 +558,7 @@ Načíta nastavenia zo súboru JSON; relácia a rozloženie okna zostanú nezmenené Otvorí stránku tohto bezplatného alebo plateného rozšírenia v Microsoft Store; po inštalácii kliknite na Znova zistiť Keď je Titano v popredí, jeho rozhranie má prednosť pred úlohami, takže zostáva plynulé počas renderovania a analýz + Úroveň „{0}“ v prioritnom fronte: vyššia úroveň beží skôr a pozastavuje nižšie úrovne; úlohy rovnakej úrovne sa navzájom nikdy neprerušujú Ponechá nastavenia tohto archívu tak, ako sú Ponechá vyrovnávaciu pamäť tak, ako je Ponechá index tak, ako je @@ -580,11 +582,15 @@ Predvolený server, renderovací uzol, dôveryhodné certifikáty Priečinok vyrovnávacej pamäte, miniatúry v pamäti, limit vyrovnávacej pamäte Kontrola aktualizácií pri spustení + Počet fotografií, ktoré bežiaca úloha spracúva naraz; úlohy bežia jedna po druhej. Menší počet ponechá viac priestoru iným programom · Enter použije, Esc vráti späť + Auto: polovica logických jadier + Späť na Auto: polovica logických jadier Ako často Titano znova skenuje archív kvôli zmenám vykonaným inde, napríklad serverom, ktorý ho zdieľa Zapnutý, keď je vedľa Titano.exe súbor portable.txt: všetky údaje zostávajú v jeho priečinku údajov Použije hardvérový kodér, ak niektorý podporuje predvoľbu; inak softvérový Prvé tri názvy vzorového importu s týmito šablónami Hardvér na náhľady, softvér na archívne predvoľby + Zapnutý: úloha vyššej úrovne bez opýtania pozastaví bežiacu úlohu a tá potom sama pokračuje. Vypnutý: úlohy čakajú, kým prídu na rad; ak chcete spustiť ďalšiu, pozastavte bežiacu úlohu Dlhšia strana proxy JPEG tohto archívu a nových archívov; skôr vytvorené proxy si ponechajú veľkosť, kým sa znova nevytvoria Vyvážený sa hodí na väčšinu práce; Najlepší meria v dvojnásobnom rozlíšení a číta viac dopredu; Rýchly meria v polovičnom rozlíšení s hrubým odhadom pohybu Znova zistí kodéry po inštalácii ovládača alebo kodeku @@ -612,9 +618,6 @@ Dekóduje sa každý pixel Žiadny dekodér na tomto počítači nedokáže čítať jeho pixely; takéto snímky sa z renderov vynechajú Raz denne odošle anonymný počet používaných verzií a jazykov; nič iné, predvolene vypnuté - Počet úloh a snímok spracúvaných naraz; menší počet ponechá viac priestoru iným programom · Enter použije, Esc vráti späť - Auto: naraz beží toľko úloh, koľko je polovica logických jadier, každá s vlastným počtom vlákien - Späť na Auto: polovica logických jadier Nainštaluje do priečinka Program Files pre všetky účty · vyžaduje súhlas správcu {0} · beží ako služba systému Windows, preto sa inštaluje pre všetkých používateľov do priečinka Program Files Vráti sa k možnostiam bez akýchkoľvek zmien diff --git a/i18n/sl/Admin.sl.resx b/i18n/sl/Admin.sl.resx index 0929548f..567158da 100644 --- a/i18n/sl/Admin.sl.resx +++ b/i18n/sl/Admin.sl.resx @@ -96,9 +96,13 @@ od {0} v omrežju izvirniki {0} + {0} fotografije hkrati + {0} fotografija hkrati + {0} fotografij hkrati {0} fotografije {0} fotografija {0} fotografij + Prednostna čakalna vrsta Čakalna vrsta in zgodovina Odpri stran »Opravila« {0} v čakalni vrsti @@ -115,9 +119,6 @@ {0} sekvence brez proxyjev {0} sekvenca brez proxyjev {0} sekvenc brez proxyjev - {0} delovni procesi - {0} delovni proces - {0} delovnih procesov Strežnik se ni odzval; poskusite znova. Prevzem Poglobljena analiza @@ -292,6 +293,8 @@ Vrata API-ja prek TLS za odjemalce Titano Zgodovina opravil (dni) Koliko dni se hranijo končana opravila + Raven za »{0}« v prednostni čakalni vrsti: višja raven se izvede prej in začasno ustavi nižje + Opravila Jezik Jezik sporočil strežnika, kadar odjemalec ne zahteva nobenega Omejitve in hramba @@ -299,8 +302,15 @@ Največja datoteka (MB) Največja sprejeta posamezna naložena datoteka Omrežje in TLS + Vzporednost + Število fotografij, ki jih opravilo v teku obdeluje hkrati; opravila se izvajajo eno za drugim Datoteke PEM ni bilo mogoče najti; vnesite njeno celotno pot na strežniku. Uporablja se samo v načinu »Lastno potrdilo« + Visoka + Nizka + Običajna + Prednostna čakalna vrsta + Vklopljena: opravilo višje ravni brez vprašanja začasno ustavi opravilo v teku, ki se nato samo nadaljuje. Izklopljena: opravila čakajo, da pridejo na vrsto Ne prek proxyja Način TLS je »Obratni proxy«, vendar ta stran ni prišla prek zaupanja vrednega proxyja po HTTPS. Odprite jo prek svojega proxyja ali dodajte naslov proxyja v TITANO_TRUSTED_PROXIES. Potreben vnovični zagon @@ -321,8 +331,6 @@ Koliko dni ostane odjemalec vpisan, če ga ne uporabljate Opuščeno po (h) Število ur, po katerem se nedokončana nalaganja zavržejo - Delovni procesi - Število opravil, ki jih ta strežnik izvaja hkrati Izpis Izpiši se iz skrbniške plošče Preklopi med svetlo in temno temo diff --git a/i18n/sl/Jobs.sl.resx b/i18n/sl/Jobs.sl.resx index 85e2e266..fc5b1a90 100644 --- a/i18n/sl/Jobs.sl.resx +++ b/i18n/sl/Jobs.sl.resx @@ -51,10 +51,15 @@ Preverjanje pred njim: {0} naslednje + Začasno ustavljeno zaradi opravila z višjo prednostjo ({0}); nadaljuje se samodejno Še ni vrstic dnevnika Skrij dnevnik Pokaži dnevnik + {0} fotografije hkrati + {0} fotografija hkrati + {0} fotografij hkrati Začasno ustavi vse + Prednostna čakalna vrsta Nastavitve upodabljanja {0} · {1} Išči predmet ali vrsto @@ -69,5 +74,4 @@ se izvaja {0} · {1} ta računalnik - Delovni procesi {0} / {1} diff --git a/i18n/sl/Settings.sl.resx b/i18n/sl/Settings.sl.resx index 698e3176..a29535af 100644 --- a/i18n/sl/Settings.sl.resx +++ b/i18n/sl/Settings.sl.resx @@ -138,6 +138,11 @@ {0} fps · v redu Raje strojno Strojno samo za predoglede + Visoka + Nizka + Običajna + Prednostna čakalna vrsta + Vklopljena Profil kakovosti Uravnoteženo Najboljše diff --git a/i18n/sl/Tooltips.sl.resx b/i18n/sl/Tooltips.sl.resx index 8a54df69..22e6f6a6 100644 --- a/i18n/sl/Tooltips.sl.resx +++ b/i18n/sl/Tooltips.sl.resx @@ -321,9 +321,11 @@ Uvozi fotografije s kartice ali iz mape; opravila uvoza, analize in upodabljanja se nato prikažejo tukaj Zvišaj prednost: opravilo se izvede pred opravili z nižjo prednostjo Odpri, na čemer je delalo to opravilo + Opravila se izvajajo eno za drugim; opravilo v teku obdeluje toliko fotografij hkrati (Nastavitve › Upodabljanje › Vzporednost) Začasno ustavi pri naslednji kontrolni točki; »Nadaljuj« nadaljuje od tam Začasno ustavi vsa opravila v teku; čakalna vrsta ohrani vrstni red Zadrži to opravilo v čakalni vrsti, dokler ga ne nadaljujete + Prednostna čakalna vrsta je vklopljena: opravilo višje ravni začasno ustavi opravilo v teku, ki se nato samo nadaljuje (Nastavitve › Upodabljanje) Odstrani iz čakalne vrste; opravilo se prekliče Vzporednost, prednost strojne opreme, omejitev pomnilnika Vrni opravilo v čakalno vrsto; nadaljuje od svoje kontrolne točke @@ -337,7 +339,6 @@ Začasno ustavljeno; »Nadaljuj« nadaljuje od kontrolne točke Čaka na delovni proces v tem računalniku Se izvaja - Opravila, ki se izvajajo v tem računalniku, od vseh delovnih procesov mehanizma opravil Indeksiraj fotografije, ki jih že imate, kar na mestu; izberite njihovo vrhnjo mapo Poglobljena analiza vsake sličice · izvede se kot opravilo v ozadju Poglobljena analiza izbranih sekvenc · izvede se kot eno opravilo @@ -557,6 +558,7 @@ Naloži nastavitve iz datoteke JSON; seja in postavitev okna ostaneta nespremenjeni Odpri stran te brezplačne ali plačljive razširitve v trgovini Microsoft Store; po namestitvi izberite »Znova zaznaj« Ko je Titano v ospredju, ima njegov vmesnik prednost pred opravili, zato ostane tekoč med upodabljanjem in analizami + Raven za »{0}« v prednostni čakalni vrsti: višja raven se izvede prej in začasno ustavi nižje; opravila iste ravni se nikoli ne prekinjajo med seboj Pusti nastavitve tega arhiva, kot so Pusti predpomnilnik, kot je Pusti indeks, kot je @@ -580,11 +582,15 @@ Privzeti strežnik, vozlišče za upodabljanje, zaupanja vredna potrdila Mapa predpomnilnika, miniature v pomnilniku, omejitev predpomnilnika Preverjanje posodobitev ob zagonu + Število fotografij, ki jih opravilo v teku obdeluje hkrati; opravila se izvajajo eno za drugim. Manj jih pusti več prostora drugim programom · Enter uveljavi, Esc razveljavi + Samodejno: polovica logičnih jeder + Nazaj na samodejno: polovica logičnih jeder Kako pogosto Titano znova pregleda arhiv za spremembe, narejene drugje, na primer na strežniku, ki uporablja isti arhiv Vklopljeno, ko je portable.txt poleg Titano.exe: vsi podatki ostanejo v njegovi mapi s podatki Uporabi strojni kodirnik, kadar podpira prednastavitev, sicer programskega Prva tri imena vzorčnega uvoza s temi predlogami Strojno za predoglede, programsko za arhivske prednastavitve + Vklopljena: opravilo višje ravni brez vprašanja začasno ustavi opravilo v teku, ki se nato samo nadaljuje. Izklopljena: opravila čakajo, da pridejo na vrsto; za zagon naslednjega začasno ustavite opravilo v teku Daljša stranica proxyjev JPEG tega arhiva in novih arhivov; prej ustvarjeni proxyji ohranijo velikost, dokler jih znova ne zgradite Uravnoteženo ustreza večini dela; Najboljše meri pri dvojni ločljivosti in bere dlje vnaprej; Hitro meri pri polovični ločljivosti z gibanjem v kakovosti osnutka Znova poišči kodirnike po namestitvi gonilnika ali kodeka @@ -612,9 +618,6 @@ Dekodira se vsaka slikovna pika Noben dekodirnik v tem računalniku ne prebere njegovih slikovnih pik; take sličice so izpuščene iz upodobitev Enkrat na dan pošlji anonimno število uporabljenih različic in jezikov; nič drugega, privzeto izklopljeno - Število opravil in sličic, obdelanih hkrati; manj jih pusti več prostora drugim programom · Enter uveljavi, Esc razveljavi - Samodejno: hkrati se izvaja toliko opravil, kot je polovica logičnih jeder, vsako s svojim številom niti - Nazaj na samodejno: polovica logičnih jeder Namesti v Program Files za vse račune · zahteva odobritev skrbnika {0} · izvaja se kot storitev sistema Windows, zato se namesti za vse uporabnike v Program Files Vrni se na možnosti brez sprememb diff --git a/i18n/sv/Admin.sv.resx b/i18n/sv/Admin.sv.resx index ecef09e7..5a5accdf 100644 --- a/i18n/sv/Admin.sv.resx +++ b/i18n/sv/Admin.sv.resx @@ -92,8 +92,11 @@ av {0} online original {0} + {0} foto åt gången + {0} foton åt gången {0} foto {0} foton + Prioritetskö Kö och historik Öppna sidan Jobb {0} i kö @@ -107,8 +110,6 @@ Uppladdningar · senaste 30 dagarna {0} sekvens utan proxyer {0} sekvenser utan proxyer - {0} arbetare - {0} arbetare Servern svarade inte; försök igen. Införlivning Djupanalys @@ -279,6 +280,8 @@ Port för API över TLS för Titano-klienter Jobbhistorik (dagar) Antal dagar som slutförda jobb sparas + Nivån för ”{0}” i prioritetskön: en högre nivå körs först och pausar lägre nivåer + Jobb Språk Språk för servermeddelanden när en klient inte begär något Gränser och lagringstid @@ -286,8 +289,15 @@ Största fil (MB) Största enskilda uppladdning som accepteras Nätverk och TLS + Parallellitet + Foton som det pågående jobbet bearbetar samtidigt; jobb körs ett i taget PEM-filen hittades inte; ange dess fullständiga sökväg på servern. Används endast i läget Eget certifikat + Hög + Låg + Normal + Prioritetskö + På: ett jobb på en högre nivå pausar det pågående jobbet utan att fråga, och det återupptas sedan av sig självt. Av: jobben väntar på sin tur Inte via proxy TLS-läget är Omvänd proxy, men den här sidan kom inte via en betrodd proxy över HTTPS. Öppna den via din proxy, eller lägg till proxyns adress i TITANO_TRUSTED_PROXIES. Omstart krävs @@ -308,8 +318,6 @@ Antal dagar en klient förblir inloggad utan att användas Kasseras efter (h) Antal timmar efter vilka ofullständiga uppladdningar kasseras - Arbetare - Antal jobb som den här servern kör samtidigt Logga ut Logga ut från administratörspanelen Växla mellan ljust och mörkt tema diff --git a/i18n/sv/Jobs.sv.resx b/i18n/sv/Jobs.sv.resx index df0acd00..6d502d6e 100644 --- a/i18n/sv/Jobs.sv.resx +++ b/i18n/sv/Jobs.sv.resx @@ -50,10 +50,14 @@ Verifiering efter {0} näst på tur + Pausat för ett jobb med högre prioritet ({0}); återupptas av sig självt Inga loggrader än Dölj logg Visa logg + {0} foto åt gången + {0} foton åt gången Pausa alla + Prioritetskö Renderingsinställningar {0} · {1} Sök mål eller typ @@ -68,5 +72,4 @@ körs {0} · {1} den här datorn - Arbetare {0} / {1} diff --git a/i18n/sv/Settings.sv.resx b/i18n/sv/Settings.sv.resx index ad9b6dad..02a9b51e 100644 --- a/i18n/sv/Settings.sv.resx +++ b/i18n/sv/Settings.sv.resx @@ -136,6 +136,11 @@ {0} fps · ok Föredra maskinvara Maskinvara endast för förhandsvisning + Hög + Låg + Normal + Prioritetskö + På Kvalitetsprofil Balanserad Bästa diff --git a/i18n/sv/Tooltips.sv.resx b/i18n/sv/Tooltips.sv.resx index 5596e344..fda9d1c2 100644 --- a/i18n/sv/Tooltips.sv.resx +++ b/i18n/sv/Tooltips.sv.resx @@ -320,9 +320,11 @@ Hämta in foton från ett kort eller en mapp; importer, analyser och renderingar visas sedan här Höj prioriteten: jobbet körs före jobb med lägre prioritet Öppna det som jobbet arbetade med + Jobb körs ett i taget; det pågående jobbet bearbetar så här många foton samtidigt (Inställningar › Rendering › Parallellitet) Pausa vid nästa kontrollpunkt; ”Återuppta” fortsätter därifrån Pausa alla pågående jobb; kön behåller sin ordning Håll kvar jobbet i kön tills du återupptar det + Prioritetskön är på: ett jobb på en högre nivå pausar det pågående jobbet, som sedan återupptas av sig självt (Inställningar › Rendering) Ta bort från kön; jobbet avbryts Parallellitet, föredragen maskinvara, minnesbudget Lägg tillbaka jobbet i kön; det fortsätter från sin kontrollpunkt @@ -336,7 +338,6 @@ Pausat; ”Återuppta” fortsätter från kontrollpunkten Väntar på en arbetare på den här datorn Arbetar nu - Jobb som körs på den här datorn, av jobbmotorns antal arbetare Indexera foton du redan har, där de ligger; välj deras översta mapp Djupanalys av varje bildruta · körs som ett jobb i bakgrunden Djupanalys av de markerade sekvenserna · körs som ett jobb @@ -540,6 +541,7 @@ Läs in inställningar från en JSON-fil; sessionen och fönsterlayouten förblir oförändrade Öppna sidan i Microsoft Store för det här kostnadsfria eller betalda tillägget; välj ”Identifiera igen” efter installationen När Titano ligger i förgrunden går gränssnittet före jobben, så att det förblir smidigt under renderingar och analyser + Nivån för ”{0}” i prioritetskön: en högre nivå körs först och pausar lägre nivåer; jobb på samma nivå avbryter aldrig varandra Behåll arkivets inställningar som de är Behåll cachen som den är Behåll indexet som det är @@ -563,11 +565,15 @@ Standardserver, renderingsnod, betrodda certifikat Cachemapp, miniatyrer i minnet, cachegräns Sök efter uppdateringar vid start + Foton som det pågående jobbet bearbetar samtidigt; jobb körs ett i taget. Färre lämnar mer utrymme åt andra program · Enter tillämpar, Esc återställer + Auto: hälften av de logiska kärnorna + Tillbaka till Auto: hälften av de logiska kärnorna Hur ofta Titano genomsöker arkivet igen efter ändringar som gjorts på annat håll, till exempel av en server som delar det På när portable.txt ligger bredvid Titano.exe: alla data stannar i dess datamapp Använd en maskinvarukodare när någon stöder förinställningen; annars programvara De tre första namnen i en exempelimport med de här mallarna Maskinvara för förhandsvisningar, programvara för arkivförinställningar + På: ett jobb på en högre nivå pausar det pågående jobbet utan att fråga, och det återupptas sedan av sig självt. Av: jobben väntar på sin tur; pausa det pågående jobbet för att starta nästa Långsidan på JPEG-proxyerna för det här arkivet och för nya arkiv; proxyer som skapats tidigare behåller sin storlek tills de återskapas ”Balanserad” passar i de flesta fall; ”Bästa” mäter i dubbel upplösning och läser längre fram; ”Snabb” mäter i halv upplösning med rörelse i utkastkvalitet Lista kodarna igen efter installation av en drivrutin eller codec @@ -595,9 +601,6 @@ Varje pixel avkodas Ingen avkodare på den här datorn kan läsa pixlarna; sådana bildrutor utesluts från renderingar Skicka en daglig anonym räkning av versioner och språk som används; inget annat, av som standard - Jobb och bildrutor som bearbetas samtidigt; färre lämnar mer utrymme åt andra program · Enter tillämpar, Esc återställer - Auto: hälften av de logiska kärnorna kör jobb samtidigt, vart och ett med sitt eget antal trådar - Tillbaka till Auto: hälften av de logiska kärnorna Installera i Program Files för alla konton · kräver administratörsgodkännande {0} · den körs som en Windows-tjänst, så den installeras för alla användare i Program Files Återgå till alternativen utan att ändra något diff --git a/i18n/th/Admin.th.resx b/i18n/th/Admin.th.resx index c99c3ee0..83fcbc30 100644 --- a/i18n/th/Admin.th.resx +++ b/i18n/th/Admin.th.resx @@ -92,8 +92,11 @@ จาก {0} ออนไลน์ ต้นฉบับ {0} + ครั้งละ {0} ภาพ + ครั้งละ {0} ภาพ {0} ภาพ {0} ภาพ + คิวตามลำดับความสำคัญ คิวและประวัติ เปิดหน้างาน อยู่ในคิว {0} @@ -107,8 +110,6 @@ การอัปโหลด · 30 วันล่าสุด {0} ซีเควนซ์ไม่มีพร็อกซี {0} ซีเควนซ์ไม่มีพร็อกซี - เวิร์กเกอร์ {0} ตัว - เวิร์กเกอร์ {0} ตัว เซิร์ฟเวอร์ไม่ตอบสนอง โปรดลองอีกครั้ง ลงทะเบียน การวิเคราะห์เชิงลึก @@ -279,6 +280,8 @@ พอร์ตของ API ผ่าน TLS สำหรับไคลเอนต์ Titano ประวัติงาน (วัน) จำนวนวันที่เก็บงานที่เสร็จแล้วไว้ + ระดับของ “{0}” ในคิวตามลำดับความสำคัญ: ระดับที่สูงกว่าจะทำงานก่อนและหยุดระดับที่ต่ำกว่าชั่วคราว + งาน ภาษา ภาษาของข้อความจากเซิร์ฟเวอร์เมื่อไคลเอนต์ไม่ได้ระบุภาษา ขีดจำกัดและการเก็บรักษา @@ -286,8 +289,15 @@ ไฟล์สูงสุด (MB) ขนาดสูงสุดของการอัปโหลดไฟล์เดียวที่ยอมรับ เครือข่ายและ TLS + การประมวลผลแบบขนาน + จำนวนภาพที่งานที่กำลังทำงานประมวลผลพร้อมกัน งานจะทำทีละงาน ไม่พบไฟล์ PEM โปรดป้อนพาธแบบเต็มของไฟล์บนเซิร์ฟเวอร์ ใช้เฉพาะในโหมดใบรับรองของตนเอง + สูง + ต่ำ + ปกติ + คิวตามลำดับความสำคัญ + เปิด: งานที่มีระดับสูงกว่าจะหยุดงานที่กำลังทำงานชั่วคราวโดยไม่ถาม แล้วงานนั้นจะทำงานต่อเองในภายหลัง ปิด: งานจะรอตามลำดับ ไม่ผ่านพร็อกซี โหมด TLS เป็นรีเวิร์สพร็อกซี แต่หน้านี้ไม่ได้ส่งผ่านพร็อกซีที่เชื่อถือได้ทาง HTTPS โปรดเปิดผ่านพร็อกซีของคุณ หรือเพิ่มที่อยู่ของพร็อกซีลงใน TITANO_TRUSTED_PROXIES ต้องรีสตาร์ท @@ -308,8 +318,6 @@ จำนวนวันที่ไคลเอนต์ยังคงลงชื่อเข้าใช้อยู่ได้โดยไม่มีการใช้งาน ทิ้งหลังจาก (ชม.) จำนวนชั่วโมงก่อนที่การอัปโหลดที่ยังไม่เสร็จจะถูกทิ้ง - เวิร์กเกอร์ - จำนวนงานที่เซิร์ฟเวอร์นี้ทำพร้อมกัน ลงชื่อออก ลงชื่อออกจากแผงผู้ดูแลระบบ สลับระหว่างโหมดสว่างและโหมดมืด diff --git a/i18n/th/Jobs.th.resx b/i18n/th/Jobs.th.resx index 5e5c24d6..41509eea 100644 --- a/i18n/th/Jobs.th.resx +++ b/i18n/th/Jobs.th.resx @@ -50,10 +50,14 @@ ตรวจสอบ หลังจาก {0} งาน ถัดไป + หยุดชั่วคราวให้งานที่มีลำดับความสำคัญสูงกว่า ({0}) แล้วจะทำงานต่อเองโดยอัตโนมัติ ยังไม่มีบรรทัดบันทึก ซ่อนบันทึก แสดงบันทึก + ครั้งละ {0} ภาพ + ครั้งละ {0} ภาพ หยุดทั้งหมดชั่วคราว + คิวตามลำดับความสำคัญ การตั้งค่าการเรนเดอร์ {0} · {1} ค้นหาเป้าหมายหรือประเภท @@ -68,5 +72,4 @@ กำลังทำงาน {0} · {1} พีซีเครื่องนี้ - เวิร์กเกอร์ {0} / {1} diff --git a/i18n/th/Settings.th.resx b/i18n/th/Settings.th.resx index 5d02dd80..ae8a8243 100644 --- a/i18n/th/Settings.th.resx +++ b/i18n/th/Settings.th.resx @@ -136,6 +136,11 @@ {0} fps · ผ่าน ใช้ฮาร์ดแวร์ก่อน ฮาร์ดแวร์เฉพาะการแสดงตัวอย่าง + สูง + ต่ำ + ปกติ + คิวตามลำดับความสำคัญ + เปิด โปรไฟล์คุณภาพ สมดุล ดีที่สุด diff --git a/i18n/th/Tooltips.th.resx b/i18n/th/Tooltips.th.resx index cb1d6d18..eaefa31b 100644 --- a/i18n/th/Tooltips.th.resx +++ b/i18n/th/Tooltips.th.resx @@ -320,9 +320,11 @@ นำภาพเข้าจากการ์ดหรือโฟลเดอร์ จากนั้นการนำเข้า การวิเคราะห์ และการเรนเดอร์จะแสดงที่นี่ เพิ่มลำดับความสำคัญ: งานนี้จะทำงานก่อนงานที่มีลำดับความสำคัญต่ำกว่า เปิดสิ่งที่งานนี้ดำเนินการ + งานจะทำทีละงาน งานที่กำลังทำงานจะประมวลผลภาพพร้อมกันตามจำนวนนี้ (การตั้งค่า › การเรนเดอร์ › การประมวลผลแบบขนาน) หยุดชั่วคราวที่จุดบันทึกถัดไป “ดำเนินการต่อ” จะทำต่อจากจุดนั้น หยุดงานที่กำลังทำงานทั้งหมดชั่วคราว คิวยังคงลำดับเดิม พักงานนี้ไว้ในคิวจนกว่าคุณจะสั่งให้ดำเนินการต่อ + เปิดคิวตามลำดับความสำคัญอยู่: งานที่มีระดับสูงกว่าจะหยุดงานที่กำลังทำงานชั่วคราว แล้วงานนั้นจะทำงานต่อเองในภายหลัง (การตั้งค่า › การเรนเดอร์) เอาออกจากคิว งานจะถูกยกเลิก การประมวลผลแบบขนาน การเลือกใช้ฮาร์ดแวร์ งบหน่วยความจำ นำงานกลับเข้าคิว งานจะทำต่อจากจุดบันทึก @@ -336,7 +338,6 @@ หยุดชั่วคราว “ดำเนินการต่อ” จะทำต่อจากจุดบันทึก กำลังรอเวิร์กเกอร์บนพีซีเครื่องนี้ กำลังทำงานอยู่ - จำนวนงานที่กำลังทำงานบนพีซีเครื่องนี้ เทียบกับจำนวนเวิร์กเกอร์ของเอนจินงาน จัดทำดัชนีภาพที่คุณมีอยู่แล้วโดยไม่ย้ายที่ เลือกโฟลเดอร์บนสุดของภาพเหล่านั้น การวิเคราะห์เชิงลึกของทุกเฟรม · เรียกใช้เป็นงานเบื้องหลัง การวิเคราะห์เชิงลึกของซีเควนซ์ที่เลือก · เรียกใช้เป็นงานเดียว @@ -540,6 +541,7 @@ โหลดการตั้งค่าจากไฟล์ JSON เซสชันและเค้าโครงหน้าต่างจะคงเดิม เปิดหน้า Microsoft Store ของส่วนขยายฟรีหรือแบบชำระเงินนี้ แล้วกด “ตรวจหาใหม่” หลังติดตั้ง ขณะที่ Titano อยู่เบื้องหน้า อินเทอร์เฟซจะได้รับลำดับความสำคัญเหนืองาน จึงยังลื่นไหลระหว่างการเรนเดอร์และการวิเคราะห์ + ระดับของ “{0}” ในคิวตามลำดับความสำคัญ: ระดับที่สูงกว่าจะทำงานก่อนและหยุดระดับที่ต่ำกว่าชั่วคราว งานในระดับเดียวกันจะไม่ขัดจังหวะกันเลย คงการตั้งค่าของคลังภาพนี้ไว้ตามเดิม เก็บแคชไว้ตามเดิม เก็บดัชนีไว้ตามเดิม @@ -563,11 +565,15 @@ เซิร์ฟเวอร์เริ่มต้น โหนดเรนเดอร์ ใบรับรองที่เชื่อถือ โฟลเดอร์แคช ภาพขนาดย่อในหน่วยความจำ ขีดจำกัดแคช ตรวจหาการอัปเดตเมื่อเริ่มต้น + จำนวนภาพที่งานที่กำลังทำงานประมวลผลพร้อมกัน งานจะทำทีละงาน ค่าน้อยจะเหลือทรัพยากรให้โปรแกรมอื่นมากขึ้น · Enter เพื่อใช้ Esc เพื่อย้อนกลับ + อัตโนมัติ: ครึ่งหนึ่งของคอร์เชิงตรรกะ + กลับเป็นอัตโนมัติ: ครึ่งหนึ่งของคอร์เชิงตรรกะ ความถี่ที่ Titano สแกนคลังภาพใหม่เพื่อหาการเปลี่ยนแปลงจากที่อื่น เช่น จากเซิร์ฟเวอร์ที่ใช้คลังภาพร่วมกัน เปิดเมื่อมี portable.txt อยู่ข้าง Titano.exe: ข้อมูลทั้งหมดจะอยู่ในโฟลเดอร์ข้อมูลของโปรแกรม ใช้ตัวเข้ารหัสฮาร์ดแวร์เมื่อมีตัวที่รองรับพรีเซ็ต มิฉะนั้นใช้ซอฟต์แวร์ สามชื่อแรกของการนำเข้าตัวอย่างด้วยเทมเพลตเหล่านี้ ฮาร์ดแวร์สำหรับการแสดงตัวอย่าง ซอฟต์แวร์สำหรับพรีเซ็ตเก็บถาวร + เปิด: งานที่มีระดับสูงกว่าจะหยุดงานที่กำลังทำงานชั่วคราวโดยไม่ถาม แล้วงานนั้นจะทำงานต่อเองในภายหลัง ปิด: งานจะรอตามลำดับ หยุดงานที่กำลังทำงานชั่วคราวเพื่อเริ่มงานถัดไป ด้านยาวของพร็อกซี JPEG ของคลังภาพนี้และคลังภาพใหม่ พร็อกซีที่สร้างไว้ก่อนจะคงขนาดเดิมจนกว่าจะสร้างใหม่ “สมดุล” เหมาะกับงานส่วนใหญ่ “ดีที่สุด” วัดที่ความละเอียดสองเท่าและอ่านล่วงหน้าได้ไกลกว่า “เร็ว” วัดที่ครึ่งความละเอียดโดยใช้การเคลื่อนไหวแบบร่าง แสดงรายการตัวเข้ารหัสอีกครั้งหลังติดตั้งไดรเวอร์หรือโคเดก @@ -595,9 +601,6 @@ ถอดรหัสทุกพิกเซล ไม่มีตัวถอดรหัสบนพีซีเครื่องนี้ที่อ่านพิกเซลของรูปแบบนี้ได้ เฟรมเหล่านั้นจะไม่ถูกรวมในการเรนเดอร์ ส่งสถิติรายวันแบบไม่ระบุตัวตนเกี่ยวกับเวอร์ชันและภาษาที่ใช้งาน ไม่มีข้อมูลอื่น และปิดไว้เป็นค่าเริ่มต้น - จำนวนงานและเฟรมที่ประมวลผลพร้อมกัน ค่าน้อยจะเหลือทรัพยากรให้โปรแกรมอื่นมากขึ้น · Enter เพื่อใช้ Esc เพื่อย้อนกลับ - อัตโนมัติ: ทำงานพร้อมกันได้เท่ากับครึ่งหนึ่งของจำนวนคอร์เชิงตรรกะ โดยแต่ละงานมีจำนวนเธรดของตนเอง - กลับเป็นอัตโนมัติ: ครึ่งหนึ่งของคอร์เชิงตรรกะ ติดตั้งใน Program Files สำหรับทุกบัญชี · ต้องได้รับการอนุมัติจากผู้ดูแลระบบ {0} · ทำงานเป็นบริการ Windows จึงติดตั้งสำหรับผู้ใช้ทั้งหมดใน Program Files กลับไปที่ตัวเลือกโดยไม่เปลี่ยนแปลงสิ่งใด diff --git a/i18n/tr/Admin.tr.resx b/i18n/tr/Admin.tr.resx index 5c191248..d3dcb23c 100644 --- a/i18n/tr/Admin.tr.resx +++ b/i18n/tr/Admin.tr.resx @@ -92,8 +92,11 @@ / {0} çevrimiçi orijinaller {0} + Aynı anda {0} fotoğraf + Aynı anda {0} fotoğraf {0} fotoğraf {0} fotoğraf + Öncelik kuyruğu Kuyruk ve geçmiş Görevler sayfasını açar {0} kuyrukta @@ -107,8 +110,6 @@ Yüklemeler · son 30 gün {0} sekansın proxy'si yok {0} sekansın proxy'si yok - {0} işçi - {0} işçi Sunucu yanıt vermedi; yeniden deneyin. Dahil etme Ayrıntılı analiz @@ -279,6 +280,8 @@ Titano istemcileri için TLS üzerinden API bağlantı noktası Görev geçmişi (gün) Biten görevlerin saklandığı gün sayısı + “{0}” için öncelik kuyruğundaki düzey: daha yüksek düzey önce çalışır ve daha düşük düzeyleri duraklatır + Görevler Dil İstemci bir dil istemediğinde sunucu iletilerinin dili Sınırlar ve saklama @@ -286,8 +289,15 @@ En büyük dosya (MB) Kabul edilen en büyük tekil yükleme Ağ ve TLS + Paralellik + Çalışan görevin aynı anda işlediği fotoğraf sayısı; görevler tek tek çalışır PEM dosyası bulunamadı; sunucudaki tam yolunu girin. Yalnızca Kendi sertifikanız modunda kullanılır + Yüksek + Düşük + Normal + Öncelik kuyruğu + Açık: daha yüksek düzeyli bir görev, çalışan görevi sormadan duraklatır; o görev ardından kendiliğinden devam eder. Kapalı: görevler sıralarını bekler Proxy üzerinden değil TLS modu Ters proxy olarak ayarlı, ancak bu sayfa HTTPS üzerinden güvenilen bir proxy aracılığıyla gelmedi. Sayfayı proxy'niz üzerinden açın veya proxy'nin adresini TITANO_TRUSTED_PROXIES değişkenine ekleyin. Yeniden başlatma gerekli @@ -308,8 +318,6 @@ Bir istemcinin kullanılmadan oturumu açık kaldığı gün sayısı Terk süresi (sa) Tamamlanmamış yüklemelerin atılacağı saat sayısı - İşçiler - Bu sunucunun aynı anda çalıştırdığı görev sayısı Oturumu kapat Yönetim panelinden oturumu kapatır Açık ve koyu tema arasında geçiş yapar diff --git a/i18n/tr/Jobs.tr.resx b/i18n/tr/Jobs.tr.resx index b208b158..98f5a17f 100644 --- a/i18n/tr/Jobs.tr.resx +++ b/i18n/tr/Jobs.tr.resx @@ -50,10 +50,14 @@ Doğrulama {0} görevden sonra sıradaki + Daha yüksek öncelikli bir görev ({0}) için duraklatıldı; kendiliğinden devam eder Henüz günlük satırı yok Günlüğü gizle Günlüğü göster + Aynı anda {0} fotoğraf + Aynı anda {0} fotoğraf Tümünü duraklat + Öncelik kuyruğu İşleme ayarları {0} · {1} Hedef veya tür ara @@ -68,5 +72,4 @@ çalışıyor {0} · {1} bu bilgisayar - İşçiler {0} / {1} diff --git a/i18n/tr/Settings.tr.resx b/i18n/tr/Settings.tr.resx index d823c7ae..0c81ac74 100644 --- a/i18n/tr/Settings.tr.resx +++ b/i18n/tr/Settings.tr.resx @@ -136,6 +136,11 @@ {0} fps · tamam Donanımı tercih et Donanım yalnızca önizlemede + Yüksek + Düşük + Normal + Öncelik kuyruğu + Açık Kalite profili Dengeli En iyi diff --git a/i18n/tr/Tooltips.tr.resx b/i18n/tr/Tooltips.tr.resx index b9b32f57..84f7505d 100644 --- a/i18n/tr/Tooltips.tr.resx +++ b/i18n/tr/Tooltips.tr.resx @@ -320,9 +320,11 @@ Bir karttan veya klasörden fotoğraf içe aktarır; içe aktarmalar, analizler ve işlemeler ardından burada görünür Önceliği yükseltir: görev, daha düşük öncelikli görevlerden önce çalışır Bu görevin üzerinde çalıştığı öğeyi açar + Görevler tek tek çalışır; çalışan görev aynı anda bu sayıda fotoğraf işler (Ayarlar › İşleme › Paralellik) Sonraki kontrol noktasında duraklatır; Sürdür oradan devam eder Çalışan tüm görevleri duraklatır; kuyruk sırasını korur Siz sürdürene kadar bu görevi kuyrukta bekletir + Öncelik kuyruğu açık: daha yüksek düzeyli bir görev çalışan görevi duraklatır, duraklatılan görev ardından kendiliğinden devam eder (Ayarlar › İşleme) Kuyruktan kaldırır; görev iptal edilir Paralellik, donanım tercihi, bellek bütçesi Görevi yeniden kuyruğa alır; görev kontrol noktasından devam eder @@ -336,7 +338,6 @@ Duraklatıldı; Sürdür kontrol noktasından devam eder Bu bilgisayarda boş bir işçi bekleniyor Şu anda çalışıyor - Bu bilgisayarda çalışan görev sayısı / görev motorunun toplam işçi sayısı Mevcut fotoğraflarınızı yerinde dizine ekler; üst klasörlerini seçin Her karenin ayrıntılı analizi · arka planda görev olarak çalışır Seçili sekansların ayrıntılı analizi · tek görev olarak çalışır @@ -540,6 +541,7 @@ Ayarları bir JSON dosyasından yükler; oturum ve pencere düzeni olduğu gibi kalır Bu ücretsiz veya ücretli uzantının Microsoft Store sayfasını açar; kurduktan sonra “Yeniden algıla” düğmesine basın Titano ön plandayken arayüzü görevlerden öncelikli çalışır; böylece işleme ve analizler sırasında akıcı kalır + “{0}” için öncelik kuyruğundaki düzey: daha yüksek düzey önce çalışır ve daha düşük düzeyleri duraklatır; aynı düzeydeki görevler birbirini asla kesintiye uğratmaz Bu arşivin ayarlarını olduğu gibi bırakır Önbelleği olduğu gibi bırakır Dizini olduğu gibi bırakır @@ -563,11 +565,15 @@ Varsayılan sunucu, işleme düğümü, güvenilen sertifikalar Önbellek klasörü, bellekteki küçük resimler, önbellek sınırı Başlangıçta güncelleme denetimi + Çalışan görevin aynı anda işlediği fotoğraf sayısı; görevler tek tek çalışır. Daha düşük değer diğer programlara daha fazla yer bırakır · Enter uygular, Esc geri alır + Otomatik: mantıksal çekirdeklerin yarısı + Otomatiğe dön: mantıksal çekirdeklerin yarısı Titano'nun, başka yerde (örneğin arşivi paylaşan bir sunucuda) yapılan değişiklikleri bulmak için arşivi ne sıklıkla yeniden taradığı Titano.exe dosyasının yanında portable.txt varsa açıktır: tüm veriler onun veri klasöründe kalır Hazır ayarı destekleyen bir donanım kodlayıcısı varsa onu, yoksa yazılımı kullanır Bu şablonlarla örnek bir içe aktarmanın ilk üç adı Önizlemeler için donanım, arşiv hazır ayarları için yazılım + Açık: daha yüksek düzeyli bir görev, çalışan görevi sormadan duraklatır; o görev ardından kendiliğinden devam eder. Kapalı: görevler sıralarını bekler; sonrakini başlatmak için çalışan görevi duraklatın Bu arşivin ve yeni arşivlerin JPEG proxy'lerinin uzun kenarı; önceden oluşturulan proxy'ler yeniden oluşturulana kadar boyutlarını korur “Dengeli” çoğu iş için uygundur; “En iyi” çift çözünürlükte ölçer ve daha ileriyi okur; “Hızlı” yarım çözünürlükte, taslak hareketle ölçer Sürücü veya codec kurulumundan sonra kodlayıcıları yeniden listeler @@ -595,9 +601,6 @@ Her pikselin kodu çözülür Bu bilgisayardaki hiçbir kod çözücü piksellerini okuyamaz; bu tür kareler işleme çıktılarına dahil edilmez Kullanılan sürüm ve dillerin günlük anonim sayısını gönderir; başka hiçbir şey göndermez, varsayılan olarak kapalıdır - Aynı anda işlenen görev ve kare sayısı; daha düşük değer diğer programlara daha fazla yer bırakır · Enter uygular, Esc geri alır - Otomatik: mantıksal çekirdek sayısının yarısı kadar görev aynı anda çalışır; her birinin kendi iş parçacığı sayısı vardır - Otomatiğe dön: mantıksal çekirdeklerin yarısı Her hesap için Program Files klasörüne kurar · yönetici onayı ister {0} · Windows hizmeti olarak çalıştığından Program Files klasörüne tüm kullanıcılar için kurulur Hiçbir şeyi değiştirmeden seçeneklere döner diff --git a/i18n/uk/Admin.uk.resx b/i18n/uk/Admin.uk.resx index 80a78fe7..f123a623 100644 --- a/i18n/uk/Admin.uk.resx +++ b/i18n/uk/Admin.uk.resx @@ -100,10 +100,15 @@ з {0} онлайн оригінали {0} + {0} фото одночасно + {0} фото одночасно + {0} фото одночасно + {0} фото одночасно {0} фото {0} фото {0} фото {0} фото + Черга з пріоритетами Черга та історія Відкрити сторінку «Завдання» {0} у черзі @@ -123,10 +128,6 @@ {0} послідовностей без проксі {0} послідовність без проксі {0} послідовностей без проксі - {0} обробники - {0} обробників - {0} обробник - {0} обробників Сервер не відповів; спробуйте ще раз. Приєднання Глибокий аналіз @@ -305,6 +306,8 @@ Порт API через TLS для клієнтів Titano Історія завдань (днів) Скільки днів зберігаються завершені завдання + Рівень «{0}» у черзі з пріоритетами: вищий рівень виконується першим і призупиняє нижчі + Завдання Мова Мова повідомлень сервера, якщо клієнт не вказав жодної Обмеження та зберігання @@ -312,8 +315,15 @@ Макс. файл (МБ) Найбільший розмір одного вивантаженого файлу, який приймає сервер Мережа та TLS + Паралелізм + Скільки фото активне завдання обробляє одночасно; завдання виконуються по одному Файл PEM не знайдено; введіть повний шлях до нього на сервері. Використовується лише в режимі «Власний сертифікат» + Високий + Низький + Звичайний + Черга з пріоритетами + Увімкнена: завдання вищого рівня без запиту призупиняє активне, і те потім відновлюється само. Вимкнена: завдання чекають своєї черги Не через проксі Режим TLS — «Зворотний проксі», але цю сторінку отримано не через довірений проксі за протоколом HTTPS. Відкрийте її через свій проксі або додайте адресу проксі до TITANO_TRUSTED_PROXIES. Потрібен перезапуск @@ -334,8 +344,6 @@ Скільки днів клієнт залишається в системі, якщо ним не користуються Покинуті через (год) Через скільки годин незавершені вивантаження відкидаються - Обробники - Скільки завдань цей сервер виконує одночасно Вийти Вийти з панелі адміністратора Перемикати між світлою й темною темою diff --git a/i18n/uk/Jobs.uk.resx b/i18n/uk/Jobs.uk.resx index 235f2182..ace155cb 100644 --- a/i18n/uk/Jobs.uk.resx +++ b/i18n/uk/Jobs.uk.resx @@ -52,10 +52,16 @@ Перевірка після {0} наступне + Призупинено заради завдання з вищим пріоритетом ({0}); відновиться автоматично Рядків журналу ще немає Приховати журнал Показати журнал + {0} фото одночасно + {0} фото одночасно + {0} фото одночасно + {0} фото одночасно Призупинити все + Черга з пріоритетами Налаштування рендерингу {0} · {1} Пошук за об’єктом або типом @@ -70,5 +76,4 @@ виконується {0} · {1} цей ПК - Обробники {0} / {1} diff --git a/i18n/uk/Settings.uk.resx b/i18n/uk/Settings.uk.resx index 2ec34719..3b93f378 100644 --- a/i18n/uk/Settings.uk.resx +++ b/i18n/uk/Settings.uk.resx @@ -140,6 +140,11 @@ {0} fps · ОК Переважно апаратне Апаратне лише для перегляду + Високий + Низький + Звичайний + Черга з пріоритетами + Увімкнена Профіль якості Збалансований Найкращий diff --git a/i18n/uk/Tooltips.uk.resx b/i18n/uk/Tooltips.uk.resx index e0da1723..a90d7b8b 100644 --- a/i18n/uk/Tooltips.uk.resx +++ b/i18n/uk/Tooltips.uk.resx @@ -322,9 +322,11 @@ Імпортувати фото з картки або папки; після цього завдання імпорту, аналізу й рендерингу з’являтимуться тут Підвищити пріоритет: завдання виконається раніше за завдання з нижчим пріоритетом Відкрити те, з чим працювало це завдання + Завдання виконуються по одному; активне завдання обробляє стільки фото одночасно («Налаштування › Рендеринг › Паралелізм») Призупинити на наступній точці відновлення; «Відновити» продовжить звідти Призупинити всі активні завдання; черга зберігає свій порядок Утримувати це завдання в черзі, доки ви його не відновите + Черга з пріоритетами увімкнена: завдання вищого рівня призупиняє активне, і те потім відновлюється само («Налаштування › Рендеринг») Вилучити з черги; завдання буде скасовано Паралелізм, перевага апаратного кодування, бюджет пам’яті Повернути завдання в чергу; воно продовжиться з точки відновлення @@ -338,7 +340,6 @@ Призупинено; «Відновити» продовжить із точки відновлення Очікує на вільний обробник на цьому ПК Виконується зараз - Завдання, що виконуються на цьому ПК, із загальної кількості обробників Проіндексувати наявні фото на місці; виберіть їхню верхню папку Глибокий аналіз кожного кадру · виконується як фонове завдання Глибокий аналіз вибраних послідовностей · виконується як одне завдання @@ -574,6 +575,7 @@ Імпортувати налаштування з файлу JSON; сеанс і розташування вікон не змінюються Відкрити сторінку цього безплатного або платного розширення в Microsoft Store; після інсталяції натисніть «Виявити знову» Коли Titano на передньому плані, його інтерфейс має пріоритет над завданнями й залишається плавним під час рендерингу та аналізу + Рівень «{0}» у черзі з пріоритетами: вищий рівень виконується першим і призупиняє нижчі; завдання одного рівня ніколи не переривають одне одного Залишити налаштування цього архіву без змін Залишити кеш як є Залишити індекс як є @@ -597,11 +599,15 @@ Сервер за замовчуванням, вузол рендерингу, довірені сертифікати Папка кешу, мініатюри в пам’яті, ліміт кешу Перевірка оновлень під час запуску + Скільки фото активне завдання обробляє одночасно; завдання виконуються по одному. Менше значення залишає більше ресурсів іншим програмам · Enter застосовує, Esc скасовує + Авто: половина логічних ядер + Повернути «Авто»: половина логічних ядер Як часто Titano повторно сканує архів, шукаючи зміни, зроблені деінде, наприклад сервером, що спільно його використовує Увімкнено, коли portable.txt лежить поруч із Titano.exe: усі дані зберігаються в його папці даних Використовувати апаратний кодувальник, якщо він підтримує пресет; інакше — програмний Перші три імені зразкового імпорту з цими шаблонами Апаратне кодування для попереднього перегляду, програмне — для архівних пресетів + Увімкнена: завдання вищого рівня без запиту призупиняє активне, і те потім відновлюється само. Вимкнена: завдання чекають своєї черги; призупиніть активне завдання, щоб запустити наступне Довша сторона JPEG-проксі цього архіву та нових архівів; раніше створені проксі зберігають свій розмір до перебудови «Збалансований» підходить для більшості робіт; «Найкращий» вимірює з подвоєною роздільністю й читає далі наперед; «Швидкий» вимірює з половинною роздільністю й чорновим рухом Знову скласти список кодувальників після встановлення драйвера чи кодека @@ -629,9 +635,6 @@ Декодується кожен піксель Жоден декодер на цьому ПК не читає його пікселі; такі кадри не потрапляють у рендери Щодня надсилати анонімну статистику версій і мов, що використовуються; нічого більше, за замовчуванням вимкнено - Скільки завдань і кадрів обробляється одночасно; менше значення залишає більше ресурсів іншим програмам · Enter застосовує, Esc скасовує - Авто: одночасно виконується стільки завдань, скільки становить половина логічних ядер, кожне зі своєю кількістю потоків - Повернути «Авто»: половина логічних ядер Інсталювати в Program Files для всіх облікових записів · потрібне підтвердження адміністратора {0} · працює як служба Windows, тому інсталюється для всіх користувачів у Program Files Повернутися до параметрів, нічого не змінюючи diff --git a/i18n/vi/Admin.vi.resx b/i18n/vi/Admin.vi.resx index 08dd41d1..35905998 100644 --- a/i18n/vi/Admin.vi.resx +++ b/i18n/vi/Admin.vi.resx @@ -92,8 +92,11 @@ trên {0} trực tuyến bản gốc {0} + {0} ảnh cùng lúc + {0} ảnh cùng lúc {0} ảnh {0} ảnh + Hàng đợi ưu tiên Hàng đợi và lịch sử Mở trang Tác vụ {0} đang chờ @@ -107,8 +110,6 @@ Tải lên · 30 ngày qua {0} chuỗi ảnh chưa có proxy {0} chuỗi ảnh chưa có proxy - {0} luồng xử lý - {0} luồng xử lý Máy chủ không phản hồi; hãy thử lại. Tiếp nhận Phân tích sâu @@ -279,6 +280,8 @@ Cổng của API qua TLS dành cho các máy khách Titano Lịch sử tác vụ (ngày) Số ngày lưu giữ các tác vụ đã hoàn tất + Mức của “{0}” trong hàng đợi ưu tiên: mức cao hơn chạy trước và tạm dừng các mức thấp hơn + Tác vụ Ngôn ngữ Ngôn ngữ của thông báo máy chủ khi máy khách không yêu cầu ngôn ngữ nào Giới hạn và lưu giữ @@ -286,8 +289,15 @@ Tệp tối đa (MB) Kích thước lớn nhất được chấp nhận cho một tệp tải lên Mạng và TLS + Mức song song + Số ảnh mà tác vụ đang chạy xử lý cùng lúc; các tác vụ chạy lần lượt từng cái một Không tìm thấy tệp PEM; hãy nhập đường dẫn đầy đủ của tệp trên máy chủ. Chỉ dùng trong chế độ Chứng chỉ riêng + Cao + Thấp + Bình thường + Hàng đợi ưu tiên + Bật: tác vụ có mức cao hơn sẽ tạm dừng tác vụ đang chạy mà không hỏi, và tác vụ đó sẽ tự chạy tiếp sau đó. Tắt: các tác vụ chờ đến lượt Không qua proxy Chế độ TLS là Proxy ngược, nhưng trang này không đi qua một proxy tin cậy bằng HTTPS. Hãy mở trang qua proxy của bạn, hoặc thêm địa chỉ của proxy vào TITANO_TRUSTED_PROXIES. Cần khởi động lại @@ -308,8 +318,6 @@ Số ngày máy khách vẫn đăng nhập khi không được sử dụng Bỏ dở sau (giờ) Số giờ sau đó các lượt tải lên chưa hoàn tất sẽ bị loại bỏ - Luồng xử lý - Số tác vụ máy chủ này chạy cùng lúc Đăng xuất Đăng xuất khỏi bảng quản trị Chuyển đổi giữa giao diện sáng và tối diff --git a/i18n/vi/Jobs.vi.resx b/i18n/vi/Jobs.vi.resx index 96c37e6c..6a4b4657 100644 --- a/i18n/vi/Jobs.vi.resx +++ b/i18n/vi/Jobs.vi.resx @@ -50,10 +50,14 @@ Xác minh sau {0} tác vụ kế tiếp + Đã tạm dừng để nhường cho tác vụ có mức ưu tiên cao hơn ({0}); sẽ tự chạy tiếp Chưa có dòng nhật ký Ẩn nhật ký Hiển thị nhật ký + {0} ảnh cùng lúc + {0} ảnh cùng lúc Tạm dừng tất cả + Hàng đợi ưu tiên Cài đặt kết xuất {0} · {1} Tìm đối tượng hoặc loại @@ -68,5 +72,4 @@ đang chạy {0} · {1} máy tính này - Luồng xử lý {0} / {1} diff --git a/i18n/vi/Settings.vi.resx b/i18n/vi/Settings.vi.resx index f38f5e53..7b449c1e 100644 --- a/i18n/vi/Settings.vi.resx +++ b/i18n/vi/Settings.vi.resx @@ -136,6 +136,11 @@ {0} fps · đạt Ưu tiên phần cứng Phần cứng chỉ cho xem trước + Cao + Thấp + Bình thường + Hàng đợi ưu tiên + Bật Hồ sơ chất lượng Cân bằng Tốt nhất diff --git a/i18n/vi/Tooltips.vi.resx b/i18n/vi/Tooltips.vi.resx index e8ffc73b..80e4a9ed 100644 --- a/i18n/vi/Tooltips.vi.resx +++ b/i18n/vi/Tooltips.vi.resx @@ -320,9 +320,11 @@ Đưa ảnh vào từ thẻ nhớ hoặc thư mục; các lượt nhập, phân tích và kết xuất sau đó sẽ hiện ở đây Tăng mức ưu tiên: tác vụ sẽ chạy trước các tác vụ có mức ưu tiên thấp hơn Mở đối tượng mà tác vụ này đã xử lý + Các tác vụ chạy lần lượt từng cái một; tác vụ đang chạy xử lý cùng lúc số ảnh này (Cài đặt › Kết xuất › Mức song song) Tạm dừng ở điểm lưu kế tiếp; Tiếp tục sẽ chạy tiếp từ đó Tạm dừng mọi tác vụ đang chạy; hàng đợi giữ nguyên thứ tự Giữ tác vụ này trong hàng đợi cho đến khi bạn tiếp tục nó + Hàng đợi ưu tiên đang bật: tác vụ có mức cao hơn sẽ tạm dừng tác vụ đang chạy, và tác vụ đó sẽ tự chạy tiếp sau đó (Cài đặt › Kết xuất) Loại bỏ khỏi hàng đợi; tác vụ sẽ bị hủy Mức song song, ưu tiên phần cứng, giới hạn bộ nhớ Đưa tác vụ trở lại hàng đợi; tác vụ sẽ chạy tiếp từ điểm lưu @@ -336,7 +338,6 @@ Đã tạm dừng; Tiếp tục sẽ chạy tiếp từ điểm lưu Đang chờ luồng xử lý trên máy tính này Đang chạy - Số tác vụ đang chạy trên máy tính này so với số luồng xử lý của bộ máy tác vụ Lập chỉ mục ảnh bạn đã có ngay tại chỗ; hãy chọn thư mục cấp cao nhất của chúng Phân tích sâu mọi khung hình · chạy dưới dạng tác vụ nền Phân tích sâu các chuỗi ảnh đã chọn · chạy dưới dạng một tác vụ @@ -540,6 +541,7 @@ Tải cài đặt từ tệp JSON; phiên và bố cục cửa sổ được giữ nguyên Mở trang Microsoft Store của tiện ích mở rộng miễn phí hoặc trả phí này; nhấn Phát hiện lại sau khi cài đặt Khi Titano ở nền trước, giao diện được ưu tiên hơn các tác vụ để luôn mượt trong lúc kết xuất và phân tích + Mức của “{0}” trong hàng đợi ưu tiên: mức cao hơn chạy trước và tạm dừng các mức thấp hơn; các tác vụ cùng mức không bao giờ ngắt nhau Giữ nguyên cài đặt của kho lưu trữ này Giữ nguyên bộ nhớ đệm Giữ nguyên chỉ mục @@ -563,11 +565,15 @@ Máy chủ mặc định, nút kết xuất, chứng chỉ tin cậy Thư mục bộ nhớ đệm, hình thu nhỏ trong bộ nhớ, giới hạn bộ nhớ đệm Kiểm tra cập nhật khi khởi động + Số ảnh mà tác vụ đang chạy xử lý cùng lúc; các tác vụ chạy lần lượt từng cái một. Ít hơn sẽ chừa nhiều tài nguyên hơn cho chương trình khác · Enter để áp dụng, Esc để hoàn tác + Tự động: một nửa số lõi logic + Về Tự động: một nửa số lõi logic Tần suất Titano quét lại kho lưu trữ để tìm thay đổi được thực hiện ở nơi khác, chẳng hạn bởi một máy chủ dùng chung kho Bật khi có portable.txt nằm cạnh Titano.exe: mọi dữ liệu nằm trong thư mục dữ liệu của nó Dùng bộ mã hóa phần cứng khi có bộ hỗ trợ cài đặt sẵn; nếu không thì dùng phần mềm Ba tên đầu tiên của một lượt nhập mẫu với các mẫu này Phần cứng cho xem trước, phần mềm cho cài đặt sẵn lưu trữ + Bật: tác vụ có mức cao hơn sẽ tạm dừng tác vụ đang chạy mà không hỏi, và tác vụ đó sẽ tự chạy tiếp sau đó. Tắt: các tác vụ chờ đến lượt; hãy tạm dừng tác vụ đang chạy để bắt đầu tác vụ tiếp theo Cạnh dài của các proxy JPEG trong kho lưu trữ này và trong các kho lưu trữ mới; proxy đã tạo trước đó giữ kích thước cho đến khi được tạo lại Cân bằng phù hợp với hầu hết công việc; Tốt nhất đo ở độ phân giải gấp đôi và đọc trước xa hơn; Nhanh đo ở nửa độ phân giải với chuyển động nháp Liệt kê lại các bộ mã hóa sau khi cài trình điều khiển hoặc codec @@ -595,9 +601,6 @@ Mọi điểm ảnh đều được giải mã Không có bộ giải mã nào trên máy tính này đọc được điểm ảnh; các khung hình như vậy bị loại khỏi bản kết xuất Gửi hằng ngày số liệu ẩn danh về phiên bản và ngôn ngữ đang dùng; không gì khác, mặc định tắt - Số tác vụ và khung hình được xử lý cùng lúc; ít hơn sẽ chừa nhiều tài nguyên hơn cho chương trình khác · Enter để áp dụng, Esc để hoàn tác - Tự động: một nửa số lõi logic chạy tác vụ cùng lúc, mỗi tác vụ có số luồng riêng - Về Tự động: một nửa số lõi logic Cài đặt vào Program Files cho mọi tài khoản · cần quản trị viên phê duyệt {0} · chạy dưới dạng dịch vụ Windows nên được cài đặt cho mọi người dùng trong Program Files Quay lại các tùy chọn mà không thay đổi gì diff --git a/i18n/zh-Hans/Admin.zh-Hans.resx b/i18n/zh-Hans/Admin.zh-Hans.resx index f51b3c8e..21886c2c 100644 --- a/i18n/zh-Hans/Admin.zh-Hans.resx +++ b/i18n/zh-Hans/Admin.zh-Hans.resx @@ -92,8 +92,11 @@ 共 {0} 在线 原始文件 {0} + 一次 {0} 张照片 + 一次 {0} 张照片 {0} 张照片 {0} 张照片 + 优先级队列 队列和历史记录 打开“任务”页面 {0} 个排队中 @@ -107,8 +110,6 @@ 上传 · 最近 30 天 {0} 个序列没有代理 {0} 个序列没有代理 - {0} 个工作线程 - {0} 个工作线程 服务器没有响应,请重试。 纳入 深度分析 @@ -279,6 +280,8 @@ 通过 TLS 为 Titano 客户端提供 API 的端口 任务历史(天) 已完成任务的保留天数 + “{0}”在优先级队列中的级别:级别较高的先运行,并暂停级别较低的 + 任务 语言 客户端未指定语言时服务器消息使用的语言 限制与保留 @@ -286,8 +289,15 @@ 单文件上限(MB) 可接受的单个上传文件的最大大小 网络和 TLS + 并行度 + 正在运行的任务同时处理的照片数;任务逐个运行 找不到该 PEM 文件;请输入它在服务器上的完整路径。 仅在“自有证书”模式下使用 + 高 + 低 + 普通 + 优先级队列 + 启用时:级别较高的任务会不经询问直接暂停正在运行的任务,被暂停的任务之后会自动继续。禁用时:任务依次等候 未经代理 TLS 模式为“反向代理”,但此页面并非经由受信任的代理通过 HTTPS 访问。请通过你的代理打开它,或将代理的地址添加到 TITANO_TRUSTED_PROXIES。 需要重启 @@ -308,8 +318,6 @@ 客户端在未使用的情况下保持登录的天数 超时放弃(小时) 未完成的上传在经过此小时数后被丢弃 - 工作线程 - 此服务器同时运行的任务数 退出登录 退出管理面板的登录 在浅色和深色之间切换 diff --git a/i18n/zh-Hans/Jobs.zh-Hans.resx b/i18n/zh-Hans/Jobs.zh-Hans.resx index 73635738..6cf8e0dd 100644 --- a/i18n/zh-Hans/Jobs.zh-Hans.resx +++ b/i18n/zh-Hans/Jobs.zh-Hans.resx @@ -50,10 +50,14 @@ 校验 排在 {0} 项之后 下一个 + 已为优先级更高的任务({0})暂停;之后会自动继续 尚无日志 隐藏日志 显示日志 + 一次 {0} 张照片 + 一次 {0} 张照片 全部暂停 + 优先级队列 渲染设置 {0} · {1} 搜索目标或类型 @@ -68,5 +72,4 @@ 运行中 {0} · {1} 此电脑 - 工作线程 {0} / {1} diff --git a/i18n/zh-Hans/Settings.zh-Hans.resx b/i18n/zh-Hans/Settings.zh-Hans.resx index e84169ca..2de33007 100644 --- a/i18n/zh-Hans/Settings.zh-Hans.resx +++ b/i18n/zh-Hans/Settings.zh-Hans.resx @@ -136,6 +136,11 @@ {0} fps · 通过 优先使用硬件 仅预览使用硬件 + 高 + 低 + 普通 + 优先级队列 + 启用 质量模式 均衡 最佳 diff --git a/i18n/zh-Hans/Tooltips.zh-Hans.resx b/i18n/zh-Hans/Tooltips.zh-Hans.resx index c0af4564..38ea2660 100644 --- a/i18n/zh-Hans/Tooltips.zh-Hans.resx +++ b/i18n/zh-Hans/Tooltips.zh-Hans.resx @@ -320,9 +320,11 @@ 从存储卡或文件夹导入照片;导入、分析和渲染随后会显示在这里 提高优先级:它将先于优先级较低的任务运行 打开此任务处理的对象 + 任务逐个运行;正在运行的任务一次处理这么多张照片(设置 › 渲染 › 并行度) 在下一个断点处暂停;“继续”会从该处接着运行 暂停所有正在运行的任务;队列保持原有顺序 将此任务保留在队列中,直到你继续它 + 优先级队列已启用:级别较高的任务会暂停正在运行的任务,被暂停的任务之后会自动继续(设置 › 渲染) 从队列中移除;该任务将被取消 并行度、硬件偏好、内存预算 将任务放回队列;它会从断点继续 @@ -336,7 +338,6 @@ 已暂停;“继续”会从断点接着运行 正在等待此电脑上的工作线程 正在运行 - 此电脑上正在运行的任务数 / 任务引擎的工作线程总数 原位为你已有的照片建立索引;请选择其顶层文件夹 对每一帧进行深度分析 · 作为任务在后台运行 对所选序列进行深度分析 · 作为一个任务运行 @@ -540,6 +541,7 @@ 从 JSON 文件加载设置;会话和窗口布局保持不变 打开此免费或付费扩展的 Microsoft Store 页面;安装后请点击“重新检测” Titano 位于前台时,其界面优先于任务运行,因此在渲染和分析期间仍保持流畅 + “{0}”在优先级队列中的级别:级别较高的先运行,并暂停级别较低的;同一级别的任务从不互相中断 保持此档案库的设置不变 保持缓存不变 保持索引不变 @@ -563,11 +565,15 @@ 默认服务器、渲染节点、受信任的证书 缓存文件夹、内存中的缩略图、缓存上限 启动时检查更新 + 正在运行的任务同时处理的照片数;任务逐个运行。越少则为其他程序留出越多空间 · Enter 应用,Esc 还原 + 自动:逻辑核心数的一半 + 恢复自动:逻辑核心数的一半 Titano 重新扫描档案库以发现在别处(例如共享该档案库的服务器)所做更改的频率 当 portable.txt 与 Titano.exe 位于同一文件夹时开启:所有数据都保存在其数据文件夹中 有硬件编码器支持该预设时使用硬件编码器,否则使用软件编码 使用这些模板时示例导入的前三个名称 预览使用硬件编码,存档预设使用软件编码 + 启用时:级别较高的任务会不经询问直接暂停正在运行的任务,被暂停的任务之后会自动继续。禁用时:任务依次等候;如需启动下一个任务,请暂停正在运行的任务 此档案库和新档案库中 JPEG 代理的长边尺寸;之前生成的代理在重建前保持原尺寸 “均衡”适合大多数工作;“最佳”以双倍分辨率测量并预读更多帧;“快速”以一半分辨率测量,并使用草稿级运动估计 安装驱动程序或编解码器后重新列出编码器 @@ -595,9 +601,6 @@ 解码每个像素 此电脑上没有可读取其像素的解码器;此类帧不会参与渲染 每天发送一次所用版本和语言的匿名统计;不发送其他内容,默认关闭 - 同时处理的任务和帧数;越少则为其他程序留出越多空间 · Enter 应用,Esc 还原 - 自动:同时运行的任务数为逻辑核心数的一半,每个任务有各自的线程数 - 恢复自动:逻辑核心数的一半 安装到 Program Files,供所有账户使用 · 需要管理员批准 {0} · 它作为 Windows 服务运行,因此会为所有用户安装到 Program Files 返回选项,不做任何更改 diff --git a/i18n/zh-Hant/Admin.zh-Hant.resx b/i18n/zh-Hant/Admin.zh-Hant.resx index 63436498..bc64cb6c 100644 --- a/i18n/zh-Hant/Admin.zh-Hant.resx +++ b/i18n/zh-Hant/Admin.zh-Hant.resx @@ -92,8 +92,11 @@ 共 {0} 線上 原始檔 {0} + 一次 {0} 張相片 + 一次 {0} 張相片 {0} 張相片 {0} 張相片 + 優先順序佇列 佇列與歷史記錄 開啟「工作」頁面 {0} 項排隊中 @@ -107,8 +110,6 @@ 上傳 · 最近 30 天 {0} 個序列沒有代理檔 {0} 個序列沒有代理檔 - {0} 個工作者 - {0} 個工作者 伺服器沒有回應,請再試一次。 納入 深度分析 @@ -279,6 +280,8 @@ 透過 TLS 為 Titano 用戶端提供 API 的連接埠 工作歷史記錄(天) 已完成工作的保留天數 + 「{0}」在優先順序佇列中的等級:等級較高者先執行,並會暫停等級較低者 + 工作 語言 用戶端未指定語言時,伺服器訊息所使用的語言 限制與保留 @@ -286,8 +289,15 @@ 檔案上限(MB) 可接受的單一上傳檔案大小上限 網路與 TLS + 平行處理 + 執行中的工作同時處理的相片數;工作會逐一執行 找不到 PEM 檔;請輸入其在伺服器上的完整路徑。 僅用於「自有憑證」模式 + 高 + 低 + 一般 + 優先順序佇列 + 啟用時:等級較高的工作會直接暫停執行中的工作,不會詢問,被暫停的工作稍後會自動繼續。停用時:工作會依序等候 未經由代理伺服器 TLS 模式為「反向代理」,但此頁面並非透過受信任的代理伺服器以 HTTPS 傳送。請透過您的代理伺服器開啟此頁面,或將代理伺服器的位址加入 TITANO_TRUSTED_PROXIES。 需要重新啟動 @@ -308,8 +318,6 @@ 用戶端在未使用的情況下保持登入的天數 逾時捨棄(小時) 未完成的上傳經過幾小時後捨棄 - 工作者 - 此伺服器同時執行的工作數 登出 登出管理面板 在淺色與深色之間切換 diff --git a/i18n/zh-Hant/Jobs.zh-Hant.resx b/i18n/zh-Hant/Jobs.zh-Hant.resx index 4715a544..5f21b64b 100644 --- a/i18n/zh-Hant/Jobs.zh-Hant.resx +++ b/i18n/zh-Hant/Jobs.zh-Hant.resx @@ -50,10 +50,14 @@ 驗證 前面還有 {0} 項 下一個 + 已為優先順序較高的工作({0})暫停;稍後會自動繼續 尚無記錄 隱藏記錄 顯示記錄 + 一次 {0} 張相片 + 一次 {0} 張相片 全部暫停 + 優先順序佇列 算圖設定 {0} · {1} 搜尋目標或類型 @@ -68,5 +72,4 @@ 執行中 {0} · {1} 此電腦 - 工作者 {0} / {1} diff --git a/i18n/zh-Hant/Settings.zh-Hant.resx b/i18n/zh-Hant/Settings.zh-Hant.resx index 80c8de8f..647afe54 100644 --- a/i18n/zh-Hant/Settings.zh-Hant.resx +++ b/i18n/zh-Hant/Settings.zh-Hant.resx @@ -136,6 +136,11 @@ {0} fps · 通過 優先使用硬體 僅預覽使用硬體 + 高 + 低 + 一般 + 優先順序佇列 + 啟用 品質設定檔 平衡 最佳 diff --git a/i18n/zh-Hant/Tooltips.zh-Hant.resx b/i18n/zh-Hant/Tooltips.zh-Hant.resx index f43d5c1d..540b171f 100644 --- a/i18n/zh-Hant/Tooltips.zh-Hant.resx +++ b/i18n/zh-Hant/Tooltips.zh-Hant.resx @@ -320,9 +320,11 @@ 從記憶卡或資料夾匯入相片;匯入、分析與算圖接著會顯示在這裡 提高優先順序:此工作會在優先順序較低的工作之前執行 開啟此工作所處理的項目 + 工作會逐一執行;執行中的工作一次處理這麼多張相片(設定 › 算圖 › 平行處理) 在下一個檢查點暫停;按「繼續」即可從該處接續 暫停所有執行中的工作;佇列會保持原有順序 將此工作保留在佇列中,直到您繼續執行它 + 優先順序佇列已啟用:等級較高的工作會暫停執行中的工作,被暫停的工作稍後會自動繼續(設定 › 算圖) 從佇列中移除;此工作會被取消 平行處理、硬體偏好、記憶體上限 將工作放回佇列;它會從檢查點繼續 @@ -336,7 +338,6 @@ 已暫停;按「繼續」可從檢查點繼續 正在等待此電腦上的工作者 正在執行 - 此電腦上正在執行的工作數,以及工作引擎的工作者總數 就地為您現有的相片建立索引;請選擇其最上層資料夾 對每個影格進行深度分析 · 在背景以工作執行 對選取的序列進行深度分析 · 以單一工作執行 @@ -540,6 +541,7 @@ 從 JSON 檔載入設定;工作階段與視窗配置維持不變 開啟此免費或付費延伸模組的 Microsoft Store 頁面;安裝後請按「重新偵測」 Titano 位於前景時,其介面會優先於工作執行,因此在算圖與分析期間仍保持流暢 + 「{0}」在優先順序佇列中的等級:等級較高者先執行,並會暫停等級較低者;同等級的工作絕不會互相中斷 保留此典藏庫的設定現狀 保留快取現狀 保留索引現狀 @@ -563,11 +565,15 @@ 預設伺服器、算圖節點、信任的憑證 快取資料夾、記憶體中的縮圖、快取上限 啟動時檢查更新 + 執行中的工作同時處理的相片數;工作會逐一執行。數量越少,留給其他程式的資源越多 · Enter 套用,Esc 還原 + 自動:一半的邏輯核心 + 恢復自動:一半的邏輯核心 Titano 重新掃描典藏庫的頻率,以偵測在他處(例如共用此典藏庫的伺服器)所做的變更 當 portable.txt 與 Titano.exe 位於同一資料夾時開啟:所有資料都保留在其 data 資料夾中 預設集支援時使用硬體編碼器;否則使用軟體 以這些範本進行範例匯入時的前三個名稱 預覽使用硬體,典藏預設集使用軟體 + 啟用時:等級較高的工作會直接暫停執行中的工作,不會詢問,被暫停的工作稍後會自動繼續。停用時:工作會依序等候;若要開始下一項工作,請暫停執行中的工作 此典藏庫及新典藏庫的 JPEG 代理檔長邊;先前建立的代理檔在重建前會保留原本的尺寸 「平衡」適合大多數工作;「最佳」以兩倍解析度測量並預先讀取更多影格;「快速」以一半解析度測量並使用草稿品質的動態 安裝驅動程式或編解碼器後,重新列出編碼器 @@ -595,9 +601,6 @@ 解碼每個像素 此電腦上沒有解碼器能讀取其像素;此類影格會從算圖中排除 每天傳送一次使用中版本與語言的匿名統計;不含其他資料,預設為關閉 - 同時處理的工作與影格數;數量越少,留給其他程式的資源越多 · Enter 套用,Esc 還原 - 自動:一半的邏輯核心同時執行工作,每項工作各有自己的執行緒數 - 恢復自動:一半的邏輯核心 為所有帳戶安裝到 Program Files · 需要系統管理員核准 {0} · 此程式以 Windows 服務執行,因此會為所有使用者安裝到 Program Files 返回選項,不做任何變更 diff --git a/src/Titano.App/DesignTime/SampleData.cs b/src/Titano.App/DesignTime/SampleData.cs index 6cba5a08..4d595f17 100644 --- a/src/Titano.App/DesignTime/SampleData.cs +++ b/src/Titano.App/DesignTime/SampleData.cs @@ -4,6 +4,7 @@ using Titano.App.About; using Titano.App.Editor; using Titano.App.Import; using Titano.App.Infrastructure; +using Titano.App.Jobs; using Titano.App.Library; using Titano.App.Server; using Titano.App.Settings; @@ -15,6 +16,7 @@ using Titano.Core.Codecs.Jpeg; using Titano.Core.Diagnostics.Synthetic; using Titano.Core.Imaging; using Titano.Core.Imaging.Decoders; +using Titano.Core.Localization; using Titano.Core.Metadata; using Titano.Core.Model; using Titano.Core.Project; @@ -119,6 +121,8 @@ public sealed class SampleData settings.TrustedCertificates = [new TrustedCertificate { Fingerprint = ServerFingerprint, Server = "https://nas.local:8443", TrustedAt = new DateTimeOffset(2026, 9, 1, 9, 30, 0, TimeSpan.Zero) }]; settings.RecentServers = ["https://nas.local:8443"]; settings.RenderNodeOptIn = true; + // The jobs sample shows a deep analysis that yielded to the render (owner review 1). + settings.PriorityQueue = true; settings.FirstRunCompleted = true; } @@ -133,7 +137,8 @@ public sealed class SampleData /// /// Transfers for the sync table: an upload at 46 % (Comet over the ridge), an upload waiting (Fog lifting, Asti), a - /// download of originals running (Sunrise over Superga) and one paused (Lake Como storm). + /// download of originals waiting its turn halfway (Sunrise over Superga: jobs run one at a time) and one paused (Lake + /// Como storm). /// public async Task FillSyncAsync() { @@ -158,13 +163,17 @@ public sealed class SampleData Created = now.AddMinutes(-5), Started = state == JobState.Queued ? null : now.AddMinutes(-5), }; + // One job at a time (owner review 1): the upload runs, so a job of this PC that ran waits for its turn, in the plain + // queue (the Jobs and Settings scenes, captured before, show the priority queue). + await RequeueLocalJobsAsync(db); + _services.Settings.PriorityQueue = false; var upload = $$"""{"server":"{{ServerAddress}}"}"""; var originals = $$"""{"server":"{{ServerAddress}}","mode":"Originals"}"""; var comet = await LocalAsync("Comet"); var fog = await LocalAsync("Fog lifting"); await db.Jobs.EnqueueAsync(Transfer(JobKind.UploadCommit, comet.Id, comet.DisplayTitle, upload, JobState.Running, 462, 1_005)); await db.Jobs.EnqueueAsync(Transfer(JobKind.UploadCommit, fog.Id, fog.DisplayTitle, upload, JobState.Queued, 0, 0)); - await db.Jobs.EnqueueAsync(Transfer(JobKind.Download, _sunrise, "Sunrise over Superga", originals, JobState.Running, 1_210, 2_880)); + await db.Jobs.EnqueueAsync(Transfer(JobKind.Download, _sunrise, "Sunrise over Superga", originals, JobState.Queued, 1_210, 2_880)); await db.Jobs.EnqueueAsync(Transfer(JobKind.Download, _lakeComo, "Lake Como storm", originals, JobState.Paused, 300, 1_450)); } @@ -360,6 +369,8 @@ public sealed class SampleData public async Task MarkAnalysingAsync(Guid sequenceId) { var db = _db ?? throw new InvalidOperationException("OpenEmptyAsync first."); + // The analysis is the one job this PC runs (owner review 1). + await RequeueLocalJobsAsync(db); var now = Now; await db.Jobs.EnqueueAsync(new Job { @@ -379,6 +390,13 @@ public sealed class SampleData }); } + /// Puts the jobs this PC runs back in the queue, so the job a scene starts is the one running (owner review 1). + private async Task RequeueLocalJobsAsync(TitanoDatabase db) + { + foreach (var running in (await db.Jobs.ListAsync(JobState.Running, 50)).Items.Where(j => j.NodeId is { } node && JobText.IsLocal(node, _services.WorkerId))) + await db.Jobs.RequeueAsync(running.Id, running.NodeId!); + } + /// A two-minute sunset at 2 s intervals: darkening scene, flicker, two shutter steps the pixels received, warming light. private static readonly SyntheticSequenceOptions EditorSunset = new() { @@ -640,14 +658,19 @@ public sealed class SampleData Finished = state is JobState.Done or JobState.Failed && startedAgo is { } a2 ? now - a2 + (runFor ?? TimeSpan.FromMinutes(1)) : null, }; + // The user's render runs before the older render the batch queued (higher priority). yield return Make(JobKind.Render, s[0], "Harbour sunset → 4K 10-bit HEVC · 24 fps", JobState.Running, 2_232, 3_600, 11.3, TimeSpan.FromMinutes(2), - startedAgo: TimeSpan.FromMinutes(3.4), log: + startedAgo: TimeSpan.FromMinutes(3.4), priority: JobPriority.User, log: "10:14:02 window 41 · deflicker −67 % · 3 exposure steps redistributed over 18 frames\n" + "10:14:03 stabilisation on · mean shake 0.42 px · crop 1.8 %\n" + "10:14:03 encoder NVENC HEVC Main10 · 3840×2160 · 120 Mb/s · 24 fps · GOP 48\n" + "10:15:41 frame 2232 / 3600 · 11.3 fps · spill 0 · memory 6.1 GB of 8 GB budget"); - yield return Make(JobKind.DeepAnalyse, s[4], s[4].DisplayTitle, JobState.Running, 2_498, 8_920, 41, TimeSpan.FromMinutes(6), startedAgo: TimeSpan.FromMinutes(1.1)); - yield return Make(JobKind.Proxies, s[1], s[1].DisplayTitle, JobState.Running, 915, 1_005, 118, TimeSpan.FromSeconds(8), startedAgo: TimeSpan.FromSeconds(8)); + // Jobs run one at a time (owner review 1): the deep analysis yielded to the render and resumes after it; the user + // paused the proxies, so the render started at once. + yield return Make(JobKind.DeepAnalyse, s[4], s[4].DisplayTitle, JobState.Queued, 2_498, 8_920, createdAgo: TimeSpan.FromMinutes(9), + log: "10:12:40 " + Loc.L("Jobs.Line.Yielded", Loc.L("Jobs.Kind.Render"))); + yield return Make(JobKind.Proxies, s[1], s[1].DisplayTitle, JobState.Paused, 915, 1_005, startedAgo: TimeSpan.FromMinutes(14), + priority: JobPriority.Background); yield return Make(JobKind.Render, s[3], "Aurora, Tromsø → 1080p share H.264", JobState.Queued, 0, 0, createdAgo: TimeSpan.FromMinutes(12)); yield return Make(JobKind.Verify, null, "Archive · 2024", JobState.Queued, 0, 0, priority: JobPriority.Background, createdAgo: TimeSpan.FromMinutes(30)); yield return Make(JobKind.Verify, s[7], s[7].DisplayTitle, JobState.Failed, 640, 640, 900, startedAgo: TimeSpan.FromMinutes(25), runFor: TimeSpan.FromSeconds(43), diff --git a/src/Titano.App/Infrastructure/AppServices.cs b/src/Titano.App/Infrastructure/AppServices.cs index d4f3c278..eec764d2 100644 --- a/src/Titano.App/Infrastructure/AppServices.cs +++ b/src/Titano.App/Infrastructure/AppServices.cs @@ -182,16 +182,22 @@ public sealed class AppServices : IAsyncDisposable ApplyJobSettings(); } - /// The parallelism of Settings › Rendering as the engine's workers, and the archive's rescan interval, now. + /// + /// The archive's rescan interval, now, and a review of the priority queue (Settings › Rendering): turned on, it may make + /// the running job yield at once. The parallelism applies from the next sequence or job. + /// public void ApplyJobSettings() { - Engine?.SetWorkers(Parallelism); + Engine?.Wake(); if (_pollTimer is { } timer && timer.Period != ScanInterval) timer.Period = ScanInterval; } - /// Workers of this PC's job engine (Settings › Rendering › Parallelism, Auto: half the logical cores). + /// Photos the running job of this PC processes at once (Settings › Rendering › Parallelism, Auto: half the logical cores). public int Parallelism => ProcessingTuning.Parallelism(Settings, System.Environment.ProcessorCount); + /// The priority queue of Settings › Rendering, as the job engine reads it. + public JobPriorityQueue PriorityQueue => JobPriorityQueue.From(Settings.PriorityQueue, Settings.JobPriorities); + /// Starts, restarts or stops the render node to match the opt-in, the server session and the trusted certificates (BRIEF §14.7). public void UpdateRenderNode() => _renderNode.Update(RenderNodeSession.For(Settings.RenderNodeOptIn && Processing is not null && !Environment.IsCapture, _server.IsConnected, @@ -371,20 +377,26 @@ public sealed class AppServices : IAsyncDisposable private async Task StartJobsAsync(TitanoDatabase database, bool startEngine, CancellationToken ct) { _wic = new WicDecoderProvider(); - var archive = new ArchiveServiceOptions { Decoder = DecoderFactory.CreateClient(_wic) }; + var archive = new ArchiveServiceOptions + { + Decoder = DecoderFactory.CreateClient(_wic), + Parallelism = () => Parallelism, + MemoryBudget = () => ProcessingTuning.MemoryBudget(Settings, GC.GetGCMemoryInfo().TotalAvailableMemoryBytes), + }; Archives = new ArchiveService(database, archive); Processing = new ProcessingService(database, ProcessingOptions(archive)); Sync.Open(database, Archives, archive); var handlers = CreateJobHandlers(this); var kinds = handlers.Select(h => h.Kind).Distinct().ToArray(); - Engine = new JobEngine(database, handlers, new JobEngineOptions { WorkerId = WorkerId, Kinds = kinds, Workers = Parallelism }); + // One job at a time (owner review 1): the parallelism works inside it, the priority queue decides which runs. + Engine = new JobEngine(database, handlers, new JobEngineOptions { WorkerId = WorkerId, Kinds = kinds, PriorityQueue = () => PriorityQueue }); // Sync follows the engine's jobs before it runs any: a render resumed at start that finishes at once is still sent (Export "Sync"). Sync.Update(); // With no handler the engine must not run: an empty kind list would let workers claim (and fail) every job. var started = startEngine && handlers.Count > 0; if (started) await Engine.StartAsync(ct); Jobs = new EngineJobQueue(database, Engine, started); - Log.Info("jobs", started ? $"Job engine started with {Engine.Workers} worker(s) for {string.Join(", ", kinds)}" : "No job handlers registered; jobs stay queued"); + Log.Info("jobs", started ? $"Job engine started for {string.Join(", ", kinds)}" : "No job handlers registered; jobs stay queued"); UpdateRenderNode(); } diff --git a/src/Titano.App/Infrastructure/AppSettings.cs b/src/Titano.App/Infrastructure/AppSettings.cs index 7611795a..ff8c6e00 100644 --- a/src/Titano.App/Infrastructure/AppSettings.cs +++ b/src/Titano.App/Infrastructure/AppSettings.cs @@ -131,7 +131,7 @@ public sealed class AppSettings /// Frame memory budget in GB; null = Auto (a quarter of installed memory). public int? MemoryBudgetGb { get; set; } - /// Jobs run at once, also capping their decode and analysis threads; null = Auto (half the logical cores, at least one, with the jobs' own thread counts). + /// Photos the running job processes at once (owner review 1: jobs run one at a time); null = Auto (half the logical cores, at least one). public int? Parallelism { get; set; } public bool BackgroundPriority { get; set; } = true; @@ -170,6 +170,15 @@ public sealed class AppSettings public bool PauseUploadsOnMetered { get; set; } // ---- Jobs ---- + /// + /// The priority queue (owner review 1): a job of a higher level makes the running one of a lower level yield, and that + /// one resumes by itself afterwards. Off: jobs wait their turn. + /// + public bool PriorityQueue { get; set; } + + /// Levels of the priority queue that differ from the defaults, by job kind (render → high). + public Dictionary JobPriorities { get; set; } = []; + /// "Clear done": finished jobs older than this are hidden from the Jobs list (they stay in the history). public DateTimeOffset? JobsClearedAt { get; set; } diff --git a/src/Titano.App/Jobs/JobListModel.cs b/src/Titano.App/Jobs/JobListModel.cs index 364396fd..438fb497 100644 --- a/src/Titano.App/Jobs/JobListModel.cs +++ b/src/Titano.App/Jobs/JobListModel.cs @@ -59,6 +59,9 @@ public sealed class JobListModel /// public long Stamp => _stamp; + /// The priority queue the engine claims jobs by, which orders the queue here too (). + public JobPriorityQueue PriorityQueue { get; set; } = JobPriorityQueue.Off; + /// Inserts or replaces a snapshot that is known to be current (an engine event). True when something changed. public bool Apply(Job job) => Store(job, ++_stamp); @@ -96,8 +99,9 @@ public sealed class JobListModel public bool Remove(Guid id) => _entries.Remove(id); /// - /// Display order: running (oldest start first), paused, queued in the order workers claim them (priority, then - /// age), then the history, newest finish first. Finished jobs before are hidden. + /// Display order: running (oldest start first), paused, queued in the order the engine claims them (the level of the + /// priority queue while it is on, priority, then age), then the history, newest finish first. Finished jobs before + /// are hidden. /// public IReadOnlyList Ordered(JobFilter filter = JobFilter.All, string? search = null, DateTimeOffset? clearedBefore = null) { @@ -105,6 +109,7 @@ public sealed class JobListModel return _entries.Values .Where(e => Matches(e, filter) && Visible(e, clearedBefore) && (text is null || MatchesText(e, text))) .OrderBy(Group) + .ThenBy(e => e.State == JobState.Queued && PriorityQueue.Enabled ? -(int)PriorityQueue.LevelOf(e.Job.Kind) : 0) .ThenBy(e => e.State == JobState.Queued ? -(int)e.Job.Priority : 0) .ThenBy(e => e.IsFinished ? -(e.Job.Finished ?? e.Job.Created).UtcTicks : (e.Job.Started ?? e.Job.Created).UtcTicks) .ThenBy(e => e.Job.Created) @@ -120,7 +125,7 @@ public sealed class JobListModel public int QueuePosition(Guid id) { if (!_entries.TryGetValue(id, out var entry) || entry.State != JobState.Queued) return 0; - return _entries.Values.Count(e => e.State == JobState.Queued && ClaimsBefore(e.Job, entry.Job)) + 1; + return _entries.Values.Count(e => e.State == JobState.Queued && PriorityQueue.ClaimsBefore(e.Job, entry.Job)) + 1; } /// The job the job bar mirrors: the running job with the most recent progress, else the first running one. @@ -144,9 +149,8 @@ public sealed class JobListModel public bool IsBusy(JobKind kind) => _entries.Values.Any(e => e.Job.Kind == kind && e.Job.Priority != JobPriority.Background && e.State is JobState.Queued or JobState.Running); - /// Same order as JobRepository.ClaimNextAsync: priority descending, then creation time and id. - public static bool ClaimsBefore(Job a, Job b) => - a.Priority != b.Priority ? a.Priority > b.Priority : a.Created != b.Created ? a.Created < b.Created : a.Id.CompareTo(b.Id) < 0; + /// Same order as JobRepository.ClaimNextAsync with the priority queue off: priority descending, then creation time and id. + public static bool ClaimsBefore(Job a, Job b) => JobPriorityQueue.Off.ClaimsBefore(a, b); private static int Group(JobEntry e) => e.State switch { diff --git a/src/Titano.App/Jobs/JobQueue.cs b/src/Titano.App/Jobs/JobQueue.cs index dbc587d1..4c3d34d2 100644 --- a/src/Titano.App/Jobs/JobQueue.cs +++ b/src/Titano.App/Jobs/JobQueue.cs @@ -17,8 +17,8 @@ public interface IJobQueue /// Node id stamped on jobs run by this PC. string WorkerId { get; } - /// Concurrent workers of the local engine; 0 when it runs no handler yet. - int Workers { get; } + /// The local engine runs jobs (it runs none before it starts, or without handlers). + bool IsRunning { get; } /// Kinds this PC can run. IReadOnlyCollection Kinds { get; } @@ -63,7 +63,7 @@ public sealed class EngineJobQueue : IJobQueue, IDisposable public string WorkerId => _engine.Options.WorkerId; - public int Workers => _started ? _engine.Options.Workers : 0; + public bool IsRunning => _started; public IReadOnlyCollection Kinds => _engine.Options.Kinds ?? []; diff --git a/src/Titano.App/Sections/JobsView.xaml b/src/Titano.App/Sections/JobsView.xaml index dce42187..14be0c25 100644 --- a/src/Titano.App/Sections/JobsView.xaml +++ b/src/Titano.App/Sections/JobsView.xaml @@ -93,8 +93,14 @@ ui:Field.Placeholder="{l:Loc Jobs.Search}" ToolTip="{l:Loc Tooltips.Jobs.Search}" AutomationProperties.Name="{l:Loc Jobs.Search}" /> - + + + + + + public async Task> ProbeUnknownAsync(Archive archive, SequencePaths folder, SequenceManifest manifest, CancellationToken cancellationToken) { - var tiers = new Dictionary(); var present = manifest.Frames.Where(f => (f.Flags & FrameFlags.Missing) == 0).ToList(); var companions = await GprCompanions.FindWithSizesAsync(db, archive, present, cancellationToken).ConfigureAwait(false); var unknown = present.Where(f => f.Tier == 0 || (f.Tier == DecodeTier.EmbeddedPreview && f.PreviewW is null) || IsStaleGpr(f) || (companions.TryGetValue(f.Id, out var jpeg) - && int.Max(f.PreviewW ?? 0, f.PreviewH ?? 0) < int.Max(jpeg.Width, jpeg.Height))); - foreach (var frame in unknown) + && int.Max(f.PreviewW ?? 0, f.PreviewH ?? 0) < int.Max(jpeg.Width, jpeg.Height))).ToList(); + var tiers = new ConcurrentDictionary(); + var options = new ParallelOptions { MaxDegreeOfParallelism = Math.Max(1, writer.Options.Parallelism()), CancellationToken = cancellationToken }; + await Parallel.ForEachAsync(unknown, options, (frame, _) => { - cancellationToken.ThrowIfCancellationRequested(); var path = folder.File(frame.File); try { @@ -49,8 +50,9 @@ internal sealed class FrameTiers(TitanoDatabase db, SequenceWriter writer, Archi { Core.Diagnostics.Log.Warning("archive", $"{path} could not be probed", ex); } - } - return tiers; + return ValueTask.CompletedTask; + }).ConfigureAwait(false); + return new Dictionary(tiers); } /// diff --git a/src/Titano.Data/Archiving/OrderedWork.cs b/src/Titano.Data/Archiving/OrderedWork.cs new file mode 100644 index 00000000..7fabed2c --- /dev/null +++ b/src/Titano.Data/Archiving/OrderedWork.cs @@ -0,0 +1,112 @@ +namespace Titano.Data.Archiving; + +/// +/// The frames of a pass worked on several at once (owner review 1, R2: the parallelism decides how many photos the running +/// job processes at once). Each item's work runs on the thread pool, at most parallelism at a time, and its result +/// is handed to the consumer in the order the items were added, on the caller's flow: whatever the consumer writes (one +/// thumbnail pack writer, counters, a checkpoint at a frame index, which then says that every frame before it is done) +/// stays sequential and ordered, as in a pass that works on one frame at a time. With a parallelism of one the work runs +/// inline. At most twice the parallelism of results wait to be consumed. +/// +/// +/// Dispose it in every case (await using): after a failure or a cancellation it stops the work still running and +/// waits for it, so nothing a pass started outlives it. +/// +internal sealed class OrderedWork : IAsyncDisposable +{ + private readonly Queue> _window = new(); + private readonly int _parallelism; + private readonly Func _consume; + private readonly CancellationTokenSource _stop; + private readonly SemaphoreSlim _slots; + + public OrderedWork(int parallelism, Func consume, CancellationToken cancellationToken) + { + ArgumentOutOfRangeException.ThrowIfLessThan(parallelism, 1); + _parallelism = parallelism; + _consume = consume; + _stop = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); + _slots = new SemaphoreSlim(parallelism, parallelism); + } + + /// Starts , first consuming earlier results while too many wait. + public async ValueTask AddAsync(Func work) + { + var token = _stop.Token; + token.ThrowIfCancellationRequested(); + if (_parallelism == 1) + { + await _consume(work(token)).ConfigureAwait(false); + return; + } + while (_window.Count >= 2 * _parallelism) await ConsumeNextAsync().ConfigureAwait(false); + _window.Enqueue(RunAsync(work, token)); + await ConsumeFinishedAsync().ConfigureAwait(false); + } + + /// A result known without work, consumed in its turn. + public async ValueTask AddAsync(T ready) + { + _stop.Token.ThrowIfCancellationRequested(); + if (_window.Count == 0) + { + await _consume(ready).ConfigureAwait(false); + return; + } + _window.Enqueue(Task.FromResult(ready)); + await ConsumeFinishedAsync().ConfigureAwait(false); + } + + /// Waits for the work still running and consumes every result in order. + public async ValueTask CompleteAsync() + { + while (_window.Count > 0) await ConsumeNextAsync().ConfigureAwait(false); + } + + public async ValueTask DisposeAsync() + { + if (_window.Count > 0) + { + await _stop.CancelAsync().ConfigureAwait(false); + foreach (var task in _window) + { + try + { + await task.ConfigureAwait(false); + } + catch + { + // The pass already fails or stops with its own exception; the abandoned work's says nothing more. + } + } + _window.Clear(); + } + _stop.Dispose(); + _slots.Dispose(); + } + + private async Task RunAsync(Func work, CancellationToken token) + { + await _slots.WaitAsync(token).ConfigureAwait(false); + try + { + return await Task.Run(() => work(token), token).ConfigureAwait(false); + } + finally + { + _slots.Release(); + } + } + + private async ValueTask ConsumeNextAsync() + { + var result = await _window.Peek().ConfigureAwait(false); + _ = _window.Dequeue(); + await _consume(result).ConfigureAwait(false); + } + + private async ValueTask ConsumeFinishedAsync() + { + while (_window.TryPeek(out var next) && next.IsCompleted) await ConsumeNextAsync().ConfigureAwait(false); + } +} diff --git a/src/Titano.Data/Archiving/ProjectPositions.cs b/src/Titano.Data/Archiving/ProjectPositions.cs index 2c723d9e..7afd21ab 100644 --- a/src/Titano.Data/Archiving/ProjectPositions.cs +++ b/src/Titano.Data/Archiving/ProjectPositions.cs @@ -91,7 +91,7 @@ internal static class ProjectPositions { try { - if (File.Exists(sequence.ProjectPath) && !SameJson(File.ReadAllText(sequence.ProjectPath), before)) return; + if (File.Exists(sequence.ProjectPath) && !SameJson(AtomicFile.ReadAllText(sequence.ProjectPath), before)) return; Directory.CreateDirectory(sequence.MetaDirectory); AtomicFile.WriteAllText(sequence.ProjectPath, moved); } diff --git a/src/Titano.Data/Archiving/SequenceMapping.cs b/src/Titano.Data/Archiving/SequenceMapping.cs index a01bdb54..d992047e 100644 --- a/src/Titano.Data/Archiving/SequenceMapping.cs +++ b/src/Titano.Data/Archiving/SequenceMapping.cs @@ -1,5 +1,6 @@ using System.Text.Json; using Titano.Core.Archiving; +using Titano.Core.IO; using Titano.Core.Model; namespace Titano.Data.Archiving; @@ -96,7 +97,7 @@ internal static class SequenceMapping private static string? ReadProject(SequencePaths sequence) { if (!File.Exists(sequence.ProjectPath)) return null; - var text = File.ReadAllText(sequence.ProjectPath); + var text = AtomicFile.ReadAllText(sequence.ProjectPath); try { using (JsonDocument.Parse(text)) return text; diff --git a/src/Titano.Data/Archiving/SequenceWriter.cs b/src/Titano.Data/Archiving/SequenceWriter.cs index d91283ef..4096f523 100644 --- a/src/Titano.Data/Archiving/SequenceWriter.cs +++ b/src/Titano.Data/Archiving/SequenceWriter.cs @@ -24,6 +24,25 @@ public sealed record ArchiveServiceOptions /// asked. /// public bool ImagesAfterScan { get; init; } + + /// + /// Photos a pass works on at once, asked at the start of each sequence (owner review 1, R2: one job runs at a time and + /// the host's parallelism decides how many photos it processes at once; Settings › Rendering › Parallelism on the + /// desktop, TITANO_PARALLELISM on the server). Default: half the logical cores. + /// + public Func Parallelism { get; init; } = () => DefaultParallelism; + + /// + /// Memory the photos a proxy pass decodes at once may take, in bytes, asked with : fewer at once + /// for large originals. Default: a quarter of the memory available, at least 1 GiB. + /// + public Func MemoryBudget { get; init; } = () => DefaultMemoryBudget; + + /// Half the logical cores, at least one: the parallelism when the host sets none. + public static int DefaultParallelism => Math.Max(1, Environment.ProcessorCount / 2); + + /// A quarter of the memory available to this process, at least 1 GiB. + public static long DefaultMemoryBudget => Math.Max(1L << 30, GC.GetGCMemoryInfo().TotalAvailableMemoryBytes / 4); } /// diff --git a/src/Titano.Data/Jobs/JobEngine.cs b/src/Titano.Data/Jobs/JobEngine.cs index c365e436..d865c932 100644 --- a/src/Titano.Data/Jobs/JobEngine.cs +++ b/src/Titano.Data/Jobs/JobEngine.cs @@ -1,14 +1,18 @@ using System.Collections.Concurrent; using System.Threading.Channels; using Titano.Core.Diagnostics; +using Titano.Core.Localization; using Titano.Core.Model; namespace Titano.Data.Jobs; public sealed record JobEngineOptions { - /// Concurrent workers (BRIEF §14.6: default cores / 2). - public int Workers { get; init; } = Math.Max(1, Environment.ProcessorCount / 2); + /// + /// Jobs run at once: one (owner review 1, R2). Jobs run one at a time and the host's parallelism decides how many + /// photos the running job processes at once; tests run more workers to exercise concurrent claims. + /// + public int Workers { get; init; } = 1; /// Identity stamped on claimed jobs (node id); also used for crash recovery. public string WorkerId { get; init; } = Environment.MachineName; @@ -18,7 +22,7 @@ public sealed record JobEngineOptions public TimeSpan CheckpointInterval { get; init; } = TimeSpan.FromSeconds(5); - /// Fallback poll for jobs enqueued by other processes. + /// Fallback poll for jobs enqueued by other processes; also how often the priority queue is reviewed. public TimeSpan PollInterval { get; init; } = TimeSpan.FromSeconds(3); /// Finished jobs older than this are purged (BRIEF §14.6: 90 days). @@ -26,20 +30,28 @@ public sealed record JobEngineOptions /// Clock of the throughput windows and the checkpoint interval (tests pass their own). public TimeProvider Time { get; init; } = TimeProvider.System; + + /// The priority queue as the settings have it now, asked at every claim and review; null: off (). + public Func? PriorityQueue { get; init; } } /// -/// Persistent job queue runner (BRIEF §14.6): N workers claim queued jobs from the database by priority, run the -/// registered handler, checkpoint progress, and survive crashes (running jobs are requeued at start with their -/// checkpoints). Used by the desktop client (local mode) and the server. Jobs an -/// declines stay queued for other claimers. The number of workers can change while the engine runs -/// (, Settings › Rendering › Parallelism on the desktop). +/// Persistent job queue runner (BRIEF §14.6, amended by owner review 1): one worker claims queued jobs from the database +/// in claim order, runs the registered handler, checkpoints progress, and survives crashes (running jobs are requeued at +/// start with their checkpoints). Used by the desktop client (local mode) and the server. Jobs an +/// declines stay queued for other claimers. With the priority queue on +/// () a queued job of a higher level makes the running job of a lower level +/// yield: it goes back to the queue with its checkpoint and resumes by itself afterwards, never interrupted by the +/// follow-ups it queued itself. /// public sealed class JobEngine : IAsyncDisposable { /// Queued jobs of selective kinds examined per claim; jobs declined beyond it wait until those ahead leave the queue. private const int SelectiveWindow = 100; + /// Queued jobs a review looks through for one that is not a follow-up of the running job. + private const int ReviewWindow = 50; + /// Claims lost to other workers before a worker waits for the next poll. private const int MaxClaimRaces = 16; @@ -48,34 +60,22 @@ public sealed class JobEngine : IAsyncDisposable private IReadOnlyCollection _kinds = []; private Dictionary _selective = []; private IReadOnlyCollection _others = []; - private readonly ConcurrentDictionary _running = new(); + private readonly ConcurrentDictionary _running = new(); private readonly Channel _wake = Channel.CreateBounded(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropWrite }); + private readonly Channel _review = Channel.CreateBounded(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropWrite }); private readonly CancellationTokenSource _shutdown = new(); - private readonly List _workers = []; - private readonly Lock _workerGate = new(); - private readonly HashSet _activeWorkers = []; - private int _workerTarget; - private bool _workersStarted; + private readonly List _loops = []; + private readonly Lock _gate = new(); public JobEngine(TitanoDatabase db, IEnumerable handlers, JobEngineOptions? options = null) { _db = db; Options = options ?? new JobEngineOptions(); _handlers = handlers.ToDictionary(h => h.Kind); - _workerTarget = Options.Workers; } public JobEngineOptions Options { get; } - /// Workers that claim jobs: until changes it. - public int Workers - { - get - { - lock (_workerGate) return _workerTarget; - } - } - /// A job changed state (queued, running, done, failed, cancelled, paused). public event Action? JobChanged; @@ -84,7 +84,10 @@ public sealed class JobEngine : IAsyncDisposable public IReadOnlyCollection RunningJobIds => [.. _running.Keys]; - /// Requeues this worker's interrupted jobs, purges old history and starts the workers. + /// The priority queue as it is now (). + public JobPriorityQueue PriorityQueue => Options.PriorityQueue?.Invoke() ?? JobPriorityQueue.Off; + + /// Requeues this worker's interrupted jobs, purges old history and starts the worker and the queue's review. public async Task StartAsync(CancellationToken cancellationToken = default) { var requeued = await _db.Jobs.RequeueRunningAsync(Options.WorkerId, cancellationToken).ConfigureAwait(false); @@ -99,59 +102,28 @@ public sealed class JobEngine : IAsyncDisposable Log.Info("jobs", "No job handlers; this engine claims nothing"); return; } - lock (_workerGate) + var shutdown = _shutdown.Token; + lock (_gate) { - _workersStarted = true; - for (var i = 0; i < _workerTarget; i++) StartWorker(i); - } - } - - /// - /// Changes the number of workers. More start claiming at once; the surplus ones finish the job they are running - /// (never interrupted) and then stop. Before it only sets how many start. - /// - public void SetWorkers(int count) - { - ArgumentOutOfRangeException.ThrowIfLessThan(count, 1); - lock (_workerGate) - { - if (_workerTarget == count) return; - _workerTarget = count; - if (_workersStarted) + for (var i = 0; i < Options.Workers; i++) { - for (var i = 0; i < count; i++) StartWorker(i); + // A single worker keeps the plain id; numbered ones get "#n" (crash recovery requeues both). + var id = Options.Workers == 1 ? Options.WorkerId : $"{Options.WorkerId}#{i}"; + _loops.Add(Task.Run(() => WorkerLoopAsync(id, shutdown), CancellationToken.None)); } + _loops.Add(Task.Run(() => SuperviseAsync(shutdown), CancellationToken.None)); } - Log.Info("jobs", $"Job engine set to {count} worker(s)"); - Wake(); } /// Queues a job and wakes a worker. - public async Task EnqueueAsync(JobKind kind, IReadOnlyList targets, string? targetLabel = null, string? parametersJson = null, - JobPriority priority = JobPriority.Normal, Guid? createdBy = null, CancellationToken cancellationToken = default) - { - var job = new Job - { - Id = Guid.CreateVersion7(), - Kind = kind, - TargetIds = targets, - TargetLabel = targetLabel, - ParametersJson = parametersJson, - Priority = priority, - State = JobState.Queued, - CreatedBy = createdBy, - Created = DateTimeOffset.UtcNow, - }; - await _db.Jobs.EnqueueAsync(job, cancellationToken).ConfigureAwait(false); - JobChanged?.Invoke(job); - Wake(); - return job; - } + public Task EnqueueAsync(JobKind kind, IReadOnlyList targets, string? targetLabel = null, string? parametersJson = null, + JobPriority priority = JobPriority.Normal, Guid? createdBy = null, CancellationToken cancellationToken = default) => + EnqueueAsync(Guid.CreateVersion7(), kind, targets, targetLabel, parametersJson, priority, createdBy, cancellationToken); /// Cancels a queued or running job; a running handler observes its token. public Task CancelAsync(Guid id, CancellationToken cancellationToken = default) => TransitionAsync(id, JobState.Cancelled, cancellationToken); - /// Pauses a job: a running one stops at its next check and keeps its checkpoint. + /// Pauses a job: a running one stops at its next check and keeps its checkpoint, and the next queued job starts. public Task PauseAsync(Guid id, CancellationToken cancellationToken = default) => TransitionAsync(id, JobState.Paused, cancellationToken); /// Resumes a paused job or retries a failed/cancelled one from its last checkpoint. @@ -162,22 +134,24 @@ public sealed class JobEngine : IAsyncDisposable Wake(); } - /// Signals workers that new work may be available (also call on PostgreSQL NOTIFY). - public void Wake() => _wake.Writer.TryWrite(true); + /// + /// Signals that the queue may have changed (also call on PostgreSQL NOTIFY, and after the priority queue's settings + /// changed): an idle worker looks for work, and the priority queue is reviewed at once. + /// + public void Wake() + { + _wake.Writer.TryWrite(true); + _review.Writer.TryWrite(true); + } public async ValueTask DisposeAsync() { - Task[] workers; - lock (_workerGate) - { - // No worker starts any more: the shutdown token is about to be disposed. - _workersStarted = false; - workers = [.. _workers]; - } + Task[] loops; + lock (_gate) loops = [.. _loops]; await _shutdown.CancelAsync().ConfigureAwait(false); try { - await Task.WhenAll(workers).ConfigureAwait(false); + await Task.WhenAll(loops).ConfigureAwait(false); } catch (OperationCanceledException) { @@ -226,9 +200,66 @@ public sealed class JobEngine : IAsyncDisposable /// True when this engine claims jobs of (it has a handler and the kind is not filtered out). internal bool Runs(JobKind kind) => _kinds.Contains(kind); + /// + /// Queues follow-up work of the running job (): + /// it works on what the parent produces, so it never interrupts it, whatever its level. Null when this engine has no + /// handler for . + /// + internal async Task EnqueueFollowUpAsync(Guid parent, JobKind kind, IReadOnlyList targets, string? label, string? parametersJson, + JobPriority priority, Guid? createdBy, CancellationToken cancellationToken) + { + if (!Runs(kind)) return null; + var id = Guid.CreateVersion7(); + // Known before the job is queued, so the review its queueing starts already leaves the parent running. + if (_running.TryGetValue(parent, out var run)) run.FollowUps.TryAdd(id, 0); + return await EnqueueAsync(id, kind, targets, label, parametersJson, priority, createdBy, cancellationToken).ConfigureAwait(false); + } + internal void StopJob(Guid id) { - if (_running.TryGetValue(id, out var cts)) cts.Cancel(); + if (_running.TryGetValue(id, out var run)) run.Stop(); + } + + /// + /// Makes the running job yield when the priority queue is on and a queued job of a higher level waits that this engine + /// would claim (not a follow-up of that running job): the running job of the lowest level stops, goes back to the + /// queue with its checkpoint and resumes after the higher ones. A free worker would claim the waiting job anyway, so + /// only a full engine interrupts one. True when a job was asked to yield. + /// + internal async Task ReviewAsync(CancellationToken cancellationToken) + { + var queue = PriorityQueue; + if (!queue.Enabled) return false; + var running = _running.Values.Where(r => !r.Yielding).ToList(); + if (running.Count == 0 || running.Count < Options.Workers) return false; + var lowest = running.MinBy(r => queue.LevelOf(r.Job.Kind))!; + if (queue.LevelOf(lowest.Job.Kind) == JobKindPriority.High) return false; + var next = await PeekAsync(queue, lowest, cancellationToken).ConfigureAwait(false); + if (next is null || !queue.Interrupts(next.Kind, lowest.Job.Kind)) return false; + if (!lowest.Yield(next)) return false; + Log.Info("jobs", $"{lowest.Job.Kind} job {lowest.Job.Id} yields to {next.Kind} job {next.Id} (priority queue)"); + return true; + } + + private async Task EnqueueAsync(Guid id, JobKind kind, IReadOnlyList targets, string? targetLabel, string? parametersJson, + JobPriority priority, Guid? createdBy, CancellationToken cancellationToken) + { + var job = new Job + { + Id = id, + Kind = kind, + TargetIds = targets, + TargetLabel = targetLabel, + ParametersJson = parametersJson, + Priority = priority, + State = JobState.Queued, + CreatedBy = createdBy, + Created = DateTimeOffset.UtcNow, + }; + await _db.Jobs.EnqueueAsync(job, cancellationToken).ConfigureAwait(false); + JobChanged?.Invoke(job); + Wake(); + return job; } private async Task TransitionAsync(Guid id, JobState state, CancellationToken cancellationToken) @@ -243,34 +274,11 @@ public sealed class JobEngine : IAsyncDisposable if (await _db.Jobs.GetAsync(id, cancellationToken).ConfigureAwait(false) is { } job) JobChanged?.Invoke(job); } - /// Starts worker unless it runs already; call under . - private void StartWorker(int index) - { - if (!_activeWorkers.Add(index)) return; - // A single worker keeps the plain id (as before workers could be added); numbered ones get "#n". - var id = index == 0 && Options.Workers == 1 ? Options.WorkerId : $"{Options.WorkerId}#{index}"; - var shutdown = _shutdown.Token; - _workers.Add(Task.Run(() => WorkerLoopAsync(index, id, shutdown), CancellationToken.None)); - } - - /// True when worker is beyond the wanted count; it is then no longer active. - private bool Retires(int index) - { - lock (_workerGate) - { - if (index < _workerTarget) return false; - _activeWorkers.Remove(index); - return true; - } - } - - /// Claims and runs jobs until shutdown, or until no longer wants this worker. - /// Nothing a job or a handler throws ends the worker. - private async Task WorkerLoopAsync(int index, string workerId, CancellationToken shutdown) + /// Claims and runs jobs until shutdown. Nothing a job or a handler throws ends the worker. + private async Task WorkerLoopAsync(string workerId, CancellationToken shutdown) { while (!shutdown.IsCancellationRequested) { - if (Retires(index)) return; Job? job; try { @@ -288,22 +296,13 @@ public sealed class JobEngine : IAsyncDisposable if (job is null) { - using var timeout = CancellationTokenSource.CreateLinkedTokenSource(shutdown); - timeout.CancelAfter(Options.PollInterval); - try - { - await _wake.Reader.ReadAsync(timeout.Token).ConfigureAwait(false); - } - catch (OperationCanceledException) - { - // Poll interval elapsed or shutdown. - } + await WaitAsync(_wake, shutdown).ConfigureAwait(false); continue; } try { - await RunAsync(job, shutdown).ConfigureAwait(false); + await RunAsync(job, workerId, shutdown).ConfigureAwait(false); } catch (Exception ex) { @@ -315,28 +314,64 @@ public sealed class JobEngine : IAsyncDisposable } /// - /// The next job in claim order (priority, then age). Without selective handlers the database picks it atomically. - /// With them, the first job a selective handler accepts among the first of its kinds - /// competes with the head of the other kinds: the other kinds are still claimed atomically, the selective job by id. - /// A lost race means another worker took a job, so looking again at once makes progress. + /// Reviews the priority queue () whenever the queue may have changed () and + /// at every poll, which also covers jobs queued by other processes. Nothing a review throws ends it. + /// + private async Task SuperviseAsync(CancellationToken shutdown) + { + while (!shutdown.IsCancellationRequested) + { + await WaitAsync(_review, shutdown).ConfigureAwait(false); + if (shutdown.IsCancellationRequested) return; + try + { + await ReviewAsync(shutdown).ConfigureAwait(false); + } + catch (OperationCanceledException) when (shutdown.IsCancellationRequested) + { + return; + } + catch (Exception ex) + { + Log.Warning("jobs", "The priority queue could not be reviewed", ex); + } + } + } + + /// Waits for a signal on , the poll interval or shutdown, whichever comes first. + private async Task WaitAsync(Channel channel, CancellationToken shutdown) + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(shutdown); + timeout.CancelAfter(Options.PollInterval); + try + { + await channel.Reader.ReadAsync(timeout.Token).ConfigureAwait(false); + } + catch (OperationCanceledException) + { + // Poll interval elapsed or shutdown. + } + } + + /// + /// The next job in claim order (). Without selective handlers the database + /// picks it atomically. With them, the first job a selective handler accepts among the first + /// of its kinds competes with the head of the other kinds: the other kinds are still + /// claimed atomically, the selective job by id. A lost race means another worker took a job, so looking again at once + /// makes progress. /// private async Task ClaimAsync(string workerId, CancellationToken cancellationToken) { - if (_selective.Count == 0) return await _db.Jobs.ClaimNextAsync(workerId, _kinds, cancellationToken).ConfigureAwait(false); + var queue = PriorityQueue; + if (_selective.Count == 0) return await _db.Jobs.ClaimNextAsync(workerId, _kinds, queue, cancellationToken).ConfigureAwait(false); for (var attempt = 0; attempt < MaxClaimRaces; attempt++) { - Job? candidate = null; - foreach (var queued in await _db.Jobs.ListQueuedAsync(_selective.Keys, SelectiveWindow, cancellationToken).ConfigureAwait(false)) + var candidate = await AcceptedAsync(queue, null, cancellationToken).ConfigureAwait(false); + if (candidate is null) return _others.Count > 0 ? await _db.Jobs.ClaimNextAsync(workerId, _others, queue, cancellationToken).ConfigureAwait(false) : null; + if (_others.Count > 0 && (await _db.Jobs.ListQueuedAsync(_others, 1, queue, cancellationToken).ConfigureAwait(false)).FirstOrDefault() is { } head + && queue.ClaimsBefore(head, candidate)) { - if (!await AcceptsAsync(queued, cancellationToken).ConfigureAwait(false)) continue; - candidate = queued; - break; - } - if (candidate is null) return _others.Count > 0 ? await _db.Jobs.ClaimNextAsync(workerId, _others, cancellationToken).ConfigureAwait(false) : null; - if (_others.Count > 0 && (await _db.Jobs.ListQueuedAsync(_others, 1, cancellationToken).ConfigureAwait(false)).FirstOrDefault() is { } head - && ClaimsBefore(head, candidate)) - { - if (await _db.Jobs.ClaimNextAsync(workerId, _others, cancellationToken).ConfigureAwait(false) is { } next) return next; + if (await _db.Jobs.ClaimNextAsync(workerId, _others, queue, cancellationToken).ConfigureAwait(false) is { } next) return next; } else if (await _db.Jobs.TryClaimAsync(candidate.Id, workerId, cancellationToken).ConfigureAwait(false) is { } claimed) { @@ -346,6 +381,34 @@ public sealed class JobEngine : IAsyncDisposable return null; } + /// The job a free worker would claim now () leaving out the follow-ups of , without claiming it. + private async Task PeekAsync(JobPriorityQueue queue, RunningJob running, CancellationToken cancellationToken) + { + var candidate = _selective.Count > 0 ? await AcceptedAsync(queue, running, cancellationToken).ConfigureAwait(false) : null; + Job? head = null; + if (_others.Count > 0) + { + foreach (var queued in await _db.Jobs.ListQueuedAsync(_others, ReviewWindow, queue, cancellationToken).ConfigureAwait(false)) + { + if (running.FollowUps.ContainsKey(queued.Id)) continue; + head = queued; + break; + } + } + return head is null ? candidate : candidate is null || queue.ClaimsBefore(head, candidate) ? head : candidate; + } + + /// The first queued job of the selective kinds whose handler takes it now, leaving out the follow-ups of . + private async Task AcceptedAsync(JobPriorityQueue queue, RunningJob? running, CancellationToken cancellationToken) + { + foreach (var queued in await _db.Jobs.ListQueuedAsync(_selective.Keys, SelectiveWindow, queue, cancellationToken).ConfigureAwait(false)) + { + if (running?.FollowUps.ContainsKey(queued.Id) == true || !await AcceptsAsync(queued, cancellationToken).ConfigureAwait(false)) continue; + return queued; + } + return null; + } + /// A job its handler cannot judge is taken, so it fails here with its reason instead of blocking the queue. private async ValueTask AcceptsAsync(Job job, CancellationToken cancellationToken) { @@ -360,14 +423,14 @@ public sealed class JobEngine : IAsyncDisposable } } - private static bool ClaimsBefore(Job a, Job b) => - a.Priority != b.Priority ? a.Priority > b.Priority : a.Created != b.Created ? a.Created < b.Created : a.Id.CompareTo(b.Id) < 0; - - private async Task RunAsync(Job job, CancellationToken shutdown) + private async Task RunAsync(Job job, string workerId, CancellationToken shutdown) { using var cts = CancellationTokenSource.CreateLinkedTokenSource(shutdown); - _running[job.Id] = cts; + var run = new RunningJob(job, cts); + _running[job.Id] = run; JobChanged?.Invoke(job); + // A job queued while this one was being claimed may outrank it. + _review.Writer.TryWrite(true); var context = new JobContext(this, job, cts.Token); JobState final; string? error = null; @@ -381,15 +444,17 @@ public sealed class JobEngine : IAsyncDisposable } catch (OperationCanceledException) when (cts.IsCancellationRequested) { + // Read once: the job a yield names is set together with the yield itself. + var yieldsTo = shutdown.IsCancellationRequested ? null : run.YieldsTo; + var yielded = yieldsTo is not null; + if (yieldsTo is not null) context.Log(Loc.L("Jobs.Line.Yielded", Loc.L("Jobs.Kind." + yieldsTo.Kind))); await PersistAsync(context).ConfigureAwait(false); - if (shutdown.IsCancellationRequested) - { - // Engine stopping: leave the job running so the next start requeues it from its checkpoint. - _running.TryRemove(job.Id, out _); - return; - } - // Cancel or pause already wrote the state; keep it. _running.TryRemove(job.Id, out _); + // Engine stopping: leave the job running so the next start requeues it from its checkpoint. + if (shutdown.IsCancellationRequested) return; + // Yielded to a higher job: back to the queue with its checkpoint, unless the user paused or cancelled it + // meanwhile (their state stays). Otherwise cancel or pause already wrote the state; keep it. + if (yielded) await _db.Jobs.RequeueAsync(job.Id, workerId, CancellationToken.None).ConfigureAwait(false); await NotifyAsync(job.Id, CancellationToken.None).ConfigureAwait(false); return; } @@ -408,4 +473,40 @@ public sealed class JobEngine : IAsyncDisposable await _db.Jobs.SetStateAsync(job.Id, final, error, CancellationToken.None).ConfigureAwait(false); await NotifyAsync(job.Id, CancellationToken.None).ConfigureAwait(false); } + + /// A job a worker runs: how it is stopped, whether it was stopped to yield, and the follow-ups it queued. + private sealed class RunningJob(Job job, CancellationTokenSource cancellation) + { + private Job? _yieldsTo; + + public Job Job { get; } = job; + + /// Jobs this one queued as follow-ups (): they never make it yield. + public ConcurrentDictionary FollowUps { get; } = new(); + + public bool Yielding => YieldsTo is not null; + + /// The job of a higher level this one yields to; set, atomically, before it is stopped. + public Job? YieldsTo => Volatile.Read(ref _yieldsTo); + + /// Signals the job's token; a job that ended meanwhile (its source disposed) needs nothing. + public void Stop() + { + try + { + cancellation.Cancel(); + } + catch (ObjectDisposedException) + { + } + } + + /// Stops the job to yield to ; false when it is yielding already. + public bool Yield(Job to) + { + if (Interlocked.CompareExchange(ref _yieldsTo, to, null) is not null) return false; + Stop(); + return true; + } + } } diff --git a/src/Titano.Data/Jobs/JobHandler.cs b/src/Titano.Data/Jobs/JobHandler.cs index 293cc7bc..6a543321 100644 --- a/src/Titano.Data/Jobs/JobHandler.cs +++ b/src/Titano.Data/Jobs/JobHandler.cs @@ -90,12 +90,11 @@ public sealed class JobContext /// /// Queues follow-up work on this job's engine for the same user (light analysis after an import); null when the - /// engine has no handler for , since nothing here would run it. + /// engine has no handler for , since nothing here would run it. A follow-up never makes this job + /// yield in the priority queue: it works on what this job produces. /// - public async Task EnqueueFollowUpAsync(JobKind kind, IReadOnlyList targets, string? label, string? parametersJson, JobPriority priority) => - _engine.Runs(kind) - ? await _engine.EnqueueAsync(kind, targets, label, parametersJson, priority, Job.CreatedBy, Cancellation).ConfigureAwait(false) - : null; + public Task EnqueueFollowUpAsync(JobKind kind, IReadOnlyList targets, string? label, string? parametersJson, JobPriority priority) => + _engine.EnqueueFollowUpAsync(Job.Id, kind, targets, label, parametersJson, priority, Job.CreatedBy, Cancellation); /// Appends a line to the job log (the last lines are kept with the job). public void Log(string line) diff --git a/src/Titano.Data/Jobs/JobPriorityQueue.cs b/src/Titano.Data/Jobs/JobPriorityQueue.cs new file mode 100644 index 00000000..064e6c17 --- /dev/null +++ b/src/Titano.Data/Jobs/JobPriorityQueue.cs @@ -0,0 +1,118 @@ +using System.Globalization; +using System.Text; +using Titano.Core.Model; + +namespace Titano.Data.Jobs; + +/// How much a kind of job counts in the priority queue (). +public enum JobKindPriority +{ + Low, + Normal, + High, +} + +/// +/// The priority queue of Settings (owner review 1, R2). Jobs always run one at a time. Off, they run in claim order +/// (priority, then age) and a running job is never interrupted: the user pauses it to let the next one start. On, a kind +/// of a higher runs first, and a queued job of a higher level that the engine can run makes +/// the running job of a lower level yield without asking: it goes back to the queue with its checkpoint and resumes by +/// itself once nothing above it waits. Kinds of the same level never interrupt each other. +/// +public sealed record JobPriorityQueue +{ + /// The levels a kind has unless the user changed it: renders, imports and downloads first; the long passes that resume anywhere last. + public static IReadOnlyDictionary DefaultLevels { get; } = new Dictionary + { + [JobKind.Render] = JobKindPriority.High, + [JobKind.Import] = JobKindPriority.High, + [JobKind.Download] = JobKindPriority.High, + [JobKind.Verify] = JobKindPriority.Low, + [JobKind.Proxies] = JobKindPriority.Low, + }; + + /// The strict queue: no levels, no interruptions. + public static JobPriorityQueue Off { get; } = new(); + + /// Whether levels order the queue and interrupt lower jobs. + public bool Enabled { get; init; } + + /// Levels the user set; a kind not listed has its level, else normal. + public IReadOnlyDictionary Levels { get; init; } = new Dictionary(); + + /// The level of . + public JobKindPriority LevelOf(JobKind kind) => + Levels.TryGetValue(kind, out var level) || DefaultLevels.TryGetValue(kind, out level) ? level : JobKindPriority.Normal; + + /// Whether a queued job of interrupts a running job of . + public bool Interrupts(JobKind challenger, JobKind running) => Enabled && LevelOf(challenger) > LevelOf(running); + + /// + /// Whether is claimed before : the higher level first while the queue is on, + /// then the higher priority, the older job and the lower id (). + /// + public bool ClaimsBefore(Job a, Job b) + { + ArgumentNullException.ThrowIfNull(a); + ArgumentNullException.ThrowIfNull(b); + if (Enabled && LevelOf(a.Kind) != LevelOf(b.Kind)) return LevelOf(a.Kind) > LevelOf(b.Kind); + return a.Priority != b.Priority ? a.Priority > b.Priority : a.Created != b.Created ? a.Created < b.Created : a.Id.CompareTo(b.Id) < 0; + } + + /// + /// The SQL ordering of the queue (before priority, age and id): the levels of , highest first, as + /// a CASE over the kind column; empty while the queue is off or every kind has the same level. + /// + internal string OrderSql(IEnumerable kinds) + { + if (!Enabled) return string.Empty; + var levels = kinds.Distinct().GroupBy(LevelOf).Where(g => g.Key != JobKindPriority.Normal).ToList(); + if (levels.Count == 0) return string.Empty; + var sql = new StringBuilder("CASE"); + foreach (var level in levels) + { + sql.Append(" WHEN kind IN (").AppendJoin(", ", level.Select(k => ((int)k).ToString(CultureInfo.InvariantCulture))).Append(") THEN ") + .Append(((int)level.Key).ToString(CultureInfo.InvariantCulture)); + } + return sql.Append(" ELSE ").Append(((int)JobKindPriority.Normal).ToString(CultureInfo.InvariantCulture)).Append(" END DESC, ").ToString(); + } + + /// Wire name of a level in API v1 and settings files: high, normal, low. + public static string Wire(JobKindPriority level) => level.ToString().ToLowerInvariant(); + + /// The level named (, any case); false for anything else. + public static bool TryParse(string? text, out JobKindPriority level) + { + foreach (var candidate in Enum.GetValues()) + { + if (!string.Equals(text, Wire(candidate), StringComparison.OrdinalIgnoreCase)) continue; + level = candidate; + return true; + } + level = JobKindPriority.Normal; + return false; + } + + /// + /// The queue from settings: maps kind names ( or the enum name) to + /// level names; unknown kinds and levels are skipped, so a settings file written by a newer build still loads. + /// + public static JobPriorityQueue From(bool enabled, IReadOnlyDictionary? levels) + { + var parsed = new Dictionary(); + foreach (var (name, value) in levels ?? new Dictionary()) + { + if ((JobWire.TryParseKind(name, out var kind) || Enum.TryParse(name, ignoreCase: true, out kind)) && Enum.IsDefined(kind) && TryParse(value, out var level)) + parsed[kind] = level; + } + return new JobPriorityQueue { Enabled = enabled, Levels = parsed }; + } + + /// The levels that differ from , by wire kind name: what settings store. + public static Dictionary Changed(IReadOnlyDictionary levels) + { + var defaults = new JobPriorityQueue(); + return levels.Where(l => defaults.LevelOf(l.Key) != l.Value).OrderBy(l => l.Key) + .ToDictionary(l => JobWire.Kind(l.Key), l => Wire(l.Value), StringComparer.Ordinal); + } +} diff --git a/src/Titano.Data/Processing/ProcessingOptions.cs b/src/Titano.Data/Processing/ProcessingOptions.cs index 64d07a7d..6620e25f 100644 --- a/src/Titano.Data/Processing/ProcessingOptions.cs +++ b/src/Titano.Data/Processing/ProcessingOptions.cs @@ -73,6 +73,21 @@ public sealed record ProcessingOptions /// These options with the host's current tuning (). internal ProcessingOptions Current => Tune?.Invoke(this) ?? this; + /// + /// These options with photos processed at once (owner review 1, R2: one job runs at a + /// time and the host's parallelism decides how many photos it processes at once): the deep analysis measures that many + /// frames together and the render's decode window loads that many ahead, within its memory budget. + /// + public ProcessingOptions WithParallelism(int parallelism) + { + var n = Math.Max(1, parallelism); + return this with + { + DeepAnalysis = DeepAnalysis with { MaxDegreeOfParallelism = n }, + FrameWindow = FrameWindow with { MaxConcurrentLoads = n, Ahead = Math.Max(FrameWindow.Ahead, n) }, + }; + } + /// Tells ; a failure is logged, never passed on to the job. internal async Task NotifyAsync(Guid sequenceId, string change, CancellationToken cancellationToken) { diff --git a/src/Titano.Data/Processing/ProjectStore.cs b/src/Titano.Data/Processing/ProjectStore.cs index 4c12d5bf..a54fd13b 100644 --- a/src/Titano.Data/Processing/ProjectStore.cs +++ b/src/Titano.Data/Processing/ProjectStore.cs @@ -20,7 +20,7 @@ internal sealed class ProjectStore(TitanoDatabase db, SequenceWriter writer) /// The settings in force: the index copy, else project.json, else defaults. /// The settings are not valid JSON or come from a newer Titano. public static ProjectSettings Read(Sequence sequence, SequencePaths folder) => - Parse(sequence.SettingsJson ?? (File.Exists(folder.ProjectPath) ? File.ReadAllText(folder.ProjectPath) : null)); + Parse(sequence.SettingsJson ?? (File.Exists(folder.ProjectPath) ? AtomicFile.ReadAllText(folder.ProjectPath) : null)); /// The settings are not valid JSON or come from a newer Titano. public static ProjectSettings Parse(string? json) diff --git a/src/Titano.Data/Processing/SequenceAnalyser.cs b/src/Titano.Data/Processing/SequenceAnalyser.cs index 8b9c048a..eba6c9f2 100644 --- a/src/Titano.Data/Processing/SequenceAnalyser.cs +++ b/src/Titano.Data/Processing/SequenceAnalyser.cs @@ -286,6 +286,7 @@ internal sealed class SequenceAnalyser(TitanoDatabase db, ProcessingOptions opti // The host's analysis parameters as they are now (Settings › Analysis on the desktop). Those that change per-frame // results are part of the checkpoint's fingerprint, so a partial run made with other values starts again. var analysis = options.Current.DeepAnalysis; + analysis = analysis with { MaxDegreeOfParallelism = AnalysisParallelism(analysis, frames, options.Archive.MemoryBudget()) }; var companions = await GprCompanions.FindAsync(db, archive, frames.Frames, cancellationToken).ConfigureAwait(false); DeepAnalysisReport report; Dictionary decoded; @@ -308,6 +309,22 @@ internal sealed class SequenceAnalyser(TitanoDatabase db, ProcessingOptions opti return (report, decoded); } + /// + /// Frames a deep analysis measures at once (owner review 1): its parallelism, fewer when some frame is developed whole + /// at its analysis size and cannot hold that many (). + /// A sequence of JPEGs, proxies or RAWs with large enough embedded previews keeps the whole parallelism. + /// + internal static int AnalysisParallelism(DeepAnalysisOptions analysis, SequenceFrames frames, long memoryBudget) + { + long largest = 0; + for (var i = 0; i < frames.Count; i++) + { + var frame = frames.Frames[i]; + largest = Math.Max(largest, frames.DevelopedPixels(i, analysis.AnalysisLongEdge(Math.Max(frame.Width, frame.Height)), preferPreview: true)); + } + return largest == 0 ? analysis.MaxDegreeOfParallelism : DecodeBudget.PhotosAtOnce(analysis.MaxDegreeOfParallelism, memoryBudget, largest); + } + /// Identity of the analysed content: frames replaced or renumbered since a checkpoint was written (with the /// same count), or now read from their proxies where they were read from their originals (or the other way round), /// make it stale, like changed options do. Only frames read from proxies are marked, so the key of a sequence read diff --git a/src/Titano.Data/Processing/SequenceFrameSource.cs b/src/Titano.Data/Processing/SequenceFrameSource.cs index 8ffcba43..5f5e8777 100644 --- a/src/Titano.Data/Processing/SequenceFrameSource.cs +++ b/src/Titano.Data/Processing/SequenceFrameSource.cs @@ -105,7 +105,12 @@ internal sealed class SequenceFrameSource : IFrameSource, IRenderFrameSource, IA { if (_window is not null) await _window.DisposeAsync().ConfigureAwait(false); _windowKey = (maxLongEdge, purpose); - _window = new FrameWindow(Count, (i, ct) => ValueTask.FromResult(Load(i, maxLongEdge, purpose, ct)), _windowOptions); + // The window caps only its read-ahead; a demand load runs beside it, so a window that develops originals takes + // one gate for every decode, read-ahead and demand alike (owner review 1). + var limit = DevelopingLimit(maxLongEdge, purpose); + var decodes = limit is { } n ? new SemaphoreSlim(n, n) : null; + _window = new FrameWindow(Count, (i, ct) => LoadAsync(i, maxLongEdge, purpose, decodes, ct), + limit is { } loads ? _windowOptions with { MaxConcurrentLoads = loads } : _windowOptions); } _window.MoveTo(index); return await ReadAsync(_window, index, cancellationToken).ConfigureAwait(false) @@ -131,6 +136,21 @@ internal sealed class SequenceFrameSource : IFrameSource, IRenderFrameSource, IA } } + /// within , the gate of a window that develops originals (null: none). + private async ValueTask LoadAsync(int index, int maxLongEdge, DecodePurpose purpose, SemaphoreSlim? decodes, CancellationToken cancellationToken) + { + if (decodes is null) return Load(index, maxLongEdge, purpose, cancellationToken); + await decodes.WaitAsync(cancellationToken).ConfigureAwait(false); + try + { + return Load(index, maxLongEdge, purpose, cancellationToken); + } + finally + { + decodes.Release(); + } + } + /// /// The window's loader, for the pipeline's reads and the read-ahead alike: the decoded frame, else /// , remembered so the read-ahead does not decode the file again. @@ -142,6 +162,23 @@ internal sealed class SequenceFrameSource : IFrameSource, IRenderFrameSource, IA throw new NotDecodedException(); } + /// + /// Decodes a window at for may run at once when some of them develop + /// an original whole (: a render's TIFFs, PNGs and RAWs, or a preparation's + /// frames without a large enough RAW preview), which takes room beyond the decoded frame the window counts (owner + /// review 1); null when none does (scaled JPEGs, proxies, embedded previews), and the window runs as it is set. + /// + internal int? DevelopingLimit(int edge, DecodePurpose purpose) + { + long largest = 0; + for (var i = 0; i < _frames.Count; i++) largest = Math.Max(largest, _frames.DevelopedPixels(i, edge, preferPreview: purpose != DecodePurpose.Render)); + return largest == 0 ? null : Archiving.DecodeBudget.PhotosAtOnce(_windowOptions.MaxConcurrentLoads, _windowOptions.MemoryBudget, largest); + } + + /// The options of a window at for : its read-ahead within . + internal FrameWindowOptions WindowOptions(int edge, DecodePurpose purpose) => + DevelopingLimit(edge, purpose) is { } limit ? _windowOptions with { MaxConcurrentLoads = limit } : _windowOptions; + /// A copy of the window's frame, or null when it does not decode. private static async ValueTask ReadAsync(FrameWindow window, int index, CancellationToken cancellationToken) { diff --git a/src/Titano.Data/Processing/SequenceFrames.cs b/src/Titano.Data/Processing/SequenceFrames.cs index 654d77c4..545da97d 100644 --- a/src/Titano.Data/Processing/SequenceFrames.cs +++ b/src/Titano.Data/Processing/SequenceFrames.cs @@ -14,6 +14,21 @@ namespace Titano.Data.Processing; /// internal sealed record SequenceFrames(Sequence Sequence, IReadOnlyList Frames, IReadOnlyList Files) { + /// + /// The pixels of frame 's original that a decode at develops whole + /// (), 0 when it takes a cheap path or the frame has no file. A frame read through + /// its proxy, or from a JPEG file (an archive proxy, a proxy cache's copy), decodes as a JPEG (owner review 1). + /// + internal long DevelopedPixels(int index, int edge, bool preferPreview) + { + if (Files[index] is not { } file) return 0; + var frame = Frames[index]; + var jpeg = Proxied?[index] == true || Path.GetExtension(file) is var extension + && (extension.Equals(".jpg", StringComparison.OrdinalIgnoreCase) || extension.Equals(".jpeg", StringComparison.OrdinalIgnoreCase)); + return DecodeBudget.Developed(jpeg ? ImageFileFormat.Jpeg : frame.Format, frame.Width, frame.Height, Math.Max(frame.PreviewWidth, frame.PreviewHeight), + edge, preferPreview); + } + /// Flags of frames that never reach a render. public const FrameFlags NotRendered = FrameFlags.Missing | FrameFlags.Corrupt | FrameFlags.Excluded | FrameFlags.Undecodable; diff --git a/src/Titano.Data/Repositories/JobRepository.cs b/src/Titano.Data/Repositories/JobRepository.cs index acf1f804..bcbadf8a 100644 --- a/src/Titano.Data/Repositories/JobRepository.cs +++ b/src/Titano.Data/Repositories/JobRepository.cs @@ -38,10 +38,19 @@ public sealed class JobRepository /// and returns it, or null when none waits. Concurrent claimers never get the same /// job: PostgreSQL skips rows locked by other claimers, SQLite holds its write lock across select and update. /// - public Task ClaimNextAsync(string workerId, IReadOnlyCollection? kinds = null, CancellationToken cancellationToken = default) + public Task ClaimNextAsync(string workerId, IReadOnlyCollection? kinds = null, CancellationToken cancellationToken = default) => + ClaimNextAsync(workerId, kinds, JobPriorityQueue.Off, cancellationToken); + + /// + /// in the order of + /// : while it is on, the kinds of the highest level first (). + /// + public Task ClaimNextAsync(string workerId, IReadOnlyCollection? kinds, JobPriorityQueue queue, CancellationToken cancellationToken = default) { + ArgumentNullException.ThrowIfNull(queue); var kindFilter = kinds is { Count: > 0 } ? $" AND kind IN ({KindList(kinds)})" : string.Empty; - var pick = $"SELECT id FROM jobs WHERE state = {(int)JobState.Queued}{kindFilter} ORDER BY priority DESC, created, id LIMIT 1"; + var pick = $"SELECT id FROM jobs WHERE state = {(int)JobState.Queued}{kindFilter} ORDER BY {queue.OrderSql(kinds is { Count: > 0 } ? kinds : Enum.GetValues())}" + + "priority DESC, created, id LIMIT 1"; var claim = $"UPDATE jobs SET state = {(int)JobState.Running}, node_id = $1, started = $2, finished = NULL, error = NULL, attempts = attempts + 1"; DbParam[] args = [workerId, DateTimeOffset.UtcNow]; if (_db.Sql.IsPostgres) @@ -124,6 +133,15 @@ public sealed class JobRepository (nodeId is null ? string.Empty : " AND (node_id = $1 OR substr(node_id, 1, length($2)) = $2)"), nodeId is null ? [] : [nodeId, nodeId + "#"], cancellationToken); + /// + /// Puts the job runs back in the queue, keeping its checkpoint (a job that yielded to a higher + /// one in the priority queue); false when it no longer runs there: paused or cancelled meanwhile, that state stays. + /// + public async Task RequeueAsync(Guid id, string nodeId, CancellationToken cancellationToken = default) => + await _db.ExecuteAsync( + $"UPDATE jobs SET state = {(int)JobState.Queued}, node_id = NULL, started = NULL WHERE id = $1 AND node_id = $2 AND state = {(int)JobState.Running}", + [id, nodeId], cancellationToken).ConfigureAwait(false) > 0; + public async Task SetPriorityAsync(Guid id, JobPriority priority, CancellationToken cancellationToken = default) => await _db.ExecuteAsync("UPDATE jobs SET priority = $2 WHERE id = $1", [id, (int)priority], cancellationToken).ConfigureAwait(false) > 0; @@ -133,9 +151,16 @@ public sealed class JobRepository /// Queued jobs of the given kinds in claim order (highest priority, then oldest). public Task> ListQueuedAsync(IReadOnlyCollection kinds, int limit = 50, CancellationToken cancellationToken = default) => - kinds.Count == 0 ? Task.FromResult>([]) : _db.ListAsync( - $"SELECT {Columns} FROM jobs WHERE state = {(int)JobState.Queued} AND kind IN ({KindList(kinds)}) ORDER BY priority DESC, created, id LIMIT $1", + ListQueuedAsync(kinds, limit, JobPriorityQueue.Off, cancellationToken); + + /// Queued jobs of the given kinds in the claim order of . + public Task> ListQueuedAsync(IReadOnlyCollection kinds, int limit, JobPriorityQueue queue, CancellationToken cancellationToken = default) + { + ArgumentNullException.ThrowIfNull(queue); + return kinds.Count == 0 ? Task.FromResult>([]) : _db.ListAsync( + $"SELECT {Columns} FROM jobs WHERE state = {(int)JobState.Queued} AND kind IN ({KindList(kinds)}) ORDER BY {queue.OrderSql(kinds)}priority DESC, created, id LIMIT $1", [Cursor.ClampLimit(limit)], Map, cancellationToken); + } /// Running jobs claimed by . public Task> ListRunningByNodeAsync(string nodeId, CancellationToken cancellationToken = default) => diff --git a/src/Titano.Protocol/Admin.cs b/src/Titano.Protocol/Admin.cs index e8b118cb..595de69b 100644 --- a/src/Titano.Protocol/Admin.cs +++ b/src/Titano.Protocol/Admin.cs @@ -3,8 +3,10 @@ namespace Titano.Protocol; /// /// GET/PUT /api/v1/server/settings (admin): the editable part of the server configuration. Settings named in /// come from environment variables and cannot be changed here; says -/// that saved values (ports, TLS, workers, chunk size) wait for a restart. is set in +/// that saved values (ports, TLS, chunk size, job history) wait for a restart. is set in /// responses when TLS mode is proxy and the request did not come through a trusted proxy over HTTPS (ignored when saving). +/// is how many photos the running job processes at once (jobs run one at a time), and +/// with the priority queue (owner review 1); both apply at once. /// public sealed record ServerSettingsDto( string ServerName, @@ -14,7 +16,9 @@ public sealed record ServerSettingsDto( string? TlsCert, string? TlsKey, string Language, - int Workers, + int Parallelism, + bool PriorityQueue, + IReadOnlyList JobPriorities, bool Discovery, long MaxUploadBytes, int ChunkSizeBytes, @@ -25,6 +29,9 @@ public sealed record ServerSettingsDto( bool RestartRequired, bool ProxyWarning); +/// A kind of job (render) and its level in the server's priority queue: high, normal or low. +public sealed record JobPriorityDto(string Kind, string Level); + /// A server log file (GET /api/v1/logs/files). public sealed record LogFileDto(string Name, long Size, DateTimeOffset Modified); @@ -51,7 +58,8 @@ public sealed record DashboardDto( int Users, ArchiveStatsDto Archive, JobCountsDto Jobs, - int Workers, + int Parallelism, + bool PriorityQueue, IReadOnlyList Nodes, IReadOnlyList Uploads, IReadOnlyList Activity, diff --git a/src/Titano.Server/Admin/web/admin.css b/src/Titano.Server/Admin/web/admin.css index f1e33f2b..ab1d20d5 100644 --- a/src/Titano.Server/Admin/web/admin.css +++ b/src/Titano.Server/Admin/web/admin.css @@ -234,6 +234,9 @@ pre.log.tall { max-height: 60vh; border-top: 0; } .settings { display: grid; gap: 20px; } .field { display: grid; grid-template-columns: 180px minmax(0, 420px); align-items: center; gap: 12px; color: var(--text-muted); } .settings-form .field { grid-template-columns: 140px minmax(0, 1fr); } +/* Levels of the priority queue (owner review 1): several per row on a wide screen. */ +.priorities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 8px 24px; } +.priorities .field { grid-template-columns: minmax(0, 1fr) 120px; } .fingerprint { font: 12px var(--mono); color: var(--text); } /* Dialogs and toasts */ diff --git a/src/Titano.Server/Admin/web/pages/dashboard.js b/src/Titano.Server/Admin/web/pages/dashboard.js index b0de718e..259ce6b4 100644 --- a/src/Titano.Server/Admin/web/pages/dashboard.js +++ b/src/Titano.Server/Admin/web/pages/dashboard.js @@ -56,7 +56,7 @@ export async function render(root, { api, setMeta, actions, onEvent }) { ${formatNumber(d.jobs.running)} ${escapeHtml([plural("Admin.Dashboard.QueuedCount", d.jobs.queued), plural("Admin.Dashboard.DoneToday", d.jobs.doneToday), plural("Admin.Dashboard.FailedToday", d.jobs.failedToday)].join(" · "))} - ${escapeHtml(plural("Admin.Dashboard.WorkerCount", d.workers))} + ${escapeHtml([plural("Admin.Dashboard.Parallelism", d.parallelism), ...(d.priorityQueue ? [t("Admin.Dashboard.PriorityQueue")] : [])].join(" · "))}

diff --git a/src/Titano.Server/Admin/web/pages/settings.js b/src/Titano.Server/Admin/web/pages/settings.js index 4f01e0f6..2813b034 100644 --- a/src/Titano.Server/Admin/web/pages/settings.js +++ b/src/Titano.Server/Admin/web/pages/settings.js @@ -1,13 +1,18 @@ -// Settings (BRIEF §14.8): server name, ports, TLS, discovery, limits, language, retention. Values fixed by environment -// variables are read-only here; ports, TLS, workers, chunk size and job history apply at the next restart. +// Settings (BRIEF §14.8): server name, ports, TLS, discovery, jobs, limits, language, retention. Values fixed by environment +// variables are read-only here; ports, TLS, chunk size and job history apply at the next restart. Jobs run one at a time +// (owner review 1): the parallelism (photos at once) and the priority queue apply at once. import { t, applyStrings, languages } from "../i18n.js"; import { escapeHtml, attr, toast, errorText, nativeName, fingerprint, markInvalid, clearInvalid, invalidText, escapeReverts, PROXY_WARNING } from "../ui.js"; +import { kindLabel } from "../jobs.js"; /** Setting → environment variable that can fix it (BRIEF §14.9). */ const VARIABLES = { serverName: "TITANO_SERVER_NAME", httpPort: "TITANO_HTTP_PORT", httpsPort: "TITANO_HTTPS_PORT", tlsMode: "TITANO_TLS_MODE", - tlsCert: "TITANO_TLS_CERT", tlsKey: "TITANO_TLS_KEY", language: "TITANO_LANG", workers: "TITANO_WORKERS", discovery: "TITANO_DISCOVERY", + tlsCert: "TITANO_TLS_CERT", tlsKey: "TITANO_TLS_KEY", language: "TITANO_LANG", parallelism: "TITANO_PARALLELISM", discovery: "TITANO_DISCOVERY", + priorityQueue: "TITANO_PRIORITY_QUEUE", }; +/** Levels of the priority queue, highest first. */ +const LEVELS = ["high", "normal", "low"]; /** Settings the server names in error details whose field here has another name. */ const FIELDS = { maxuploadbytes: "maxUploadMb", chunksizebytes: "chunkSizeMib" }; const PEM_FILES = ["tlsCert", "tlsKey"]; @@ -42,9 +47,18 @@ export async function render(root, { api, info, setMeta, actions }) { ${text("serverName", settings.serverName)} ${field("language", ``)} - ${number("workers", settings.workers, 'min="1" max="64"')} ${field("discovery", ``)}
+
+

+ ${number("parallelism", settings.parallelism, 'min="1" max="64"')} + ${field("priorityQueue", ``)} +
+ ${settings.jobPriorities.map((p) => ``).join("")} +
+

${settings.proxyWarning ? PROXY_WARNING : ""}
@@ -71,6 +85,8 @@ export async function render(root, { api, info, setMeta, actions }) { form.addEventListener("submit", save); form.elements.tlsMode.addEventListener("change", () => pemFiles(form)); pemFiles(form); + // The levels matter only while the priority queue is on. + form.elements.priorityQueue.addEventListener("change", () => { root.querySelector(".priorities").hidden = !form.elements.priorityQueue.checked; }); } /** The certificate and key files are used only in Own certificate mode; elsewhere they are off and say so. */ @@ -94,7 +110,9 @@ export async function render(root, { api, info, setMeta, actions }) { ...settings, serverName: String(value("serverName", settings.serverName)).trim(), language: String(value("language", settings.language)), - workers: Number(value("workers", settings.workers)), + parallelism: Number(value("parallelism", settings.parallelism)), + priorityQueue: form.elements.priorityQueue.disabled ? settings.priorityQueue : form.elements.priorityQueue.checked, + jobPriorities: settings.jobPriorities.map((p) => ({ kind: p.kind, level: String(data.get(`priority:${p.kind}`) ?? p.level) })), discovery: form.elements.discovery.disabled ? settings.discovery : form.elements.discovery.checked, httpPort: Number(value("httpPort", settings.httpPort)), httpsPort: Number(value("httpsPort", settings.httpsPort)), diff --git a/src/Titano.Server/Admin/web/ui.js b/src/Titano.Server/Admin/web/ui.js index d6ea000e..bdad2168 100644 --- a/src/Titano.Server/Admin/web/ui.js +++ b/src/Titano.Server/Admin/web/ui.js @@ -196,6 +196,8 @@ export function escapeReverts(form) { form.addEventListener("keydown", (e) => { const field = e.target; if (e.key !== "Escape" || !(field instanceof HTMLInputElement || field instanceof HTMLSelectElement) || field.type === "search") return; + const checkable = field.type === "checkbox" || field.type === "radio"; + const before = checkable ? field.checked : field.value; if (field instanceof HTMLSelectElement) { [...field.options].forEach((o) => { o.selected = o.defaultSelected; @@ -206,6 +208,8 @@ export function escapeReverts(form) { field.value = field.defaultValue; } clearInvalid(field); + // What follows the value (the certificate files of a TLS mode, the levels of the priority queue) follows it back. + if ((checkable ? field.checked : field.value) !== before) field.dispatchEvent(new Event("change", { bubbles: true })); }); } diff --git a/src/Titano.Server/Api/AdminEndpoints.cs b/src/Titano.Server/Api/AdminEndpoints.cs index baaaca3c..c6641a3d 100644 --- a/src/Titano.Server/Api/AdminEndpoints.cs +++ b/src/Titano.Server/Api/AdminEndpoints.cs @@ -40,7 +40,7 @@ public static class AdminEndpoints } private static async Task DashboardAsync(HttpContext context, TitanoDatabase db, ServerArchive archive, ServerOptions options, ServerState state, - JobEngineHost jobs, TimeProvider time) + TimeProvider time) { var ct = context.RequestAborted; var now = time.GetUtcNow(); @@ -63,7 +63,8 @@ public static class AdminEndpoints users.Count, await ArchiveEndpoints.StatsAsync(db, archive, ct), new JobCountsDto(counts.Queued, counts.Running, counts.Paused, counts.DoneSince, counts.FailedSince), - jobs.Workers, + options.Parallelism, + options.PriorityQueue, [.. nodes.Select(n => Dto.Node(n, names.GetValueOrDefault(n.UserId, string.Empty)))], [.. uploads.Select(u => new UploadDayDto(u.Day, u.Count, u.Bytes))], [.. activity.Items.Select(Dto.Audit)], @@ -73,7 +74,7 @@ public static class AdminEndpoints } private static async Task SaveSettingsAsync(HttpContext context, Caller caller, ServerSettingsDto request, ServerSettingsStore store, ServerOptions options, - AuditLog audit) + AuditLog audit, JobEngineHost jobs) { switch (store.Save(request)) { @@ -82,6 +83,8 @@ public static class AdminEndpoints case (var code, var setting): return ApiErrors.BadRequest(context, code, setting, setting); } + // A priority queue turned on, or a level raised, may make the running job yield at once. + jobs.Engine.Wake(); await audit.WriteAsync(caller, context, "server_settings", "server", null, request.ServerName); return Results.Json(store.Current() with { ProxyWarning = AdminPanel.BypassesProxy(context, options) }, ProtocolJson.Default.ServerSettingsDto); } diff --git a/src/Titano.Server/Api/DiagnosticsEndpoints.cs b/src/Titano.Server/Api/DiagnosticsEndpoints.cs index 6159b65d..fde6d21b 100644 --- a/src/Titano.Server/Api/DiagnosticsEndpoints.cs +++ b/src/Titano.Server/Api/DiagnosticsEndpoints.cs @@ -25,11 +25,11 @@ public static class DiagnosticsEndpoints api.MapGet("/server/diagnostics", DownloadAsync).Requires(Permissions.ManageArchive); private static async Task DownloadAsync(HttpContext context, Caller caller, TitanoDatabase db, ServerOptions options, ServerState state, - JobEngineHost jobs, AuditLog audit, TimeProvider time, IServiceProvider services) + AuditLog audit, TimeProvider time, IServiceProvider services) { var ct = context.RequestAborted; var failures = (await db.Jobs.ListAsync(JobState.Failed, FailedJobs, null, ct)).Items; - var report = Report(options, state, jobs, time); + var report = Report(options, state, time); var settings = JsonSerializer.Serialize(options, ServerOptionsJson.Default.ServerOptions); var encoders = Encoders(services.GetService()); @@ -64,7 +64,7 @@ public static class DiagnosticsEndpoints return Results.File(file, "application/zip", name); } - private static string Report(ServerOptions options, ServerState state, JobEngineHost jobs, TimeProvider time) + private static string Report(ServerOptions options, ServerState state, TimeProvider time) { var sb = new StringBuilder(); sb.AppendLine(CultureInfo.InvariantCulture, $"Titano Server {SystemEndpoints.Version} ({options.ServerName})"); @@ -75,7 +75,7 @@ public static class DiagnosticsEndpoints if (options.Database == DatabaseKind.Sqlite) sb.AppendLine("SQLite compile options: " + string.Join(' ', Titano.Data.Sqlite.SqliteDatabase.CompileOptions)); sb.AppendLine(CultureInfo.InvariantCulture, $"TLS {options.TlsMode} {state.TlsFingerprint}"); - sb.AppendLine(CultureInfo.InvariantCulture, $"Workers {jobs.Workers}"); + sb.AppendLine(CultureInfo.InvariantCulture, $"Jobs one at a time, parallelism {options.Parallelism}, priority queue {(options.PriorityQueue ? "on" : "off")}"); sb.AppendLine(CultureInfo.InvariantCulture, $"Archive {options.ArchivePath} ({Space(options.ArchivePath)})"); sb.AppendLine(CultureInfo.InvariantCulture, $"Data {options.DataPath} ({Space(options.DataPath)})"); sb.AppendLine(CultureInfo.InvariantCulture, $"Container {File.Exists("/.dockerenv")}"); diff --git a/src/Titano.Server/Configuration/ServerOptions.cs b/src/Titano.Server/Configuration/ServerOptions.cs index 1ac0a6ec..dbe0314d 100644 --- a/src/Titano.Server/Configuration/ServerOptions.cs +++ b/src/Titano.Server/Configuration/ServerOptions.cs @@ -54,7 +54,15 @@ public sealed class ServerOptions ("TITANO_TLS_KEY", nameof(TlsKey), (o, v) => o.TlsKey = v), ("TITANO_TRUSTED_PROXIES", nameof(TrustedProxies), (o, v) => o.TrustedProxies = v), ("TITANO_LANG", nameof(Language), (o, v) => o.Language = v), - ("TITANO_WORKERS", nameof(Workers), (o, v) => o.Workers = Math.Max(1, Int("TITANO_WORKERS", v))), + // The former name of TITANO_PARALLELISM (jobs run at once before owner review 1) still sets it, with a warning at start; + // listed first, so TITANO_PARALLELISM wins when both are set. + ("TITANO_WORKERS", nameof(Parallelism), (o, v) => + { + o.Parallelism = Int("TITANO_WORKERS", v); + o.FormerWorkersVariable = true; + }), + ("TITANO_PARALLELISM", nameof(Parallelism), (o, v) => o.Parallelism = Int("TITANO_PARALLELISM", v)), + ("TITANO_PRIORITY_QUEUE", nameof(PriorityQueue), (o, v) => o.PriorityQueue = bool.Parse(v)), ("TITANO_DISCOVERY", nameof(Discovery), (o, v) => o.Discovery = bool.Parse(v)), ("TITANO_LOG_LEVEL", nameof(LogLevel), (o, v) => o.LogLevel = Enum.Parse(v, ignoreCase: true)), ]; @@ -109,7 +117,43 @@ public sealed class ServerOptions ///
public string TrustedProxies { get; set; } = DefaultTrustedProxies; public string Language { get; set; } = "en"; - public int Workers { get; set; } = Math.Max(1, Environment.ProcessorCount / 2); + + /// Highest ; a larger value from the environment or server.json is brought down to it. + public const int MaxParallelism = 64; + + /// + /// Photos the running job processes at once (owner review 1: jobs run one at a time), 1 to . + /// Default: half the logical cores. + /// + public int Parallelism { get; set; } = Math.Clamp(Environment.ProcessorCount / 2, 1, MaxParallelism); + + /// + /// The priority queue (owner review 1): a job of a higher level makes the running one of a lower level yield, and that + /// one resumes by itself afterwards. Off: jobs wait their turn (). + /// + public bool PriorityQueue { get; set; } + + /// Levels of the priority queue that differ from the defaults, by job kind (render → high). + public Dictionary JobPriorities { get; set; } = []; + + /// + /// The former name of in server.json (jobs run at once before owner review 1): a file + /// that still has it sets the parallelism. Never written; saving settings drops it. + /// + [JsonPropertyName("Workers")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public int? FormerWorkers + { + get => null; + set + { + if (value is { } workers) Parallelism = workers; + } + } + + /// TITANO_WORKERS, the former name of TITANO_PARALLELISM, set the parallelism: the start says to rename it. + [JsonIgnore] + public bool FormerWorkersVariable { get; private set; } public bool Discovery { get; set; } = true; /// Least severe level written to the console and the log files. @@ -197,7 +241,9 @@ public sealed class ServerOptions } locked.Add(setting); } - options.Locked = locked; + options.Locked = [.. locked.Distinct(StringComparer.Ordinal)]; + // The admin panel saves only values it accepts: one it cannot change (an environment variable) must be one of them. + options.Parallelism = Math.Clamp(options.Parallelism, 1, MaxParallelism); options.Validate(); return options; } diff --git a/src/Titano.Server/Configuration/ServerSettingsStore.cs b/src/Titano.Server/Configuration/ServerSettingsStore.cs index 7b107f76..1270d3d9 100644 --- a/src/Titano.Server/Configuration/ServerSettingsStore.cs +++ b/src/Titano.Server/Configuration/ServerSettingsStore.cs @@ -2,17 +2,26 @@ using System.Text.Json; using System.Text.Json.Nodes; using Titano.Core.IO; using Titano.Core.Localization; +using Titano.Core.Model; +using Titano.Data.Jobs; using Titano.Protocol; namespace Titano.Server.Configuration; /// /// The admin panel's view of the configuration (BRIEF §14.8 Settings). Saving writes /data/server.json (only the -/// edited keys; secrets and environment values are never written) and applies what can change while running; ports, -/// TLS, workers, chunk size and job history wait for a restart. +/// edited keys; secrets and environment values are never written) and applies what can change while running, the +/// parallelism and the priority queue included (owner review 1); ports, TLS, chunk size and job history wait for a restart. /// public sealed class ServerSettingsStore(ServerOptions options) { + /// The kinds of job the server runs, in the order the admin panel lists their levels (downloads and uploads are a client's). + public static IReadOnlyList Kinds { get; } = + [ + JobKind.Render, JobKind.Import, JobKind.Scan, JobKind.Rebuild, JobKind.Verify, JobKind.LightAnalyse, JobKind.DeepAnalyse, JobKind.Thumbs, + JobKind.Proxies, JobKind.Maintenance, JobKind.Duplicates, JobKind.Orphans, JobKind.Adopt, JobKind.Move, + ]; + private readonly Lock _gate = new(); private ServerSettingsDto? _saved; @@ -21,6 +30,9 @@ public sealed class ServerSettingsStore(ServerOptions options) lock (_gate) return _saved ?? Snapshot(options, restartRequired: false); } + /// The priority queue as the settings have it now (, ). + public static JobPriorityQueue PriorityQueue(ServerOptions options) => JobPriorityQueue.From(options.PriorityQueue, options.JobPriorities); + /// Validates and saves; returns the error code and the offending setting, or null on success. public (string Code, string Setting)? Save(ServerSettingsDto request) { @@ -34,6 +46,8 @@ public sealed class ServerSettingsStore(ServerOptions options) var file = File.Exists(options.SettingsFile) ? JsonNode.Parse(File.ReadAllText(options.SettingsFile)) as JsonObject ?? [] : []; foreach (var (name, value) in changes) file[name] = value; + // The former name of the parallelism (jobs run at once before owner review 1) would set it again at the next start. + if (changes.Any(c => c.Name == nameof(ServerOptions.Parallelism))) file.Remove("Workers"); Directory.CreateDirectory(options.DataPath); AtomicFile.WriteAllText(options.SettingsFile, file.ToJsonString(new JsonSerializerOptions { WriteIndented = true })); @@ -43,18 +57,44 @@ public sealed class ServerSettingsStore(ServerOptions options) options.MaxUploadBytes = request.MaxUploadBytes; options.TokenLifetimeDays = request.TokenLifetimeDays; options.UploadRetentionHours = request.UploadRetentionHours; + options.Parallelism = request.Parallelism; + options.PriorityQueue = request.PriorityQueue; + options.JobPriorities = JobPriorityQueue.Changed(Levels(request.JobPriorities)); var restart = request.HttpPort != options.HttpPort || request.HttpsPort != options.HttpsPort || !string.Equals(request.TlsMode, options.TlsMode.ToString(), StringComparison.OrdinalIgnoreCase) - || request.TlsCert != options.TlsCert || request.TlsKey != options.TlsKey || request.Workers != options.Workers + || request.TlsCert != options.TlsCert || request.TlsKey != options.TlsKey || request.ChunkSizeBytes != options.ChunkSizeBytes || request.JobHistoryDays != options.JobHistoryDays; - _saved = request with { ServerName = request.ServerName.Trim(), Locked = [.. options.Locked], RestartRequired = restart, ProxyWarning = false }; + _saved = request with + { + ServerName = request.ServerName.Trim(), + JobPriorities = Priorities(PriorityQueue(options)), + Locked = [.. options.Locked], + RestartRequired = restart, + ProxyWarning = false, + }; return null; } } private static ServerSettingsDto Snapshot(ServerOptions o, bool restartRequired) => new( - o.ServerName, o.HttpPort, o.HttpsPort, o.TlsMode.ToString().ToLowerInvariant(), o.TlsCert, o.TlsKey, o.Language, o.Workers, o.Discovery, - o.MaxUploadBytes, o.ChunkSizeBytes, o.JobHistoryDays, o.TokenLifetimeDays, o.UploadRetentionHours, [.. o.Locked], restartRequired, ProxyWarning: false); + o.ServerName, o.HttpPort, o.HttpsPort, o.TlsMode.ToString().ToLowerInvariant(), o.TlsCert, o.TlsKey, o.Language, o.Parallelism, o.PriorityQueue, + Priorities(PriorityQueue(o)), o.Discovery, o.MaxUploadBytes, o.ChunkSizeBytes, o.JobHistoryDays, o.TokenLifetimeDays, o.UploadRetentionHours, + [.. o.Locked], restartRequired, ProxyWarning: false); + + /// The level of every kind the server runs in . + private static List Priorities(JobPriorityQueue queue) => + [.. Kinds.Select(k => new JobPriorityDto(JobWire.Kind(k), JobPriorityQueue.Wire(queue.LevelOf(k))))]; + + /// The levels a request sets; has checked their names. + private static Dictionary Levels(IReadOnlyList? priorities) + { + var levels = new Dictionary(); + foreach (var p in priorities ?? []) + { + if (JobWire.TryParseKind(p.Kind, out var kind) && JobPriorityQueue.TryParse(p.Level, out var level)) levels[kind] = level; + } + return levels; + } private static string? Validate(ServerSettingsDto r) { @@ -65,7 +105,9 @@ public sealed class ServerSettingsStore(ServerOptions options) if (tls == TlsMode.Pem && (string.IsNullOrWhiteSpace(r.TlsCert) || !File.Exists(r.TlsCert))) return nameof(ServerOptions.TlsCert); if (tls == TlsMode.Pem && (string.IsNullOrWhiteSpace(r.TlsKey) || !File.Exists(r.TlsKey))) return nameof(ServerOptions.TlsKey); if (!Languages.Shipped.Contains(r.Language, StringComparer.OrdinalIgnoreCase)) return nameof(ServerOptions.Language); - if (r.Workers is < 1 or > 64) return nameof(ServerOptions.Workers); + if (r.Parallelism is < 1 or > ServerOptions.MaxParallelism) return nameof(ServerOptions.Parallelism); + if ((r.JobPriorities ?? []).Any(p => !JobWire.TryParseKind(p.Kind, out var kind) || !Kinds.Contains(kind) || !JobPriorityQueue.TryParse(p.Level, out _))) + return nameof(ServerOptions.JobPriorities); if (r.MaxUploadBytes < 1024 * 1024) return nameof(ServerOptions.MaxUploadBytes); if (r.ChunkSizeBytes is < 64 * 1024 or > 64 * 1024 * 1024) return nameof(ServerOptions.ChunkSizeBytes); if (r.JobHistoryDays is < 1 or > 3650) return nameof(ServerOptions.JobHistoryDays); @@ -89,7 +131,13 @@ public sealed class ServerSettingsStore(ServerOptions options) Add(nameof(ServerOptions.TlsCert), a.TlsCert, b.TlsCert, v => v is null ? null : JsonValue.Create(v)); Add(nameof(ServerOptions.TlsKey), a.TlsKey, b.TlsKey, v => v is null ? null : JsonValue.Create(v)); Add(nameof(ServerOptions.Language), a.Language, b.Language, v => JsonValue.Create(v)); - Add(nameof(ServerOptions.Workers), a.Workers, b.Workers, v => JsonValue.Create(v)); + Add(nameof(ServerOptions.Parallelism), a.Parallelism, b.Parallelism, v => JsonValue.Create(v)); + Add(nameof(ServerOptions.PriorityQueue), a.PriorityQueue, b.PriorityQueue, v => JsonValue.Create(v)); + // Only levels that differ from the defaults are stored, as the desktop does. + var before = JobPriorityQueue.Changed(Levels(a.JobPriorities)); + var after = JobPriorityQueue.Changed(Levels(b.JobPriorities)); + if (!before.OrderBy(l => l.Key).SequenceEqual(after.OrderBy(l => l.Key))) + changes.Add((nameof(ServerOptions.JobPriorities), new JsonObject(after.Select(l => KeyValuePair.Create(l.Key, (JsonNode?)JsonValue.Create(l.Value)))))); Add(nameof(ServerOptions.Discovery), a.Discovery, b.Discovery, v => JsonValue.Create(v)); Add(nameof(ServerOptions.MaxUploadBytes), a.MaxUploadBytes, b.MaxUploadBytes, v => JsonValue.Create(v)); Add(nameof(ServerOptions.ChunkSizeBytes), a.ChunkSizeBytes, b.ChunkSizeBytes, v => JsonValue.Create(v)); diff --git a/src/Titano.Server/Hosting/ServerCommandLine.cs b/src/Titano.Server/Hosting/ServerCommandLine.cs index 10e2e462..c6746f6a 100644 --- a/src/Titano.Server/Hosting/ServerCommandLine.cs +++ b/src/Titano.Server/Hosting/ServerCommandLine.cs @@ -36,7 +36,10 @@ public sealed record ServerCommandLine(ServerCommand Command, IReadOnlyList app.Logger.LogInformation("Titano Server stopping")); app.Lifetime.ApplicationStopped.Register(() => database.DisposeAsync().AsTask().GetAwaiter().GetResult()); return app; diff --git a/src/Titano.Server/Jobs/JobEngineHost.cs b/src/Titano.Server/Jobs/JobEngineHost.cs index e9ea3401..1ce2c62c 100644 --- a/src/Titano.Server/Jobs/JobEngineHost.cs +++ b/src/Titano.Server/Jobs/JobEngineHost.cs @@ -12,7 +12,8 @@ namespace Titano.Server.Jobs; /// /// Hosts the server's (BRIEF §14.6) with the s registered in DI (directly or /// through s) and -/// relays its state changes and progress as WebSocket events. Render jobs run here only when the registered render +/// relays its state changes and progress as WebSocket events. Jobs run one at a time, the parallelism working inside the +/// running one, in the order of the priority queue of the settings (owner review 1). Render jobs run here only when the registered render /// handler accepts them (: managed formats, and MP4 jobs no render node can take); /// render nodes claim the others (BRIEF §14.5, §14.7). On shutdown running jobs stay marked running and are requeued from their checkpoints at the next start. /// @@ -34,26 +35,23 @@ public sealed class JobEngineHost : IHostedService // A render handler must be selective: a plain one would take the jobs that need a render node's encoder. var local = handlers.Concat(providers.SelectMany(p => p.CreateJobHandlers())).Where(h => h.Kind != JobKind.Render || h is ISelectiveJobHandler).ToList(); _kinds = [.. local.Select(h => h.Kind)]; - // Without handlers no worker starts: an engine with an empty kind list would claim every kind. - Workers = _kinds.Count == 0 ? 0 : options.Workers; + // Without handlers no worker starts (StartAsync): an engine with an empty kind list would claim every kind. Engine = new JobEngine(db, local, new JobEngineOptions { - Workers = Workers, WorkerId = WorkerId, Kinds = _kinds, HistoryRetention = TimeSpan.FromDays(options.JobHistoryDays), + PriorityQueue = () => ServerSettingsStore.PriorityQueue(options), }); Engine.JobChanged += OnJobChanged; Engine.Progress += OnProgress; } - /// Node id stamped on jobs this server runs (its workers use WorkerId#n). + /// Node id stamped on jobs this server runs. public static string WorkerId { get; } = "server:" + Environment.MachineName; public JobEngine Engine { get; } - public int Workers { get; } - /// True when a job of has somewhere to run: a local handler, or render nodes for renders. public bool CanRun(JobKind kind) => kind == JobKind.Render || _kinds.Contains(kind); diff --git a/src/Titano.Server/Storage/ArchiveModule.cs b/src/Titano.Server/Storage/ArchiveModule.cs index ee318bf0..3227fa1c 100644 --- a/src/Titano.Server/Storage/ArchiveModule.cs +++ b/src/Titano.Server/Storage/ArchiveModule.cs @@ -2,6 +2,7 @@ using Titano.Core.Imaging.Decoders; using Titano.Data; using Titano.Data.Archiving; using Titano.Data.Jobs; +using Titano.Server.Configuration; namespace Titano.Server.Storage; @@ -19,8 +20,13 @@ public static class ArchiveModule public static void Register(IServiceCollection services) { - services.AddSingleton(sp => new ArchiveService(sp.GetRequiredService(), - new ArchiveServiceOptions { Decoder = DecoderFactory.CreateServer(), Owner = Owner, ImagesAfterScan = true })); + services.AddSingleton(sp => + { + var options = sp.GetRequiredService(); + // Photos the running job processes at once: the settings' value as it is when each sequence starts (owner review 1). + return new ArchiveService(sp.GetRequiredService(), + new ArchiveServiceOptions { Decoder = DecoderFactory.CreateServer(), Owner = Owner, ImagesAfterScan = true, Parallelism = () => options.Parallelism }); + }); services.AddSingleton(sp => sp.GetRequiredService().Ingest); services.AddSingleton(sp => sp.GetRequiredService()); services.AddSingleton(); diff --git a/src/Titano.Server/Storage/ProcessingModule.cs b/src/Titano.Server/Storage/ProcessingModule.cs index 26b47a9a..a22db5b4 100644 --- a/src/Titano.Server/Storage/ProcessingModule.cs +++ b/src/Titano.Server/Storage/ProcessingModule.cs @@ -29,13 +29,21 @@ public static class ProcessingModule { var db = sp.GetRequiredService(); var events = sp.GetRequiredService(); + var options = sp.GetRequiredService(); return new ProcessingService(db, new ProcessingOptions { - Archive = new ArchiveServiceOptions { Decoder = DecoderFactory.CreateServer(), Owner = ArchiveModule.Owner }, + Archive = new ArchiveServiceOptions { Decoder = DecoderFactory.CreateServer(), Owner = ArchiveModule.Owner, Parallelism = () => options.Parallelism }, + // Analyses and renders take the parallelism as it is when they start, and the one job that runs has the host's + // memory budget for its frame window, as on the desktop (owner review 1). + Tune = basis => + { + var tuned = basis.WithParallelism(options.Parallelism); + return tuned with { FrameWindow = tuned.FrameWindow with { MemoryBudget = basis.Archive.MemoryBudget() } }; + }, Encoders = [new ManagedEncoderProvider()], Host = EncoderHost.Server, AwaitsRenderNode = sp.GetRequiredService().AwaitsNodeAsync, - ProducedBy = sp.GetRequiredService().ServerName, + ProducedBy = options.ServerName, SequenceChanged = async (id, change, ct) => { if (await db.Sequences.GetAsync(id, ct) is { } sequence) diff --git a/src/Titano.Tools/Commands/I18nCommand.cs b/src/Titano.Tools/Commands/I18nCommand.cs index 04cffe0b..06f6107d 100644 --- a/src/Titano.Tools/Commands/I18nCommand.cs +++ b/src/Titano.Tools/Commands/I18nCommand.cs @@ -12,6 +12,8 @@ namespace Titano.Tools.Commands; /// i18n export --out dir: one JSON per culture for the web admin. /// i18n missing --culture xx [--all]: untranslated (or all) keys as TSV for a translator or reviewer. /// i18n import --culture xx file.tsv: merges translated key<TAB>text rows into the culture's resx files. +/// i18n prune: removes from every translation the keys English no longer has (renamed or removed keys), which +/// check reports as orphans. /// internal sealed partial class I18nCommand : ICommand { @@ -19,7 +21,7 @@ internal sealed partial class I18nCommand : ICommand private static readonly HashSet SentenceAreas = new(StringComparer.Ordinal) { "Tooltips", "Errors", "Advisor" }; public string Name => "i18n"; - public string Summary => "check | export --out | missing --culture [--all] | import --culture "; + public string Summary => "check | export --out | missing --culture [--all] | import --culture | prune"; public Task RunAsync(string[] args) { @@ -34,6 +36,7 @@ internal sealed partial class I18nCommand : ICommand "missing" => Missing(catalog, a.Get("culture") ?? throw new ToolException("--culture required"), a.Has("all")), "import" => Import(root, catalog, a.Get("culture") ?? throw new ToolException("--culture required"), a.Positional.ElementAtOrDefault(1) ?? throw new ToolException("TSV file required")), + "prune" => Prune(Path.Combine(root, "i18n"), catalog), _ => throw new ToolException($"Unknown i18n subcommand '{sub}'"), }); } @@ -233,6 +236,44 @@ internal sealed partial class I18nCommand : ICommand return 0; } + /// + /// Removes the orphan keys of every translation under (those reports: not in + /// English and not a plural form of an English plural key), rewriting only the files that had some, as + /// writes them. English is the source and is never touched. Returns the number of keys removed. + /// + internal static int PruneOrphans(string dir, Catalog catalog) + { + var en = catalog.Cultures["en"]; + var removed = 0; + foreach (var cultureDir in Directory.EnumerateDirectories(dir).Order(StringComparer.Ordinal)) + { + var culture = Path.GetFileName(cultureDir); + if (culture.Equals("en", StringComparison.OrdinalIgnoreCase)) continue; + foreach (var path in Directory.EnumerateFiles(cultureDir, "*.resx").Order(StringComparer.Ordinal)) + { + var values = new SortedDictionary(StringComparer.Ordinal); + var orphans = 0; + foreach (var data in XDocument.Load(path).Root!.Elements("data")) + { + var key = (string)data.Attribute("name")!; + if (en.ContainsKey(key) || PluralStem(key, en) is not null) values[key] = (string?)data.Element("value") ?? string.Empty; + else orphans++; + } + if (orphans == 0) continue; + WriteResx(path, values); + removed += orphans; + } + } + return removed; + } + + private static int Prune(string dir, Catalog catalog) + { + var removed = PruneOrphans(dir, catalog); + Console.WriteLine($"i18n: {removed} orphan key(s) removed"); + return 0; + } + private static void WriteResx(string path, IEnumerable> values) { var sb = new StringBuilder(); diff --git a/tests/Titano.App.Tests/Jobs/JobListModelTests.cs b/tests/Titano.App.Tests/Jobs/JobListModelTests.cs index dc319bbf..8f6e898c 100644 --- a/tests/Titano.App.Tests/Jobs/JobListModelTests.cs +++ b/tests/Titano.App.Tests/Jobs/JobListModelTests.cs @@ -145,6 +145,22 @@ public sealed class JobListModelTests Assert.False(JobListModel.ClaimsBefore(newer, older)); } + [Test] + public void ThePriorityQueueOrdersTheQueueAsTheEngineClaimsIt() + { + var model = new JobListModel(); + var verify = Job(JobState.Queued, created: -30, priority: JobPriority.User, kind: JobKind.Verify); + var scan = Job(JobState.Queued, created: -20, kind: JobKind.Scan); + var render = Job(JobState.Queued, created: -1, kind: JobKind.Render); + foreach (var j in new[] { verify, scan, render }) model.Apply(j); + Assert.SequenceEqual(new[] { verify.Id, scan.Id, render.Id }, model.Ordered().Select(e => e.Id)); + + // Owner review 1: on, renders come first and verifies last, whatever their age and priority. + model.PriorityQueue = new JobPriorityQueue { Enabled = true }; + Assert.SequenceEqual(new[] { render.Id, scan.Id, verify.Id }, model.Ordered().Select(e => e.Id)); + Assert.Equal((1, 2, 3), (model.QueuePosition(render.Id), model.QueuePosition(scan.Id), model.QueuePosition(verify.Id))); + } + [Test] public void TextsDescribeTheJob() { diff --git a/tests/Titano.App.Tests/Jobs/JobsScreenSmokeTests.cs b/tests/Titano.App.Tests/Jobs/JobsScreenSmokeTests.cs index 863cb4e2..f2c854ce 100644 --- a/tests/Titano.App.Tests/Jobs/JobsScreenSmokeTests.cs +++ b/tests/Titano.App.Tests/Jobs/JobsScreenSmokeTests.cs @@ -36,8 +36,8 @@ public sealed class JobsScreenSmokeTests Assert.Greater(running, 0); Assert.Equal(running, jobs.Badge); Assert.Equal(Loc.Plural("Shell.Status.Jobs", running), shell.JobsText); - // The capture engine starts no workers: there is no "Workers n / 0" to show. - Assert.False(jobs.HasWorkers); + // The capture engine runs no jobs: there is no "8 photos at once" to show. + Assert.False(jobs.HasEngine); // Tab reaches every row button: the rows take no focus, the list passes Tab on to their content. var list = app.FindAll().Single(l => l.Name == "JobList"); diff --git a/tests/Titano.App.Tests/Server/ServerScreenSmokeTests.cs b/tests/Titano.App.Tests/Server/ServerScreenSmokeTests.cs index e68a4475..d37b187b 100644 --- a/tests/Titano.App.Tests/Server/ServerScreenSmokeTests.cs +++ b/tests/Titano.App.Tests/Server/ServerScreenSmokeTests.cs @@ -122,7 +122,8 @@ public sealed class ServerScreenSmokeTests Assert.SequenceEqual([SyncAction.Pause], Actions(comet)); Assert.Contains("46", comet.ServerText); Assert.Equal(StatusKind.Queued, Row(table, "Fog lifting, Asti").StateKind); - Assert.Equal((StatusKind.Running, Loc.L("Server.Sync.State.Downloading")), (Row(table, "Sunrise over Superga").StateKind, Row(table, "Sunrise over Superga").StateText)); + // One job at a time (owner review 1): the download halfway waits for the upload. + Assert.Equal((StatusKind.Queued, Loc.L("Server.Sync.State.Waiting")), (Row(table, "Sunrise over Superga").StateKind, Row(table, "Sunrise over Superga").StateText)); Assert.SequenceEqual([SyncAction.Resume], Actions(Row(table, "Lake Como storm"))); await app.ExpectAsync("server-sync"); diff --git a/tests/Titano.App.Tests/Settings/SettingsLogicTests.cs b/tests/Titano.App.Tests/Settings/SettingsLogicTests.cs index 63f27905..7fe98207 100644 --- a/tests/Titano.App.Tests/Settings/SettingsLogicTests.cs +++ b/tests/Titano.App.Tests/Settings/SettingsLogicTests.cs @@ -181,34 +181,39 @@ public sealed class SettingsLogicTests var settings = new Titano.App.Infrastructure.AppSettings { Quality = Titano.App.Infrastructure.QualityProfile.Best, Parallelism = 3, MemoryBudgetGb = 6 }; var basis = new Titano.Data.Processing.ProcessingOptions(); - // Three jobs at once share the 6 GB: 2 GB each; the user's 3 also caps the decodes and the analysis threads. + // One job runs at a time (owner review 1): it has the whole 6 GB, and decodes and measures 3 photos at once. var best = ProcessingTuning.Apply(basis, settings, 64L << 30, 16, @"C:\cache"); - Assert.Equal((2L << 30, @"C:\cache", 8, 2), (best.FrameWindow.MemoryBudget, best.FrameWindow.SpillDirectory, best.FrameWindow.Ahead, best.FrameWindow.MaxConcurrentLoads)); + Assert.Equal((6L << 30, @"C:\cache", 8, 3), (best.FrameWindow.MemoryBudget, best.FrameWindow.SpillDirectory, best.FrameWindow.Ahead, best.FrameWindow.MaxConcurrentLoads)); Assert.Equal((1024, Titano.Core.Project.FlowQualitySetting.Best), (best.Render.AnalysisLongEdge, best.Render.DefaultFlowQuality)); - Assert.Equal(int.Min(3, Titano.Core.Analysis.Deep.DeepAnalysisOptions.Default.MaxDegreeOfParallelism), best.DeepAnalysis.MaxDegreeOfParallelism); + Assert.Equal(3, best.DeepAnalysis.MaxDegreeOfParallelism); settings.Parallelism = 1; var single = ProcessingTuning.Apply(basis, settings, 64L << 30, 16, @"C:\cache"); Assert.Equal((6L << 30, 1, 1), (single.FrameWindow.MemoryBudget, single.FrameWindow.MaxConcurrentLoads, single.DeepAnalysis.MaxDegreeOfParallelism)); + // A parallelism beyond the read-ahead widens the window, so the decodes have frames to work on. + settings.Parallelism = 12; + var wide = ProcessingTuning.Apply(basis, settings, 64L << 30, 16, @"C:\cache"); + Assert.Equal((12, 12, 12), (wide.FrameWindow.Ahead, wide.FrameWindow.MaxConcurrentLoads, wide.DeepAnalysis.MaxDegreeOfParallelism)); - // Auto: a quarter of 32 GB shared by the engine's 8 workers on 16 cores; the jobs keep their own thread counts. + // Auto: a quarter of 32 GB, and half the 16 cores at once, with no cap of the analysis threads. settings.Quality = Titano.App.Infrastructure.QualityProfile.Fast; settings.MemoryBudgetGb = null; settings.Parallelism = null; var fast = ProcessingTuning.Apply(basis, settings, 32L << 30, 16, @"C:\cache"); - Assert.Equal((1L << 30, 4), (fast.FrameWindow.MemoryBudget, fast.FrameWindow.Ahead)); - Assert.Equal((basis.FrameWindow.MaxConcurrentLoads, basis.DeepAnalysis.MaxDegreeOfParallelism), (fast.FrameWindow.MaxConcurrentLoads, fast.DeepAnalysis.MaxDegreeOfParallelism)); + Assert.Equal((8L << 30, 8), (fast.FrameWindow.MemoryBudget, fast.FrameWindow.Ahead)); + Assert.Equal((8, 8), (fast.FrameWindow.MaxConcurrentLoads, fast.DeepAnalysis.MaxDegreeOfParallelism)); Assert.Equal((256, Titano.Core.Project.FlowQualitySetting.Draft), (fast.Render.AnalysisLongEdge, fast.Render.DefaultFlowQuality)); Assert.Equal(512, ProcessingTuning.PreparationLongEdge(Titano.App.Infrastructure.QualityProfile.Balanced)); } [Test] - public void ParallelismAutoIsTheJobEnginesDefault() + public void ParallelismAutoIsHalfTheCores() { - // BRIEF §14.6: workers default to half the cores; a 4-core laptop keeps two, so a long render never blocks a scan. + // Photos the running job processes at once (owner review 1): half the cores, the archive engine's own default. Assert.Equal(8, ProcessingTuning.ParallelismAuto(16)); Assert.Equal(2, ProcessingTuning.ParallelismAuto(4)); Assert.Equal(1, ProcessingTuning.ParallelismAuto(1)); - Assert.Equal(new Titano.Data.Jobs.JobEngineOptions().Workers, ProcessingTuning.ParallelismAuto(Environment.ProcessorCount)); + Assert.Equal(Titano.Data.Archiving.ArchiveServiceOptions.DefaultParallelism, ProcessingTuning.ParallelismAuto(Environment.ProcessorCount)); + Assert.Equal(1, new Titano.Data.Jobs.JobEngineOptions().Workers); Assert.Equal(8, ProcessingTuning.Parallelism(new Titano.App.Infrastructure.AppSettings(), 16)); Assert.Equal(5, ProcessingTuning.Parallelism(new Titano.App.Infrastructure.AppSettings { Parallelism = 5 }, 16)); } diff --git a/tests/Titano.Core.Tests/Archiving/LeaseFileTests.cs b/tests/Titano.Core.Tests/Archiving/LeaseFileTests.cs index 7b8e98b8..6ffa2012 100644 --- a/tests/Titano.Core.Tests/Archiving/LeaseFileTests.cs +++ b/tests/Titano.Core.Tests/Archiving/LeaseFileTests.cs @@ -26,6 +26,30 @@ public sealed class LeaseFileTests(TestContext context) Assert.Equal("client", LeaseFile.Read(LeaseFile.PathFor(locks, "seq-1"))!.Owner); } + [Test] + public void ALeaseReleasedWhileAReaderHoldsItIsTakenOnceTheReaderLetsGo() + { + // Found under load while testing owner review 1: on Windows the released file stays pending deletion while a reader + // has it open, and creating the name answers "access denied" meanwhile instead of succeeding or saying "taken". + var locks = context.CreateTempDirectory(); + var held = LeaseFile.TryAcquire(locks, "seq-1", "server")!; + var path = LeaseFile.PathFor(locks, "seq-1"); + using var opened = new ManualResetEventSlim(); + var reader = new Thread(() => + { + using var reading = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete); + opened.Set(); + Thread.Sleep(30); + }); + reader.Start(); + Assert.True(opened.Wait(TimeSpan.FromSeconds(10)), "the reader opened the lease"); + held.Dispose(); + using var taken = LeaseFile.TryAcquire(locks, "seq-1", "client"); + reader.Join(); + Assert.NotNull(taken); + Assert.Equal("client", LeaseFile.Read(path)!.Owner); + } + [Test] public void AnExpiredLeaseOfACrashedHolderIsTakenOver() { diff --git a/tests/Titano.Core.Tests/Archiving/ManifestStoreTests.cs b/tests/Titano.Core.Tests/Archiving/ManifestStoreTests.cs index 702ea933..2fe46a45 100644 --- a/tests/Titano.Core.Tests/Archiving/ManifestStoreTests.cs +++ b/tests/Titano.Core.Tests/Archiving/ManifestStoreTests.cs @@ -58,6 +58,34 @@ public sealed class ManifestStoreTests(TestContext context) Assert.Contains(field, json); } + [Test] + public void ASidecarBeingReadIsReplacedOnceTheReaderIsDone() + { + // A thumbnail pass reads a sidecar without a lease while an upload commits to it (owner review 1). Windows refuses + // to rename over a file someone has open, so the write tries again for a moment instead of failing the upload. + var path = SidecarPath(); + var first = Sample(); + ManifestStore.WriteSequence(path, first); + // The reader runs on its own thread, so it lets go on time however busy the thread pool is. + using var opened = new ManualResetEventSlim(); + string? read = null; + var reader = new Thread(() => + { + using var reading = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete); + opened.Set(); + Thread.Sleep(150); + using var old = new StreamReader(reading); + read = old.ReadToEnd(); + }); + reader.Start(); + Assert.True(opened.Wait(TimeSpan.FromSeconds(10)), "the reader opened the sidecar"); + ManifestStore.WriteSequence(path, first with { Title = "Rooftop" }); + reader.Join(); + Assert.Contains("Harbour sunset", read); + Assert.Equal("Rooftop", ManifestStore.ReadSequence(path).Title); + Assert.Contains("Rooftop", AtomicFile.ReadAllText(path)); + } + [Test] public void UnknownFieldsAndEnumValuesFromANewerBuildAreReadAndKept() { diff --git a/tests/Titano.Core.Tests/Foundation/AtomicFileTests.cs b/tests/Titano.Core.Tests/Foundation/AtomicFileTests.cs index 62d1d6fb..ebbd914e 100644 --- a/tests/Titano.Core.Tests/Foundation/AtomicFileTests.cs +++ b/tests/Titano.Core.Tests/Foundation/AtomicFileTests.cs @@ -16,6 +16,47 @@ public sealed class AtomicFileTests(TestContext context) Assert.Count(1, Directory.GetFiles(dir)); } + [Test] + [WindowsOnly] + public void AReadOnlyTargetFailsAtOnceAndTheTemporaryFileGoes() + { + // Only a handle that holds the target clears by itself (owner review 1); a read-only file never does, so the write + // must not keep the caller waiting (a settings field on the UI thread, a pass over hundreds of sidecars). + var dir = context.CreateTempDirectory(); + var path = Path.Combine(dir, "settings.json"); + AtomicFile.WriteAllText(path, "stable"); + File.SetAttributes(path, FileAttributes.ReadOnly); + try + { + var clock = System.Diagnostics.Stopwatch.StartNew(); + Assert.Throws(() => AtomicFile.WriteAllText(path, "new")); + Assert.Less(clock.Elapsed.TotalMilliseconds, 500, "no retries"); + Assert.Equal("stable", File.ReadAllText(path)); + Assert.Count(1, Directory.GetFiles(dir)); + } + finally + { + File.SetAttributes(path, FileAttributes.Normal); + } + } + + [Test] + public void ReadsAreWholeAndShareTheFileWithOtherReaders() + { + var dir = context.CreateTempDirectory(); + var path = Path.Combine(dir, "project.json"); + File.WriteAllText(path, "é"); + using (new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete)) + { + // A byte order mark is read as File.ReadAllText reads it. + Assert.Equal("é", AtomicFile.ReadAllText(path)); + Assert.SequenceEqual(File.ReadAllBytes(path), AtomicFile.ReadAllBytes(path)); + } + File.WriteAllText(path, string.Empty); + Assert.Equal(string.Empty, AtomicFile.ReadAllText(path)); + Assert.Empty(AtomicFile.ReadAllBytes(path)); + } + [Test] public async Task FailedWriteKeepsPreviousContent() { diff --git a/tests/Titano.Data.Tests/Archiving/OrderedWorkTests.cs b/tests/Titano.Data.Tests/Archiving/OrderedWorkTests.cs new file mode 100644 index 00000000..b0e70175 --- /dev/null +++ b/tests/Titano.Data.Tests/Archiving/OrderedWorkTests.cs @@ -0,0 +1,132 @@ +using Titano.Data.Archiving; +using Titano.Testing; + +namespace Titano.Data.Tests.Archiving; + +/// Several photos of a pass at once (owner review 1, R2), their results taken in order. +public sealed class OrderedWorkTests +{ + [Test] + public async Task ResultsAreTakenInOrderWhateverFinishesFirst() + { + var taken = new List(); + await using (var work = new OrderedWork(4, n => + { + taken.Add(n); + return ValueTask.CompletedTask; + }, CancellationToken.None)) + { + for (var i = 0; i < 24; i++) + { + var n = i; + // The later items are the quicker ones. + await work.AddAsync(_ => + { + Thread.Sleep((24 - n) * 2); + return n; + }); + if (n % 5 == 0) await work.AddAsync(1000 + n); + } + await work.CompleteAsync(); + } + int[] expected = [.. Enumerable.Range(0, 24).SelectMany(n => n % 5 == 0 ? new[] { n, 1000 + n } : [n])]; + Assert.SequenceEqual(expected, taken); + } + + [Test] + public async Task ExactlyTheParallelismRunsAtOnceAndOneRunsInline() + { + var running = 0; + var peak = 0; + await using (var work = new OrderedWork(3, _ => ValueTask.CompletedTask, CancellationToken.None)) + { + for (var i = 0; i < 12; i++) + { + await work.AddAsync(_ => + { + var now = Interlocked.Increment(ref running); + int seen; + while ((seen = Volatile.Read(ref peak)) < now && Interlocked.CompareExchange(ref peak, now, seen) != seen) + { + } + // Each waits for two others, which proves three run together whatever the load (the pool adds threads). + SpinWait.SpinUntil(() => Volatile.Read(ref peak) >= 3, TimeSpan.FromSeconds(10)); + Thread.Sleep(2); + Interlocked.Decrement(ref running); + return 0; + }); + } + await work.CompleteAsync(); + } + Assert.Equal(3, peak); + + var caller = Environment.CurrentManagedThreadId; + var threads = new List(); + await using (var single = new OrderedWork(1, _ => ValueTask.CompletedTask, CancellationToken.None)) + { + for (var i = 0; i < 3; i++) + { + await single.AddAsync(_ => + { + threads.Add(Environment.CurrentManagedThreadId); + return 0; + }); + } + await single.CompleteAsync(); + } + Assert.SequenceEqual([caller, caller, caller], threads); + } + + [Test] + public async Task AFailureStopsTheWorkStillRunningBeforeThePassEnds() + { + var started = 0; + var finished = 0; + var stopped = 0; + var taken = new List(); + var work = new OrderedWork(4, n => + { + taken.Add(n); + return ValueTask.CompletedTask; + }, CancellationToken.None); + var failure = await Assert.ThrowsAsync(async () => + { + try + { + for (var i = 0; i < 8; i++) + { + var n = i; + await work.AddAsync(ct => + { + Interlocked.Increment(ref started); + try + { + if (n == 2) throw new InvalidDataException("damaged photo"); + if (n > 2) + { + // The photos after the damaged one take long, until the pass stops them. + if (ct.WaitHandle.WaitOne(TimeSpan.FromSeconds(10))) Interlocked.Increment(ref stopped); + ct.ThrowIfCancellationRequested(); + } + return n; + } + finally + { + Interlocked.Increment(ref finished); + } + }); + } + await work.CompleteAsync(); + } + finally + { + await work.DisposeAsync(); + } + }); + Assert.Equal("damaged photo", failure.Message); + Assert.SequenceEqual([0, 1], taken); + // Nothing the pass started outlives it. + Assert.Equal(Volatile.Read(ref started), Volatile.Read(ref finished)); + Assert.Equal(Volatile.Read(ref started) - 3, Volatile.Read(ref stopped)); + } +} diff --git a/tests/Titano.Data.Tests/Archiving/ParallelPassTests.cs b/tests/Titano.Data.Tests/Archiving/ParallelPassTests.cs new file mode 100644 index 00000000..7a28c0c6 --- /dev/null +++ b/tests/Titano.Data.Tests/Archiving/ParallelPassTests.cs @@ -0,0 +1,97 @@ +using Titano.Core.Archiving; +using Titano.Data.Archiving; +using Titano.Testing; +using static Titano.Data.Tests.Archiving.ArchiveFixture; + +namespace Titano.Data.Tests.Archiving; + +/// +/// Thumbnail and proxy passes working on several photos at once (owner review 1, R2: the parallelism decides how many +/// photos the running job processes at once): the same images as one at a time, written in frame order, and checkpoints +/// that still mean every frame before them is done. +/// +[Category("archive")] +public sealed class ParallelPassTests(TestContext context) +{ + [Test] + public async Task SeveralPhotosAtOnceDrawTheSameThumbnailsInFrameOrder() + { + await using var fx = await CreateAsync(context); + // The pass commits its pack and checkpoints every 200 frames. + Photos.WriteSeries(Path.Combine(fx.Paths.Root, "a"), Start, 430); + await fx.ScanAsync(); + var location = (await fx.Db.Sequences.ListLocationsAsync(fx.Archive.Id)).Single(); + var sequence = (await fx.Db.Sequences.GetAsync(location.Id))!; + var folder = fx.Paths.Sequence("a"); + + var parallel = new ArchiveService(fx.Db, new ArchiveServiceOptions { Owner = "test", Parallelism = () => 4 }); + var checkpoints = new List<(int Next, int Total)>(); + var result = await parallel.Images.BuildThumbnailsAsync(fx.Archive, sequence, false, 0, (next, total) => + { + checkpoints.Add((next, total)); + return ValueTask.CompletedTask; + }, fx.Ct); + Assert.Equal((430, 0, 0), (result.Built, result.Reused, result.Undecodable)); + Assert.SequenceEqual([(200, 430), (400, 430)], checkpoints); + + Dictionary drawn; + using (var pack = ThumbPackReader.Open(folder.ThumbsPackPath)) + { + var entries = pack.Entries.Values.OrderBy(e => e.FrameIndex).ToList(); + Assert.Count(430, entries); + // Appended in frame order, as one at a time. + Assert.SequenceEqual(entries.Select(e => e.Offset).Order(), entries.Select(e => e.Offset)); + drawn = entries.ToDictionary(e => e.FrameIndex, e => pack.Read(e.FrameIndex)!); + } + + var single = new ArchiveService(fx.Db, new ArchiveServiceOptions { Owner = "test", Parallelism = () => 1 }); + await single.Images.BuildThumbnailsAsync(fx.Archive, sequence, force: true, 0, (_, _) => ValueTask.CompletedTask, fx.Ct); + using (var pack = ThumbPackReader.Open(folder.ThumbsPackPath)) + { + foreach (var (index, jpeg) in drawn) Assert.SequenceEqual(jpeg, pack.Read(index)!); + } + } + + [Test] + public async Task SeveralPhotosAtOnceWriteEveryProxyAndAResumedPassChecksWhatTheEarlierRunDid() + { + await using var fx = await CreateAsync(context); + Photos.WriteSeries(Path.Combine(fx.Paths.Root, "a"), Start, 24); + await fx.ScanAsync(); + var location = (await fx.Db.Sequences.ListLocationsAsync(fx.Archive.Id)).Single(); + var sequence = (await fx.Db.Sequences.GetAsync(location.Id))!; + var folder = fx.Paths.Sequence("a"); + var parallel = new ArchiveService(fx.Db, new ArchiveServiceOptions { Owner = "test", Parallelism = () => 6 }); + + // Resumed at frame 10: it makes the proxies from there on, and those before it, which the earlier run should have + // made, are missing, so the sequence is not built. + var resumed = await parallel.Images.BuildProxiesAsync(fx.Archive, sequence, false, 10, (_, _) => ValueTask.CompletedTask, fx.Ct); + Assert.Equal((14, 0, 0), (resumed.Built, resumed.Reused, resumed.Undecodable)); + Assert.FileMissing(folder.Proxy(0)); + Assert.FileExists(folder.Proxy(10)); + Assert.False((await fx.Db.Sequences.GetAsync(location.Id))!.Status.HasFlag(Titano.Core.Model.SequenceStatus.ProxiesBuilt), "not built"); + + var full = await parallel.Images.BuildProxiesAsync(fx.Archive, sequence, false, 0, (_, _) => ValueTask.CompletedTask, fx.Ct); + Assert.Equal((10, 14), (full.Built, full.Reused)); + foreach (var frame in ManifestStore.ReadSequence(folder.ManifestPath).Frames) + Assert.True(ArchiveImages.IsProxyOf(folder.Proxy(frame.I), frame.CapturedAt, frame.W, frame.H, null), $"proxy of {frame.File}"); + Assert.True((await fx.Db.Sequences.GetAsync(location.Id))!.Status.HasFlag(Titano.Core.Model.SequenceStatus.ProxiesBuilt), "built"); + } + + [Test] + public void LargeOriginalsDecodeFewerAtOnceWithinTheMemoryBudget() + { + // 24 MP takes some 768 MB while it is decoded. + const long sensor24 = 6000 * 4000; + Assert.Equal(2, DecodeBudget.PhotosAtOnce(8, 2L << 30, sensor24)); + Assert.Equal(1, DecodeBudget.PhotosAtOnce(8, 512L << 20, sensor24)); + Assert.Equal(8, DecodeBudget.PhotosAtOnce(8, 64L << 30, sensor24)); + Assert.Equal(1, DecodeBudget.PhotosAtOnce(1, 64L << 30, sensor24)); + // Small photos all fit; an unknown size counts as 24 MP. + Assert.Equal(8, DecodeBudget.PhotosAtOnce(8, 2L << 30, 48 * 32)); + Assert.Equal(2, DecodeBudget.PhotosAtOnce(8, 2L << 30, 0)); + // The size a damaged file claims never overflows: one decode at a time. + Assert.Equal(1, DecodeBudget.PhotosAtOnce(8, 64L << 30, 1L << 59)); + Assert.Equal(1, DecodeBudget.PhotosAtOnce(8, 64L << 30, long.MaxValue)); + } +} diff --git a/tests/Titano.Data.Tests/Jobs/JobEngineTests.cs b/tests/Titano.Data.Tests/Jobs/JobEngineTests.cs index 67169ad1..c3222b16 100644 --- a/tests/Titano.Data.Tests/Jobs/JobEngineTests.cs +++ b/tests/Titano.Data.Tests/Jobs/JobEngineTests.cs @@ -252,63 +252,186 @@ public sealed class JobEngineTests(TestContext context) Assert.Empty((await db.Jobs.ListAsync(null, JobKind.LightAnalyse)).Items); } - [Test] - public async Task TheNumberOfWorkersChangesWhileTheEngineRuns() + /// Waits until holds, failing with after ten seconds. + private static async Task UntilAsync(Func condition, string what) { - await using var db = await OpenAsync(); - var running = 0; - var started = 0; - var release = new SemaphoreSlim(0); - var handler = new CallbackHandler(JobKind.Thumbs, async c => + var until = DateTime.UtcNow.AddSeconds(10); + while (!condition()) { - Interlocked.Increment(ref running); - Interlocked.Increment(ref started); + Assert.True(DateTime.UtcNow < until, what); + await Task.Delay(20); + } + } + + /// A handler whose jobs run until released, counting those running and started, by kind. + private sealed class GatedHandler(JobKind kind, SemaphoreSlim release) : IJobHandler + { + public int Running; + public int Started; + + public JobKind Kind => kind; + + public async Task RunAsync(JobContext c) + { + Interlocked.Increment(ref Running); + Interlocked.Increment(ref Started); try { await release.WaitAsync(c.Cancellation); } finally { - Interlocked.Decrement(ref running); - } - }); - await using var engine = new JobEngine(db, [handler], new JobEngineOptions { Workers = 1, WorkerId = "pc", PollInterval = TimeSpan.FromMilliseconds(50) }); - await engine.StartAsync(); - var jobs = new List(); - for (var i = 0; i < 6; i++) jobs.Add(await engine.EnqueueAsync(JobKind.Thumbs, [])); - - async Task UntilAsync(Func condition, string what) - { - var until = DateTime.UtcNow.AddSeconds(10); - while (!condition()) - { - Assert.True(DateTime.UtcNow < until, what); - await Task.Delay(20); + Interlocked.Decrement(ref Running); } } + } - // One worker: one job at a time. - await UntilAsync(() => Volatile.Read(ref running) == 1, "the first job runs"); + [Test] + public async Task JobsRunOneAtATimeAndPausingStartsTheNext() + { + // Owner review 1 (R2): one job at a time by default; pausing the running job lets the next one start. + await using var db = await OpenAsync(); + var release = new SemaphoreSlim(0); + var handler = new GatedHandler(JobKind.Thumbs, release); + await using var engine = new JobEngine(db, [handler], new JobEngineOptions { WorkerId = "pc", PollInterval = TimeSpan.FromMilliseconds(50) }); + Assert.Equal(1, engine.Options.Workers); + await engine.StartAsync(); + var jobs = new List(); + for (var i = 0; i < 3; i++) jobs.Add(await engine.EnqueueAsync(JobKind.Thumbs, [])); + + await UntilAsync(() => Volatile.Read(ref handler.Running) == 1, "the first job runs"); await Task.Delay(300); - Assert.Equal(1, Volatile.Read(ref running)); + Assert.Equal((1, 1), (Volatile.Read(ref handler.Running), Volatile.Read(ref handler.Started))); + Assert.Count(1, engine.RunningJobIds); + var first = engine.RunningJobIds.First(); + Assert.Equal("pc", (await db.Jobs.GetAsync(first))!.NodeId); - // Three workers: two more jobs start at once, and no fourth. - engine.SetWorkers(3); - Assert.Equal(3, engine.Workers); - await UntilAsync(() => Volatile.Read(ref running) == 3, "three jobs run together"); + await engine.PauseAsync(first); + await UntilAsync(() => Volatile.Read(ref handler.Started) == 2 && Volatile.Read(ref handler.Running) == 1, "the next job starts"); + Assert.Equal(JobState.Paused, (await db.Jobs.GetAsync(first))!.State); + + release.Release(10); + foreach (var job in jobs.Where(j => j.Id != first)) await WaitForStateAsync(db, job.Id, JobState.Done, TimeSpan.FromSeconds(10)); + Assert.Equal(JobState.Paused, (await db.Jobs.GetAsync(first))!.State); + } + + [Test] + public async Task WithoutThePriorityQueueARunningJobIsNeverInterrupted() + { + await using var db = await OpenAsync(); + var release = new SemaphoreSlim(0); + var scan = new GatedHandler(JobKind.Scan, release); + var render = new GatedHandler(JobKind.Render, release); + await using var engine = new JobEngine(db, [scan, render], new JobEngineOptions { WorkerId = "pc", PollInterval = TimeSpan.FromMilliseconds(50) }); + await engine.StartAsync(); + var scanning = await engine.EnqueueAsync(JobKind.Scan, []); + await UntilAsync(() => Volatile.Read(ref scan.Running) == 1, "the scan runs"); + var rendering = await engine.EnqueueAsync(JobKind.Render, [], priority: JobPriority.User); + await Task.Delay(400); + Assert.Equal((1, 0), (Volatile.Read(ref scan.Running), Volatile.Read(ref render.Started))); + Assert.Equal(JobState.Queued, (await db.Jobs.GetAsync(rendering.Id))!.State); + + release.Release(10); + await WaitForStateAsync(db, scanning.Id, JobState.Done, TimeSpan.FromSeconds(10)); + await WaitForStateAsync(db, rendering.Id, JobState.Done, TimeSpan.FromSeconds(10)); + Assert.Equal(1, Volatile.Read(ref scan.Started)); + } + + [Test] + public async Task AHigherJobPausesTheRunningOneWhichResumesFromItsCheckpoint() + { + // Owner review 1 (R2): with render at the highest level, starting a render while a scan runs pauses the scan + // without asking, renders, and resumes the scan by itself where it was. + await using var db = await OpenAsync(); + var checkpointed = new TaskCompletionSource(); + var go = new SemaphoreSlim(0); + var scan = new CountingHandler(JobKind.Scan, 4, async (i, ct) => + { + if (i < 2) return; + checkpointed.TrySetResult(); + await go.WaitAsync(ct); + }); + var renderRelease = new SemaphoreSlim(0); + var render = new GatedHandler(JobKind.Render, renderRelease); + var queue = new JobPriorityQueue { Enabled = true }; + Assert.Equal((JobKindPriority.High, JobKindPriority.Normal), (queue.LevelOf(JobKind.Render), queue.LevelOf(JobKind.Scan))); + await using var engine = new JobEngine(db, [scan, render], + new JobEngineOptions { WorkerId = "pc", PollInterval = TimeSpan.FromMilliseconds(50), PriorityQueue = () => queue }); + await engine.StartAsync(); + var scanning = await engine.EnqueueAsync(JobKind.Scan, []); + await checkpointed.Task.WaitAsync(TimeSpan.FromSeconds(10)); + + var rendering = await engine.EnqueueAsync(JobKind.Render, [], priority: JobPriority.User); + await UntilAsync(() => Volatile.Read(ref render.Running) == 1, "the render starts at once"); + var paused = await db.Jobs.GetAsync(scanning.Id); + Assert.Equal((JobState.Queued, "2", (string?)null), (paused!.State, paused.Checkpoint, paused.NodeId)); + Assert.Contains(Titano.Core.Localization.Loc.L("Jobs.Kind.Render"), paused.LogTail); + + // The scan waits while the render runs, then resumes from its checkpoint without being asked. + go.Release(10); await Task.Delay(300); - Assert.Equal(3, Volatile.Read(ref running)); + Assert.Equal(JobState.Queued, (await db.Jobs.GetAsync(scanning.Id))!.State); + renderRelease.Release(); + await WaitForStateAsync(db, rendering.Id, JobState.Done, TimeSpan.FromSeconds(10)); + await WaitForStateAsync(db, scanning.Id, JobState.Done, TimeSpan.FromSeconds(10)); + lock (scan.SeenCheckpoints) Assert.SequenceEqual([null, "2"], scan.SeenCheckpoints); + Assert.Equal(1, scan.Completed); + } - // Back to one: the running jobs finish undisturbed, then a single worker carries on. - engine.SetWorkers(1); - release.Release(3); - await UntilAsync(() => Volatile.Read(ref started) == 4 && Volatile.Read(ref running) == 1, "one job after the three"); - await Task.Delay(300); - Assert.Equal((4, 1), (Volatile.Read(ref started), Volatile.Read(ref running))); + [Test] + public async Task OnlyAHigherLevelInterruptsAndNeverTheJobsOwnFollowUps() + { + await using var db = await OpenAsync(); + var release = new SemaphoreSlim(0); + var queued = new TaskCompletionSource(); + // The light analysis queues a deep analysis of the same sequence, which the user put higher. + var light = new CallbackHandler(JobKind.LightAnalyse, async c => + { + queued.TrySetResult(await c.EnqueueFollowUpAsync(JobKind.DeepAnalyse, [Guid.NewGuid()], "Roof", null, JobPriority.Background)); + await release.WaitAsync(c.Cancellation); + }); + var deep = new GatedHandler(JobKind.DeepAnalyse, release); + var thumbs = new GatedHandler(JobKind.Thumbs, release); + var queue = new JobPriorityQueue + { + Enabled = true, + Levels = new Dictionary { [JobKind.DeepAnalyse] = JobKindPriority.High, [JobKind.Thumbs] = JobKindPriority.Normal }, + }; + await using var engine = new JobEngine(db, [light, deep, thumbs], + new JobEngineOptions { WorkerId = "pc", PollInterval = TimeSpan.FromMilliseconds(50), PriorityQueue = () => queue }); + await engine.StartAsync(); + var analysing = await engine.EnqueueAsync(JobKind.LightAnalyse, []); + var followUp = Assert.NotNull(await queued.Task.WaitAsync(TimeSpan.FromSeconds(10))); + // A job of the same level waits too. + var drawing = await engine.EnqueueAsync(JobKind.Thumbs, [], priority: JobPriority.User); + await Task.Delay(400); + Assert.Equal(JobState.Running, (await db.Jobs.GetAsync(analysing.Id))!.State); + Assert.Equal((0, 0), (Volatile.Read(ref deep.Started), Volatile.Read(ref thumbs.Started))); + Assert.False(await engine.ReviewAsync(context.Cancellation)); - release.Release(3); - foreach (var job in jobs) await WaitForStateAsync(db, job.Id, JobState.Done, TimeSpan.FromSeconds(10)); - Assert.Throws(() => engine.SetWorkers(0)); + // Another deep analysis, not its own, interrupts it. + var other = await engine.EnqueueAsync(JobKind.DeepAnalyse, [Guid.NewGuid()], priority: JobPriority.User); + await UntilAsync(() => Volatile.Read(ref deep.Running) == 1, "a higher job runs"); + Assert.Equal(JobState.Queued, (await db.Jobs.GetAsync(analysing.Id))!.State); + release.Release(20); + foreach (var id in new[] { analysing.Id, followUp.Id, drawing.Id, other.Id }) await WaitForStateAsync(db, id, JobState.Done, TimeSpan.FromSeconds(10)); + } + + [Test] + public async Task RequeueingAYieldedJobLeavesPausesAndOtherNodesAlone() + { + await using var db = await OpenAsync(); + var job = new Job { Id = Guid.CreateVersion7(), Kind = JobKind.Verify, State = JobState.Queued, Created = DateTimeOffset.UtcNow }; + await db.Jobs.EnqueueAsync(job); + Assert.NotNull(await db.Jobs.ClaimNextAsync("pc")); + Assert.False(await db.Jobs.RequeueAsync(job.Id, "other")); + await db.Jobs.SetStateAsync(job.Id, JobState.Paused); + Assert.False(await db.Jobs.RequeueAsync(job.Id, "pc")); + Assert.Equal(JobState.Paused, (await db.Jobs.GetAsync(job.Id))!.State); + await db.Jobs.SetStateAsync(job.Id, JobState.Queued); + Assert.NotNull(await db.Jobs.ClaimNextAsync("pc")); + Assert.True(await db.Jobs.RequeueAsync(job.Id, "pc")); + Assert.Equal((JobState.Queued, (string?)null), ((await db.Jobs.GetAsync(job.Id))!.State, (await db.Jobs.GetAsync(job.Id))!.NodeId)); } [Test] diff --git a/tests/Titano.Data.Tests/Jobs/JobPriorityQueueTests.cs b/tests/Titano.Data.Tests/Jobs/JobPriorityQueueTests.cs new file mode 100644 index 00000000..877cac3e --- /dev/null +++ b/tests/Titano.Data.Tests/Jobs/JobPriorityQueueTests.cs @@ -0,0 +1,106 @@ +using Titano.Core.Model; +using Titano.Data.Jobs; +using Titano.Testing; + +namespace Titano.Data.Tests.Jobs; + +/// The priority queue of the settings (owner review 1, R2): levels per kind of job, the claim order and what interrupts. +[Category("jobs")] +public sealed class JobPriorityQueueTests +{ + private static readonly DateTimeOffset T0 = new(2026, 10, 16, 9, 0, 0, TimeSpan.Zero); + + [Test] + public void RendersImportsAndDownloadsComeFirstAndTheLongResumablePassesLast() + { + var queue = new JobPriorityQueue(); + Assert.Equal(JobKindPriority.High, queue.LevelOf(JobKind.Render)); + Assert.Equal(JobKindPriority.High, queue.LevelOf(JobKind.Import)); + Assert.Equal(JobKindPriority.High, queue.LevelOf(JobKind.Download)); + Assert.Equal(JobKindPriority.Low, queue.LevelOf(JobKind.Verify)); + Assert.Equal(JobKindPriority.Low, queue.LevelOf(JobKind.Proxies)); + foreach (var kind in new[] { JobKind.Scan, JobKind.Thumbs, JobKind.LightAnalyse, JobKind.DeepAnalyse, JobKind.Maintenance }) + Assert.Equal(JobKindPriority.Normal, queue.LevelOf(kind)); + // A level the user set wins over the default. + Assert.Equal(JobKindPriority.Low, (queue with { Levels = new Dictionary { [JobKind.Render] = JobKindPriority.Low } }).LevelOf(JobKind.Render)); + } + + [Test] + public void OnlyAHigherLevelInterruptsAndOnlyWhileTheQueueIsOn() + { + var on = new JobPriorityQueue { Enabled = true }; + Assert.True(on.Interrupts(JobKind.Render, JobKind.Scan)); + Assert.True(on.Interrupts(JobKind.Scan, JobKind.Verify)); + Assert.False(on.Interrupts(JobKind.Scan, JobKind.Render)); + Assert.False(on.Interrupts(JobKind.Thumbs, JobKind.Scan)); + Assert.False(on.Interrupts(JobKind.Import, JobKind.Render)); + Assert.False(JobPriorityQueue.Off.Interrupts(JobKind.Render, JobKind.Verify)); + } + + [Test] + public void TheQueueOrdersByLevelThenPriorityThenAge() + { + var on = new JobPriorityQueue { Enabled = true }; + var oldVerify = Job(JobKind.Verify, JobPriority.User, -30); + var backgroundScan = Job(JobKind.Scan, JobPriority.Background, -20); + var userThumbs = Job(JobKind.Thumbs, JobPriority.User, -10); + var render = Job(JobKind.Render, JobPriority.Normal, 0); + Job[] jobs = [oldVerify, backgroundScan, userThumbs, render]; + + Assert.SequenceEqual([render, userThumbs, backgroundScan, oldVerify], Sorted(jobs, on)); + // Off, the strict queue of before: priority, then age. + Assert.SequenceEqual([oldVerify, userThumbs, render, backgroundScan], Sorted(jobs, JobPriorityQueue.Off)); + // Two jobs alike fall back to the id. + var twin = render with { Id = Guid.CreateVersion7() }; + Assert.True(on.ClaimsBefore(render, twin) != on.ClaimsBefore(twin, render)); + } + + [Test] + public void SettingsKeepOnlyTheLevelsThatDifferAndSkipWhatTheyCannotRead() + { + var queue = JobPriorityQueue.From(true, new Dictionary + { + ["deep-analyse"] = "high", + ["Scan"] = "LOW", + ["render"] = "high", + ["teleport"] = "high", + ["verify"] = "urgent", + ["99"] = "low", + }); + Assert.True(queue.Enabled); + Assert.Equal((JobKindPriority.High, JobKindPriority.Low, JobKindPriority.Low), (queue.LevelOf(JobKind.DeepAnalyse), queue.LevelOf(JobKind.Scan), queue.LevelOf(JobKind.Verify))); + + var stored = JobPriorityQueue.Changed(Enum.GetValues().ToDictionary(k => k, queue.LevelOf)); + Assert.SequenceEqual(["deep-analyse", "scan"], stored.Keys.Order(StringComparer.Ordinal)); + Assert.Equal(("high", "low"), (stored["deep-analyse"], stored["scan"])); + var reread = JobPriorityQueue.From(true, stored); + foreach (var kind in Enum.GetValues()) Assert.Equal(queue.LevelOf(kind), reread.LevelOf(kind)); + Assert.Equal(JobKindPriority.High, JobPriorityQueue.From(false, stored).LevelOf(JobKind.DeepAnalyse)); + Assert.False(JobPriorityQueue.From(false, null).Enabled); + } + + [Test] + public void TheClaimOrderOfTheDatabaseListsOnlyTheLevelsOtherThanNormal() + { + var on = new JobPriorityQueue { Enabled = true }; + Assert.Equal(string.Empty, JobPriorityQueue.Off.OrderSql([JobKind.Render, JobKind.Verify])); + Assert.Equal(string.Empty, on.OrderSql([JobKind.Scan, JobKind.Thumbs])); + Assert.Equal("CASE WHEN kind IN (7) THEN 2 WHEN kind IN (2) THEN 0 ELSE 1 END DESC, ", on.OrderSql([JobKind.Render, JobKind.Verify, JobKind.Scan, JobKind.Render])); + } + + private static Job[] Sorted(Job[] jobs, JobPriorityQueue queue) + { + var list = jobs.ToList(); + list.Sort((a, b) => a.Id == b.Id ? 0 : queue.ClaimsBefore(a, b) ? -1 : 1); + return [.. list]; + } + + private static Job Job(JobKind kind, JobPriority priority, int minutes) => new() + { + Id = Guid.CreateVersion7(), + Kind = kind, + Priority = priority, + State = JobState.Queued, + Created = T0.AddMinutes(minutes), + }; +} diff --git a/tests/Titano.Data.Tests/Processing/DecodeParallelismTests.cs b/tests/Titano.Data.Tests/Processing/DecodeParallelismTests.cs new file mode 100644 index 00000000..1e49c38b --- /dev/null +++ b/tests/Titano.Data.Tests/Processing/DecodeParallelismTests.cs @@ -0,0 +1,176 @@ +using Titano.Core.Analysis.Deep; +using Titano.Core.Archiving; +using Titano.Core.Imaging; +using Titano.Core.Imaging.Decoders; +using Titano.Core.Model; +using Titano.Data.Archiving; +using Titano.Data.Processing; +using Titano.Testing; +using SequenceFrames = Titano.Data.Processing.SequenceFrames; + +namespace Titano.Data.Tests.Processing; + +/// +/// Photos decoded at once (owner review 1, R2): the whole parallelism, unless developing large originals whole would +/// exceed the memory budget. Only the decodes that develop an original count: a JPEG at least twice the size asked for +/// decodes scaled down, and a frame read through its proxy or an embedded preview of that size needs no development. +/// +public sealed class DecodeParallelismTests +{ + /// 2 GiB: two 24 MP developments (some 768 MB each), one of 45 MP. + private const long Budget = 2L << 30; + + private static readonly ImageDecoder Server = DecoderFactory.CreateServer(); + + [Test] + public void WhatADecodeDevelopsWholeDependsOnTheFormatTheSizeAskedForAndThePreview() + { + const int w = 6000, h = 4000; + Assert.Equal(0, DecodeBudget.Developed(ImageFileFormat.Jpeg, w, h, 0, 320, preferPreview: false)); + Assert.Equal(0, DecodeBudget.Developed(ImageFileFormat.Jpeg, w, h, 0, 3000, preferPreview: false)); + // A 4K render of a 24 MP JPEG decodes it nearly whole; full size (0) always does. + Assert.Equal(24_000_000, DecodeBudget.Developed(ImageFileFormat.Jpeg, w, h, 0, 3840, preferPreview: false)); + Assert.Equal(24_000_000, DecodeBudget.Developed(ImageFileFormat.Jpeg, w, h, 0, 0, preferPreview: true)); + // A preview reaching the size serves only decodes that prefer previews; a render develops the RAW. + Assert.Equal(0, DecodeBudget.Developed(ImageFileFormat.Cr2, w, h, 1620, 512, preferPreview: true)); + Assert.Equal(24_000_000, DecodeBudget.Developed(ImageFileFormat.Cr2, w, h, 1620, 512, preferPreview: false)); + Assert.Equal(24_000_000, DecodeBudget.Developed(ImageFileFormat.Cr2, w, h, 1620, 2048, preferPreview: true)); + Assert.Equal(24_000_000, DecodeBudget.Developed(ImageFileFormat.Tiff, w, h, 0, 320, preferPreview: true)); + // Only RAW decoders take a preview by choice: a TIFF's or a HEIF's is never a shortcut. + Assert.Equal(24_000_000, DecodeBudget.Developed(ImageFileFormat.Tiff, w, h, w, 512, preferPreview: true)); + Assert.Equal(24_000_000, DecodeBudget.Developed(ImageFileFormat.Heif, w, h, 512, 512, preferPreview: true)); + Assert.Equal(0, DecodeBudget.Developed(ImageFileFormat.Dng, w, h, 1024, 512, preferPreview: true)); + Assert.Equal(DecodeBudget.UnknownPixels, DecodeBudget.Developed(ImageFileFormat.Png, 0, 0, 0, 320, preferPreview: true)); + } + + [Test] + public void ThumbnailAndProxyPassesHoldBackOnlyForTheOriginalsTheyDevelop() + { + static SidecarFrame Frame(ImageFileFormat format, int width, int height, int? preview = null) => + new() { Id = Guid.NewGuid(), File = "f", Format = format, W = width, H = height, PreviewW = preview, PreviewH = preview * 2 / 3 }; + static int Thumbnails(params SidecarFrame[] frames) => ArchiveImages.PassParallelism(8, Budget, frames, 320, preferPreview: true, Server); + static int Proxies(int edge, params SidecarFrame[] frames) => ArchiveImages.PassParallelism(8, Budget, frames, edge, preferPreview: false, Server); + + Assert.Equal(8, Thumbnails(Frame(ImageFileFormat.Jpeg, 8192, 5464), Frame(ImageFileFormat.Cr2, 8192, 5464, preview: 1620))); + // A HEIF the server reads through its proxy or preview develops nothing either. + Assert.Equal(8, Thumbnails(Frame(ImageFileFormat.Heif, 8192, 5464))); + // A 45 MP TIFF is decoded whole: one at a time within 2 GiB, whatever the JPEGs beside it. + Assert.Equal(1, Thumbnails(Frame(ImageFileFormat.Jpeg, 8192, 5464), Frame(ImageFileFormat.Tiff, 8192, 5464))); + // A RAW whose preview is smaller than the thumbnail is developed; a size nobody knows counts as 24 MP. + Assert.Equal(2, Thumbnails(Frame(ImageFileFormat.Cr2, 6000, 4000, preview: 160))); + Assert.Equal(2, Thumbnails(Frame(ImageFileFormat.Png, 0, 0))); + Assert.Equal(1, ArchiveImages.PassParallelism(0, Budget, [Frame(ImageFileFormat.Jpeg, 48, 32)], 320, preferPreview: true, Server)); + // Proxies of 2048 px scale JPEGs down but develop every RAW, preview or not; full-size proxies decode JPEGs whole. + Assert.Equal(8, Proxies(2048, Frame(ImageFileFormat.Jpeg, 8192, 5464))); + Assert.Equal(2, Proxies(2048, Frame(ImageFileFormat.Cr2, 6000, 4000, preview: 6000))); + Assert.Equal(2, Proxies(0, Frame(ImageFileFormat.Jpeg, 6000, 4000))); + } + + [Test] + public void ADeepAnalysisHoldsBackOnlyForTheOriginalsItDevelops() + { + var analysis = DeepAnalysisOptions.Default with { MaxDegreeOfParallelism = 8 }; + Assert.Equal(8, SequenceAnalyser.AnalysisParallelism(analysis, Frames((ImageFileFormat.Jpeg, 8192, 5464, 0)), Budget)); + // A DNG whose embedded preview reaches the analysis size (half the long edge, at most 2048 px) develops nothing. + Assert.Equal(8, SequenceAnalyser.AnalysisParallelism(analysis, Frames((ImageFileFormat.Dng, 5568, 4872, 2784)), Budget)); + Assert.Equal(1, SequenceAnalyser.AnalysisParallelism(analysis, Frames((ImageFileFormat.Dng, 5568, 4872, 1024), (ImageFileFormat.Tiff, 8192, 5464, 0)), Budget)); + // Frames read through their proxies decode as JPEGs. + Assert.Equal(8, SequenceAnalyser.AnalysisParallelism(analysis, Frames((ImageFileFormat.Tiff, 8192, 5464, 0)) with { Proxied = [true] }, Budget)); + } + + [Test] + public async Task AWindowHoldsBackWheneverItsDecodesDevelopOriginals() + { + var window = new FrameWindowOptions { MemoryBudget = Budget, MaxConcurrentLoads = 8, Ahead = 8 }; + var tiffs = Frames((ImageFileFormat.Tiff, 8192, 5464, 0), (ImageFileFormat.Tiff, 8192, 5464, 0)); + // A render node renders downloaded originals without counting what they decode (Originals unset): still held back. + await using (var node = new SequenceFrameSource(tiffs, tiffs.LightFrames(), Server, window)) + { + Assert.Equal(1, node.WindowOptions(1920, DecodePurpose.Render).MaxConcurrentLoads); + // A preparation pass decodes TIFFs whole too. + Assert.Equal(1, node.WindowOptions(512, DecodePurpose.Analysis).MaxConcurrentLoads); + Assert.Equal((Budget, 8), (node.WindowOptions(1920, DecodePurpose.Render).MemoryBudget, node.WindowOptions(1920, DecodePurpose.Render).Ahead)); + } + // RAWs whose previews reach the preparation's size: the preparation runs them all, the render develops them. + var raws = Frames((ImageFileFormat.Cr2, 6000, 4000, 1620), (ImageFileFormat.Cr2, 6000, 4000, 1620)); + await using (var raw = new SequenceFrameSource(raws, raws.LightFrames(), Server, window) { Originals = true }) + { + Assert.Equal(8, raw.WindowOptions(512, DecodePurpose.Analysis).MaxConcurrentLoads); + Assert.Equal(2, raw.WindowOptions(1920, DecodePurpose.Render).MaxConcurrentLoads); + } + // Proxies decode as JPEGs, flagged or found in a proxy cache's .jpg files. + await using (var proxied = new SequenceFrameSource(tiffs with { Proxied = [true, true] }, tiffs.LightFrames(), Server, window)) + Assert.Equal(8, proxied.WindowOptions(1920, DecodePurpose.Render).MaxConcurrentLoads); + var cached = raws with { Files = ["cache/0001.jpg", "cache/0002.JPG"] }; + await using var cache = new SequenceFrameSource(cached, cached.LightFrames(), Server, window); + Assert.Equal(8, cache.WindowOptions(1920, DecodePurpose.Render).MaxConcurrentLoads); + } + + [Test] + public async Task ADemandLoadWaitsForTheReadAheadOfADevelopingWindow() + { + // The window caps its read-ahead only: a render that skips frames (a speed-up) asks for a frame the read-ahead is + // not decoding while it develops another, and both would run. One development at a time fits this budget. + var decoder = new CountingDecoder(); + var tiffs = Frames([.. Enumerable.Repeat((ImageFileFormat.Tiff, 8192, 5464, 0), 8)]); + var frames = tiffs with { Files = [.. tiffs.Files.Select(f => f + ".tif")] }; + var window = new FrameWindowOptions { MemoryBudget = Budget, MaxConcurrentLoads = 8, Ahead = 8 }; + await using (var source = new SequenceFrameSource(frames, frames.LightFrames(), new ImageDecoder([decoder]), window)) + { + Assert.Equal(1, source.DevelopingLimit(1920, DecodePurpose.Render)); + foreach (var index in new[] { 0, 2, 4, 6 }) + using (await source.GetFrameAsync(index, 1920, DecodePurpose.Render, CancellationToken.None)) { } + } + Assert.Equal(1, decoder.Peak); + Assert.Greater(decoder.Decodes, 4); + } + + /// Decodes anything as a tiny frame, slowly, and counts how many decodes run at once. + private sealed class CountingDecoder : IImageDecoderProvider + { + private int _running; + private int _peak; + private int _decodes; + + public int Peak => Volatile.Read(ref _peak); + + public int Decodes => Volatile.Read(ref _decodes); + + public string Name => "counting"; + + public DecodeTier? TierFor(ImageFileFormat format) => DecodeTier.Native; + + public DecodedImage? Decode(DecodeRequest request, CancellationToken cancellationToken = default) + { + var now = Interlocked.Increment(ref _running); + int seen; + while ((seen = Volatile.Read(ref _peak)) < now && Interlocked.CompareExchange(ref _peak, now, seen) != seen) + { + } + Interlocked.Increment(ref _decodes); + Thread.Sleep(40); + Interlocked.Decrement(ref _running); + return new DecodedImage(new ImageBuffer(8, 6), DecodeTier.Native, Name, 8192, 5464); + } + } + + private static SequenceFrames Frames(params (ImageFileFormat Format, int Width, int Height, int Preview)[] specs) + { + var sequence = new Sequence { Id = Guid.NewGuid(), ArchiveId = Guid.NewGuid(), Folder = "a" }; + var frames = specs.Select((s, i) => new Frame + { + Id = Guid.NewGuid(), + SequenceId = sequence.Id, + Index = i, + RelativePath = $"a/IMG_{i:0000}", + FileName = $"IMG_{i:0000}", + CapturedAt = new DateTime(2026, 10, 16, 6, 0, 0).AddSeconds(10 * i), + Width = s.Width, + Height = s.Height, + Format = s.Format, + PreviewWidth = s.Preview, + PreviewHeight = s.Preview * 2 / 3, + }).ToList(); + return new SequenceFrames(sequence, frames, [.. frames.Select(f => (string?)f.RelativePath)]); + } +} diff --git a/tests/Titano.Data.Tests/Repositories/JobRepositoryTests.cs b/tests/Titano.Data.Tests/Repositories/JobRepositoryTests.cs index 1ead5d8f..5ad26e3f 100644 --- a/tests/Titano.Data.Tests/Repositories/JobRepositoryTests.cs +++ b/tests/Titano.Data.Tests/Repositories/JobRepositoryTests.cs @@ -36,6 +36,27 @@ public abstract class JobRepositoryTests(TestContext context) : RepositoryTest(c Assert.Equal(job with { TargetIds = read.TargetIds }, read); } + [Test] + public async Task ThePriorityQueueClaimsTheHigherKindsFirst() + { + // Owner review 1 (R2): on, the level of the kind comes before priority and age; off, the strict queue stays. + var db = await OpenTitanoAsync(); + var oldVerify = TestData.Job(JobKind.Verify, JobPriority.User, TestData.Now.AddMinutes(-30)); + var backgroundScan = TestData.Job(JobKind.Scan, JobPriority.Background, TestData.Now.AddMinutes(-20)); + var userThumbs = TestData.Job(JobKind.Thumbs, JobPriority.User, TestData.Now.AddMinutes(-10)); + var render = TestData.Job(JobKind.Render, JobPriority.Normal, TestData.Now); + foreach (var job in new[] { oldVerify, backgroundScan, userThumbs, render }) await db.Jobs.EnqueueAsync(job, Ct); + var queue = new Titano.Data.Jobs.JobPriorityQueue { Enabled = true }; + JobKind[] kinds = [JobKind.Verify, JobKind.Scan, JobKind.Thumbs, JobKind.Render]; + + Assert.SequenceEqual([render.Id, userThumbs.Id, backgroundScan.Id, oldVerify.Id], (await db.Jobs.ListQueuedAsync(kinds, 10, queue, Ct)).Select(j => j.Id)); + Assert.SequenceEqual([oldVerify.Id, userThumbs.Id, render.Id, backgroundScan.Id], (await db.Jobs.ListQueuedAsync(kinds, 10, Ct)).Select(j => j.Id)); + Assert.Equal(userThumbs.Id, (await db.Jobs.ClaimNextAsync("server", [JobKind.Scan, JobKind.Thumbs, JobKind.Verify], queue, Ct))?.Id); + var order = new List(); + while (await db.Jobs.ClaimNextAsync("server", null, queue, Ct) is { } claimed) order.Add(claimed.Id); + Assert.SequenceEqual([render.Id, backgroundScan.Id, oldVerify.Id], order); + } + [Test] public async Task ClaimsByPriorityThenAgeAndKind() { diff --git a/tests/Titano.Server.Tests/Api/AdminTests.cs b/tests/Titano.Server.Tests/Api/AdminTests.cs index 744d20a2..66841c4f 100644 --- a/tests/Titano.Server.Tests/Api/AdminTests.cs +++ b/tests/Titano.Server.Tests/Api/AdminTests.cs @@ -3,7 +3,10 @@ using System.Net.Http.Json; using System.Text.Json.Nodes; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; +using Titano.Core.Model; +using Titano.Data.Jobs; using Titano.Protocol; +using Titano.Server.Configuration; using Titano.Server.Hosting; using Titano.Testing; @@ -53,6 +56,59 @@ public sealed class AdminTests(TestContext context) Assert.Equal("Language", (await invalid.ExpectErrorAsync(HttpStatusCode.BadRequest, "invalid_setting")).Details); } + [Test] + public async Task TheParallelismAndThePriorityQueueApplyAtOnce() + { + // Owner review 1 (R2): jobs run one at a time; the parallelism (photos at once) and the priority queue need no restart. + await using var server = await TestServer.StartAsync(context); + var admin = await server.AdminAsync(); + using var read = await admin.GetAsync("/api/v1/server/settings"); + var settings = await read.ReadAsync(ProtocolJson.Default.ServerSettingsDto); + Assert.Equal((2, false), (settings.Parallelism, settings.PriorityQueue)); + Assert.Equal(ServerSettingsStore.Kinds.Count, settings.JobPriorities.Count); + Assert.Equal(("render", "high"), (settings.JobPriorities[0].Kind, settings.JobPriorities[0].Level)); + Assert.Equal("low", settings.JobPriorities.Single(p => p.Kind == "verify").Level); + Assert.DoesNotContain("download", settings.JobPriorities.Select(p => p.Kind)); + + // The test server listens on ports the system chose (0), which no request may set. + var edited = settings with + { + HttpPort = 18080, + HttpsPort = 18443, + Parallelism = 3, + PriorityQueue = true, + JobPriorities = [.. settings.JobPriorities.Select(p => p.Kind == "scan" ? p with { Level = "high" } : p)], + }; + using (var saved = await admin.PutAsJsonAsync("/api/v1/server/settings", edited, ProtocolJson.Default.ServerSettingsDto)) + await saved.ExpectAsync(HttpStatusCode.OK); + // Applied at once, while the ports wait for the restart. + Assert.Equal((3, true, 0), (server.Options.Parallelism, server.Options.PriorityQueue, server.Options.HttpPort)); + var queue = ServerSettingsStore.PriorityQueue(server.Options); + Assert.True(queue.Enabled); + Assert.Equal((JobKindPriority.High, JobKindPriority.High), (queue.LevelOf(JobKind.Scan), queue.LevelOf(JobKind.Render))); + // Only the level that differs from the defaults is stored. + var file = JsonNode.Parse(await File.ReadAllTextAsync(server.Options.SettingsFile))!.AsObject(); + Assert.Equal((3, true), (file["Parallelism"]!.GetValue(), file["PriorityQueue"]!.GetValue())); + Assert.Equal("""{"scan":"high"}""", file["JobPriorities"]!.ToJsonString()); + Assert.False(file.ContainsKey("Workers")); + + using (var dashboard = await admin.GetAsync("/api/v1/server/dashboard")) + { + var d = await dashboard.ReadAsync(ProtocolJson.Default.DashboardDto); + Assert.Equal((3, true), (d.Parallelism, d.PriorityQueue)); + } + foreach (var (invalid, setting) in new (ServerSettingsDto, string)[] + { + (edited with { Parallelism = 0 }, "Parallelism"), + (edited with { JobPriorities = [new JobPriorityDto("download", "high")] }, "JobPriorities"), + (edited with { JobPriorities = [new JobPriorityDto("scan", "urgent")] }, "JobPriorities"), + }) + { + using var refused = await admin.PutAsJsonAsync("/api/v1/server/settings", invalid, ProtocolJson.Default.ServerSettingsDto); + Assert.Equal(setting, (await refused.ExpectErrorAsync(HttpStatusCode.BadRequest, "invalid_setting")).Details); + } + } + [Test] public async Task LogsAreReadableButOnlyByName() { diff --git a/tests/Titano.Server.Tests/Hosting/StartupTests.cs b/tests/Titano.Server.Tests/Hosting/StartupTests.cs index 82475e78..5a8f1553 100644 --- a/tests/Titano.Server.Tests/Hosting/StartupTests.cs +++ b/tests/Titano.Server.Tests/Hosting/StartupTests.cs @@ -75,6 +75,37 @@ public sealed class StartupTests(TestContext context) Assert.Throws(() => ServerOptions.Load(new Dictionary { ["TITANO_DATA_PATH"] = root, ["TITANO_DB"] = "postgres", ["TITANO_WORKERS"] = "many" })); } + [Test] + public void TheFormerWorkersSettingStillSetsTheParallelism() + { + // Owner review 1: "workers" (jobs at once) became the parallelism (photos the running job processes at once). + var root = context.CreateTempDirectory("workers"); + File.WriteAllText(Path.Combine(root, "server.json"), """{ "Workers": 6 }"""); + Assert.Equal(6, ServerOptions.Load(new Dictionary { ["TITANO_DATA_PATH"] = root, ["TITANO_DB"] = "postgres" }).Parallelism); + + var former = ServerOptions.Load(new Dictionary { ["TITANO_DATA_PATH"] = root, ["TITANO_DB"] = "postgres", ["TITANO_WORKERS"] = "5" }); + Assert.Equal((5, true), (former.Parallelism, former.FormerWorkersVariable)); + Assert.SequenceEqual(["Database", "Parallelism"], former.Locked); + var both = ServerOptions.Load(new Dictionary + { + ["TITANO_DATA_PATH"] = root, + ["TITANO_DB"] = "postgres", + ["TITANO_WORKERS"] = "5", + ["TITANO_PARALLELISM"] = "7", + ["TITANO_PRIORITY_QUEUE"] = "true", + }); + Assert.Equal((7, true), (both.Parallelism, both.PriorityQueue)); + Assert.SequenceEqual(["Database", "Parallelism", "PriorityQueue"], both.Locked); + Assert.False(ServerOptions.Load(new Dictionary { ["TITANO_DATA_PATH"] = root, ["TITANO_DB"] = "postgres", ["TITANO_PARALLELISM"] = "2" }) + .FormerWorkersVariable); + Assert.Throws(() => ServerOptions.Load(new Dictionary { ["TITANO_DATA_PATH"] = root, ["TITANO_DB"] = "postgres", ["TITANO_PRIORITY_QUEUE"] = "often" })); + // A value the admin panel would refuse is brought within its range, so the panel can still save the other settings. + Assert.Equal(ServerOptions.MaxParallelism, + ServerOptions.Load(new Dictionary { ["TITANO_DATA_PATH"] = root, ["TITANO_DB"] = "postgres", ["TITANO_PARALLELISM"] = "96" }).Parallelism); + Assert.Equal(1, ServerOptions.Load(new Dictionary { ["TITANO_DATA_PATH"] = root, ["TITANO_DB"] = "postgres", ["TITANO_WORKERS"] = "0" }).Parallelism); + Assert.InRange(new ServerOptions().Parallelism, 1, ServerOptions.MaxParallelism); + } + [Test] public void TrustedProxiesAreAddressesOrNetworks() { diff --git a/tests/Titano.Server.Tests/Jobs/JobApiTests.cs b/tests/Titano.Server.Tests/Jobs/JobApiTests.cs index 2957d42c..6adaeea0 100644 --- a/tests/Titano.Server.Tests/Jobs/JobApiTests.cs +++ b/tests/Titano.Server.Tests/Jobs/JobApiTests.cs @@ -64,7 +64,7 @@ public sealed class JobApiTests(TestContext context) public async Task WaitingJobsChangePriorityAndRightsAreChecked() { var handler = new BlockingJobHandler(JobKind.Thumbs); - await using var server = await TestServer.StartAsync(context, o => o.Workers = 1, s => s.AddSingleton(handler)); + await using var server = await TestServer.StartAsync(context, o => o.Parallelism = 1, s => s.AddSingleton(handler)); var (editor, _, _) = await server.UserAsync("alberto", "editor"); var (viewer, _, _) = await server.UserAsync("marco", "viewer"); var sequence = await CreateSequenceAsync(editor); diff --git a/tests/Titano.Server.Tests/Storage/ProcessingModuleTests.cs b/tests/Titano.Server.Tests/Storage/ProcessingModuleTests.cs index 32516306..54f00f4e 100644 --- a/tests/Titano.Server.Tests/Storage/ProcessingModuleTests.cs +++ b/tests/Titano.Server.Tests/Storage/ProcessingModuleTests.cs @@ -35,6 +35,21 @@ public sealed class ProcessingModuleTests(TestContext context) ProcessingModule.Register(services); } + [Test] + public async Task TheRunningJobHasTheParallelismAndTheHostsMemoryBudget() + { + // Owner review 1: one job at a time, the parallelism working inside it, its frame window sized to the host. + await using var server = await TestServer.StartAsync(context, o => o.Parallelism = 3, Production); + var processing = server.Services.GetRequiredService(); + var tuned = processing.Options.Tune!(processing.Options); + Assert.Equal((3, 3, 3), (tuned.DeepAnalysis.MaxDegreeOfParallelism, tuned.FrameWindow.MaxConcurrentLoads, processing.Options.Archive.Parallelism())); + Assert.Equal(processing.Options.Archive.MemoryBudget(), tuned.FrameWindow.MemoryBudget); + Assert.True(tuned.FrameWindow.MemoryBudget >= 1L << 30, "at least the window's own default"); + // A change in the admin panel applies to the next job. + server.Options.Parallelism = 5; + Assert.Equal(5, processing.Options.Tune!(processing.Options).FrameWindow.MaxConcurrentLoads); + } + [Test] public async Task UploadedFramesAreLightAnalysedAndAdvised() { diff --git a/tests/Titano.Server.Tests/TestServer.cs b/tests/Titano.Server.Tests/TestServer.cs index a69b456d..6511d370 100644 --- a/tests/Titano.Server.Tests/TestServer.cs +++ b/tests/Titano.Server.Tests/TestServer.cs @@ -61,7 +61,7 @@ public sealed class TestServer : IAsyncDisposable TlsMode = TlsMode.Auto, Database = DatabaseKind.Sqlite, Discovery = false, - Workers = 2, + Parallelism = 2, AdminUser = "admin", AdminPassword = AdminPassword, // Tests sign in many times from one address; the rate-limit test sets the production value. diff --git a/tests/Titano.Tools.Tests/I18nCommandTests.cs b/tests/Titano.Tools.Tests/I18nCommandTests.cs index 78fcf99b..34f69e8e 100644 --- a/tests/Titano.Tools.Tests/I18nCommandTests.cs +++ b/tests/Titano.Tools.Tests/I18nCommandTests.cs @@ -6,7 +6,7 @@ namespace Titano.Tools.Tests; /// i18n check: English texts that count something need plural forms (BRIEF §16), and every error code /// of the server has its message, whose key is built at run time. -public sealed class I18nCommandTests +public sealed class I18nCommandTests(TestContext context) { [Test] public void ANumberInFrontOfACountedNounNeedsPluralForms() @@ -59,6 +59,32 @@ public sealed class I18nCommandTests Assert.Null(I18nCommand.CountedTally("Import.Result.Skipped.other", "{0:N0} copied, {1:N0} skipped")); } + [Test] + public void PruneRemovesOnlyTheKeysEnglishNoLongerHas() + { + var dir = context.CreateTempDirectory(); + void Write(string culture, string file, params (string Key, string Value)[] entries) + { + Directory.CreateDirectory(Path.Combine(dir, culture)); + var data = string.Concat(entries.Select(e => $" {e.Value}\n")); + File.WriteAllText(Path.Combine(dir, culture, file), $"\n\n{data}\n"); + } + Write("en", "Jobs.resx", ("Jobs.Kind.Render", "Render"), ("Jobs.Parallelism.one", "{0} photo at once"), ("Jobs.Parallelism.other", "{0} photos at once")); + Write("it", "Jobs.it.resx", ("Jobs.Kind.Render", "Render"), ("Jobs.Workers", "Processi {0} / {1}"), ("Jobs.Parallelism.one", "{0} foto alla volta")); + // Polish adds plural forms English has not: they stay. + Write("pl", "Jobs.pl.resx", ("Jobs.Parallelism.few", "{0} zdjęcia naraz"), ("Jobs.Parallelism.many", "{0} zdjęć naraz")); + var untouched = File.ReadAllText(Path.Combine(dir, "pl", "Jobs.pl.resx")); + + Assert.Equal(1, I18nCommand.PruneOrphans(dir, I18nCommand.Catalog.Load(dir))); + + var italian = I18nCommand.Catalog.Load(dir).Cultures["it"]; + Assert.SequenceEqual(["Jobs.Kind.Render", "Jobs.Parallelism.one"], italian.Keys.Order(StringComparer.Ordinal)); + Assert.Equal("{0} foto alla volta", italian["Jobs.Parallelism.one"].Value); + Assert.Equal(untouched, File.ReadAllText(Path.Combine(dir, "pl", "Jobs.pl.resx"))); + Assert.Equal(3, I18nCommand.Catalog.Load(dir).Cultures["en"].Count); + Assert.Equal(0, I18nCommand.PruneOrphans(dir, I18nCommand.Catalog.Load(dir))); + } + [Test] public void ErrorCodesAreTheLiteralsPassedToTheServerErrorHelpers() { -- 2.54.1 From 4ea44bb91710854b8b9c3e033ff712d7d2fc9098 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Fri, 16 Oct 2026 21:50:48 +0200 Subject: [PATCH 4/5] feat: wider rail and admin sidebar that collapse to icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Owner review 1, phase 3a (docs/requests/2026-10-15-owner-review-1.md, R1). The desktop rail is 200 px wide, so the section names fit in every language, and collapses to 48 px of icons with its ≡ button or Ctrl+B. Collapsed, each icon's tooltip names its section before saying what it is for, while screen readers keep the name and the description. The choice is written to the settings file the moment it changes (nothing else restarts) and survives Settings › Reset all and Import; Ctrl+B waits behind the first-run dialog like Ctrl+1…6, and a held key toggles once. The admin panel's sidebar is 256 px and collapses to icons the same way, with its own ≡ button or Ctrl+B (on the physical key where the layout's B types no Latin letter, so Cyrillic, Greek, Hebrew and Arabic layouts work). The choice is kept in the browser, for the page when the browser refuses storage, and the tables fit their columns again after each toggle. At 900 px and below it stays the top bar and Ctrl+B stays the browser's. The wider rail leaves 49-72 px less for every screen at the 1200 px minimum. Six adversarial review rounds found what that cut, and in every shipped language no action is cut off now: the Jobs columns share their width (Target and Progress give way first, Kind/Where/State capped on wide windows), the editor's preview tools take a second line, a server job's Cancel has its own header column, the Archive tree keeps a year's label, the Import rows and result, the certificates and cache rows and the frame table fit. Headers, titles and cells that may be shortened end in an ellipsis and show their text in their tooltip; state tooltips start with the state, and their explanations were reworded not to repeat it (a queued job "waits for its turn", jobs running one at a time). The crop-result tool sits beside Crop mask, disabled with its reason while the mask is off. Tests check these rows in all 38 languages at 1200 px; the App test program now shuts WPF down in order, so its exit no longer crashes after every test passed. Phase 3 lands as two commits: R7 (the Edit section) edits the same shell files and follows. Also updates BRIEF (12.1, 14.8, 24), DECISIONS, CHANGELOG, STATUS, the request file, DESIGN and the mockups; every new or reworded string is in all 38 languages. Co-Authored-By: Claude Opus 5.5 --- docs/BRIEF.md | 12 +- docs/CHANGELOG.md | 9 + docs/DECISIONS.md | 2 + docs/STATUS.md | 2 +- docs/requests/2026-10-15-owner-review-1.md | 7 +- docs/ui/DESIGN.md | 2 +- docs/ui/mockups/Admin.html | 2 +- docs/ui/mockups/AdminUsers.html | 2 +- docs/ui/mockups/Archive.html | 2 +- docs/ui/mockups/Components.html | 4 +- docs/ui/mockups/Editor.html | 2 +- docs/ui/mockups/Export.html | 2 +- docs/ui/mockups/Import.html | 2 +- docs/ui/mockups/Jobs.html | 2 +- docs/ui/mockups/Main.html | 2 +- docs/ui/mockups/Server.html | 2 +- docs/ui/mockups/Settings.html | 2 +- docs/ui/mockups/Welcome.html | 2 +- i18n/ar/Admin.ar.resx | 2 + i18n/ar/Tooltips.ar.resx | 27 +-- i18n/bg/Admin.bg.resx | 2 + i18n/bg/Tooltips.bg.resx | 27 +-- i18n/cs/Admin.cs.resx | 2 + i18n/cs/Tooltips.cs.resx | 27 +-- i18n/da/Admin.da.resx | 2 + i18n/da/Tooltips.da.resx | 27 +-- i18n/de/Admin.de.resx | 2 + i18n/de/Tooltips.de.resx | 27 +-- i18n/el/Admin.el.resx | 2 + i18n/el/Tooltips.el.resx | 27 +-- i18n/en/Admin.resx | 3 + i18n/en/Tooltips.resx | 28 +-- i18n/es/Admin.es.resx | 2 + i18n/es/Tooltips.es.resx | 27 +-- i18n/et/Admin.et.resx | 2 + i18n/et/Tooltips.et.resx | 27 +-- i18n/fi/Admin.fi.resx | 2 + i18n/fi/Tooltips.fi.resx | 27 +-- i18n/fr/Admin.fr.resx | 2 + i18n/fr/Tooltips.fr.resx | 27 +-- i18n/he/Admin.he.resx | 2 + i18n/he/Tooltips.he.resx | 27 +-- i18n/hi/Admin.hi.resx | 2 + i18n/hi/Tooltips.hi.resx | 27 +-- i18n/hr/Admin.hr.resx | 2 + i18n/hr/Tooltips.hr.resx | 27 +-- i18n/hu/Admin.hu.resx | 2 + i18n/hu/Tooltips.hu.resx | 27 +-- i18n/id/Admin.id.resx | 2 + i18n/id/Tooltips.id.resx | 27 +-- i18n/it/Admin.it.resx | 2 + i18n/it/Tooltips.it.resx | 27 +-- i18n/ja/Admin.ja.resx | 2 + i18n/ja/Tooltips.ja.resx | 27 +-- i18n/ko/Admin.ko.resx | 2 + i18n/ko/Tooltips.ko.resx | 27 +-- i18n/lt/Admin.lt.resx | 2 + i18n/lt/Tooltips.lt.resx | 27 +-- i18n/lv/Admin.lv.resx | 2 + i18n/lv/Tooltips.lv.resx | 27 +-- i18n/ms/Admin.ms.resx | 2 + i18n/ms/Tooltips.ms.resx | 27 +-- i18n/nb/Admin.nb.resx | 2 + i18n/nb/Tooltips.nb.resx | 27 +-- i18n/nl/Admin.nl.resx | 2 + i18n/nl/Tooltips.nl.resx | 27 +-- i18n/pl/Admin.pl.resx | 2 + i18n/pl/Tooltips.pl.resx | 27 +-- i18n/pt-BR/Admin.pt-BR.resx | 2 + i18n/pt-BR/Tooltips.pt-BR.resx | 27 +-- i18n/pt-PT/Admin.pt-PT.resx | 2 + i18n/pt-PT/Tooltips.pt-PT.resx | 27 +-- i18n/ro/Admin.ro.resx | 2 + i18n/ro/Tooltips.ro.resx | 27 +-- i18n/ru/Admin.ru.resx | 2 + i18n/ru/Tooltips.ru.resx | 27 +-- i18n/sk/Admin.sk.resx | 2 + i18n/sk/Tooltips.sk.resx | 27 +-- i18n/sl/Admin.sl.resx | 2 + i18n/sl/Tooltips.sl.resx | 27 +-- i18n/sv/Admin.sv.resx | 2 + i18n/sv/Tooltips.sv.resx | 27 +-- i18n/th/Admin.th.resx | 2 + i18n/th/Tooltips.th.resx | 27 +-- i18n/tr/Admin.tr.resx | 2 + i18n/tr/Tooltips.tr.resx | 27 +-- i18n/uk/Admin.uk.resx | 2 + i18n/uk/Tooltips.uk.resx | 27 +-- i18n/vi/Admin.vi.resx | 2 + i18n/vi/Tooltips.vi.resx | 27 +-- i18n/zh-Hans/Admin.zh-Hans.resx | 2 + i18n/zh-Hans/Tooltips.zh-Hans.resx | 27 +-- i18n/zh-Hant/Admin.zh-Hant.resx | 2 + i18n/zh-Hant/Tooltips.zh-Hant.resx | 27 +-- src/Titano.App/Archive/MaintenanceReports.cs | 8 +- src/Titano.App/Editor/EditorMeasures.xaml | 36 ++-- src/Titano.App/Editor/EditorStyles.xaml | 18 +- src/Titano.App/Editor/EditorViewModel.cs | 7 +- src/Titano.App/Editor/FramesTab.cs | 16 +- src/Titano.App/Editor/FullScreenPreview.xaml | 3 +- src/Titano.App/Infrastructure/AppServices.cs | 3 + src/Titano.App/Jobs/JobRowViewModel.cs | 9 +- src/Titano.App/Sections/ArchiveView.xaml | 27 ++- src/Titano.App/Sections/ImportView.xaml | 45 ++--- src/Titano.App/Sections/JobsView.xaml | 41 ++--- src/Titano.App/Sections/LibraryView.xaml | 10 +- src/Titano.App/Sections/SequenceView.xaml | 59 ++++--- src/Titano.App/Sections/SettingsView.xaml | 22 +-- src/Titano.App/Sections/SettingsViewModel.cs | 14 +- src/Titano.App/Server/SyncRow.cs | 3 +- src/Titano.App/Shell/MainWindow.xaml | 23 +-- src/Titano.App/Shell/MainWindow.xaml.cs | 7 + src/Titano.App/Shell/SectionViewModel.cs | 17 ++ src/Titano.App/Shell/ShellViewModel.cs | 7 +- src/Titano.Server/Admin/web/admin.css | 19 ++- src/Titano.Server/Admin/web/app.js | 62 ++++++- src/Titano.Server/Admin/web/icons.js | 1 + src/Titano.Ui/Controls/Converters.cs | 10 ++ src/Titano.Ui/Controls/NavRail.cs | 2 +- src/Titano.Ui/Themes/Typography.xaml | 2 +- .../Archive/ArchiveLogicTests.cs | 3 + .../Archive/ArchiveScreenSmokeTests.cs | 77 +++++++++ .../Editor/EditorSmokeTests.cs | 159 ++++++++++++++++++ .../Import/ImportScreenSmokeTests.cs | 66 ++++++++ .../Jobs/JobsScreenSmokeTests.cs | 50 ++++++ tests/Titano.App.Tests/Program.cs | 8 +- .../Server/ServerScreenSmokeTests.cs | 4 +- .../Settings/SettingsScreenSmokeTests.cs | 49 ++++++ .../Windows/ScreenSmokeTests.cs | 5 +- .../Windows/ShellNotificationTests.cs | 52 +++++- .../Windows/WpfApplication.cs | 20 ++- 131 files changed, 1458 insertions(+), 670 deletions(-) diff --git a/docs/BRIEF.md b/docs/BRIEF.md index eddcddf9..c4233ed1 100644 --- a/docs/BRIEF.md +++ b/docs/BRIEF.md @@ -694,8 +694,10 @@ player smoke test on Windows CI. └────┴─────────────────────────────────────────────────────────────────────────────┘ ``` -- Left navigation rail (prototype pattern): full names, collapsible to icons (state saved), - badge counts (warnings, running jobs), hover tooltip with section description. +- Left navigation rail (prototype pattern): full names in 200 px, collapsible to 48 px of + icons with ≡ or Ctrl+B (state saved at once; a collapsed icon's tooltip names its section + before describing it; amended 2026-10-16, R1), badge counts (warnings, running jobs), + hover tooltip with section description. - Fluent theme, system/dark/light, system accent; density "comfortable"; 8 px grid; one typeface (Segoe UI Variable, system fallback for CJK/Arabic/etc.). - Window chrome custom (dark title bar), min size 1200×760; per-monitor DPI. @@ -993,7 +995,10 @@ Pages: Login · Dashboard · Users (table; create/edit/disable/reset/roles/quota (path, templates, proxy policy, scan/rebuild/verify, stats) · Jobs (queue/history/nodes, cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, jobs: parallelism and priority queue, limits, language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/ -dark, localised via `/api/v1/i18n`, keyboard accessible. +dark, localised via `/api/v1/i18n`, keyboard accessible. The sidebar is 256 px and collapses +to its icons with ≡ or Ctrl+B like the desktop rail, the choice kept in the browser and the +links' tooltips then naming their page; on narrow screens it stays the top bar (amended +2026-10-16, R1). ### 14.9 Configuration and Docker @@ -1327,6 +1332,7 @@ questions asked and the answers; DECISIONS rows give the reasons. |---|---|---|---| | 2026-10-16 | Owner review 1, R4 | §8.1, §8.2 | DNG decodes through the managed decoder (WIC only through the Raw Image Extension, never DNG); a GoPro DNG is GPR only when VC-5; analyses and previews take an adequate embedded preview by choice, renders decode natively. | | 2026-10-16 | Owner review 1, R2 | §12.8, §14.6, §14.8, §14.9 | Jobs run one at a time; the parallelism is photos the running job processes at once; an optional priority queue by job kind pauses lower jobs and resumes them by itself; `TITANO_PARALLELISM` (former `TITANO_WORKERS`) and `TITANO_PRIORITY_QUEUE`. | +| 2026-10-16 | Owner review 1, R1 | §12.1, §14.8 | The rail is 200 px and collapses to 48 px of icons with ≡ or Ctrl+B, their tooltips naming the sections, saved at once; the admin panel's sidebar is 256 px and collapses the same way, kept in the browser. | ## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 00bf8376..701b232c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -182,6 +182,14 @@ commits follow Conventional Commits (release notes are generated from them by `T - the Jobs screen shows "8 photos at once", and a Priority queue chip while the queue is on; the admin dashboard shows the parallelism; - `Titano.Tools i18n prune` removes from the translations the keys English no longer has. +- Owner review 1 (2026-10-16, R1): the rail is 200 px wide, so section names fit in every language, and collapses to + icons with ≡ or Ctrl+B; collapsed, an icon's tooltip names its section. The choice is saved at once and survives + Settings › *Reset all…* and *Import…*. The admin panel's sidebar is 256 px and collapses to icons the same way (≡ or + Ctrl+B in any keyboard layout, kept in the browser). Beside the wider rail at the 1200 px minimum no action is cut + off in any language: the Jobs table, the Archive tree, the Import plan and result, the trusted certificates, the + cache folder, the editor's header (a server job's Cancel always stays), preview tools (a second line when needed) + and frame table share their width differently; headers, titles and cells that may be shortened end in an ellipsis + and show their text in their tooltip. ### Deprecated - `TITANO_WORKERS` and the `Workers` key of `server.json` set the parallelism (photos the running job processes at @@ -189,6 +197,7 @@ commits follow Conventional Commits (release notes are generated from them by `T ### Fixed - Owner review 1 (2026-10-16, `docs/requests/2026-10-15-owner-review-1.md`): + - the App test program could crash on exit after every test had passed (WPF's binding cleanup racing the process's end); - thumbnail and proxy jobs over several sequences failed after 10–20 minutes with "TimeSpan overflowed" and then stayed Running; their progress now counts frames, a stalled job shows no time left, and a job's end is always recorded (R10); diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 056b0be9..b6264a1d 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -411,3 +411,5 @@ One line per decision: date · decision · alternative · reason. | 2026-10-16 | Desktop: the Jobs toolbar shows "8 photos at once" (Settings › Rendering › Parallelism) and a Priority queue chip while the queue is on, instead of "Workers n / m"; Settings › Rendering lists the 16 job kinds with a level dropdown only while the queue is on; the Jobs list orders the queue with the engine's `JobPriorityQueue.ClaimsBefore`. The Jobs, Settings and Admin mockups follow in phase 6 with the rest of the review. | Keep the workers readout | One job runs at a time, so a count of busy workers says nothing. | | 2026-10-16 | `AtomicFile` tries the rename over the target again for some 1 s (15 attempts, 10 ms × n) while another handle holds it: a sharing or lock violation, or Windows' "access denied" for an open file that is neither read-only nor a folder (those, like a missing file, fail at once). Sidecars, ingest journals, index snapshots and `project.json` are read whole and at once with `AtomicFile.ReadAllBytes`/`ReadAllText` (sharing read and delete, never a writer in place; above 2 GB an `IOException`, as `File.ReadAllBytes`). Windows refuses `MoveFileEx` over an open file even when the reader shares deletion. | Rename with POSIX semantics (`SetFileInformationByHandle`, Windows interop in Core); take the sequence lease for every sidecar read | Readers hold these files for milliseconds; a lease per read would queue thumbnail passes behind uploads, and Core stays free of Windows interop. Found when the faster passes of phase 2 made an upload's commit fail in the server tests. | | 2026-10-16 | `LeaseFile.TryCreate` treats "access denied" on creating a lease as the name of a lease just released while a reader still holds it (pending deletion on Windows, since readers share deletion) and tries again for some 130 ms (8 attempts, 1 ms doubling), as it already did for the create-or-check race. | Return "held" at once; stop sharing deletion in readers | Returning "held" makes the caller wait its whole poll back-off for a name free milliseconds later, and readers must never block a release or a takeover. A real permission problem still fails after the short retry. Found when the phase 2 test runs hit it in `MassRenameTests` under load. | +| 2026-10-16 | The rail is 200 px (`Width.Rail`, was 128 growing to 200 with the language's longest name) and collapses to the 48 px icons (`Width.RailCollapsed`) with ≡ or Ctrl+B, a window key binding gated like Ctrl+1…6 (not behind the first-run dialog; a held key toggles once). A collapsed icon's tooltip is "Name · description" (`Tooltips.Nav.Collapsed`, invariant) so the section is named without its label, while screen readers keep the name and, as help text, the description alone. The state is written the moment it changes, through `AppServices.SavePreferences` (the settings file and nothing else: no render node restart, no engine wake), and Settings reset and import keep it, as they keep the window. The admin panel's sidebar is 256 px (was 220) and collapses to 56 px of icons with its own ≡ or Ctrl+B (matched on the physical B key when that key types no letter a–z, as in Cyrillic, Greek, Hebrew or Arabic layouts; Latin layouts keep their own Ctrl shortcuts), the choice kept in the browser (`localStorage` `titano.admin.sidebar`, like the theme; a browser that refuses storage keeps it for the page), the tables fitting their columns again after each toggle and the links' names kept for screen readers; at 900 px and below it stays the top bar, which shows icons only already, and Ctrl+B stays the browser's. Beside the wider rail at the 1200 px minimum, in every shipped language: the Jobs table's Kind, Where and State became star columns (minimums 90, 80, 116; at most 140, 140, 170, so on wide windows Target takes the rest, as in Jobs.html) and Target and Progress give way first (84, 104), so the row actions fit; a cut kind, place or header shows whole in its tooltip, and the state's tooltip starts with the state, as the sync table's does (the explanations after it were reworded not to repeat it, and "waiting for a worker" became "waits for its turn"); the trusted certificates row's server column and the cache folder's path give way first; the editor's preview tools wrap to a second line (6 px apart) instead of losing Play and Full screen, the crop-result tool always beside Crop mask and disabled while the mask is off (with its reason), so turning the mask on never moves the tools; the editor header gives the server job and its Cancel their own column, the title and the summary giving way first; the Archive tree keeps a year's label and lets its figures trim; the Import session rows, Show plan and the result line fit; the frame table's Time column holds every language's widest time and its header names trim with the name in the tooltip, header and rows sharing the actions column. Cells that can be cut repeat their text in their tooltip (Library list, Jobs, sync state, Settings encoder table and adapter, priority queue rows; `EmptyToNullConverter` so an empty cell shows none). Tests check, in all 38 languages at 1200 px: the Jobs row buttons, Settings' Clear and Forget, the Archive years, the Import rows and result, the frame table's times, the editor's tools and a server job's Cancel. (Owner review 1, R1.) | A width that follows the language; save the rail state at exit; keep the admin sidebar state per user on the server | The owner fixed 200 and 256 px so names fit in every language without a jumping rail; a crash or a forced shutdown no longer loses the choice; the server keeps no presentation state per user and the theme already lives in the browser. Found by the phase's review rounds: buttons and labels cut at 1200 px in some languages (Jobs row actions, Forget, Clear, the preview's Play, a remote job's Cancel, Merge, a year in the Archive tree), Ctrl+B behind the first-run dialog, and admin tables that kept their old fit. | +| 2026-10-16 | The App test program shuts the shared WPF dispatcher down in order (`WpfApplication.Shutdown`: `InvokeShutdown`, then a join of up to 10 s) after the runner finishes, instead of letting the process end under its background thread. (Owner review 1, R1.) | Leave the background STA thread to die with the process | The binding engine's cleanup then ran against a half-torn-down engine and crashed the exit (code 127) after every test had passed; the tests that walk 38 languages made it likely. | diff --git a/docs/STATUS.md b/docs/STATUS.md index f98ee2f3..4c7a13b7 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -13,7 +13,7 @@ Phase plan: docs/BRIEF.md §22. Windows behaviour is verified on CI (`windows-la | 6 Engine, encoding, editor | Done: render pipeline, MP4/AVI/GIF/APNG/image sequences, Media Foundation H.264/HEVC/AV1 with managed fallbacks; the sequence editor (Frames, Exposure, Camera, Motion and Export tabs, preview tools, section charts, curve editor, undo/redo, batch export) for local and server sequences. Gate: self-test suite green; the in-house inspector validates the containers the tests write; the encoder in use is logged. Playback: MediaPlayer opens the Media Foundation output and a source reader decodes its first frame (Windows tests). The pixel diff of every `--capture` screen against `tests/visual/baselines` (`screenshots diff`, BRIEF §20.2) is wired into CI but not armed: no baseline is committed yet, so the step compares nothing and only warns until the first baselines are accepted from `ci-screenshots` (Next steps). | | 7 Server, sync, uploader | Done: server (API, auth, uploads, jobs, render nodes, events, admin panel with light and dark themes, Windows service), Uploader, client sync (sync table, conflicts with *Save both*, proxies kept offline, metered pause), server sequences edited with proxies and rendered where the originals are, this PC as a render node. Gate covered in-process: a sequence uploaded from one PC downloads identically on another, interrupted uploads and downloads resume, server events update a PC, renders run on a node and on the server's managed fallback, jobs resume after a restart, sign-ins and administrative actions are audited. The run with two real PCs and the Uploader against the Docker server is part of the release test. | | 8 Release readiness | Release pipeline end to end (installers, portable and server zips, SHA256SUMS, release notes, optional signing, multi-arch GHCR image, public releases repository content), update check with verified download, scrubbed diagnostics bundles (desktop and server), performance gates, 38 cultures (`en`, `it` and 36 machine translations with glossaries and independent reviews), RTL pass (`ar`, `he`: mirrored windows, left-to-right islands for media, charts, numbers and paths; any right-to-left culture added later follows), accessibility pass (names, live regions, keyboard paths for charts and the curve editor). CI installs the packed installers silently on a clean `windows-latest` runner, runs the installed programs, upgrades in place and uninstalls (files, Add/Remove Programs, shortcuts, file type, user data kept, exit codes). Pending: a tagged pre-release published from CI, the interactive install on a real PC, Unraid template validation on a real server. | -| 8.1 Owner review 1 | In progress (request, answers and plan: `docs/requests/2026-10-15-owner-review-1.md`). Phase 1 done: stalled thumbnail and proxy jobs no longer fail and stay Running (frame-counted progress, bounded time left, final state always written); the editor's cancelled decodes stay in their tasks (no debugger stops in `WicDecoderProvider.cs`); WIC decodes RAW only through the Raw Image Extension and never DNG; GoPro DNGs converted by Adobe software are DNGs, developed natively for videos, read through their embedded preview for analyses and previews, and reclassified in existing archives by the next light analysis. Phase 2 done: jobs run one at a time on the desktop and the server; Parallelism is how many photos the running job processes at once (thumbnail and proxy passes, tier probes, deep analysis, render decodes); pausing the running job starts the next; an optional priority queue by job kind (Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) pauses lower jobs and resumes them by themselves; `TITANO_PARALLELISM` replaces `TITANO_WORKERS`. Next: phase 3, wider collapsible rail and the Edit section as a guided path. | +| 8.1 Owner review 1 | In progress (request, answers and plan: `docs/requests/2026-10-15-owner-review-1.md`). Phase 1 done: stalled thumbnail and proxy jobs no longer fail and stay Running (frame-counted progress, bounded time left, final state always written); the editor's cancelled decodes stay in their tasks (no debugger stops in `WicDecoderProvider.cs`); WIC decodes RAW only through the Raw Image Extension and never DNG; GoPro DNGs converted by Adobe software are DNGs, developed natively for videos, read through their embedded preview for analyses and previews, and reclassified in existing archives by the next light analysis. Phase 2 done: jobs run one at a time on the desktop and the server; Parallelism is how many photos the running job processes at once (thumbnail and proxy passes, tier probes, deep analysis, render decodes); pausing the running job starts the next; an optional priority queue by job kind (Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) pauses lower jobs and resumes them by themselves; `TITANO_PARALLELISM` replaces `TITANO_WORKERS`. Phase 3a done: the rail is 200 px and collapses to icons with ≡ or Ctrl+B (tooltips then name the sections, the choice saved at once); the admin panel's sidebar is 256 px and collapses the same way. Next: phase 3b, the Edit section as a guided path with a sequence picker. | | 9 Monetization | Not started: requires explicit approval (§22). | ## Verification (2026-10-12) diff --git a/docs/requests/2026-10-15-owner-review-1.md b/docs/requests/2026-10-15-owner-review-1.md index e077400d..d8aeb994 100644 --- a/docs/requests/2026-10-15-owner-review-1.md +++ b/docs/requests/2026-10-15-owner-review-1.md @@ -57,9 +57,10 @@ | Phase | Content | State | Commit | |---|---|---|---| -| 1 | Bugs: R10 job throughput/ETA and stuck jobs; R4 cancellation boundary, WIC decoder truth, GoPro DNG classification, decode policy (preview for analysis, native for renders) | done 2026-10-16: BRIEF §8.1, §8.2, §24; five DECISIONS rows dated 2026-10-16; all test suites, i18n check, format, package guard and xaml-lint green | phase 1 commit | -| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | done 2026-10-16: BRIEF §12.8, §14.6, §14.8, §14.9, §24; nine DECISIONS rows dated 2026-10-16 (engine, priority queue, parallel passes and decode budget, sequential IO jobs, server settings, `i18n prune`, Jobs toolbar, atomic writes that wait for a reader, leases taken after a reader lets go); three adversarial review rounds before the commit; levels per kind rather than an ordered list (DECISIONS) | phase 2 commit | -| 3 | R1 rail and admin sidebar; R7 Edit section, picker, guided path | todo | | +| 1 | Bugs: R10 job throughput/ETA and stuck jobs; R4 cancellation boundary, WIC decoder truth, GoPro DNG classification, decode policy (preview for analysis, native for renders) | done 2026-10-16: BRIEF §8.1, §8.2, §24; five DECISIONS rows dated 2026-10-16; all test suites, i18n check, format, package guard and xaml-lint green | `34d0305` | +| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | done 2026-10-16: BRIEF §12.8, §14.6, §14.8, §14.9, §24; nine DECISIONS rows dated 2026-10-16 (engine, priority queue, parallel passes and decode budget, sequential IO jobs, server settings, `i18n prune`, Jobs toolbar, atomic writes that wait for a reader, leases taken after a reader lets go); five adversarial review rounds before the commit; levels per kind rather than an ordered list (DECISIONS) | `43b6871` | +| 3a | R1 rail 200 px and admin sidebar 256 px, both collapsing to icons with ≡ or Ctrl+B | done 2026-10-16: BRIEF §12.1, §14.8, §24; one DECISIONS row; DESIGN and every mockup with a rail or the admin sidebar; the two new admin tooltips in all 38 languages. Six adversarial review rounds (desktop and web, each finding verified; the last found only two wording slips, fixed): buttons and labels cut at 1200 px beside the wider rail in some languages (Jobs row actions, Forget, Clear, the preview's Play, a remote job's Cancel, Merge, a year in the Archive tree), Ctrl+B behind the first-run dialog and on non-Latin keyboards, and admin tables not re-fitted after a toggle, all fixed; some older cut texts found on the way got tooltips; tests now check those rows in all 38 languages. Phase 3 lands as two commits because R1 and R7 edit the same shell files and R1 was finished and verified first | phase 3a commit | +| 3b | R7 Edit section ("Sequenza" → "Modifica"), sequence picker, guided path from analysis to export | todo | | | 4 | R5 visual crop, proportions win; R6 transforms, straighten, colour filters | todo | | | 5 | R3 export panel and Render menu; R8 export options; R9 videos library (desktop, server API, admin page, copy folder, trash) | todo | | | 6 | Docker/Unraid/deploy docs, BRIEF §24 amendments, full verification | todo | | diff --git a/docs/ui/DESIGN.md b/docs/ui/DESIGN.md index e4862668..2ad79ef2 100644 --- a/docs/ui/DESIGN.md +++ b/docs/ui/DESIGN.md @@ -42,7 +42,7 @@ Layout must survive +40 % text width (de, fi): no fixed-width labels, `MinWidth` Spacing scale 4 · 8 · 12 · 16 · 20 (`Thickness` keys `Space.1`…`Space.5`). Radii: 6 controls · 8 cards/panels · 12 pills · 12 modal dialogs. Controls 32 px tall, 44 px minimum width, 12 px horizontal padding; compact row buttons 26–28 px. -Rail 128 px (collapses to 48 px icons); title bar 34; job bar 40; toolbar 56; status bar 30; +Rail 200 px (collapses to 48 px icons with ≡ or Ctrl+B, the tooltips then naming each section; the choice is kept; owner review 1); title bar 34; job bar 40; toolbar 56; status bar 30; table rows 36–40 (52 in the web admin); side panels 320 px; settings section list 200 px. Label column left of controls: 116 px in panels, 180 px in Settings. diff --git a/docs/ui/mockups/Admin.html b/docs/ui/mockups/Admin.html index fe0ac6f5..e78102b6 100644 --- a/docs/ui/mockups/Admin.html +++ b/docs/ui/mockups/Admin.html @@ -10,7 +10,7 @@ body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;ba a{color:#0067c0}a:hover{color:#004c8c}
-