Archive files inside a PNG image
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc Updated man page. Jul 2, 2007
www Changed svn repo. Sep 15, 2007
AUTHORS Making automake happy. Jun 14, 2007
COPYING
ChangeLog Converted subversion log into ChangeLog with svn2cl. Jul 1, 2007
Makefile.am Added bootstrap to dist. Jun 29, 2007
NEWS Upgraded to GPLv3. Jul 2, 2007
README
TODO Added TODO list. Jul 2, 2007
bootstrap Added bootstrap file. Jun 29, 2007
configure.ac Ticked up version number. Jul 2, 2007
datpng.h
decode.c Began adding color palette support. But its still giving errors. Jun 29, 2007
encode.c Began adding color palette support. But its still giving errors. Jun 29, 2007
pngarch.c Corrected some --help text. Jul 1, 2007

README

The datpng header looks like this:

| ver |  length   |   width   | data ...
|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|
0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 

struct datpng_header
{
  word  ver;
  dword length;
  dword width;
  byte  c;
  byte  d;
}

All header data is stored in big endian (network) order.

  ver
  ---
The 'ver' bytes are the version of the data PNG file. This version
indicates the encoded bit depth, existance of a checksum, and other
features.

The least significant 4 bits define the bit depth (up to 16). The most
significant bit (the sign bit) indicates a checksum. All other bits
describe a version of the datpng. This will allow future versions of
the program to continue processing older datpng files.

  length
  ------
The 'length' bytes give the length of the data in bytes.

  width
  -----
The 'width' bytes give the width of the data chunk in pixels.