source: rtems/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/pcx.h @ 32b8506

4.104.115
Last change on this file since 32b8506 was 32b8506, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/29/09 at 14:53:02

Whitespace removal.

  • Property mode set to 100644
File size: 9.8 KB
Line 
1/*---------------------------------------------------------------------------------
2        $Id$
3
4
5        Copyright (C) 2005
6                Jason Rogers (dovoto)
7                Dave Murphy (WinterMute)
8
9        This software is provided 'as-is', without any express or implied
10        warranty.  In no event will the authors be held liable for any
11        damages arising from the use of this software.
12
13        Permission is granted to anyone to use this software for any
14        purpose, including commercial applications, and to alter it and
15        redistribute it freely, subject to the following restrictions:
16
17        1.      The origin of this software must not be misrepresented; you
18                must not claim that you wrote the original software. If you use
19                this software in a product, an acknowledgment in the product
20                documentation would be appreciated but is not required.
21        2.      Altered source versions must be plainly marked as such, and
22                must not be misrepresented as being the original software.
23        3.      This notice may not be removed or altered from any source
24                distribution.
25
26        $Log$
27        Revision 1.1  2008/04/16 18:37:32  joel
28        2008-04-16      Matthieu Bucchianeri <mbucchia@gmail.com>
29
30                * ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
31                mk_libnds.sh, patch.libnds, preinstall.am, block/block.c,
32                clock/clock.c, console/console.c, coproc/coproc.S, coproc/coproc.c,
33                coproc/coproc.ld, dswifi/dswifi_license.txt, dswifi/makefile,
34                dswifi/arm7/makefile, dswifi/arm7/source/wifi_arm7.c,
35                dswifi/arm7/source/wifi_arm7.h, dswifi/arm9/makefile,
36                dswifi/arm9/source/sgIP.c, dswifi/arm9/source/sgIP.h,
37                dswifi/arm9/source/sgIP_ARP.c, dswifi/arm9/source/sgIP_ARP.h,
38                dswifi/arm9/source/sgIP_Config.h, dswifi/arm9/source/sgIP_DHCP.c,
39                dswifi/arm9/source/sgIP_DHCP.h, dswifi/arm9/source/sgIP_DNS.c,
40                dswifi/arm9/source/sgIP_DNS.h, dswifi/arm9/source/sgIP_Hub.c,
41                dswifi/arm9/source/sgIP_Hub.h, dswifi/arm9/source/sgIP_ICMP.c,
42                dswifi/arm9/source/sgIP_ICMP.h, dswifi/arm9/source/sgIP_IP.c,
43                dswifi/arm9/source/sgIP_IP.h, dswifi/arm9/source/sgIP_TCP.c,
44                dswifi/arm9/source/sgIP_TCP.h, dswifi/arm9/source/sgIP_UDP.c,
45                dswifi/arm9/source/sgIP_UDP.h, dswifi/arm9/source/sgIP_memblock.c,
46                dswifi/arm9/source/sgIP_memblock.h,
47                dswifi/arm9/source/sgIP_sockets.c, dswifi/arm9/source/sgIP_sockets.h,
48                dswifi/arm9/source/wifi_arm9.c, dswifi/arm9/source/wifi_arm9.h,
49                dswifi/common/source/dsregs.h, dswifi/common/source/spinlock.h,
50                dswifi/common/source/spinlock.s, dswifi/common/source/wifi_shared.h,
51                dswifi/include/dswifi7.h, dswifi/include/dswifi9.h,
52                dswifi/include/dswifi_version.h, dswifi/include/netdb.h,
53                dswifi/include/sgIP_errno.h, dswifi/include/netinet/in.h, fb/fb.c,
54                fb/fb.h, include/bsp.h, include/my_ipc.h, include/tm27.h,
55                include/types.h, include/sys/iosupport.h, irq/irq.c, irq/irq.h,
56                libfat/gba/include/fat.h, libfat/include/fat.h,
57                libfat/nds/include/fat.h, libfat/source/bit_ops.h,
58                libfat/source/cache.c, libfat/source/cache.h, libfat/source/common.h,
59                libfat/source/directory.c, libfat/source/directory.h,
60                libfat/source/fatdir.c, libfat/source/fatdir.h,
61                libfat/source/fatfile.c, libfat/source/fatfile.h,
62                libfat/source/file_allocation_table.c,
63                libfat/source/file_allocation_table.h, libfat/source/filetime.c,
64                libfat/source/filetime.h, libfat/source/libfat.c,
65                libfat/source/mem_allocate.h, libfat/source/partition.c,
66                libfat/source/partition.h, libfat/source/disc_io/disc.c,
67                libfat/source/disc_io/disc.h, libfat/source/disc_io/disc_io.h,
68                libfat/source/disc_io/io_cf_common.c,
69                libfat/source/disc_io/io_cf_common.h,
70                libfat/source/disc_io/io_dldi.h, libfat/source/disc_io/io_dldi.s,
71                libfat/source/disc_io/io_efa2.c, libfat/source/disc_io/io_efa2.h,
72                libfat/source/disc_io/io_fcsr.c, libfat/source/disc_io/io_fcsr.h,
73                libfat/source/disc_io/io_m3_common.c,
74                libfat/source/disc_io/io_m3_common.h,
75                libfat/source/disc_io/io_m3cf.c, libfat/source/disc_io/io_m3cf.h,
76                libfat/source/disc_io/io_m3sd.c, libfat/source/disc_io/io_m3sd.h,
77                libfat/source/disc_io/io_mpcf.c, libfat/source/disc_io/io_mpcf.h,
78                libfat/source/disc_io/io_njsd.c, libfat/source/disc_io/io_njsd.h,
79                libfat/source/disc_io/io_nmmc.c, libfat/source/disc_io/io_nmmc.h,
80                libfat/source/disc_io/io_sc_common.c,
81                libfat/source/disc_io/io_sc_common.h,
82                libfat/source/disc_io/io_sccf.c, libfat/source/disc_io/io_sccf.h,
83                libfat/source/disc_io/io_scsd.c, libfat/source/disc_io/io_scsd.h,
84                libfat/source/disc_io/io_scsd_s.s,
85                libfat/source/disc_io/io_sd_common.c,
86                libfat/source/disc_io/io_sd_common.h, libnds/Makefile.arm7,
87                libnds/Makefile.arm9, libnds/libnds_license.txt,
88                libnds/basicARM7/source/defaultARM7.c,
89                libnds/include/default_font_bin.h, libnds/include/gbfs.h,
90                libnds/include/nds.h, libnds/include/nds/bios.h,
91                libnds/include/nds/card.h, libnds/include/nds/dma.h,
92                libnds/include/nds/interrupts.h, libnds/include/nds/ipc.h,
93                libnds/include/nds/jtypes.h, libnds/include/nds/memory.h,
94                libnds/include/nds/registers_alt.h, libnds/include/nds/reload.h,
95                libnds/include/nds/system.h, libnds/include/nds/timers.h,
96                libnds/include/nds/arm7/audio.h, libnds/include/nds/arm7/clock.h,
97                libnds/include/nds/arm7/serial.h, libnds/include/nds/arm7/touch.h,
98                libnds/include/nds/arm9/background.h,
99                libnds/include/nds/arm9/boxtest.h, libnds/include/nds/arm9/cache.h,
100                libnds/include/nds/arm9/console.h,
101                libnds/include/nds/arm9/exceptions.h,
102                libnds/include/nds/arm9/image.h, libnds/include/nds/arm9/input.h,
103                libnds/include/nds/arm9/math.h, libnds/include/nds/arm9/ndsmotion.h,
104                libnds/include/nds/arm9/pcx.h, libnds/include/nds/arm9/postest.h,
105                libnds/include/nds/arm9/rumble.h, libnds/include/nds/arm9/sound.h,
106                libnds/include/nds/arm9/sprite.h, libnds/include/nds/arm9/trig_lut.h,
107                libnds/include/nds/arm9/video.h, libnds/include/nds/arm9/videoGL.h,
108                libnds/source/arm7/audio.c, libnds/source/arm7/clock.c,
109                libnds/source/arm7/microphone.c, libnds/source/arm7/spi.c,
110                libnds/source/arm7/touch.c, libnds/source/arm7/userSettings.c,
111                libnds/source/arm9/COS.bin, libnds/source/arm9/COS.s,
112                libnds/source/arm9/SIN.bin, libnds/source/arm9/SIN.s,
113                libnds/source/arm9/TAN.bin, libnds/source/arm9/TAN.s,
114                libnds/source/arm9/boxtest.c, libnds/source/arm9/console.c,
115                libnds/source/arm9/dcache.s, libnds/source/arm9/default_font.bin,
116                libnds/source/arm9/default_font.s,
117                libnds/source/arm9/exceptionHandler.S,
118                libnds/source/arm9/exceptionHandler.s,
119                libnds/source/arm9/exceptions.c, libnds/source/arm9/gurumeditation.c,
120                libnds/source/arm9/icache.s, libnds/source/arm9/image.c,
121                libnds/source/arm9/initSystem.c, libnds/source/arm9/keys.c,
122                libnds/source/arm9/ndsmotion.c, libnds/source/arm9/pcx.c,
123                libnds/source/arm9/rumble.c, libnds/source/arm9/sound.c,
124                libnds/source/arm9/system.c, libnds/source/arm9/touch.c,
125                libnds/source/arm9/video.c, libnds/source/arm9/videoGL.c,
126                libnds/source/common/biosCalls.s, libnds/source/common/card.c,
127                libnds/source/common/gbfs.c,
128                libnds/source/common/interruptDispatcher.s,
129                libnds/source/common/interrupts.c, rtc/rtc.c, sound/sound.c,
130                sound/sound.h, start/start.S, startup/linkcmds, startup/start.c,
131                timer/timer.c, tools/Makefile.am, tools/bin2s, tools/bin2s.c,
132                tools/configure.ac, tools/runtest,
133                tools/ndstool/include/arm7_sha1_homebrew.h,
134                tools/ndstool/include/arm7_sha1_nintendo.h,
135                tools/ndstool/include/banner.h, tools/ndstool/include/bigint.h,
136                tools/ndstool/include/crc.h, tools/ndstool/include/default_icon.h,
137                tools/ndstool/include/encryption.h, tools/ndstool/include/header.h,
138                tools/ndstool/include/hook.h, tools/ndstool/include/little.h,
139                tools/ndstool/include/loadme.h, tools/ndstool/include/logo.h,
140                tools/ndstool/include/ndscreate.h,
141                tools/ndstool/include/ndsextract.h, tools/ndstool/include/ndstool.h,
142                tools/ndstool/include/ndstree.h, tools/ndstool/include/overlay.h,
143                tools/ndstool/include/passme.h, tools/ndstool/include/passme_sram.h,
144                tools/ndstool/include/passme_vhd1.h,
145                tools/ndstool/include/passme_vhd2.h, tools/ndstool/include/raster.h,
146                tools/ndstool/include/sha1.h, tools/ndstool/include/types.h,
147                tools/ndstool/source/arm7_sha1_homebrew.c,
148                tools/ndstool/source/arm7_sha1_nintendo.c,
149                tools/ndstool/source/banner.cpp, tools/ndstool/source/bigint.cpp,
150                tools/ndstool/source/compile_date.c, tools/ndstool/source/crc.cpp,
151                tools/ndstool/source/default_icon.c,
152                tools/ndstool/source/encryption.cpp, tools/ndstool/source/header.cpp,
153                tools/ndstool/source/hook.cpp, tools/ndstool/source/loadme.c,
154                tools/ndstool/source/logo.cpp, tools/ndstool/source/ndscodes.cpp,
155                tools/ndstool/source/ndscreate.cpp,
156                tools/ndstool/source/ndsextract.cpp,
157                tools/ndstool/source/ndstool.cpp, tools/ndstool/source/ndstree.cpp,
158                tools/ndstool/source/passme.cpp, tools/ndstool/source/passme_sram.c,
159                tools/ndstool/source/raster.cpp, tools/ndstool/source/sha1.cpp,
160                touchscreen/README.reco, touchscreen/parser.c, touchscreen/reco.c,
161                touchscreen/reco.h, touchscreen/touchscreen.c,
162                touchscreen/touchscreen.h, wifi/compat.c, wifi/compat.h, wifi/wifi.c:
163                New files.
164
165        Revision 1.3  2005/08/23 17:06:10  wntrmute
166        converted all endings to unix
167
168        Revision 1.2  2005/08/01 23:18:22  wntrmute
169        adjusted headers for logging
170
171        Revision 1.1  2005/07/27 02:20:52  wntrmute
172        add image functions
173
174
175---------------------------------------------------------------------------------*/
176#ifndef PCX_H
177#define PCX_H
178
179typedef struct
180{
181   char         manufacturer;   //should be 0
182   char         version;        //should be 5
183   char         encoding;       //should be 1
184   char         bitsPerPixel; //should be 8
185   short int    xmin,ymin;      //coordinates for top left,bottom right
186   short int    xmax,ymax;
187   short int    hres;           //resolution
188   short int    vres;
189   char         palette16[48];  //16 color palette if 16 color image
190   char         reserved;       //ignore
191   char         colorPlanes;   //ignore
192   short int    bytesPerLine;
193   short int    paletteYype;   //should be 2
194   char         filler[58];     //ignore
195}__attribute__ ((packed)) PCXHeader, *pPCXHeader;
196
197#ifdef __cplusplus
198extern "C" {
199#endif
200
201int loadPCX(unsigned char* pcx, sImage* image);
202
203#ifdef __cplusplus
204}
205#endif
206
207#endif
208
Note: See TracBrowser for help on using the repository browser.