Add support for CameraControl and VideoProcAmp properties #37
No reviewers
Labels
No labels
Bug
Duplicate
Enhancement
Help Wanted
Invalid
Question
Wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-obsproject/libdshowcapture!37
Loading…
Reference in a new issue
No description provided.
Delete branch "video_device_properties"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Motivation and Context
Allow to load and save camera device properties
How Has This Been Tested?
with an option to save the properties on the video capture device "dshow_input" source
Types of changes
Checklist:
If
pCameraControlcould be null, the null check should happen earlier since it is dereferenced before the null check.Same null check after dereference issue.
Same null check after dereference issue.
Same null check after dereference issue.
Minor nitpick, if you're using C++ you want to use
nullptrinstead ofNULL. Also you want to avoid using raw pointers for COM objects. Always try to useComPtrand/orComQIPtr.I used
NULLinstead ofnullptrbecause that matches other code in the same file, now only replaced it in the code that is added by this PR.I have no experience with
ComPtrand/orComQIPtr, so I hope I have used it correctly now.One more small suggestion:
You can change these sort of lines
to this:
The ComQIPtr helper class will automatically call QueryInterface for you. It's pretty nice and clean. I'd recommend changing all those cases calling QueryInterface to this instead. Should clean up the code a bit more.