Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Brooooooklyn
Copy link
Owner

@Brooooooklyn Brooooooklyn commented Dec 25, 2025

Port more W3C Web Platform Tests for improved WebCodecs spec compliance:

New test files:

  • video-frame-orientation.spec.ts: VideoFrame rotation/flip properties
  • video-encoder-orientation.spec.ts: Encoder orientation handling
  • per-frame-qp-encoding.spec.ts: bitrateMode 'quantizer' with codec-specific QP
  • video-encoder-content-hint.spec.ts: contentHint config preservation

Updated test files:

  • codec-specific-decoder.spec.ts: H.264 SEI recovery point and interlaced tests
  • video-encoder-behavior.spec.ts: Added flush and colorSpace assertions

New fixtures:

  • h264_sei.mp4, h264_sei.annexb: H.264 with SEI recovery points
  • h264_interlaced.mp4: Interlaced H.264 content

Test results: 608 passing, 6 skipped

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 [email protected]


Note

Expands WPT coverage and updates status for WebCodecs tests.

  • Adds video-frame-orientation.spec.ts, video-encoder-orientation.spec.ts, per-frame-qp-encoding.spec.ts, and video-encoder-content-hint.spec.ts to cover frame orientation, encoder orientation, per-frame QP (bitrateMode: 'quantizer'), and contentHint
  • Extends codec-specific-decoder.spec.ts with H.264 SEI recovery point keyframe handling and interlaced decoding tests (AVC and Annex B)
  • Enhances video-encoder-behavior.spec.ts with flush/reset scenarios and colorSpace/displayAspect assertions; updates video-decoder-behavior.spec.ts with WPT-aligned behavior tests
  • Updates WPT README: new files listed, sections for orientation/QP/contentHint/H.264 specifics, and test counts to 608 passing, 6 skipped (614 total)

Written by Cursor Bugbot for commit fceb441. This will update automatically on new commits. Configure here.

Copilot AI review requested due to automatic review settings December 25, 2025 03:59
Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ports additional W3C Web Platform Tests (WPT) to improve WebCodecs API spec compliance, adding comprehensive test coverage for orientation handling, per-frame QP encoding, content hints, and H.264-specific features.

Key changes:

  • Four new test files covering VideoFrame/VideoEncoder orientation, content hints, and per-frame quantizer control
  • Enhanced existing tests with flush behavior, colorSpace assertions, and H.264 SEI/interlaced support
  • Three new binary test fixtures for H.264 edge cases (SEI recovery points and interlaced content)

Reviewed changes

Copilot reviewed 8 out of 11 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
video-frame-orientation.spec.ts New: Tests VideoFrame rotation (0/90/180/270°) and flip properties with display dimension calculations
video-encoder-orientation.spec.ts New: Tests encoder orientation handling, decoderConfig preservation, and reconfiguration with different orientations
video-encoder-content-hint.spec.ts New: Validates contentHint config preservation ('text', 'motion', 'detail') across codecs
per-frame-qp-encoding.spec.ts New: Tests bitrateMode 'quantizer' with codec-specific QP parameters for AV1, VP9, H.264, H.265
video-encoder-behavior.spec.ts Updated: Added flush-during-reset tests, colorSpace assertions, and enhanced decoderConfig validation
video-decoder-behavior.spec.ts Updated: Documentation improvements with specific WPT test references
codec-specific-decoder.spec.ts Updated: Added H.264 SEI recovery point and interlaced content decoding tests
README.md Updated: Test counts (608 passing, 6 skipped), new test file entries, and WPT porting status
h264_sei.mp4, h264_sei.annexb, h264_interlaced.mp4 New: Binary test fixtures for H.264 edge cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…tent hints

Port more W3C Web Platform Tests for improved WebCodecs spec compliance:

New test files:
- video-frame-orientation.spec.ts: VideoFrame rotation/flip properties
- video-encoder-orientation.spec.ts: Encoder orientation handling
- per-frame-qp-encoding.spec.ts: bitrateMode 'quantizer' with codec-specific QP
- video-encoder-content-hint.spec.ts: contentHint config preservation

Updated test files:
- codec-specific-decoder.spec.ts: H.264 SEI recovery point and interlaced tests
- video-encoder-behavior.spec.ts: Added flush and colorSpace assertions

New fixtures:
- h264_sei.mp4, h264_sei.annexb: H.264 with SEI recovery points
- h264_interlaced.mp4: Interlaced H.264 content

Test results: 608 passing, 6 skipped

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@Brooooooklyn Brooooooklyn force-pushed the 12-25-test_port_more_wpt_tests branch from 6290675 to fceb441 Compare December 25, 2025 04:20
@Brooooooklyn Brooooooklyn merged commit 6af73ab into main Dec 25, 2025
34 checks passed
@Brooooooklyn Brooooooklyn deleted the 12-25-test_port_more_wpt_tests branch December 25, 2025 07:25
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