blob: c7683a8c30cdb90da5fa67bf87f280571dc7f686 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#if !defined(VFWSETTING_HPP)
#define VFWSETTING_HPP
//______________________________________________________________________________
//
// VFWSetting.hpp
//
#include "FourCC.hpp"
#include <iosfwd>
namespace on2vp
{
//--------------------------------------
class VFWSetting
{
friend std::ostream& operator<<(std::ostream& os, const VFWSetting& vfws);
public:
enum Mode
{
M_Setting,
M_Config
};
enum
{
HeaderSize = 8,
Size = 16
};
VFWSetting(FourCC fcc);
~VFWSetting();
FourCC fcc() const;
Mode mode() const;
int setting() const;
int value() const;
void settingValue(int iSetting, int iValue); // Sets mode to M_Setting
long size() const;
const void* data() const;
int data(const void* pData, unsigned long ulSize);
private:
VFWSetting(const VFWSetting& vfws); // Not implemented
VFWSetting& operator=(const VFWSetting& vfws); // Not implemented
int extract_(const void* pData, unsigned long ulSize);
void update_() const;
FourCC m_fcc;
Mode m_mode;
int m_iSetting;
int m_iValue;
mutable unsigned char m_pData[Size];
};
} // namespace on2vp
#endif // VFWSETTING_HPP
|