Repository navigation
feat(native): add VideoToolbox H.264, Simlock AVCC, Android serve-emu, Duo controls, and floating device window (PN-DEVICE) - #461
Merged
Conversation
…, Duo controls, and floating device window (PN-DEVICE)
This was referenced Nov 20, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #249
Summary
Completes native Device panel parity (
PN-DEVICE->done) with macOS hardware H.264 decoding for Simlock/AVCC and Androidserve-emustreams, iPhone Duo hinge/posture controls, and floating device windows:crates/core/src/device/stream.rs:AvccDemuxer(1=description,2=keyframe,3=delta,4=seed,7=endSimlock lease-end JSON{ reason }),avcCparser/builder, and Duo panel path/helper/<device>/panel/<panelId>/stream.avcc.serve-emuSEMU v1 packet parsing, Annex-B start-code (00 00 01/00 00 00 01) to 4-byte length-prefixed AVCC conversion with SPS/PPS extraction, and JSON control/input framing (touch,key,textchunked to 300 UTF-8 bytes / 64 chunks,button,reset-video,video-session).DuoCommand,DuoControlQueue,ControlReply(0x90), andduo_fold_state/duo_hold_orientation.transport(platform, host)to selectTransport::Avcc(Simlock) andTransport::ServeEmu(Android) on macOS while keeping a clear unsupported error on non-macOS platforms.crates/client/src/device_stream/{mod.rs, h264.rs}:VideoToolbox.framework,CoreMedia.framework,CoreVideo.framework, andCoreFoundation.framework(zero new crates/binaries) that buildsCMVideoFormatDescriptionfrom H.264 parameter sets, decodes AVCC access units synchronously to tight RGBA pixels, rebuilds cleanly on SPS/PPS changes, and invalidates/releases cleanly onDrop.FrametoFrame::Jpeg(Arc<[u8]>) | Frame::Rgba { width, height, bytes }while keepingFrame::len()backward-compatible.7lease-end frames,pingdotgg/t3code#35994), Androidserve-emuvideo + input socket, and Duo control request/reply tracking.crates/app/src/device/{mod.rs, screen.rs, screen/float.rs}:Frame::Rgbadirectly to GPUIArc<RenderImage>(with RGBA -> BGRA atlas conversion and portrait-framebuffer rotation), forwarded Android text/key/paste input (DeviceInput::Text/AndroidKey), and renderedDeviceDuoControls(Closed 0°, Peek 30°, Book/Laptop 90°, Open/Flat 180°, Laptop stand, Tent stand) whenscreen.supports_hinge_angle.WindowKind::Floatingsecondary GPUI window with compact draggable header + Dock-back / Close controls (guarded off in test/snapshot builds; zeroworkspace.rsedits).apps/native/parity/LEDGER.md:PN-DEVICEasdone(cleared#249), noting Three.js WebGL 3D.glbphone/Magic Keyboard mesh is web-only while native ships the 2D framed viewport with full iOS/Android/Simlock H.264, Duo, Float, AX, and tools parity.Verification Gates
vp fmt --check apps/native/parity/LEDGER.md: PASSnode apps/native/scripts/gen-theme.ts --check: PASS (tokens.rsup to date)node apps/native/conformance/generate.ts --check: PASSnode --test apps/native/parity/sync.test.ts: PASS (47/47)CARGO_INCREMENTAL=0 cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: PASS (0 warnings)CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-core: PASS (1870 unit + 8 conformance = 1878 passed, 0 failed)CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-client -- --test-threads=1: PASS (171 passed, 0 failed — includes real macOS VideoToolbox 32x16->64x32 decode/rebuild, Simlock AVCC tag-7 lease-end, Androidserve-emu, and Duo round-trip)T3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native -- --test-threads=1: PASS (217 passed, 0 failed)T3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native --features snapshot device -- --test-threads=1: PASS (12 passed, 0 failed)CARGO_INCREMENTAL=0 cargo build --manifest-path apps/native/Cargo.toml -p t3-native: PASSImplemented by
h2-deviceon Antigravity.