nanogui: blitting with more than 8bpp


Previous by date: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Kyle Harris
Next by date: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Alistair Riddoch
Previous in thread: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Kyle Harris
Next in thread: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Alistair Riddoch

Subject: RE: blitting with more than 8bpp
From: Greg Haerr ####@####.####
Date: 7 Jan 2000 17:41:54 -0000
Message-Id: <C1962B36D9BBD311B0F80060083DFEFB01E60D@SYS.CenSoft.COM>

:I missed the fact that dst and
: src are pointers to shorts. So, my original patch was wrong. But, the
: initialization of these two pointers do not appear to consider the bpp
: correctly. Here's a patch that seems to work.
: 
: --- fblin16.c   Fri Jan  7 05:59:41 2000
: +++ fblin16.c.orig      Fri Jan  7 05:56:06 2000
: @@ -133,8 +133,8 @@
:         assert (srcy+h <= srcpsd->yres);
: 
:         DRAWON;
: -       dst = dstpsd->addr + (dstx + dsty * dlinelen)*2;
: -       src = srcpsd->addr + (srcx + srcy * slinelen)*2;
: +       dst = dstpsd->addr + dstx + dsty * dlinelen;
: +       src = srcpsd->addr + srcx + srcy * slinelen;
:         while(--h >= 0) {

Kyle - I'm a little confused here.  My source already matches
your patch "+'" lines.  Your original source doesn't match.
Perhaps you should check your fblin16.c with the most recent
sources (any 0.87pre2 or pre3)


: 
: 
: On a slightly different note. I need to read a jpeg image into memory
: and then blit it to screen. I beleive you mentioned providing a
: GrCopyArea function. Will this provide this feature or do I need
: something else?
:

I have written GrCopyArea for Nano-X yet; yes that's what you need.
However, Nano-X also will need to support off-screen drawing, so
that you can "draw" offscreen using the normal functions.

However - folks are using the already implemented GrArea()
function which will draw directly to the screen.  So if your
jpeg decoder just sets bits in GrArea() format (PF_PIXELVAL
and PF_RGB formats are supported), then you can make
this work now.  In addition,  Martin Joliceour is working on this
as well.

Regards,

Greg


Previous by date: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Kyle Harris
Next by date: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Alistair Riddoch
Previous in thread: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Kyle Harris
Next in thread: 7 Jan 2000 17:41:54 -0000 Re: blitting with more than 8bpp, Alistair Riddoch


Powered by ezmlm-browse 0.20.