File: plsgidec_8h-source.html

package info (click to toggle)
paintlib 2.6.2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,900 kB
  • ctags: 3,875
  • sloc: cpp: 25,209; sh: 10,600; ansic: 1,891; makefile: 119
file content (99 lines) | stat: -rw-r--r-- 6,396 bytes parent folder | download | duplicates (2)
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
<!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: plsgidec.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&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a></div>
<h1>plsgidec.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: plsgidec_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) 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_PLSGIDEC</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define INCL_PLSGIDEC</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><span class="comment"></span>
00018 <span class="comment">//! SGI rgb file decoder. </span>
<a name="l00019"></a><a class="code" href="classPLSGIDecoder.html">00019</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classPLSGIDecoder.html">PLSGIDecoder</a> : <span class="keyword">public</span> <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a>
00020 {
00021   <span class="keyword">typedef</span> <span class="keyword">struct </span>{
00022     PLWORD  Magic;
00023     PLBYTE  Storage;
00024     PLBYTE  bpc;              <span class="comment">// bytes per color: 1 = bytes, 2 = shorts</span>
00025     PLWORD  Dimension;        <span class="comment">// 1 = single row, 2 = B/W, 3 = RGB</span>
00026     PLWORD  XSize;            <span class="comment">// width in pixels</span>
00027     PLWORD  YSize;            <span class="comment">// height in pixels</span>
00028     PLWORD  ZSize;            <span class="comment">// # of channels; GRAY=1, RGB=3, RGBA=4</span>
00029     PLULONG PixMin, PixMax;   <span class="comment">// min/max pixel values</span>
00030     PLULONG Dummy1;
00031     <span class="keywordtype">char</span>    Name[80];
00032     PLULONG Colormap;
00033   } SGIHeader;
00034 
00035 <span class="keyword">public</span>:<span class="comment"></span>
00036 <span class="comment">  //! Creates a decoder</span>
00037 <span class="comment"></span>  <a class="code" href="classPLSGIDecoder.html">PLSGIDecoder</a>
00038     ();
00039 <span class="comment"></span>
00040 <span class="comment">  //! Destroys a decoder</span>
00041 <span class="comment"></span>  <span class="keyword">virtual</span> ~<a class="code" href="classPLSGIDecoder.html">PLSGIDecoder</a>
00042     ();
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> Open (<a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00046 <span class="comment"></span>
00047 <span class="comment">  //! Fills the bitmap with the image. </span>
00048 <span class="comment"></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPLSGIDecoder.html#a3">GetImage</a> (<a class="code" href="classPLBmpBase.html">PLBmpBase</a> &amp; Bmp);
00049 
00050 <span class="keyword">private</span>:
00051   <span class="keywordtype">void</span> readHeader
00052     ( SGIHeader * pHeader,
00053       <a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc
00054     );
00055   <span class="keywordtype">void</span> readUncompressed
00056     ( <a class="code" href="classPLBmpBase.html">PLBmpBase</a> &amp; Bmp
00057     );
00058 
00059   <span class="keywordtype">void</span> readRLE
00060     ( <a class="code" href="classPLBmpBase.html">PLBmpBase</a> &amp; Bmp
00061     );
00062 
00063   SGIHeader m_Header;
00064 };
00065 
00066 <span class="preprocessor">#endif</span>
00067 <span class="preprocessor"></span><span class="comment">/*</span>
00068 <span class="comment">/--------------------------------------------------------------------</span>
00069 <span class="comment">|</span>
00070 <span class="comment">|      $Log: plsgidec_8h-source.html,v $
00070 <span class="comment">|      Revision 1.4  2004/09/15 15:26:32  uzadow
00070 <span class="comment">|      Linux compatibility changes, doc update.
00070 <span class="comment">|</span>
00071 <span class="comment">|      Revision 1.3  2004/08/20 14:39:38  uzadow</span>
00072 <span class="comment">|      Added rle format to sgi decoder. Doesn't work yet, though.</span>
00073 <span class="comment">|</span>
00074 <span class="comment">|      Revision 1.2  2004/06/19 16:49:07  uzadow</span>
00075 <span class="comment">|      Changed GetImage so it works with PLBmpBase</span>
00076 <span class="comment">|</span>
00077 <span class="comment">|      Revision 1.1  2003/06/01 21:12:06  uzadow</span>
00078 <span class="comment">|      Added sgi rgb file format.</span>
00079 <span class="comment">|</span>
00080 <span class="comment">|</span>
00081 <span class="comment">|</span>
00082 <span class="comment">\--------------------------------------------------------------------</span>
00083 <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>