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

[cscore] CvSink: Allow specifying output PixelFormat #5943

Merged
merged 7 commits into from Nov 22, 2023

Conversation

MrRedness
Copy link
Contributor

No description provided.

@MrRedness MrRedness requested a review from a team as a code owner November 20, 2023 18:41
@MrRedness MrRedness changed the title Passthrough of PixelFormat to GetFrame Passthrough of PixelFormat to GetImage Nov 20, 2023
@MrRedness MrRedness changed the title Passthrough of PixelFormat to GetImage [cscore] Passthrough of PixelFormat to GetImage Nov 21, 2023
@PeterJohnson PeterJohnson changed the title [cscore] Passthrough of PixelFormat to GetImage [cscore] CvSink: Allow specifying output PixelFormat Nov 22, 2023
@PeterJohnson PeterJohnson merged commit 437cc91 into wpilibsuite:main Nov 22, 2023
24 checks passed
@MrRedness
Copy link
Contributor Author

@PeterJohnson I noticed photonvision uses CameraServer to created and get a handle to a CvSink. Should CameraServer also be refactored to use the new constructor for CvSink?

@PeterJohnson
Copy link
Member

Probably. I assume it would just involve adding a parameter to getVideo?

@MrRedness
Copy link
Contributor Author

Probably. I assume it would just involve adding a parameter to getVideo?

Yeah that could work. Should it be a overloaded method and leave the current (which calls the default constructor of CvSink)?

Starlight220 pushed a commit to Starlight220/allwpilib that referenced this pull request Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants