⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vconvert_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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>vconvert.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> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>vconvert.h</h1><a href="vconvert_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * vconvert.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): Derek Smithies (derek@indranet.co.nz)</span>00025 <span class="comment"> *                 Thorsten Westheider (thorsten.westheider@teleos-web.de)</span>00026 <span class="comment"> *                 Mark Cooke (mpc@star.sr.bham.ac.uk)</span>00027 <span class="comment"> *</span>00028 <span class="comment"> * $Log: vconvert.h,v $</span>00029 <span class="comment"> * Revision 1.13  2003/03/17 07:44:20  robertj</span>00030 <span class="comment"> * Removed redundant toggle function.</span>00031 <span class="comment"> *</span>00032 <span class="comment"> * Revision 1.12  2002/09/16 01:08:59  robertj</span>00033 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00034 <span class="comment"> *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.11  2002/01/04 04:11:45  dereks</span>00037 <span class="comment"> * Add video flip code from Walter Whitlock, which flips code at the grabber.</span>00038 <span class="comment"> *</span>00039 <span class="comment"> * Revision 1.10  2001/11/28 04:41:28  robertj</span>00040 <span class="comment"> * Added synonym colour class for equivalent colour format strings.</span>00041 <span class="comment"> * Allowed for setting ancestor classes in PCOLOUR_CONVERTER() macro.</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.9  2001/05/14 05:10:38  robertj</span>00044 <span class="comment"> * Fixed problems with video colour converters registration, could not rely</span>00045 <span class="comment"> *   on static PList being initialised before all registration instances.</span>00046 <span class="comment"> *</span>00047 <span class="comment"> * Revision 1.8  2001/03/20 02:21:57  robertj</span>00048 <span class="comment"> * More enhancements from Mark Cooke</span>00049 <span class="comment"> *</span>00050 <span class="comment"> * Revision 1.7  2001/03/08 23:36:02  robertj</span>00051 <span class="comment"> * Added backward compatibility SetFrameSize() function.</span>00052 <span class="comment"> * Added internal SimpleConvert() function for same type converters.</span>00053 <span class="comment"> * Fixed some documentation.</span>00054 <span class="comment"> *</span>00055 <span class="comment"> * Revision 1.6  2001/03/08 08:31:34  robertj</span>00056 <span class="comment"> * Numerous enhancements to the video grabbing code including resizing</span>00057 <span class="comment"> *   infrastructure to converters. Thanks a LOT, Mark Cooke.</span>00058 <span class="comment"> *</span>00059 <span class="comment"> * Revision 1.5  2001/03/07 01:42:59  dereks</span>00060 <span class="comment"> * miscellaneous video fixes. Works on linux now. Add debug statements</span>00061 <span class="comment"> * (at PTRACE level of 1)</span>00062 <span class="comment"> *</span>00063 <span class="comment"> * Revision 1.4  2001/03/03 23:25:07  robertj</span>00064 <span class="comment"> * Fixed use of video conversion function, returning bytes in destination frame.</span>00065 <span class="comment"> *</span>00066 <span class="comment"> * Revision 1.3  2001/03/03 05:06:31  robertj</span>00067 <span class="comment"> * Major upgrade of video conversion and grabbing classes.</span>00068 <span class="comment"> *</span>00069 <span class="comment"> * Revision 1.2  2000/12/19 23:58:14  robertj</span>00070 <span class="comment"> * Fixed MSVC compatibility issues.</span>00071 <span class="comment"> *</span>00072 <span class="comment"> * Revision 1.1  2000/12/19 22:20:26  dereks</span>00073 <span class="comment"> * Add video channel classes to connect to the PwLib PVideoInputDevice class.</span>00074 <span class="comment"> * Add PFakeVideoInput class to generate test images for video.</span>00075 <span class="comment"> *</span>00076 <span class="comment"> *</span>00077 <span class="comment"> */</span>00078 <a name="l00079"></a><a class="code" href="vconvert_8h.html#a0">00079</a> <span class="preprocessor">#define _PCONVERT</span>00080 <span class="preprocessor"></span>00081 00082 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00083 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00084 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00085 <span class="preprocessor"></span>00086 00087 00088 <span class="keyword">class </span><a class="code" href="classPColourConverter.html">PColourConverter</a>;00089 <a name="l00095"></a><a class="code" href="classPColourConverterRegistration.html">00095</a> <span class="keyword">class </span><a class="code" href="classPColourConverterRegistration.html">PColourConverterRegistration</a> : <span class="keyword">public</span> <a class="code" href="classPCaselessString.html">PCaselessString</a>00096 {00097     <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPColourConverterRegistration.html">PColourConverterRegistration</a>, <a class="code" href="classPCaselessString.html">PCaselessString</a>);00098   <span class="keyword">public</span>:00099     <a class="code" href="classPColourConverterRegistration.html#a0">PColourConverterRegistration</a>(00100       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; srcColourFormat,  00101       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; destColourFormat  00102     );00103 00104     <span class="keyword">virtual</span> <a class="code" href="classPColourConverter.html">PColourConverter</a> * <a class="code" href="classPColourConverterRegistration.html#a1">Create</a>(00105       <span class="keywordtype">unsigned</span> width,   00106       <span class="keywordtype">unsigned</span> height   00107     ) <span class="keyword">const</span> = 0;00108 00109   <span class="keyword">protected</span>:<a name="l00110"></a><a class="code" href="classPColourConverterRegistration.html#n0">00110</a>     <a class="code" href="classPColourConverterRegistration.html">PColourConverterRegistration</a> * <a class="code" href="classPColourConverterRegistration.html#n0">link</a>;00111 <a name="l00112"></a><a class="code" href="classPColourConverterRegistration.html#l0">00112</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPColourConverter.html">PColourConverter</a>;00113 };00114 00115 <a name="l00119"></a><a class="code" href="classPColourConverter.html">00119</a> <span class="keyword">class </span><a class="code" href="classPColourConverter.html">PColourConverter</a> : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00120 {00121     <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPColourConverter.html">PColourConverter</a>, <a class="code" href="classPObject.html">PObject</a>);00122   <span class="keyword">public</span>:00125     <a class="code" href="classPColourConverter.html#a0">PColourConverter</a>(00126       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPColourConverter.html#n0">srcColourFormat</a>,  00127       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPColourConverter.html#n1">dstColourFormat</a>,  00128       <span class="keywordtype">unsigned</span> width,   00129       <span class="keywordtype">unsigned</span> height   00130     );00131 <a name="l00134"></a><a class="code" href="classPColourConverter.html#a1">00134</a>     BOOL <a class="code" href="classPColourConverter.html#a1">GetVFlipState</a>() 00135       { <span class="keywordflow">return</span> <a class="code" href="classPColourConverter.html#n9">doVFlip</a>; }00136     <a name="l00139"></a><a class="code" href="classPColourConverter.html#a2">00139</a>     <span class="keywordtype">void</span> <a class="code" href="classPColourConverter.html#a2">SetVFlipState</a>(BOOL vFlipState) 00140       { <a class="code" href="classPColourConverter.html#n9">doVFlip</a> = vFlipState; }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -