Skip to content

Merge upstream PlxNative v0.10.0 - #24

Merged
tiper merged 8 commits into
mainfrom
upstream-merge-v0.10.0
Nov 13, 2026
Merged

tiper merged 8 commits into
mainfrom
upstream-merge-v0.10.0

Conversation

@tiper

@tiper tiper commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Merges upstream's v0.10.0 release commit (01586811), so FinNative can release on that same base. Upstream commits after the tag (plxnative#1355–plxnative#1364, including the sans-io session rewrite plxnative#1358) go into the next merge. This lands as a merge commit.

Conflicts

Ledger pins are unchanged (workers 6, globals 84, forks 64). The actual counts are upstream's plus FinNative's +1/+3/+2.

Verification

  • ci/check-deps.sh: green.
  • cargo check --workspace --lib --tests: clean.
  • plx_jellyfin: 147 passed.
  • plx_screens --features finnative: 2139 passed.
  • plx_session --features finnative: 318 passed. The 7 failures are real-curl or TLS discovery tests that need network this container lacks.

Generated by Claude Code

GLinnik21 and others added 8 commits November 12, 2026 15:09
…traight colour over video (plxnative#1347)

Styled ASS subtitles now load their attached fonts, animate heavy karaoke at the video's frame rate on the TV, and keep translucent colour as authored over video.

- Fonts: main's 32 MiB attached-font cap is gone. A file's attachments are detached from libavformat as it opens (`detach_fonts`), the source store holds one `Arc<[u8]>` per font, and every libass renderer borrows it through the new facade call `plx_ass_add_font_borrowed` (facade ABI 5) instead of copying it.
- Composite (`src/ass.c`): zero-coverage groups are skipped, the row blend is NEON with an exact div255 (the scalar path stays), and regions are published premultiplied through `Painter::tex_premultiplied`. Stats split wall time from thread CPU time; `clock_gettime` links through `-lrt` for firmware 6.4 and older.
- Colour over video: the TV compositor blends the UI plane over video as straight alpha, so every partial-alpha pixel came out darkened. While the video plane is bound, a final GPU pass (`gfx/straighten.rs`, `GL_ARM_shader_framebuffer_fetch`) converts the framebuffer to straight colour over the boxes drawn that frame.
- Rate: the ASS mailbox pipelines animated frames ahead of the playhead. A pool of up to 3 libass renderers runs below the frame thread's priority (`task::lower_priority`), sized by a pure memory verdict (`ass/pool.rs`: a quarter of MemAvailable for the helpers, the open primary not charged). Dense event boundaries no longer abandon the plan (`Rendered::moves_on`). An adaptive render scale (`ass/scale.rs`, down to 1/2) draws heavy animated stretches smaller, with hysteresis; stills stay full size.
- `tests/fixtures/make_ass_stress.py` places per-syllable karaoke effects using libass's real advances.

Measured on the TV (webOS 4.10.2, release build, stress fixture):
- Subtitle updates in the heavy opening: 7-9/s before this change. With a 24p video it is now a median of 26/s, about 4% late. With the same video at 30p it is a median of 29.7/s, 2.2% late.
- Composite p95 fell from 90-107 ms to 15-25 ms at full size.
- Peak RSS fell from 541 MB to 287-372 MB.
- Placement matches upstream libass 0.17.5 on captured frames, and the phone-recorded subtitle timing matches the test card's frame counter to within about a frame.

Closes plxnative#1328
…has one to go to (plxnative#1349)

## What

The player's Previous button now always plays the previous episode, and a fresh play has one to go to.

- **Previous is the queue step only.** It used to become Restart five seconds into an episode: it sought the playing episode to 0 (rewriting its playhead and viewOffset), and under five seconds it was disabled again. The restart face and its five-second rule are gone. From beginning stays on the Info tab, in the More menu of HUD packages that fold it, and on the detail hero.
- **A fresh play gets the show's queue.** Continue Watching, the detail page's Play/Resume, Up Next and autoplay used to POST `uri=<episode>&continuous=1`, which PMS answers with the episode and its successors only, so the queue had no row before the playing one. An episode whose show is known now asks for `uri=<show>&key=<episode>` (no `continuous`), accepts it only when the answer selects that episode, and otherwise falls back to the old request. When rows precede the selection but the window opens on it, the existing window read runs once.
- **Leaving an episode keeps its progress.** Previous and Next never seek; the outgoing episode's stop report carries its real position, and the handoff's window re-read waits (bounded, 1500 ms, on the worker leg) for that report, so stepping back to an episode just left resumes it where it was.
- HUD plugins: the `restart` face of the `previous` command still parses (published packages keep loading) and is no longer selected.
- `tests/mock_pms.py` serves the show-keyed queue.

Skip and Up Next prompts are unchanged: while one occupies the row, Previous/Next are not on it (the owner asked for no redesign there).

## Verification

- Regression `a_fresh_play_of_a_middle_episode_lands_the_episodes_before_it` failed against the old request and passes; hostsim rig tests: Previous mid-episode plays the prior episode, seeks nowhere and the outgoing episode reports its real position; Previous on the first episode is disabled; Next.
- Crate suites: plx_media 2015, plx_appkit 953, plx_screens 2137, plx_plex 801, plx_data 1540, application hostsim 1529, plx_media hostsim 2295 passed; `make check-nodef`, `check-deps`, ledger ratchet, localization, module layers, `tests/test_harness.py` (725), mock_pms selftest green.
- TV, debug build on a real server, owner-driven: the play's queue came back as the show's (`playqueue: … rows=30`), `queue transport: Previous` went to the episode before and `Next` came back; the owner checked it.

Not verified: whether PMS lists season-0 specials before S1E1 (Previous from S1E1 could land on one); PMS's window size on a long show; `tests/playback_navigation_sim.py`'s Previous block (needs `make sim-macos`; CI). The frozen published schema descriptions `site/hud/schema/hud/1.0.json`/`1.1.json` still say Previous may be "a restart of this one".

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…xnative#1350)

## What

The v0.10.0 release note and audit, revised for the third candidate, which is promoted to the release.

- **Note:** a Fixed line for the styled-ASS work ([plxnative#1347](plxnative#1347), issue plxnative#1328), measured with a test file on the development set and not the reporter's file; the Previous line from plxnative#1349 now says the show-built queue was seen working against one real server; the Next and Previous feature line no longer speaks of a "queue".
- **Audit:** the third candidate's range (plxnative#1347, plxnative#1349); the 2026-11-12 `--fps --mock` runs on the development set with their failures and the interleaved parent comparison; the second candidate's package installed over the stable install and byte-checked; per-change rows for plxnative#1347 and plxnative#1349; a known-issue line for Previous from a show's first episode (specials order undetermined); plxnative#1347's build changes; the action-required check re-run (no section owed).

`ci/check-package.py --lint-note` and `--lint-audit` pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…lxnative#1352)

## What

The v0.10.0 release note's title and Home line now say what a viewer sees (a redesigned Home, what you were watching one press away) instead of the design name "stills", and the styled-ASS fix leads with "ASS we can". Wording only; `ci/check-package.py --lint-note` passes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…ed in plxnative-huds (plxnative#1353)

## What

The v0.10.0 release note's title now names yellow subtitles, which people asked for. Its Player HUD line says that HUDs for the gallery are made and submitted in the separate [plxnative-huds](https://github.com/GLinnik21/plxnative-huds) repository, with a link to its authoring guide. Wording only; `--lint-note` passes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…lxnative#1354)

## What

The v0.10.0 release note's title leads with the most-requested items this release answers: automatic intro skipping (discussion 826), yellow subtitles (1193), Next and Previous episodes (829), Play Version (521), then the replaceable player HUD and the styled-ASS fix. Wording only; `--lint-note` passes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
# Conflicts:
#	ipkroot/ctl/control
#	pkg/appinfo.json
#	rust-modules/Cargo.lock
#	rust-modules/Cargo.toml
#	rust-modules/media/src/route/decision.rs
#	rust-modules/plex/src/plex/timeline.rs
#	rust-modules/src/app/run.rs
@tiper
tiper merged commit a6a6472 into main Nov 13, 2026
14 checks passed
@tiper
tiper deleted the upstream-merge-v0.10.0 branch November 13, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants