Skip to content

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 meta-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