Loading Bitmaps / Images from host to Medley? #2329
-
|
I was just about to write a PBM (P1 or P4 loader) today and then recalled that there was mention of some existing image loaders (or had been) to go from host to Medley. I thought I'd ask here so hopefully people can see answers should they search for bitmaps images etc. I suppose I'll ask a few questions since I have them.
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 15 replies
-
|
@phantomics wrote some tools for importing and exporting PBM images into and out of Medley but as far as I know the code is not public. There is a useful discussion here on the file format used by the Interlisp functions |
Beta Was this translation helpful? Give feedback.
-
You're mostly correct:
The 4 by 4 pattern is represented as a small integer. Bitmaps are stored internally as a sequence of 16-bit words, with a header that Image Streams are regular (output) streams which also have associated with them a You might look at the READAIS and AISBLT packages in lispusers. Array of Intensity Samples was a format |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the pointers, I'll take a peek! It's not a show stopper though. ;) |
Beta Was this translation helpful? Give feedback.
-
|
@nbriggs I yanked mine after seeing a bug or three to quickly fix in the P1. Anyway this is the P1 loader (I misstated earlier as a P4). EDIT (for a few typos and mislabels)
|
Beta Was this translation helpful? Give feedback.
-
|
No, I sent mine to only you in e-mail to avoid posting a spoiler if you saw it through the webpage. |
Beta Was this translation helpful? Give feedback.
-
|
Testing load speed on an 800x800 PBM "P4" bitmap on an old slow MacBook Air (1.4 GHz Dual-Core Intel Core i5): |
Beta Was this translation helpful? Give feedback.
-
|
If you want -- it's in your e-mail, I can post it here too. It works for files that don't have extra whitespace (but it's OK with/without comments). Should be an easy fix for the whitespace. |
Beta Was this translation helpful? Give feedback.
-
|
Working on my P1 loader but it turned into an Australian P1 loader.
|
Beta Was this translation helpful? Give feedback.



I fixed it a little -