Repository navigation
fix(playback): honor source color range fallback - #97
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughChangesThe playback pipeline now decodes video Video color-range playback
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant RoutePlanner
participant PlaybackEngine
participant PlayerCore
participant VideoColorMetadata
participant CodecParameters
RoutePlanner->>PlaybackEngine: provide PlaybackSourceMetadata.colorRange
PlaybackEngine->>PlayerCore: load with colorRangeHint
PlayerCore->>VideoColorMetadata: normalize hint
PlayerCore->>CodecParameters: read codec color range
PlayerCore->>VideoColorMetadata: resolve full-range status
VideoColorMetadata-->>PlayerCore: return range classification
Possibly related issues
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a756d83606
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@iosApp/iosApp/Screens/Player/CoreMedia/VideoColorMetadata.swift`:
- Around line 31-36: Update VideoColorMetadata.isFullRange so fallbackName is
consulted only when range equals AVCOL_RANGE_UNSPECIFIED; preserve the local
color-range result for every other value, including unmapped ranges, and
continue returning whether the resolved name is "pc".
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 2a6bc783-84d6-405a-96df-e5baaa29f3e7
📒 Files selected for processing (9)
iosApp/Tests/DetailVersionSelectionTests.swiftiosApp/Tests/HDRDisplayCriteriaPolicyTests.swiftiosApp/Tests/SoftwareVideoOutputFormatTests.swiftiosApp/iosApp/Networking/Models.swiftiosApp/iosApp/Screens/Player/ApplePlaybackRoutePlanner.swiftiosApp/iosApp/Screens/Player/CoreMedia/PlayerCore.swiftiosApp/iosApp/Screens/Player/CoreMedia/VideoColorMetadata.swiftiosApp/iosApp/Screens/Player/PlaybackEngine.swiftiosApp/iosApp/Screens/Player/PlaybackExecutionPlan.swift
Summary
color_rangevideo-track field from the native server APItvto limited range andpcto full range only when local libav stream/frame metadata is unspecifiedWhy
Silo preserves the source bytes, but files whose local decoder metadata is unspecified can still need the server-probed FFmpeg range to configure the output pixel format correctly. Explicit local FFmpeg signaling remains authoritative.
Testing
xcodebuild test -project Silo.xcodeproj -scheme Silo -destination "platform=iOS Simulator,name=iPhone 17 Pro" -derivedDataPath /Volumes/NVMe/Xcode/DerivedData/native-color-range-apple CODE_SIGNING_ALLOWED=NO -only-testing:SiloTests/SoftwareVideoOutputFormatTests -only-testing:SiloTests/DetailVersionSelectionTests(30 tests passed)Coordination
Depends on Silo-Server/silo-server#447.
Part of Silo-Server/silo-server#446
AI use
Implemented with OpenAI Codex. The generated patch was reviewed, focused tests were run, and review findings were addressed before publication.
Summary by CodeRabbit