-
Notifications
You must be signed in to change notification settings - Fork 29
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
[CHG] added ShowPropertyPage method to DirectShowDevice class #110
Conversation
Hi, I had the necessity to show the native dialog of the DirectShow source filter in the UI, see also: https://learn.microsoft.com/en-us/windows/win32/directshow/displaying-a-filters-property-pages Some vendors (like here Blackmagic WDM Capture filter) offer some important settings in those property pages: I also extended the WPF sample with some buttons and a dropdown to select the source from: Not sure if this can be merged back to the main repository in terms of coding standard :) |
@flat-eric147 Can I separate and merge only the modification of the transcoder option? The current implementation understands that transcoder is always BitmapTranscoder.Transcode(
pBih->biWidth, pBih->biHeight,
pBih->biCompression, YUV2RGBConversionStandard.Auto, true, // Always `Auto`
pImageContainer + pBfh->bfOffBits,
pTranscodedImageContainer + pBfhTo->bfOffBits); I think we need to make minor modifications in various places to get the information from here to the public interface |
Yes, it makes sense to expose it to the public interface, but I prefer to leave that work to you as you know better than me what to do and where to do it. I'm also unsure about the performFullRange parameter which was unused before. Please merge whatever you think makes sense, I'm happy with anything you merge back. Let me know if you need anything do to from my side. Thank you! |
@flat-eric147 Cherry-picked your YUV transcode fragment and merged extended interface into 295de15 . Please verify it and modify when a desirable pattern can be considered.
|
Hi, I attach a patch since I cannot push to the original repository and I don't know how to sync the new branch into my forked repository.
yes, I am unsure how to put that logic, feel free to change it!
Just added it. It was there implicitly with the default initial values of the multiplier variables. Made it more explicit and readable now. |
You mean you don't know how to make things work with git operation? There are many ways to handle the problem in Git, and this is one of them (this is how I would operate).
Now you should have 53cf67a32a6a6a41c48be293c6238c08d967d9d85e changes committed to the latest location (commit ID will change). After that, you should be able to commit the patch. If you can't get it to work, let me know and I'll do it here. (I try to leave modifications to the person who wrote the code if there is no reason to do so, since the code belongs to that person ;) |
Appreciate the instructions but I failed miserably :) Especially the rebase command did not work, I tried a lot of variations but I always get "invalid upstream". Please use my patch, I don't mind not getting any credit for this ;) |
No, problem! I will make it. |
Moved #116. |
No description provided.