File: plpcx_8h-source.html

package info (click to toggle)
paintlib 2.6.2-14
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 7,920 kB
  • ctags: 3,874
  • sloc: cpp: 25,209; sh: 10,605; ansic: 1,891; makefile: 120
file content (83 lines) | stat: -rw-r--r-- 5,872 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
<!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: plpcx.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>plpcx.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: plpcx_8h-source.html,v 1.4 2004/09/15 15:26:29 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">|      Defines structures and constants present in PCX files.</span>
00007 <span class="comment">|</span>
00008 <span class="comment">|      Copyright (c) 1996-2002 Ulrich von Zadow</span>
00009 <span class="comment">|</span>
00010 <span class="comment">\--------------------------------------------------------------------</span>
00011 <span class="comment">*/</span>
00012 
00013 <span class="preprocessor">#ifndef INCL_PLPCX</span>
00014 <span class="preprocessor"></span><span class="preprocessor">#define INCL_PLPCX</span>
00015 <span class="preprocessor"></span>
00016 <span class="comment">// PCX Image File</span>
00017 <span class="keyword">typedef</span> <span class="keyword">struct </span>tagPCXHEADER
00018 {
00019   <span class="keywordtype">char</span> Manufacturer;  <span class="comment">// always 0X0A</span>
00020   <span class="keywordtype">char</span> Version;  <span class="comment">// version number</span>
00021   <span class="keywordtype">char</span> Encoding;  <span class="comment">// always 1</span>
00022   <span class="keywordtype">char</span> BitsPerPixel;  <span class="comment">// color bits</span>
00023   PLWORD Xmin, Ymin;  <span class="comment">// image origin</span>
00024   PLWORD Xmax, Ymax;  <span class="comment">// image dimensions</span>
00025   PLWORD Hres, Vres;  <span class="comment">// resolution values</span>
00026   PLBYTE ColorMap[16][3];  <span class="comment">// color palette</span>
00027   <span class="keywordtype">char</span> Reserved;
00028   <span class="keywordtype">char</span> ColorPlanes;  <span class="comment">// color planes</span>
00029   PLWORD BytesPerLine;  <span class="comment">// line buffer size</span>
00030   PLWORD PaletteType;  <span class="comment">// grey or color palette</span>
00031   <span class="keywordtype">char</span> Filter[58];
00032 } PCXHEADER;
00033 
00034 <span class="preprocessor">#define PCX_MAGIC 0X0A  // PCX magic number</span>
00035 <span class="preprocessor"></span><span class="preprocessor">#define PCX_256_COLORS 0X0C  // magic number for 256 colors</span>
00036 <span class="preprocessor"></span><span class="preprocessor">#define PCX_HDR_SIZE 128  // size of PCX header</span>
00037 <span class="preprocessor"></span><span class="preprocessor">#define PCX_MAXCOLORS 256</span>
00038 <span class="preprocessor"></span><span class="preprocessor">#define PCX_MAXPLANES 4</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#define PCX_MAXVAL 255</span>
00040 <span class="preprocessor"></span>
00041 <span class="preprocessor">#endif</span>
00042 <span class="preprocessor"></span>
00043 <span class="comment">/*</span>
00044 <span class="comment">/--------------------------------------------------------------------</span>
00045 <span class="comment">|</span>
00046 <span class="comment">|      $Log: plpcx_8h-source.html,v $
00046 <span class="comment">|      Revision 1.4  2004/09/15 15:26:29  uzadow
00046 <span class="comment">|      Linux compatibility changes, doc update.
00046 <span class="comment">|</span>
00047 <span class="comment">|      Revision 1.4  2003/08/03 10:58:32  uzadow</span>
00048 <span class="comment">|      Windows port of PLFilterFlipRGB. Fixed PLPCXDecoder.</span>
00049 <span class="comment">|</span>
00050 <span class="comment">|      Revision 1.3  2002/02/24 13:00:22  uzadow</span>
00051 <span class="comment">|      Documentation update; removed buggy PLFilterRotate.</span>
00052 <span class="comment">|</span>
00053 <span class="comment">|      Revision 1.2  2001/10/06 22:03:26  uzadow</span>
00054 <span class="comment">|      Added PL prefix to basic data types.</span>
00055 <span class="comment">|</span>
00056 <span class="comment">|      Revision 1.1  2001/09/16 19:03:22  uzadow</span>
00057 <span class="comment">|      Added global name prefix PL, changed most filenames.</span>
00058 <span class="comment">|</span>
00059 <span class="comment">|      Revision 1.4  2000/01/10 23:52:59  Ulrich von Zadow</span>
00060 <span class="comment">|      Changed formatting &amp; removed tabs.</span>
00061 <span class="comment">|</span>
00062 <span class="comment">|      Revision 1.3  1999/12/15 21:16:30  Ulrich von Zadow</span>
00063 <span class="comment">|      Removed references to gif in pcx decoder.</span>
00064 <span class="comment">|</span>
00065 <span class="comment">|</span>
00066 <span class="comment">\--------------------------------------------------------------------</span>
00067 <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>