-
Notifications
You must be signed in to change notification settings - Fork 62
BETA CUDA interface: Add TODOs and more explicit initialization #918
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
BETA CUDA interface: Add TODOs and more explicit initialization #918
Conversation
decoderParams.OutputFormat = cudaVideoSurfaceFormat_NV12; | ||
decoderParams.ulCreationFlags = cudaVideoCreate_Default; |
There was a problem hiding this comment.
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.
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)