summaryrefslogtreecommitdiff
path: root/avstream/avscamera/sys/AvsCameraDevice.h
diff options
context:
space:
mode:
authorWei Mao <[email protected]>2017-03-17 20:14:57 -0700
committerWei Mao <[email protected]>2017-03-17 20:14:57 -0700
commit406cf3e4c6cd251bf69cdd8d7b6433f3477d3980 (patch)
tree15ca9253d190ab5e16cde06526dc17b486f32a22 /avstream/avscamera/sys/AvsCameraDevice.h
parent1a3e0d580380e58bf336a242d2affc8a1e2d1ddf (diff)
Use lower case
Diffstat (limited to 'avstream/avscamera/sys/AvsCameraDevice.h')
-rw-r--r--avstream/avscamera/sys/AvsCameraDevice.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/avstream/avscamera/sys/AvsCameraDevice.h b/avstream/avscamera/sys/AvsCameraDevice.h
new file mode 100644
index 00000000..ec98e892
--- /dev/null
+++ b/avstream/avscamera/sys/AvsCameraDevice.h
@@ -0,0 +1,73 @@
+/**************************************************************************
+
+ A/V Stream Camera Sample
+
+ Copyright (c) 2015, Microsoft Corporation.
+
+ File:
+
+ AvsCameraDevice.h
+
+ Abstract:
+
+ Device class implementation. Derived from CCaptureDevice.
+ This class overloads our base device class implementation.
+
+ History:
+
+ created 02/24/2015
+
+**************************************************************************/
+
+#pragma once
+
+class CAvsCameraDevice : public CCaptureDevice
+{
+public:
+ //
+ // DispatchCreate():
+ //
+ // This is the Add Device dispatch for the capture device. It creates
+ // the CCaptureDevice and associates it with the device via the bag.
+ //
+ static
+ NTSTATUS
+ DispatchCreate (
+ _In_ PKSDEVICE Device
+ );
+
+public:
+ //
+ // CCaptureDevice():
+ //
+ // The capture device class constructor. Since everything should have
+ // been zero'ed by the new operator, don't bother setting anything to
+ // zero or NULL. Only initialize non-NULL, non-0 fields.
+ //
+ CAvsCameraDevice(
+ _In_ PKSDEVICE Device
+ )
+ : CCaptureDevice( Device )
+ {}
+
+ virtual
+ NTSTATUS
+ Initialize();
+
+protected:
+ virtual
+ CSensor *
+ CreateSensor(
+ _In_ const KSFILTER_DESCRIPTOR *Descriptors
+ );
+
+};
+
+// {B27E3887-AD10-4A4E-BFB8-D6765ADD0E38}
+#define STATIC_FrontCamera_Filter \
+ 0xb27e3887, 0xad10, 0x4a4e, 0xbf, 0xb8, 0xd6, 0x76, 0x5a, 0xdd, 0xe, 0x38
+
+// {4EE16166-F358-4F10-8889-93107806B7A7}
+#define STATIC_RearCamera_Filter \
+ 0x4ee16166, 0xf358, 0x4f10, 0x88, 0x89, 0x93, 0x10, 0x78, 0x6, 0xb7, 0xa7
+