home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / graphics / 13113 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.2 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
  2. From: markd@werple.apana.org.au (Mark Delany)
  3. Newsgroups: comp.graphics
  4. Subject: Re: large sun raster files
  5. Date: 22 Dec 1992 19:36:48 +1100
  6. Organization: werple public-access unix, Melbourne
  7. Lines: 23
  8. Message-ID: <1h6k30INNe4r@werple.apana.org.au>
  9. References: <1992Dec18.152616.14324@neptune.inf.ethz.ch>
  10. NNTP-Posting-Host: werple.apana.org.au
  11.  
  12. bahi@inf.ethz.ch (Hicham Bahi) writes:
  13.  
  14. >I have the following problem:
  15.  
  16. >I am working with huge sunraster files (27152x37937 pixels)
  17. >which are run_length encoded. Since I don't have enough memory
  18. >to load the whole picture, I have to cut it into smaller pieces.
  19.  
  20. >Because of the run-length encoding, I have to read all the bytes
  21. >of the file to find the starting position of the sub-image. For
  22. >huge files, this means hours of computing.
  23.  
  24. >Does anybody know a better way to cut run-length encoded rasterfiles?
  25.  
  26. I suggest that you read the raster file directly and decode the
  27. run-length encoding yourself. It is fairly straightforward and a good
  28. example can be found in PBMPLUS (look for rasttopnm.c).
  29.  
  30.  
  31.  
  32. --
  33. Mark Delany                                          markd@werple.apana.org.au
  34.  
  35.