diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-20 02:09:15 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-20 02:09:15 +0000 |
commit | de7ac5d16dd39779adcc89f0482a98401487eaea (patch) | |
tree | 5d74fa08664628316179f7bf12709655d9f5499c /lib/pam.h | |
parent | 8abadd9e1e0e768b274532b6728bcc83415f9fb6 (diff) | |
download | netpbm-mirror-de7ac5d16dd39779adcc89f0482a98401487eaea.tar.gz netpbm-mirror-de7ac5d16dd39779adcc89f0482a98401487eaea.tar.xz netpbm-mirror-de7ac5d16dd39779adcc89f0482a98401487eaea.zip |
Add pnm_formatpamtuples, pnm_writepamrowpart
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4214 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/pam.h')
-rw-r--r-- | lib/pam.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/pam.h b/lib/pam.h index aebf529a..88b8c2bd 100644 --- a/lib/pam.h +++ b/lib/pam.h @@ -136,6 +136,18 @@ struct pam { /* The plane number of the opacity plane; meaningless if 'haveOpacity' is false or 'visual' is false. */ + int is_seekable; /* boolean */ + /* The file 'file' is seekable -- you can set the position of next + reading or writing to anything and any time. + + If libnetpbm cannot tell if it is seekable or not, this is false. + */ + pm_filepos raster_pos; + /* The file position of the raster (which is also the end of the + header). + + Meaningless if 'is_seekable' is false. + */ }; #define PAM_HAVE_ALLOCATION_DEPTH 1 @@ -341,6 +353,12 @@ void pnm_writepaminit(struct pam * const pamP); void +pnm_formatpamtuples(const struct pam * const pamP, + const tuple * const tuplerow, + unsigned char * const outbuf, + unsigned int const nTuple, + unsigned int * const rowSizeP); +void pnm_formatpamrow(const struct pam * const pamP, const tuple * const tuplerow, unsigned char * const outbuf, @@ -355,6 +373,14 @@ pnm_writepamrowmult(const struct pam * const pamP, unsigned int const rptcnt); void +pnm_writepamrowpart(const struct pam * const pamP, + const tuple * const tuplerow, + unsigned int const firstRow, + unsigned int const firstCol, + unsigned int const rowCt, + unsigned int const colCt); + +void pnm_writepam(struct pam * const pamP, tuple ** const tuplearray); void |