Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize logic to recreate colorspace conversion objects #436

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

scotts
Copy link
Contributor

@scotts scotts commented Dec 16, 2024

This PR makes both colorspace conversion options (swscale, filtergraph) resilient to variable resolution frames on the same stream.

For swscale, this was already the case. We were remembering the frame context (decoded resolution, expected resolution, pixel format), and if that ever changed, we recreated the necessary sws objects. This PR generalizes this logic and also does it for filtergraph.

Note that we're also bumping the version number to 0.1.2a0. We neglected to do this after the 0.1.0 and 0.1.1 releases. That is, we did it on the appropriate release branches, but our main repo was still on 0.0.4a0.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 16, 2024
@scotts scotts marked this pull request as ready for review December 16, 2024 21:46
@scotts scotts merged commit 04af57f into pytorch:main Dec 16, 2024
36 of 37 checks passed
@scotts scotts deleted the var_res branch December 16, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants