diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:40:42 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:40:42 +0000 |
commit | 34546ecb9b586f34e04f6e133a247ffe1f50046e (patch) | |
tree | 55c0c6c76c55bfe99a9f3c7dec416604a1c6dbd9 /converter/ppm/ilbm.h | |
parent | d484f36f7c690d0a88476127afd9bdf90233699d (diff) | |
download | netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.tar.gz netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.tar.xz netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.zip |
Release 1.04.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4700 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/ilbm.h')
-rw-r--r-- | converter/ppm/ilbm.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/converter/ppm/ilbm.h b/converter/ppm/ilbm.h index c0fac7d2..2f08a12f 100644 --- a/converter/ppm/ilbm.h +++ b/converter/ppm/ilbm.h @@ -1,9 +1,17 @@ +/*============================================================================= + ilbm.h +=============================================================================== + Facilities for processign IFF ILBM files +=============================================================================*/ #ifndef ILBM_H_INCLUDED #define ILBM_H_INCLUDED -/* ilbm.h - definitions for IFF ILBM files */ +static __inline__ unsigned int +ilbm_rowByteCt(unsigned int const cols) { + + return (cols / 16 + (cols % 16 == 0 ? 0 : 1)) * 2; +} -#define RowBytes(cols) ((((cols) + 15) / 16) * 2) /* definitions for BMHD */ |