Skip to content

Conversation

cudawarped
Copy link
Contributor

@cudawarped cudawarped commented Oct 17, 2025

Fix #3934 by removing NVSurfaceToColorConverter dependance on constant memory.

Currently it is not possible for more than one instance of NVSurfaceToColorConverter to be used if they convert from different color spaces because the color conversion values in constant memory are overwritten on creation of the most recent NVSurfaceToColorConverter object.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov asmorkalov self-requested a review October 20, 2025 05:54
@asmorkalov asmorkalov self-assigned this Oct 20, 2025
@asmorkalov asmorkalov merged commit b23b765 into opencv:4.x Oct 23, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Color shift on cv::cudacodec::VideoReader when using multiple threads reading videos from different color spaces in parallel

2 participants