Repository navigation
Switch Windows capture to upstream windows-capture 2.0.1 - #277
Merged
Merged
Conversation
The window_hwnd parameter that interpreter needed was carried in the windows-capture-interpreter fork while upstream PR NiiightmareXD/windows-capture#185 was pending. That PR merged and shipped in windows-capture 2.0, so depend on upstream again and retire the fork. The Python API is unchanged (WindowsCapture(window_hwnd=...), Frame.crop, frame_buffer, start_free_threaded), and the capture stream already copies the frame inside the callback, which 2.0's zero-copy frame_buffer requires. Also apply two pending ruff format fixes in the capture package. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryReplaces the Windows capture fork with upstream
Reviews (1) · Last reviewed commit: "Switch Windows capture to upstream windo..." · Reviewed by Greptile |
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.
Summary
windows-capture-interpreterfork with upstreamwindows-capture>=2.0.1. The fork only existed to carry thewindow_hwndparameter while feat(python): add window_hwnd parameter for HWND-based capture NiiightmareXD/windows-capture#185 was pending; that PR merged and shipped in 2.0.WindowsCaptureStream: the upstream Python API is identical (WindowsCapture(window_hwnd=...),Frame.crop,frame_buffer,start_free_threaded), and the stream already copies the frame inside the callback, which 2.0's zero-copyframe_bufferrequires.ruff formatfixes in the capture package.Verification
uv lock/uv sync: fork removed,windows-capture 2.0.1installed (cp39-abi3 win_amd64 wheel, covers 3.11 and 3.12).ruff check,ruff format --check,pytest: 311 passed, 2 skipped.WindowsCaptureStreamwith the upstream package, got a 2556x1378 BGRA frame with the title bar cropped.🤖 Generated with Claude Code