~ubuntu-branches/debian/experimental/gpac/experimental

« back to all changes in this revision

Viewing changes to extra_lib/include/avcap/windows/DS_Device.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-02-22 18:15:00 UTC
  • mfrom: (1.2.2) (3.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140222181500-b4phupo05gjpmopa
Tags: 0.5.0+svn5104~dfsg1-1
* New  upstream version 0.5.0+svn5104~dfsg1:
  - src/utils/sha1.c is relicensed under LGPLv2.1, Closes: #730759
* Don't install modules in multi-arch directories, Closes: #730497
* Add libusb-1.0.0-dev headers because libfreenect requires this
* Fix install rule
* Follow upstream soname bump
  - Drop the symbols file for now until it has been revised thourougly
* Let binaries produce the correct svn revision
* Refresh patches
* Patch and build against libav10, Closes: #739321
* Bump standards version, no changes necessary

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * (c) 2005, 2008 Nico Pranke <Nico.Pranke@googlemail.com>, Robin Luedtke <RobinLu@gmx.de>
3
 
 *
4
 
 * This file is part of avcap.
5
 
 *
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.
10
 
 *
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.
15
 
 *
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/>.
18
 
 */
19
 
 
20
 
/* avcap is free for non-commercial use.
21
 
 * To use it in commercial endeavors, please contact Nico Pranke <Nico.Pranke@googlemail.com>.
22
 
 */
23
 
 
24
 
 
25
 
#ifndef DSDEVICE_H_
26
 
#define DSDEVICE_H_
27
 
 
28
 
#include <string>
29
 
#include <list>
30
 
 
31
 
#include "DS_DeviceDescriptor.h"
32
 
#include "CaptureDevice.h"
33
 
#include "avcap-export.h"
34
 
 
35
 
namespace avcap
36
 
{
37
 
// forward declarations
38
 
class DS_ConnectorManager;
39
 
class DS_ControlManager;
40
 
class DS_VidCapManager;
41
 
class DS_DeviceDescriptor;
42
 
class DS_FormatManager;
43
 
 
44
 
        //! Implementation of the CaptureDevice for DirectShow.
45
 
 
46
 
        class AVCAP_Export DS_Device : public CaptureDevice
47
 
        {
48
 
        private:
49
 
                DS_VidCapManager*               mVidCapMgr;
50
 
                DS_ConnectorManager*    mConnectorMgr;
51
 
                DS_ControlManager*              mControlMgr;
52
 
                DS_FormatManager*               mFormatMgr;
53
 
                DS_DeviceDescriptor*    mDSDeviceDescriptor;
54
 
 
55
 
        public:
56
 
                DS_Device(DS_DeviceDescriptor* dd);
57
 
 
58
 
                virtual ~DS_Device();
59
 
 
60
 
                inline const DeviceDescriptor* getDescriptor()
61
 
                        { return (const DeviceDescriptor*) mDSDeviceDescriptor; }
62
 
 
63
 
                inline CaptureManager* getVidCapMgr()
64
 
                        { return (CaptureManager*) mVidCapMgr; }
65
 
 
66
 
                inline ConnectorManager* getConnectorMgr()
67
 
                        { return (ConnectorManager*) mConnectorMgr;     }
68
 
 
69
 
                inline ControlManager* getControlMgr()
70
 
                        { return (ControlManager*) mControlMgr; }
71
 
 
72
 
                inline FormatManager* getFormatMgr()
73
 
                        { return (FormatManager*)mFormatMgr; }
74
 
 
75
 
        private:
76
 
                int open();
77
 
 
78
 
                int close();
79
 
        };
80
 
}
81
 
 
82
 
#endif // DSDEVICE_H_
 
1
/*
 
2
 * (c) 2005, 2008 Nico Pranke <Nico.Pranke@googlemail.com>, Robin Luedtke <RobinLu@gmx.de>
 
3
 *
 
4
 * This file is part of avcap.
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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/>.
 
18
 */
 
19
 
 
20
/* avcap is free for non-commercial use.
 
21
 * To use it in commercial endeavors, please contact Nico Pranke <Nico.Pranke@googlemail.com>.
 
22
 */
 
23
 
 
24
 
 
25
#ifndef DSDEVICE_H_
 
26
#define DSDEVICE_H_
 
27
 
 
28
#include <string>
 
29
#include <list>
 
30
 
 
31
#include "DS_DeviceDescriptor.h"
 
32
#include "CaptureDevice.h"
 
33
#include "avcap-export.h"
 
34
 
 
35
namespace avcap
 
36
{
 
37
// forward declarations
 
38
class DS_ConnectorManager;
 
39
class DS_ControlManager;
 
40
class DS_VidCapManager;
 
41
class DS_DeviceDescriptor;
 
42
class DS_FormatManager;
 
43
 
 
44
        //! Implementation of the CaptureDevice for DirectShow.
 
45
 
 
46
        class AVCAP_Export DS_Device : public CaptureDevice
 
47
        {
 
48
        private:
 
49
                DS_VidCapManager*               mVidCapMgr;
 
50
                DS_ConnectorManager*    mConnectorMgr;
 
51
                DS_ControlManager*              mControlMgr;
 
52
                DS_FormatManager*               mFormatMgr;
 
53
                DS_DeviceDescriptor*    mDSDeviceDescriptor;
 
54
 
 
55
        public:
 
56
                DS_Device(DS_DeviceDescriptor* dd);
 
57
 
 
58
                virtual ~DS_Device();
 
59
 
 
60
                inline const DeviceDescriptor* getDescriptor()
 
61
                        { return (const DeviceDescriptor*) mDSDeviceDescriptor; }
 
62
 
 
63
                inline CaptureManager* getVidCapMgr()
 
64
                        { return (CaptureManager*) mVidCapMgr; }
 
65
 
 
66
                inline ConnectorManager* getConnectorMgr()
 
67
                        { return (ConnectorManager*) mConnectorMgr;     }
 
68
 
 
69
                inline ControlManager* getControlMgr()
 
70
                        { return (ControlManager*) mControlMgr; }
 
71
 
 
72
                inline FormatManager* getFormatMgr()
 
73
                        { return (FormatManager*)mFormatMgr; }
 
74
 
 
75
        private:
 
76
                int open();
 
77
 
 
78
                int close();
 
79
        };
 
80
}
 
81
 
 
82
#endif // DSDEVICE_H_