Repository navigation
fix(capability): accept decoder-padded coded size in H.264 profile probe - #3
Open
ZiadAbdelati wants to merge 15 commits into
Open
ZiadAbdelati wants to merge 15 commits into
ZiadAbdelati wants to merge 15 commits into
Conversation
- Build it with scripts/build-embed.mjs - Add WebGPUPresenter.getLastPresentedMediaTime
- Version the package 0.2.0
… engine doesn't play
…ing module - Start a route once the last route's controller has closed
… its code's order
…ds it WebGPUPresenter.setPresentedPictureObserver takes an observer that each submission hands the picture it drew, right after the submit and its validation scope: the canvas, and the region of its backing store the picture covers, the plan's viewport. A WebGPU canvas has no picture to read after the task that drew it, so a copy made in the call, as drawImage makes, is the only one that reads it: in Chrome 156 a copy in a later task, or in an earlier animation frame callback of the same frame, reads black. One observer observes at a time, the setter returns a function that stops it, and an observer's error is logged and never fails presentation. The plugin's picture-in-picture window copies custom playback's pictures through it. The architecture chapter and the module map say so.
…cropped coded size - Regenerate the Main and Main 10 access units from the file's recipe - Let an external HDR frame report its display size as its coded size
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.
frameMatchesRequestinsrc/capability/H264ProfileCapabilities.tschecksframe.codedHeight === probeRequest.expectedCodedHeightandframe.codedWidth === probeRequest.expectedCodedWidthfor exact equality.On Linux Chrome 158.0.8127.88 (Wayland, NVIDIA RTX 5070),
VideoDecoderdecodes all four 64x64 H.264 profile probe keyframes without error (format: "I420",displayWidth: 64,displayHeight: 64,visibleRect: { x: 0, y: 0, width: 64, height: 64 },timestamp: 0), while reportingcodedWidth: 64andcodedHeight: 66due to decoder buffer padding. Because of the exact equality check, every H.264 profile fails withoutput-mismatch, and SDR H.264 playback falls back to the next engine withcodec-unsupported.This change accepts
codedWidth >= expectedCodedWidthandcodedHeight >= expectedCodedHeightwhendisplayWidth,displayHeight,timestamp, andvisibleRect(if present, starting at0, 0) match the expected dimensions, similar tonativeVideoFrameMatchesRequestinsrc/capability/CustomDecodeCapabilities.ts.Verification
npx vitest run test/capability/H264ProfileCapabilities.test.ts(18/18 passed, including new tests for padded coded dimensions and mismatchedvisibleRect)npx eslint src/capability/H264ProfileCapabilities.ts test/capability/H264ProfileCapabilities.test.ts(0 errors)EmbeddedPlayer.jsbundle in Chrome 158.0.8127.88 on Linux (RTX 5070, Wayland) against 1080p H.264 MKV fixtures with dual AAC/E-AC-3 and single AC-3 5.1 audio:open()returnedeligible: true(native video-frame, audio decoded-pcm), audio track switching worked, and HEVC playback remained unchanged.