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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
<!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>paintlib: plpcxdec.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a></div>
<h1>plpcxdec.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment">/--------------------------------------------------------------------</span>
00003 <span class="comment">|</span>
00004 <span class="comment">| $Id: plpcxdec_8h-source.html,v 1.4 2004/09/15 15:26:29 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">| Copyright (c) 1996-2002 Ulrich von Zadow</span>
00007 <span class="comment">|</span>
00008 <span class="comment">\--------------------------------------------------------------------</span>
00009 <span class="comment">*/</span>
00010
00011 <span class="preprocessor">#ifndef INCL_PLPCXDEC</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define INCL_PLPCXDEC</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#ifndef INCL_PLPICDEC</span>
00015 <span class="preprocessor"></span><span class="preprocessor">#include "plpicdec.h"</span>
00016 <span class="preprocessor">#endif</span>
00017 <span class="preprocessor"></span>
00018 <span class="preprocessor">#include "plpcx.h"</span>
00019 <span class="comment"></span>
00020 <span class="comment">//! PCX file decoder. Decodes 8, 15, 16, 24 and 32 bpp</span>
00021 <span class="comment">//! PCX files (compressed and uncompressed) and returns an 8 or 32</span>
00022 <span class="comment">//! bpp PLBmp. Preserves the alpha channel.</span>
<a name="l00023"></a><a class="code" href="classPLPCXDecoder.html">00023</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classPLPCXDecoder.html">PLPCXDecoder</a> : <span class="keyword">public</span> <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a>
00024 {
00025
00026 <span class="keyword">public</span>:<span class="comment"></span>
00027 <span class="comment"> //! Creates a decoder</span>
00028 <span class="comment"></span> <a class="code" href="classPLPCXDecoder.html#a0">PLPCXDecoder</a>();
00029 <span class="comment"></span>
00030 <span class="comment"> //! Destroys a decoder</span>
00031 <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="classPLPCXDecoder.html#a1">~PLPCXDecoder</a> ();
00032
00033 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Open (<a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00034 <span class="comment"></span>
00035 <span class="comment"> //! Fills the bitmap with the image. </span>
00036 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPLPCXDecoder.html#a3">GetImage</a> (<a class="code" href="classPLBmpBase.html">PLBmpBase</a> & Bmp);
00037
00038 <span class="keyword">private</span>:
00039 <span class="keywordtype">void</span> PCX_PlanesToPixels(PLBYTE *pixels, PLBYTE *bitplanes,
00040 <span class="keywordtype">short</span> bytesperline, <span class="keywordtype">short</span> planes, <span class="keywordtype">short</span> bitsperpixel);
00041 <span class="keywordtype">void</span> PCX_UnpackPixels(PLBYTE *pixels, PLBYTE *bitplanes,
00042 <span class="keywordtype">short</span> bytesperline, <span class="keywordtype">short</span> planes, <span class="keywordtype">short</span> bitsperpixel);
00043
00044 PCXHEADER m_PcxHeader;
00045 };
00046
00047 <span class="preprocessor">#endif</span>
00048 <span class="preprocessor"></span>
00049 <span class="comment">/*</span>
00050 <span class="comment">/--------------------------------------------------------------------</span>
00051 <span class="comment">|</span>
00052 <span class="comment">| $Log: plpcxdec_8h-source.html,v $
00052 <span class="comment">| Revision 1.4 2004/09/15 15:26:29 uzadow
00052 <span class="comment">| Linux compatibility changes, doc update.
00052 <span class="comment">|</span>
00053 <span class="comment">| Revision 1.8 2004/06/19 16:49:07 uzadow</span>
00054 <span class="comment">| Changed GetImage so it works with PLBmpBase</span>
00055 <span class="comment">|</span>
00056 <span class="comment">| Revision 1.7 2004/06/06 12:56:38 uzadow</span>
00057 <span class="comment">| Doxygenified documentation.</span>
00058 <span class="comment">|</span>
00059 <span class="comment">| Revision 1.6 2003/08/03 10:58:32 uzadow</span>
00060 <span class="comment">| Windows port of PLFilterFlipRGB. Fixed PLPCXDecoder.</span>
00061 <span class="comment">|</span>
00062 <span class="comment">| Revision 1.5 2002/08/04 20:08:01 uzadow</span>
00063 <span class="comment">| Added PLBmpInfo class, ability to extract metainformation from images without loading the whole image and proper greyscale support.</span>
00064 <span class="comment">|</span>
00065 <span class="comment">| Revision 1.4 2002/03/31 13:36:42 uzadow</span>
00066 <span class="comment">| Updated copyright.</span>
00067 <span class="comment">|</span>
00068 <span class="comment">| Revision 1.3 2001/10/21 17:12:40 uzadow</span>
00069 <span class="comment">| Added PSD decoder beta, removed BPPWanted from all decoders, added PLFilterPixel.</span>
00070 <span class="comment">|</span>
00071 <span class="comment">| Revision 1.2 2001/10/06 22:37:08 uzadow</span>
00072 <span class="comment">| Linux compatibility.</span>
00073 <span class="comment">|</span>
00074 <span class="comment">| Revision 1.1 2001/09/16 19:03:22 uzadow</span>
00075 <span class="comment">| Added global name prefix PL, changed most filenames.</span>
00076 <span class="comment">|</span>
00077 <span class="comment">| Revision 1.8 2000/12/18 22:42:52 uzadow</span>
00078 <span class="comment">| Replaced RGBAPIXEL with PLPixel32.</span>
00079 <span class="comment">|</span>
00080 <span class="comment">| Revision 1.7 2000/01/16 20:43:13 anonymous</span>
00081 <span class="comment">| Removed MFC dependencies</span>
00082 <span class="comment">|</span>
00083 <span class="comment">| Revision 1.6 2000/01/10 23:52:59 Ulrich von Zadow</span>
00084 <span class="comment">| Changed formatting & removed tabs.</span>
00085 <span class="comment">|</span>
00086 <span class="comment">| Revision 1.5 1999/12/15 21:16:30 Ulrich von Zadow</span>
00087 <span class="comment">| Removed references to gif in pcx decoder.</span>
00088 <span class="comment">|</span>
00089 <span class="comment">| Revision 1.4 1999/12/10 01:27:26 Ulrich von Zadow</span>
00090 <span class="comment">| Added assignment operator and copy constructor to</span>
00091 <span class="comment">| bitmap classes.</span>
00092 <span class="comment">|</span>
00093 <span class="comment">| Revision 1.3 1999/12/08 15:39:45 Ulrich von Zadow</span>
00094 <span class="comment">| Unix compatibility changes</span>
00095 <span class="comment">|</span>
00096 <span class="comment">| Revision 1.2 1999/11/27 18:45:48 Ulrich von Zadow</span>
00097 <span class="comment">| Added/Updated doc comments.</span>
00098 <span class="comment">|</span>
00099 <span class="comment">\--------------------------------------------------------------------</span>
00100 <span class="comment">*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:40 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.2 </small></address>
</body>
</html>
|