📄 videoio_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>videoio.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>videoio.h</h1><a href="videoio_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * videoio.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Classes to support streaming video input (grabbing) and output.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-2000 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): Mark Cooke (mpc@star.sr.bham.ac.uk)</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: videoio.h,v $</span>00027 <span class="comment"> * Revision 1.40 2004/04/18 12:49:22 csoutheren</span>00028 <span class="comment"> * Patches to video code thanks to Guilhem Tardy (hope I get it right this time :)</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.39 2004/01/18 14:23:30 dereksmithies</span>00031 <span class="comment"> * Add new function to make opening of video input devices easier.</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.38 2004/01/02 23:30:18 rjongbloed</span>00034 <span class="comment"> * Removed extraneous static function for getting input device names that has been deprecated during the plug ins addition.</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.37 2003/12/14 10:01:02 rjongbloed</span>00037 <span class="comment"> * Resolved issue with name space conflict os static and virtual forms of GetDeviceNames() function.</span>00038 <span class="comment"> *</span>00039 <span class="comment"> * Revision 1.36 2003/12/03 03:47:56 dereksmithies</span>00040 <span class="comment"> * Add fix so video output devices compile and run correctly.</span>00041 <span class="comment"> * Thanks to Craig Southeren.</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.35 2003/11/19 04:29:02 csoutheren</span>00044 <span class="comment"> * Changed to support video output plugins</span>00045 <span class="comment"> *</span>00046 <span class="comment"> * Revision 1.34 2003/11/18 10:39:06 csoutheren</span>00047 <span class="comment"> * Fixed warnings regarding calling virtual Close in destructors</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.33 2003/11/18 06:46:15 csoutheren</span>00050 <span class="comment"> * Changed to support video input plugins</span>00051 <span class="comment"> *</span>00052 <span class="comment"> * Revision 1.32 2003/09/17 05:41:59 csoutheren</span>00053 <span class="comment"> * Removed recursive includes</span>00054 <span class="comment"> *</span>00055 <span class="comment"> * Revision 1.31 2003/09/17 01:18:02 csoutheren</span>00056 <span class="comment"> * Removed recursive include file system and removed all references</span>00057 <span class="comment"> * to deprecated coooperative threading support</span>00058 <span class="comment"> *</span>00059 <span class="comment"> * Revision 1.30 2003/03/17 08:10:00 robertj</span>00060 <span class="comment"> * Fixed GNU warning</span>00061 <span class="comment"> *</span>00062 <span class="comment"> * Revision 1.29 2003/03/17 07:51:07 robertj</span>00063 <span class="comment"> * Added OpenFull() function to open with all video parameters in one go.</span>00064 <span class="comment"> * Made sure vflip variable is set in converter even if converter has not</span>00065 <span class="comment"> * been set yet, should not depend on the order of functions!</span>00066 <span class="comment"> * Removed canCaptureVideo variable as this is really a virtual function to</span>00067 <span class="comment"> * distinguish PVideoOutputDevice from PVideoInputDevice, it is not dynamic.</span>00068 <span class="comment"> * Made significant enhancements to PVideoOutputDevice class.</span>00069 <span class="comment"> * Added PVideoOutputDevice descendants for NULL and PPM files.</span>00070 <span class="comment"> *</span>00071 <span class="comment"> * Revision 1.28 2002/09/16 01:08:59 robertj</span>00072 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00073 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00074 <span class="comment"> *</span>00075 <span class="comment"> * Revision 1.27 2002/04/12 08:25:12 robertj</span>00076 <span class="comment"> * Added text string output for tracing video format.</span>00077 <span class="comment"> *</span>00078 <span class="comment"> * Revision 1.26 2002/04/05 06:41:54 rogerh</span>00079 <span class="comment"> * Apply video changes from Damien Sandras <dsandras@seconix.com>.</span>00080 <span class="comment"> * The Video Channel and Format are no longer set in Open(). Instead</span>00081 <span class="comment"> * call the new SetVideoChannelFormat() method. This makes video capture</span>00082 <span class="comment"> * and GnomeMeeting more stable with certain Linux video capture devices.</span>00083 <span class="comment"> *</span>00084 <span class="comment"> * Revision 1.25 2002/02/20 02:37:26 dereks</span>00085 <span class="comment"> * Initial release of Firewire camera support for linux.</span>00086 <span class="comment"> * Many thanks to Ryutaroh Matsumoto <ryutaroh@rmatsumoto.org>.</span>00087 <span class="comment"> *</span>00088 <span class="comment"> * Revision 1.24 2002/01/16 07:51:06 robertj</span>00089 <span class="comment"> * MSVC compatibilty changes</span>00090 <span class="comment"> *</span>00091 <span class="comment"> * Revision 1.23 2002/01/16 03:51:20 dereks</span>00092 <span class="comment"> * Move flip methods in PVideoInputDevice to PVideoDevice</span>00093 <span class="comment"> *</span>00094 <span class="comment"> * Revision 1.22 2002/01/14 02:59:54 robertj</span>00095 <span class="comment"> * Added preferred colour format selection, thanks Walter Whitlock</span>00096 <span class="comment"> *</span>00097 <span class="comment"> * Revision 1.21 2002/01/04 04:11:45 dereks</span>00098 <span class="comment"> * Add video flip code from Walter Whitlock, which flips code at the grabber.</span>00099 <span class="comment"> *</span>00100 <span class="comment"> * Revision 1.20 2001/11/28 00:07:32 dereks</span>00101 <span class="comment"> * Locking added to PVideoChannel, allowing reader/writer to be changed mid call</span>00102 <span class="comment"> * Enabled adjustment of the video frame rate</span>00103 <span class="comment"> * New fictitous image, a blank grey area</span>00104 <span class="comment"> *</span>00105 <span class="comment"> * Revision 1.19 2001/08/06 06:12:45 rogerh</span>00106 <span class="comment"> * Fix comments</span>00107 <span class="comment"> *</span>00108 <span class="comment"> * Revision 1.18 2001/08/03 04:21:51 dereks</span>00109 <span class="comment"> * Add colour/size conversion for YUV422->YUV411P</span>00110 <span class="comment"> * Add Get/Set Brightness,Contrast,Hue,Colour for PVideoDevice, and</span>00111 <span class="comment"> * Linux PVideoInputDevice.</span>00112 <span class="comment"> * Add lots of PTRACE statement for debugging colour conversion.</span>00113 <span class="comment"> * Add support for Sony Vaio laptop under linux. Requires 2.4.7 kernel.</span>00114 <span class="comment"> *</span>00115 <span class="comment"> * Revision 1.17 2001/05/22 23:38:45 robertj</span>00116 <span class="comment"> * Fixed bug in PVideoOutputDevice, removed redundent SetFrameSize.</span>00117 <span class="comment"> *</span>00118 <span class="comment"> * Revision 1.16 2001/05/22 12:49:32 robertj</span>00119 <span class="comment"> * Did some seriously wierd rewrite of platform headers to eliminate the</span>00120 <span class="comment"> * stupid GNU compiler warning about braces not matching.</span>00121 <span class="comment"> *</span>00122 <span class="comment"> * Revision 1.15 2001/03/20 02:21:57 robertj</span>00123 <span class="comment"> * More enhancements from Mark Cooke</span>00124 <span class="comment"> *</span>00125 <span class="comment"> * Revision 1.14 2001/03/08 23:04:19 robertj</span>00126 <span class="comment"> * Fixed up some documentation.</span>00127 <span class="comment"> *</span>00128 <span class="comment"> * Revision 1.13 2001/03/08 08:31:34 robertj</span>00129 <span class="comment"> * Numerous enhancements to the video grabbing code including resizing</span>00130 <span class="comment"> * infrastructure to converters. Thanks a LOT, Mark Cooke.</span>00131 <span class="comment"> *</span>00132 <span class="comment"> * Revision 1.12 2001/03/07 01:42:59 dereks</span>00133 <span class="comment"> * miscellaneous video fixes. Works on linux now. Add debug statements</span>00134 <span class="comment"> * (at PTRACE level of 1)</span>00135 <span class="comment"> *</span>00136 <span class="comment"> * Revision 1.11 2001/03/06 23:34:20 robertj</span>00137 <span class="comment"> * Added static function to get input device names.</span>00138 <span class="comment"> * Moved some inline virtuals to non-inline.</span>00139 <span class="comment"> *</span>00140 <span class="comment"> * Revision 1.10 2001/03/03 05:06:31 robertj</span>00141 <span class="comment"> * Major upgrade of video conversion and grabbing classes.</span>00142 <span class="comment"> *</span>00143 <span class="comment"> * Revision 1.9 2001/02/28 01:47:14 robertj</span>00144 <span class="comment"> * Removed function from ancestor and is not very useful, thanks Thorsten Westheider.</span>00145 <span class="comment"> *</span>00146 <span class="comment"> * Revision 1.8 2000/12/19 22:20:26 dereks</span>00147 <span class="comment"> * Add video channel classes to connect to the PwLib PVideoInputDevice class.</span>00148 <span class="comment"> * Add PFakeVideoInput class to generate test images for video.</span>00149 <span class="comment"> *</span>00150 <span class="comment"> * Revision 1.7 2000/11/09 00:20:38 robertj</span>00151 <span class="comment"> * Added qcif size constants</span>00152 <span class="comment"> *</span>00153 <span class="comment"> * Revision 1.6 2000/07/30 03:41:31 robertj</span>00154 <span class="comment"> * Added more colour formats to video device enum.</span>00155 <span class="comment"> *</span>00156 <span class="comment"> * Revision 1.5 2000/07/26 03:50:49 robertj</span>00157 <span class="comment"> * Added last error variable to video device.</span>00158 <span class="comment"> *</span>00159 <span class="comment"> * Revision 1.4 2000/07/26 02:13:46 robertj</span>00160 <span class="comment"> * Added some more "common" bounds checking to video device.</span>00161 <span class="comment"> *</span>00162 <span class="comment"> * Revision 1.3 2000/07/25 13:38:25 robertj</span>00163 <span class="comment"> * Added frame rate parameter to video frame grabber.</span>00164 <span class="comment"> *</span>00165 <span class="comment"> * Revision 1.2 2000/07/25 13:14:05 robertj</span>00166 <span class="comment"> * Got the video capture stuff going!</span>00167 <span class="comment"> *</span>00168 <span class="comment"> * Revision 1.1 2000/07/15 09:47:34 robertj</span>00169 <span class="comment"> * Added video I/O device classes.</span>00170 <span class="comment"> *</span>00171 <span class="comment"> */</span>00172 00173
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -