Skip to content

Conversation

NicolasHug
Copy link
Contributor

@NicolasHug NicolasHug commented Oct 3, 2025

Small PR that adds a TODO and explicitly sets some decoder creation parameters.

Needs #917 first, so to review it independently please look at 8e73bcf (#918)

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 3, 2025
@NicolasHug NicolasHug marked this pull request as draft October 3, 2025 09:39
Comment on lines +118 to +119
decoderParams.OutputFormat = cudaVideoSurfaceFormat_NV12;
decoderParams.ulCreationFlags = cudaVideoCreate_Default;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not obvious from the diff because of the drive-by renaming, but these are the 2 lines that were added. They are used by default whether we explicitly set them or not (their enum value is 0 and we zero-initialize the decoderParams). But I think setting them explicitly makes sense, if only for the reader to know that they exist.

@NicolasHug NicolasHug marked this pull request as ready for review October 3, 2025 14:42
@NicolasHug NicolasHug merged commit 3f445bb into meta-pytorch:main Oct 4, 2025
50 checks passed
@NicolasHug NicolasHug deleted the nvdec-params-and-todos branch October 4, 2025 08:51
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