nanogui: Image size limit?


Previous by date: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Martin Kajdas
Next by date: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Greg Haerr
Previous in thread: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Martin Kajdas
Next in thread: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Greg Haerr

Subject: RE: Image size limit?
From: "Martin Kajdas" ####@####.####
Date: 12 Jul 2006 18:28:38 +0100
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC229152C@mkmail.MKPROD.COM>

The end of log before the crash:
...
XCreatePixmap 792,490 depth 16
XPutImage: fg=0x1 bg=0xffff0000 depth=16
XputImage depth 16  src 0,0 wxh 792,490 dst 0,0
putTrueColorImage depth 16  src 0,0 wxh 792,490 dst 0,0
putTrueColorImage nxmode = 5
XCreateBitmapFromData 792 490

where XCreateBitmapFromData is in CrBFData.c and calls GrNewPixmapFromData with image size 792x490
Anything else I should try?
Martin

-----Original Message-----
From: Greg Haerr ####@####.####
Sent: Wednesday, July 12, 2006 8:39 AM
To: Martin Kajdas; ####@####.####
Subject: Re: Image size limit?


> The application works fine on X11 but when running on nano-X,
the smaller images show fine but when I get to pages that display
larger png images, the application crashes when it tries to display the 
image (from the log).
The images in question are 704x700 pixels and 792x490 in size (png, RGB, 32 
bpp)
The images about half this size display fine.
I do not know the exact size that is borderline.

Sounds like we've got a line length bytesize calculation
problem.  All this code is likely in nxlib/Image.c.  X11
and NX have differerent alignment requirements for
images, although this might not be the issue.  Normally,
NX handles images within the server, using the
specialized GrDrawImage calls for decoding.  X11
has applications handle decoding to any format, and
then the Image.c Xlib code translates this from many
formats to any number of formats, usually the one the
running X11 server prefers.  It's likely that there's
still some problems there.

There's considerable debug printf()s still in there,
perhaps try to find the codepath, and I'll help you.

Regards,

Greg 


Previous by date: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Martin Kajdas
Next by date: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Greg Haerr
Previous in thread: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Martin Kajdas
Next in thread: 12 Jul 2006 18:28:38 +0100 Re: Image size limit?, Greg Haerr


Powered by ezmlm-browse 0.20.