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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
<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>VideoDeviceWin32.h</h1><a href="_video_device_win32_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="preprocessor">#ifndef VIDEO_DEVICE_WIN32_HPP</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define VIDEO_DEVICE_WIN32_HPP</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#include <qglobal.h></span>
00005 <span class="preprocessor">#include <qwidget.h></span>
00006
00007 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
00008 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="config_8h.html">config.h</a>></span>
00009 <span class="preprocessor">#endif</span>
00010 <span class="preprocessor"></span>
00011 <span class="preprocessor">#include <windows.h></span>
00012 <span class="preprocessor">#include <vfw.h></span>
00013
00014 <span class="preprocessor">#include "<a class="code" href="_video_device_8h.html">VideoDevice.h</a>"</span>
00015
<a name="l00016"></a><a class="code" href="class_c_video_device_win32.html">00016</a> <span class="keyword">class </span><a class="code" href="class_c_video_device_win32.html">CVideoDeviceWin32</a>: <span class="keyword">public</span> <a class="code" href="class_c_video_device.html">CVideoDevice</a>
00017 {
00018 Q_OBJECT
00019 <span class="keyword">private</span>:
00020 <span class="keyword">enum</span> Palettes {
00021 palRGB24 = 24,
00022 palRGB32 = 32,
00023 palI420 = 0x30323449,
00024 };
00025
00026 <span class="keywordtype">int</span> m_CapIndex;
00027 HWND m_CapHandle;
00028 CAPSTATUS m_CaptureStatus;
00029 QWaitCondition m_Capturing;
00030 <span class="keywordtype">int</span> m_Palette;
00031 <span class="keywordtype">int</span> m_BMISize;
00032 uchar *m_pBMIBuf;
00033 BITMAPINFO *m_pVideoInfo;
00034
00035 <span class="keywordtype">void</span> <a class="code" href="class_c_video_device.html#b3">CreateImagesRGB</a>();
00036 <span class="keywordtype">void</span> <a class="code" href="class_c_video_device.html#b4">DeleteImagesRGB</a>();
00037 <span class="keywordtype">void</span> <a class="code" href="class_c_video_device.html#b5">CreateImagesYUV</a>();
00038 <span class="keywordtype">void</span> <a class="code" href="class_c_video_device.html#b6">DeleteImagesYUV</a>();
00039
00040 <span class="keywordtype">bool</span> TryPalette(Palettes pal);
00041 <span class="keywordtype">void</span> UpdateCaptureStatus();
00042
00043 <span class="keywordtype">void</span> DumpVideoFormat(<span class="keyword">const</span> BITMAPINFO *info) <span class="keyword">const</span>;
00044 <span class="keywordtype">void</span> DumpCaptureParms(<span class="keyword">const</span> CAPTUREPARMS *cp) <span class="keyword">const</span>;
00045 <span class="keywordtype">void</span> DumpCaptureStatus(<span class="keyword">const</span> CAPSTATUS *cs = 0) <span class="keyword">const</span>;
00046
00047 <span class="keyword">protected</span>:
00048 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_win32.html#b0">Init</a>();
00049 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_win32.html#b1">Exit</a>();
00050
00051 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_win32.html#b2">StartCapture</a>();
00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_win32.html#b3">StopCapture</a>();
00053
00054 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_win32.html#b4">run</a>();
00055
00056 <span class="keyword">public</span>:
00057 <a class="code" href="class_c_video_device_win32.html">CVideoDeviceWin32</a>(<span class="keywordtype">int</span> index);
00058 <a class="code" href="class_c_video_device_win32.html#a1">~CVideoDeviceWin32</a>();
00059
00060 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="class_c_video_device_win32.html#a2">GetDescriptor</a>() <span class="keyword">const</span>;
00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_win32.html#a3">Mute</a>(<span class="keywordtype">bool</span> on) <span class="keyword">const</span>;
00062
00063 <span class="comment">/* Windows only */</span>
00064 <span class="comment">//bool CallbackAudioStream(int id, const QString &text);</span>
00065 <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_win32.html#a4">CallbackControl</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);
00066 <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_win32.html#a5">CallbackError</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> QString &text);
00067 <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_win32.html#a6">CallbackStatus</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> QString &text);
00068 <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_win32.html#a7">CallbackVideoStream</a>(VIDEOHDR *vh);
00069 <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_win32.html#a8">CallbackYield</a>();
00070
00071 <span class="keyword">public</span> slots: <span class="comment">/* overloaded slots */</span>
00072 <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_win32.html#i0">ShowDisplayDialog</a>();
00073 <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_win32.html#i1">ShowFormatDialog</a>();
00074 <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_win32.html#i2">ShowSourceDialog</a>();
00075 };
00076
00077 <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>
|