From 6f09121102883af1915387350576a7f8dd9518bc Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 1 Mar 2011 15:13:25 +0800 Subject: [PATCH] Cleaning up (committing stuff) - Stub proc.h for AcessNative - SIF format spec --- .gitignore | 2 ++ AcessNative/.gitignore | 4 ++++ AcessNative/acesskernel_src/include/proc.h | 9 +++++++ Usermode/Applications/axwin2_src/SIF.txt | 28 ++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 AcessNative/.gitignore create mode 100644 AcessNative/acesskernel_src/include/proc.h create mode 100644 Usermode/Applications/axwin2_src/SIF.txt diff --git a/.gitignore b/.gitignore index 314db8ee..4cea20a2 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ *.bin *.dsm *.dmp +*.lin +*.exe *.kmd.* Map*.txt map.txt diff --git a/AcessNative/.gitignore b/AcessNative/.gitignore new file mode 100644 index 00000000..82eea121 --- /dev/null +++ b/AcessNative/.gitignore @@ -0,0 +1,4 @@ +ld-acess +ld-acess.exe +AcessKernel +AcessKernel.exe diff --git a/AcessNative/acesskernel_src/include/proc.h b/AcessNative/acesskernel_src/include/proc.h new file mode 100644 index 00000000..56eb6e75 --- /dev/null +++ b/AcessNative/acesskernel_src/include/proc.h @@ -0,0 +1,9 @@ +/** + */ +#ifndef _PROC_H_ +#define _PROC_H_ + +#include + +#endif + diff --git a/Usermode/Applications/axwin2_src/SIF.txt b/Usermode/Applications/axwin2_src/SIF.txt new file mode 100644 index 00000000..57c1fa7e --- /dev/null +++ b/Usermode/Applications/axwin2_src/SIF.txt @@ -0,0 +1,28 @@ +=== Simple Image Format === + +U16 Magic 0x51F0 - This determines the endianness of the file +U16 Flags + > 0-2: Compression (0: Uncompressed, 1: RLE, 2: zlib, 3: RLE-Channel) + > 3-5: Format (0: ARGB, 1: RGB +U16 Width +U16 Height + + + +=== Compression Formats === +0 - Uncompressed + The file data is a linear sequence of Width * Height 32-bit ARGB + words (in file endianness, determined by the magic) + +1 - RLE-4 + 7-bit length followed by a 32-bit value that is repeated `n` times + (if bit 7 of the length byte is set, the next `n` 32-bit words are + verbatim) + +2 - zlib + The image data is a zlib stream of 32-bit xRGB words + +3 - RLE-Channel + The data is the alpha values, followed by red, then green, then blue + encoded as RLE with a 7-bit length and a verbatim flag (same as mode + 1, except with 8-bit values instead of 32-bit) -- 2.20.1