Skip to content

select correct MediaType in MSMF backend.#22347

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
bu3w:filter-camera-streaming-by-format
Aug 26, 2022
Merged

select correct MediaType in MSMF backend.#22347
asmorkalov merged 1 commit intoopencv:4.xfrom
bu3w:filter-camera-streaming-by-format

Conversation

@bu3w
Copy link
Copy Markdown
Contributor

@bu3w bu3w commented Aug 6, 2022

There may be more than one streams in some camera device (for example RealSense D405)
some streaming setting may be not regular visualable image.
But, in MSMF backend, by default, regular visualable image is require.

This patch will skip some streaming base on the format.

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

Copy link
Copy Markdown
Member

@zihaomu zihaomu left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! 👍
I have tested this PR with Orbbec camera (Astra +) and it works fine both on the Depth stream and RGB stream.

@bu3w bu3w force-pushed the filter-camera-streaming-by-format branch from 583e52c to 6432f02 Compare August 25, 2022 01:28
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.

4 participants