summaryrefslogtreecommitdiff
path: root/AVStream/avscamera/sys/AvsCameraDevice.cpp
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.cpp
parent1a3e0d580380e58bf336a242d2affc8a1e2d1ddf (diff)
Use lower case
Diffstat (limited to 'AVStream/avscamera/sys/AvsCameraDevice.cpp')
-rw-r--r--AVStream/avscamera/sys/AvsCameraDevice.cpp99
1 files changed, 0 insertions, 99 deletions
diff --git a/AVStream/avscamera/sys/AvsCameraDevice.cpp b/AVStream/avscamera/sys/AvsCameraDevice.cpp
deleted file mode 100644
index 8916e2ef..00000000
--- a/AVStream/avscamera/sys/AvsCameraDevice.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-/**************************************************************************
-
- A/V Stream Camera Sample
-
- Copyright (c) 2015, Microsoft Corporation.
-
- File:
-
- AvsCameraDevice.cpp
-
- Abstract:
-
- Device class implementation. Derived from CCaptureDevice.
- This class overloads our base device class implementation.
-
- History:
-
- created 02/24/2015
-
-**************************************************************************/
-
-#include "Common.h"
-
-/**************************************************************************
-
- PAGEABLE CODE
-
-**************************************************************************/
-
-#ifdef ALLOC_PRAGMA
-#pragma code_seg("PAGE")
-#endif // ALLOC_PRAGMA
-
-//
-// DispatchCreate():
-//
-// This is the Add Device dispatch for the capture device. It creates
-// the CCaptureDevice and associates it with the device via the bag.
-//
-NTSTATUS
-CAvsCameraDevice::
-DispatchCreate (
- _In_ PKSDEVICE Device
-)
-{
- PAGED_CODE();
-
- DBG_ENTER("()");
-
- CAvsCameraDevice *CapDevice = new (NonPagedPoolNx, 'eviD') CAvsCameraDevice (Device);
- if( !CapDevice)
- {
- //
- // Return failure if we couldn't create the device.
- //
- return STATUS_INSUFFICIENT_RESOURCES;
- }
-
- NTSTATUS Status = CapDevice->Prepare();
- if (!NT_SUCCESS (Status))
- {
- // Init failure.
- delete CapDevice;
- }
-
- DBG_LEAVE("()");
- return Status;
-}
-
-NTSTATUS
-CAvsCameraDevice::
-Initialize()
-{
- PAGED_CODE();
-
- static
- CSensorContext Context[] =
- {
- { L"RFC", &AvsCameraFilterDescriptor, AcpiPldPanelBack, AcpiPldRotation0 },
- { L"FFC", &AvsCameraFilterDescriptorFFC, AcpiPldPanelFront, AcpiPldRotation90 }
- };
-
- m_FilterDescriptorCount = SIZEOF_ARRAY(Context);
- m_Context = Context;
-
- return CCaptureDevice::Initialize();
-}
-
-CSensor *
-CAvsCameraDevice::
-CreateSensor(
- _In_ const KSFILTER_DESCRIPTOR *Descriptors
-)
-{
- PAGED_CODE();
-
- return new (NonPagedPoolNx, 'sneS') CSensorSimulation( this, Descriptors );
-}
-