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 117 118 119 120 121 122 123 124 125 126 127
|
<!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: plppmdec.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>plppmdec.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: plppmdec_8h-source.html,v 1.4 2004/09/15 15:26:32 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">| Copyright (c) 2001 Ulrich von Zadow</span>
00007 <span class="comment">|</span>
00008 <span class="comment">| Portable Pixmap Decoder Class</span>
00009 <span class="comment">|</span>
00010 <span class="comment">| Originally by Todd Harris - Mar 2001</span>
00011 <span class="comment">| adadapted from pgm.h originally by</span>
00012 <span class="comment">| Jose Miguel Buenaposada Biencinto. Mar 2000.</span>
00013 <span class="comment">|</span>
00014 <span class="comment">\--------------------------------------------------------------------</span>
00015 <span class="comment">*/</span>
00016
00017 <span class="preprocessor">#ifndef INCL_PLPPMDEC</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define INCL_PLPPMDEC</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#ifndef INCL_PLPICDEC</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#include "plpicdec.h"</span>
00022 <span class="preprocessor">#endif</span>
00023 <span class="preprocessor"></span>
00024 <span class="preprocessor">#ifndef INCL_PLPPM</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="plppm_8h.html">plppm.h</a>"</span>
00026 <span class="preprocessor">#endif</span>
00027 <span class="preprocessor"></span><span class="comment"></span>
00028 <span class="comment">//! Portable Pixmap file decoder. Delivers a 24 bit true color image.</span>
<a name="l00029"></a><a class="code" href="classPLPPMDecoder.html">00029</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classPLPPMDecoder.html">PLPPMDecoder</a> : <span class="keyword">public</span> <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a>
00030 {
00031
00032 <span class="keyword">public</span>:<span class="comment"></span>
00033 <span class="comment"> //! Creates a decoder</span>
00034 <span class="comment"></span> <a class="code" href="classPLPPMDecoder.html">PLPPMDecoder</a>
00035 ();
00036 <span class="comment"></span>
00037 <span class="comment"> //! Destroys a decoder</span>
00038 <span class="comment"></span> <span class="keyword">virtual</span> ~<a class="code" href="classPLPPMDecoder.html">PLPPMDecoder</a>
00039 ();
00040 <span class="comment"></span>
00041 <span class="comment"> //!</span>
00042 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> Open (<a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00043 <span class="comment"></span>
00044 <span class="comment"> //!</span>
00045 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPLPPMDecoder.html#a3">GetImage</a> (<a class="code" href="classPLBmpBase.html">PLBmpBase</a> & Bmp);
00046
00047 <span class="keyword">private</span>:
00048
00049 <span class="keywordtype">void</span> readPpmHeader (PPMHEADER *pPpmHead,
00050 <a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00051
00052 <span class="keywordtype">int</span> readASCIIDecimal(<a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00053
00054 <span class="keywordtype">void</span> skipComment(<a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00055
00056 <span class="keywordtype">void</span> skipPpmASCIISeparators(<a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00057
00058 PLBYTE *readASCIILine(<a class="code" href="classPLDataSource.html">PLDataSource</a> *pDataSrc);
00059
00060 <span class="keywordtype">void</span> readImage (<a class="code" href="classPLBmpBase.html">PLBmpBase</a> * pBmp,
00061 <a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00062
00063 <span class="keywordtype">void</span> readData(<a class="code" href="classPLBmpBase.html">PLBmpBase</a> * pBmp,
00064 <a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00065
00066 <span class="keywordtype">void</span> expandASCIILine
00067 ( <a class="code" href="classPLPixel32.html">PLPixel32</a> * pDest,
00068 <span class="keywordtype">int</span> MaxGrayValue,
00069 <span class="keywordtype">int</span> Width,
00070 <a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc
00071 );
00072
00073 <span class="keywordtype">void</span> expandByteLine
00074 ( <a class="code" href="classPLPixel32.html">PLPixel32</a> * pDest,
00075 <span class="keywordtype">int</span> MaxGrayValue,
00076 <span class="keywordtype">int</span> Width,
00077 <a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc
00078 );
00079
00080
00081 <a class="code" href="classPLPixel32.html">PLPixel32</a> PLPPMDecoder::readASCIIPixel32
00082 ( <span class="keywordtype">int</span> MaxGrayValue,
00083 <a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc
00084 );
00085
00086 PPMHEADER m_PPMHead;
00087 PLBYTE m_LastByte;
00088 <span class="keywordtype">bool</span> m_UseLastByte;
00089 };
00090
00091 <span class="preprocessor">#endif</span>
00092 <span class="preprocessor"></span>
00093 <span class="comment">/*</span>
00094 <span class="comment">/--------------------------------------------------------------------</span>
00095 <span class="comment">|</span>
00096 <span class="comment">| $Log: plppmdec_8h-source.html,v $
00096 <span class="comment">| Revision 1.4 2004/09/15 15:26:32 uzadow
00096 <span class="comment">| Linux compatibility changes, doc update.
00096 <span class="comment">|</span>
00097 <span class="comment">| Revision 1.4 2004/06/19 16:49:07 uzadow</span>
00098 <span class="comment">| Changed GetImage so it works with PLBmpBase</span>
00099 <span class="comment">|</span>
00100 <span class="comment">| Revision 1.3 2002/08/04 20:08:01 uzadow</span>
00101 <span class="comment">| Added PLBmpInfo class, ability to extract metainformation from images without loading the whole image and proper greyscale support.</span>
00102 <span class="comment">|</span>
00103 <span class="comment">| Revision 1.2 2001/10/21 17:12:40 uzadow</span>
00104 <span class="comment">| Added PSD decoder beta, removed BPPWanted from all decoders, added PLFilterPixel.</span>
00105 <span class="comment">|</span>
00106 <span class="comment">| Revision 1.1 2001/10/16 17:51:32 uzadow</span>
00107 <span class="comment">| Added ppm support (Todd Harris)</span>
00108 <span class="comment">|</span>
00109 <span class="comment">|</span>
00110 <span class="comment">\--------------------------------------------------------------------</span>
00111 <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>
|