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 66 67 68 69 70
|
<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>VideoCollector.h</h1><a href="_video_collector_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="preprocessor">#ifndef VIDEOCOLLECTOR_HPP</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define VIDEOCOLLECTOR_HPP</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
00005 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="config_8h.html">config.h</a>></span>
00006 <span class="preprocessor">#endif</span>
00007 <span class="preprocessor"></span>
00008 <span class="preprocessor">#include <qmap.h></span>
00009 <span class="preprocessor">#include <qlist.h></span>
00010
00011 <span class="preprocessor">#ifdef _OS_WIN32_</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#include <windows.h></span>
00013 <span class="preprocessor">#include <vfw.h></span>
00014 <span class="keyword">class </span><a class="code" href="class_c_video_device_win32.html">CVideoDeviceWin32</a>;
00015 <span class="preprocessor">#endif</span>
00016 <span class="preprocessor"></span>
00017 <span class="preprocessor">#include "<a class="code" href="_video_device_8h.html">VideoDevice.h</a>"</span>
00018
<a name="l00019"></a><a class="code" href="class_c_video_collector.html">00019</a> <span class="keyword">class </span><a class="code" href="class_c_video_collector.html">CVideoCollector</a>
00020 {
00021 <span class="keyword">private</span>:
00022 <span class="keyword">static</span> <a class="code" href="class_c_video_collector.html">CVideoCollector</a> *s_pVideoCollector;
00023 QList<CVideoDevice> m_Devices;
00024
00025 <a class="code" href="class_c_video_collector.html">CVideoCollector</a>();
00026 <span class="keywordtype">void</span> Scan();
00027
00028 <span class="keyword">public</span>:
00029 <span class="keyword">static</span> <a class="code" href="class_c_video_collector.html">CVideoCollector</a> *<a class="code" href="class_c_video_collector.html#e0">Instance</a>();
00030
00031 uint <a class="code" href="class_c_video_collector.html#a0">NumberOfVideoDevices</a>() <span class="keyword">const</span>;
00032 <a class="code" href="class_c_video_device.html">CVideoDevice</a> *<a class="code" href="class_c_video_collector.html#a1">GetVideoDevice</a>(uint n);
00033
00034 <span class="preprocessor">#ifdef _OS_WIN32_</span>
00035 <span class="preprocessor"></span> <span class="comment">/* Windows uses callbacks. Callbacks suck. Windows sucks. Oh wait,</span>
00036 <span class="comment"> you probably already knew that... :-)</span>
00037 <span class="comment"></span>
00038 <span class="comment"> Anyway. Since CVideoCollector is singleton, we might as well use </span>
00039 <span class="comment"> it as our callback point. However, that requires some functions</span>
00040 <span class="comment"> and member variables to be static.</span>
00041 <span class="comment"> */</span>
00042 <span class="keyword">static</span> QMap<HWND, CVideoDeviceWin32 *>s_HWND2Video;
00043
00044 <span class="keywordtype">void</span> RegisterDevice(HWND, <a class="code" href="class_c_video_device_win32.html">CVideoDeviceWin32</a> *);
00045 <span class="keywordtype">void</span> UnregisterDevice(HWND);
00046
00047 <span class="comment">// static LRESULT CALLBACK AudioCallback(HWND, int. LPTSTR);</span>
00048 <span class="keyword">static</span> LRESULT CALLBACK ControlCallback(HWND, <span class="keywordtype">int</span>);
00049 <span class="keyword">static</span> LRESULT CALLBACK ErrorCallback(HWND, <span class="keywordtype">int</span>, LPTSTR);
00050 <span class="keyword">static</span> LRESULT CALLBACK StatusCallback(HWND, <span class="keywordtype">int</span>, LPTSTR);
00051 <span class="keyword">static</span> LRESULT CALLBACK VideoCallback(HWND, LPVIDEOHDR);
00052 <span class="keyword">static</span> LRESULT CALLBACK YieldCallback(HWND);
00053 <span class="preprocessor">#endif</span>
00054 <span class="preprocessor"></span>};
00055
00056 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 13 23:38:46 2006 for CamStream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>
|