summaryrefslogtreecommitdiff
path: root/avstream/avscamera/sys/SensorSimulation.cpp
diff options
context:
space:
mode:
authorsaredd <[email protected]>2018-01-19 17:19:00 -0800
committerWei Mao <[email protected]>2018-01-19 17:19:00 -0800
commit6e7c8cb437135e55917c34cfebe1be944bbf6d3f (patch)
treef7570fe170194facd45e4f9f887ff56dc683a31c /avstream/avscamera/sys/SensorSimulation.cpp
parentdd7e6f697ed67e94dc45cd33078b1dbcb643f439 (diff)
Updating Camera WDK Samples to RS3 version (#193)
Diffstat (limited to 'avstream/avscamera/sys/SensorSimulation.cpp')
-rw-r--r--avstream/avscamera/sys/SensorSimulation.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/avstream/avscamera/sys/SensorSimulation.cpp b/avstream/avscamera/sys/SensorSimulation.cpp
index 3ebeb56b..ce6a2c17 100644
--- a/avstream/avscamera/sys/SensorSimulation.cpp
+++ b/avstream/avscamera/sys/SensorSimulation.cpp
@@ -299,6 +299,7 @@ Return Value:
m_VideoStabilization = KSCAMERA_EXTENDEDPROP_VIDEOSTABILIZATION_OFF;
m_Histogram = KSCAMERA_EXTENDEDPROP_HISTOGRAM_OFF;
m_OpticalImageStabilization = KSCAMERA_EXTENDEDPROP_OIS_AUTO;
+ m_VideoTemporalDenoising = KSCAMERA_EXTENDEDPROP_VIDEOTEMPORALDENOISING_AUTO;
m_AdvancedPhoto.PinId = GetNextStillIndex();
m_AdvancedPhoto.Flags = KSCAMERA_EXTENDEDPROP_ADVANCEDPHOTO_OFF;
@@ -1773,6 +1774,38 @@ SetOpticalImageStabilization(
return STATUS_SUCCESS;
}
+// Get KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOTEMPORALDENOISING.
+NTSTATUS
+CSensorSimulation::
+GetVideoTemporalDenoising(
+ _Inout_ CExtendedProperty *pProperty
+)
+{
+ PAGED_CODE();
+ KScopedMutex lock(m_SensorMutex);
+
+ pProperty->Flags = m_VideoTemporalDenoising;
+ pProperty->Capability = KSCAMERA_EXTENDEDPROP_VIDEOTEMPORALDENOISING_AUTO |
+ KSCAMERA_EXTENDEDPROP_VIDEOTEMPORALDENOISING_OFF |
+ KSCAMERA_EXTENDEDPROP_VIDEOTEMPORALDENOISING_ON;
+
+ return STATUS_SUCCESS;
+}
+
+// Set KSPROPERTY_CAMERACONTROL_EXTENDED_VIDEOTEMPORALDENOISING.
+NTSTATUS
+CSensorSimulation::
+SetVideoTemporalDenoising(
+ _In_ CExtendedProperty *pProperty
+)
+{
+ PAGED_CODE();
+ KScopedMutex lock(m_SensorMutex);
+
+ m_VideoTemporalDenoising = pProperty->Flags;
+ return STATUS_SUCCESS;
+}
+
// Get KSPROPERTY_CAMERACONTROL_EXTENDED_ADVANCEDPHOTO.
NTSTATUS
CSensorSimulation::