home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
- From: markd@werple.apana.org.au (Mark Delany)
- Newsgroups: comp.graphics
- Subject: Re: large sun raster files
- Date: 22 Dec 1992 19:36:48 +1100
- Organization: werple public-access unix, Melbourne
- Lines: 23
- Message-ID: <1h6k30INNe4r@werple.apana.org.au>
- References: <1992Dec18.152616.14324@neptune.inf.ethz.ch>
- NNTP-Posting-Host: werple.apana.org.au
-
- bahi@inf.ethz.ch (Hicham Bahi) writes:
-
- >I have the following problem:
-
- >I am working with huge sunraster files (27152x37937 pixels)
- >which are run_length encoded. Since I don't have enough memory
- >to load the whole picture, I have to cut it into smaller pieces.
-
- >Because of the run-length encoding, I have to read all the bytes
- >of the file to find the starting position of the sub-image. For
- >huge files, this means hours of computing.
-
- >Does anybody know a better way to cut run-length encoded rasterfiles?
-
- I suggest that you read the raster file directly and decode the
- run-length encoding yourself. It is fairly straightforward and a good
- example can be found in PBMPLUS (look for rasttopnm.c).
-
-
-
- --
- Mark Delany markd@werple.apana.org.au
-
-