Skip to content

Don't include DirectX when WITH_DIRECTX=OFF is specified - #13421

Closed
ThadHouse wants to merge 1 commit into
opencv:3.4from
ThadHouse:listentonodx
Closed

ThadHouse wants to merge 1 commit into
opencv:3.4from
ThadHouse:listentonodx

Conversation

@ThadHouse

@ThadHouse ThadHouse commented Dec 12, 2018 •

Copy link
Copy Markdown
Contributor

Portions of DirectX were removed, but others were not. WITH_DIRECTX=OFF should not include DirectX anywhere.

This mainly affected VideoIO, which included DirectX 11 even with the no directx flag set.
https://github.com/opencv/opencv/blob/master/modules/videoio/src/cap_msmf.cpp#L84

This is a fix that should be backported to 3.4 as well. Should that be a separate PR, or done after merging?

Portions of DirectX were removed, but others were not. WITH_DIRECTX=OFF should not include DirectX anywhere
@mshabunin

Copy link
Copy Markdown
Contributor

@ThadHouse , I'm reworking videoio dependencies search: #13422
I will add option WITH_MSMF_DXVA to control this specific part. What do you think?

mshabunin added a commit to mshabunin/opencv that referenced this pull request Dec 12, 2018
@ThadHouse

ThadHouse commented Dec 12, 2018 •

Copy link
Copy Markdown
Contributor Author

I feel like WITH_DIRECTX=OFF should unconditionally mean there should be no DirectX linked anywhere in the library. It is confusing from a user perspective to have 2 flags to do the same things in 2 separate parts of the library.

I do think there could be separate flags, since there might be some use cases for disabling HW videoio, but still having the Mat to DirectX functionality, but WITH_DIRECTX=OFF should turn off both flags, not just turn off one portion but leave another portion still requiring DirectX.

I feel like a change that big also wouldn't be backported to 3.4, whereas this should be, as 3.3 and before I think didn't have this issue.

@ThadHouse
ThadHouse changed the base branch from master to 3.4 December 12, 2018 14:21
@ThadHouse

Copy link
Copy Markdown
Contributor Author

Per comments on #13420, I changed the base branch of this to 3.4 as it really is a 3.4 fix that should go in 4.0 as well.

@mshabunin

Copy link
Copy Markdown
Contributor

@ThadHouse , these parts are independent, that is why I think they should be controlled by different options. I agree, option WITH_DIRECTX is slightly misleading, it'd rather call it WITH_DIRECTX_INTEROP. Please, take a look at the proposed PR #13436 - it backports WITH_MSMF_DXVA option to 3.4 branch.

@alalek

alalek commented Dec 14, 2018

Copy link
Copy Markdown
Member

replaced by #13436

@ThadHouse
ThadHouse deleted the listentonodx branch February 8, 2019 01:18
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.

3 participants