delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/09/21:23:53

From: ellman AT xs4all DOT nl ()
Newsgroups: comp.lang.c,comp.os.msdos.djgpp,rec.games.programmer
Subject: Re: BMP Scaler
Date: 6 Aug 1997 14:42:11 GMT
Organization: XS4ALL
Message-ID: <5sa2g3$rap$1@news0.xs4all.nl>
References: <5s7cha$gf4 AT mn5 DOT swip DOT net>
NNTP-Posting-Host: xs1.xs4all.nl
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <5s7cha$gf4 AT mn5 DOT swip DOT net>,
Jan-Erik Henriksson <jakob AT wolf-web DOT com> wrote:
>Hello, 
>
>Could anyone please direct me to a site containing C source for bmp scaling
>or even better send me a copy of the source, PLEEEAASSSSEEEE!! It would be
>best if the code was written for DJGPP v2.

The Allegro library contains such a routine, but it's probarbly not for the
beginner, as it contains some C code for writing assembly-language scan-line
fillers by writing whole lines of pixels as an unrolled machine language
sub-routine. This means that the routine is 80386 optimised, coz on 80486s and
above, these unrolled scanline fillers play havoc with the cache.

Maybe some of the other DJGPP graphics libraries have a simpler zooming
routines if you just want to use it to learn how zooming is done.

Perhaps someone could write a 80586 optimised zoomer for Allegro that keeps
the code small so that it doesn't trash the code-cache.

Allegro's homepage is:
http://www.talula.demon.co.uk/allegro/

AE.

--
Andrei Ellman -- URL: http://www.xs4all.nl/~ellman/ae-a -- ae1 AT york DOT ac DOT uk
"All I wanna do is have some fun     :-)      ||  ae-a AT minster DOT york DOT ac DOT uk
 I've got the feeling I'm not the only one"   ||  mailto:ellman AT xs4all DOT nl
     -- Sheryl Crow      :-)    ||       It's what you make of it. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019