Click here to Skip to main content
15,891,184 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 16:45
mvahoney the codewitch17-Jun-21 16:45 
GeneralRe: Talk about demoralizing Pin
David O'Neil17-Jun-21 20:32
professionalDavid O'Neil17-Jun-21 20:32 
GeneralRe: Talk about demoralizing Pin
lmoelleb17-Jun-21 20:19
lmoelleb17-Jun-21 20:19 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 20:25
mvahoney the codewitch17-Jun-21 20:25 
QuestionRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 20:27
mvahoney the codewitch17-Jun-21 20:27 
AnswerRe: Talk about demoralizing Pin
lmoelleb21-Jun-21 3:49
lmoelleb21-Jun-21 3:49 
GeneralRe: Talk about demoralizing Pin
honey the codewitch21-Jun-21 6:30
mvahoney the codewitch21-Jun-21 6:30 
GeneralRe: Talk about demoralizing Pin
lmoelleb22-Jun-21 1:45
lmoelleb22-Jun-21 1:45 
We where mainly (maybe only) loading images with a palette. So we where dithering one palette to another, meaning there was a max of 256 colors in the source image (and often less than that). I This allowed us to quickly calculate the total number of a given color, and for each color calculate how close it as to existing colors in our palette.
I guess it is pretty useless these days as no one works with palettes (I think we had a jpg decoder for fun, but probably was sticking to gif and various other formats for images we really needed).

Once the palette was locked in for an image, we could just run the Floyd-Steinberg. It only requires finding the nearest color per pixel as "blending" is done by pushing the error ahead of the calculations (at the cost of one scanline extra memory consumed - though I guess you could stamp it into the bitmap data directly). No problem on a 500KB system with relative small images.

We had the advantage advantage that low CPU spec systems where typically also running lower colors (so we only had to search for nearest color in 16 or 32 target colors), while systems running 256 colors typically also had more CPU power.
GeneralRe: Talk about demoralizing Pin
honey the codewitch22-Jun-21 1:59
mvahoney the codewitch22-Jun-21 1:59 
GeneralRe: Talk about demoralizing Pin
Daniel Pfeffer17-Jun-21 22:50
professionalDaniel Pfeffer17-Jun-21 22:50 
GeneralRe: Talk about demoralizing Pin
honey the codewitch18-Jun-21 2:09
mvahoney the codewitch18-Jun-21 2:09 
GeneralThought of the Day Pin
OriginalGriff17-Jun-21 4:34
mveOriginalGriff17-Jun-21 4:34 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Jun-21 4:58
professionalDaniel Pfeffer17-Jun-21 4:58 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-Jun-21 5:15
W Balboos, GHB17-Jun-21 5:15 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Jun-21 5:33
professionalDaniel Pfeffer17-Jun-21 5:33 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-Jun-21 5:13
W Balboos, GHB17-Jun-21 5:13 
GeneralRe: Thought of the Day Pin
PIEBALDconsult17-Jun-21 5:30
mvePIEBALDconsult17-Jun-21 5:30 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Jun-21 5:40
professionalDaniel Pfeffer17-Jun-21 5:40 
JokeThings that make you go hmm... Pin
Mike Hankey17-Jun-21 4:30
mveMike Hankey17-Jun-21 4:30 
GeneralRe: Things that make you go hmm... Pin
Daniel Pfeffer17-Jun-21 5:05
professionalDaniel Pfeffer17-Jun-21 5:05 
GeneralRe: Things that make you go hmm... Pin
PIEBALDconsult17-Jun-21 5:36
mvePIEBALDconsult17-Jun-21 5:36 
GeneralRe: Things that make you go hmm... Pin
Mike Hankey17-Jun-21 5:40
mveMike Hankey17-Jun-21 5:40 
GeneralRe: Things that make you go hmm... Pin
MarkTJohnson17-Jun-21 5:55
professionalMarkTJohnson17-Jun-21 5:55 
GeneralRe: Things that make you go hmm... Pin
charlieg18-Jun-21 2:04
charlieg18-Jun-21 2:04 
GeneralRe: Things that make you go hmm... Pin
musefan18-Jun-21 5:00
musefan18-Jun-21 5:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.