📄 vsdl_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>vsdl.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>vsdl.h</h1><a href="vsdl_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * vsdl.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Classes to support video output via SDL</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Copyright (c) 1999-2000 Equivalence Pty. Ltd.</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00009 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00010 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00011 <span class="comment"> * http://www.mozilla.org/MPL/</span>00012 <span class="comment"> *</span>00013 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00014 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00015 <span class="comment"> * the License for the specific language governing rights and limitations</span>00016 <span class="comment"> * under the License.</span>00017 <span class="comment"> *</span>00018 <span class="comment"> * The Original Code is Open H323 Library.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * Contributor(s): Derek J Smithies (derek@indranet.co.nz)</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * $Log: vsdl.h,v $</span>00025 <span class="comment"> * Revision 1.7 2004/05/31 01:26:58 dereksmithies</span>00026 <span class="comment"> * Fix the "no newline at end of file" warning.</span>00027 <span class="comment"> *</span>00028 <span class="comment"> * Revision 1.6 2004/05/27 04:47:05 csoutheren</span>00029 <span class="comment"> * Added include guard to file</span>00030 <span class="comment"> *</span>00031 <span class="comment"> * Revision 1.5 2003/12/12 05:11:56 rogerhardiman</span>00032 <span class="comment"> * Add SDL support on FreeBSD. Header files live in SDL11 directory</span>00033 <span class="comment"> *</span>00034 <span class="comment"> * Revision 1.4 2003/05/17 03:20:48 rjongbloed</span>00035 <span class="comment"> * Removed need to do strange things with main() function.</span>00036 <span class="comment"> *</span>00037 <span class="comment"> * Revision 1.3 2003/04/28 14:29:45 craigs</span>00038 <span class="comment"> * Started rearranging code</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.2 2003/04/28 08:44:42 craigs</span>00041 <span class="comment"> * Fixed problem with include on linux</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.1 2003/04/28 07:04:20 craigs</span>00044 <span class="comment"> * Initial version from ohphone</span>00045 <span class="comment"> *</span>00046 <span class="comment"> * Revision 1.8 2003/03/21 00:47:47 dereks</span>00047 <span class="comment"> * Remove surplus PTRACE statements.</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.7 2003/03/20 23:50:41 dereks</span>00050 <span class="comment"> * Fixups resulting from the new PVideoOutputDevice class code.</span>00051 <span class="comment"> *</span>00052 <span class="comment"> * Revision 1.6 2002/12/03 21:45:05 dereks</span>00053 <span class="comment"> * Fixes from Walter Whitlock to cure warnings about u_chars. Thanks!</span>00054 <span class="comment"> *</span>00055 <span class="comment"> * Revision 1.5 2002/06/27 02:17:40 robertj</span>00056 <span class="comment"> * Renamed video format 411 to the correct 420P, thanks Mark Cooke</span>00057 <span class="comment"> *</span>00058 <span class="comment"> * Revision 1.4 2002/04/29 03:51:55 dereks</span>00059 <span class="comment"> * Documentation tidy up. Thanks to Walter Whitlock.</span>00060 <span class="comment"> *</span>00061 <span class="comment"> * Revision 1.3 2002/04/26 03:33:32 dereks</span>00062 <span class="comment"> * Major upgrade. All calls to SDL library are now done by one thread.</span>00063 <span class="comment"> *</span>00064 <span class="comment"> * Revision 1.2 2001/05/25 01:14:44 dereks</span>00065 <span class="comment"> * Alter SetFrameSize & OpenWindo to use unsigned variables. Change type of</span>00066 <span class="comment"> * other variables to eliminate compiler warnings.</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.1 2001/03/07 01:47:45 dereks</span>00069 <span class="comment"> * Initial release of SDL (Simple DirectMedia Layer, a cross-platform multimedia library),</span>00070 <span class="comment"> * a video library code.</span>00071 <span class="comment"> *</span>00072 <span class="comment"> *</span>00073 <span class="comment"> */</span>00074 00075 <span class="preprocessor">#ifndef _PVSDL</span>00076 <span class="preprocessor"></span><span class="preprocessor">#define _PVSDL</span>00077 <span class="preprocessor"></span>00078 <span class="preprocessor">#if P_SDL</span>00079 <span class="preprocessor"></span>00080 <span class="preprocessor">#include <ptlib.h></span>00081 <span class="preprocessor">#if defined(P_FREEBSD)</span>00082 <span class="preprocessor"></span><span class="preprocessor">#include <SDL11/SDL.h></span>00083 <span class="preprocessor">#else</span>00084 <span class="preprocessor"></span><span class="preprocessor">#include <SDL/SDL.h></span>00085 <span class="preprocessor">#endif</span>00086 <span class="preprocessor"></span>00087 <span class="preprocessor">#undef main</span>00088 <span class="preprocessor"></span>00089 <span class="keyword">class </span>PSDLVideoFrame : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00090 {00091 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(PSDLVideoFrame, <a class="code" href="classPObject.html">PObject</a>);00092 <span class="keyword">public</span>:00093 PSDLVideoFrame(00094 <span class="keywordtype">unsigned</span> newWidth,00095 <span class="keywordtype">unsigned</span> newHeight,00096 Uint8 *data00097 );00098 PSDLVideoFrame(00099 <span class="keywordtype">unsigned</span> newWidth,00100 <span class="keywordtype">unsigned</span> newHeight,00101 <span class="keyword">const</span> <span class="keywordtype">void</span> *_data00102 );00103 00104 ~PSDLVideoFrame();00105 00106 <span class="keywordtype">unsigned</span> GetWidth() { <span class="keywordflow">return</span> width; }00107 <span class="keywordtype">unsigned</span> GetHeight() { <span class="keywordflow">return</span> height; }00108 00109 Uint8 *GetDataPointer() { <span class="keywordflow">return</span> data; }00110 00111 <span class="keywordtype">void</span> <a class="code" href="classPObject.html#z201_0">PrintOn</a>(ostream & str) <span class="keyword">const</span>;00112 00113 <span class="keyword">protected</span>:00114 <span class="keywordtype">void</span> Initialise(<span class="keywordtype">unsigned</span> newWidth, <span class="keywordtype">unsigned</span> newHeight, Uint8 *_data);00115 00116 <span class="keywordtype">unsigned</span> width;00117 <span class="keywordtype">unsigned</span> height;00118 00119 Uint8 *data;00120 };00121 00122 00123 <span class="keyword">class </span>PSDLDisplayThread : <span class="keyword">public</span> <a class="code" href="classPThread.html">PThread</a>00124 {00125 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(PSDLDisplayThread, <a class="code" href="classPThread.html">PThread</a>);00126 <span class="keyword">public</span>:00127 PSDLDisplayThread(00128 BOOL _videoPIP00129 );00130 ~PSDLDisplayThread();00131
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -