Skip to content

Release the GIL around hardware frame transfers - #2413

Merged
WyattBlue merged 1 commit into
mainfrom
patch
Sep 17, 2026
Merged

WyattBlue merged 1 commit into
mainfrom
patch

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

av_hwframe_transfer_data() is a full GPU<->host frame copy that ran on every hwaccel decoded/encoded frame while holding the GIL. Wrap call sites, folding av_hwframe_get_buffer() into the upload's region since it blocks when the surface pool is exhausted.

av_hwframe_transfer_data() is a full GPU<->host frame copy that ran on
every hwaccel decoded/encoded frame while holding the GIL. Wrap call
sites, folding av_hwframe_get_buffer() into the upload's region since
it blocks when the surface pool is exhausted.
@WyattBlue
WyattBlue merged commit 6c5aacf into main Sep 17, 2026
9 checks passed
@WyattBlue
WyattBlue deleted the patch branch September 17, 2026 19:00
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.

1 participant