2
* (c) 2005, 2008 Nico Pranke <Nico.Pranke@googlemail.com>, Robin Luedtke <RobinLu@gmx.de>
4
* This file is part of avcap.
6
* avcap is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
11
* avcap is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with avcap. If not, see <http://www.gnu.org/licenses/>.
20
/* avcap is free for non-commercial use.
21
* To use it in commercial endeavors, please contact Nico Pranke <Nico.Pranke@googlemail.com>.
31
#include "DS_DeviceDescriptor.h"
32
#include "CaptureDevice.h"
33
#include "avcap-export.h"
37
// forward declarations
38
class DS_ConnectorManager;
39
class DS_ControlManager;
40
class DS_VidCapManager;
41
class DS_DeviceDescriptor;
42
class DS_FormatManager;
44
//! Implementation of the CaptureDevice for DirectShow.
46
class AVCAP_Export DS_Device : public CaptureDevice
49
DS_VidCapManager* mVidCapMgr;
50
DS_ConnectorManager* mConnectorMgr;
51
DS_ControlManager* mControlMgr;
52
DS_FormatManager* mFormatMgr;
53
DS_DeviceDescriptor* mDSDeviceDescriptor;
56
DS_Device(DS_DeviceDescriptor* dd);
60
inline const DeviceDescriptor* getDescriptor()
61
{ return (const DeviceDescriptor*) mDSDeviceDescriptor; }
63
inline CaptureManager* getVidCapMgr()
64
{ return (CaptureManager*) mVidCapMgr; }
66
inline ConnectorManager* getConnectorMgr()
67
{ return (ConnectorManager*) mConnectorMgr; }
69
inline ControlManager* getControlMgr()
70
{ return (ControlManager*) mControlMgr; }
72
inline FormatManager* getFormatMgr()
73
{ return (FormatManager*)mFormatMgr; }
2
* (c) 2005, 2008 Nico Pranke <Nico.Pranke@googlemail.com>, Robin Luedtke <RobinLu@gmx.de>
4
* This file is part of avcap.
6
* avcap is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
11
* avcap is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with avcap. If not, see <http://www.gnu.org/licenses/>.
20
/* avcap is free for non-commercial use.
21
* To use it in commercial endeavors, please contact Nico Pranke <Nico.Pranke@googlemail.com>.
31
#include "DS_DeviceDescriptor.h"
32
#include "CaptureDevice.h"
33
#include "avcap-export.h"
37
// forward declarations
38
class DS_ConnectorManager;
39
class DS_ControlManager;
40
class DS_VidCapManager;
41
class DS_DeviceDescriptor;
42
class DS_FormatManager;
44
//! Implementation of the CaptureDevice for DirectShow.
46
class AVCAP_Export DS_Device : public CaptureDevice
49
DS_VidCapManager* mVidCapMgr;
50
DS_ConnectorManager* mConnectorMgr;
51
DS_ControlManager* mControlMgr;
52
DS_FormatManager* mFormatMgr;
53
DS_DeviceDescriptor* mDSDeviceDescriptor;
56
DS_Device(DS_DeviceDescriptor* dd);
60
inline const DeviceDescriptor* getDescriptor()
61
{ return (const DeviceDescriptor*) mDSDeviceDescriptor; }
63
inline CaptureManager* getVidCapMgr()
64
{ return (CaptureManager*) mVidCapMgr; }
66
inline ConnectorManager* getConnectorMgr()
67
{ return (ConnectorManager*) mConnectorMgr; }
69
inline ControlManager* getControlMgr()
70
{ return (ControlManager*) mControlMgr; }
72
inline FormatManager* getFormatMgr()
73
{ return (FormatManager*)mFormatMgr; }