Fix missing exposure property on windows USB cameras (#1571)

This commit is contained in:
Thad House
2019-02-06 22:49:55 -08:00
committed by Peter Johnson
parent 6992f5421f
commit a9371a7586
4 changed files with 190 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -132,11 +132,12 @@ class UsbCameraImpl : public SourceImpl,
CS_StatusValue DeviceSetMode();
void DeviceCacheMode();
void DeviceCacheProperty(std::unique_ptr<UsbCameraProperty> rawProp,
IAMVideoProcAmp* pProcAmp);
IMFSourceReader* sourceReader);
void DeviceCacheProperties();
void DeviceCacheVideoModes();
void DeviceAddProperty(const wpi::Twine& name_, tagVideoProcAmpProperty tag,
IAMVideoProcAmp* pProcAmp);
template <typename TagProperty, typename IAM>
void DeviceAddProperty(const wpi::Twine& name_, TagProperty tag,
IAM* pProcAmp);
ComPtr<IMFMediaType> DeviceCheckModeValid(const VideoMode& toCheck);