public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* JPEG parameter struct mismatch
@ 2008-04-13  8:54 w1hkj
  2008-04-13  9:49 ` Charles Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: w1hkj @ 2008-04-13  8:54 UTC (permalink / raw)
  To: cygwin

I have a fairly simple image to save in jpeg format.  The code works 
correctly in native Linux and also compiles and works correctly under 
MinGW.  When I try the same build in Cygwin the program crashes with the 
following libjpeg message:

JPEG parameter struct mismatch:  library thinks size is 376, caller 
expects 360.

Testing the struct in question, "jpeg_compress_struct" with a sizeof 
give the value 360.

So what am I doing wrong?  The full program needs to run in Cygwin.

Thanks,

Dave Freese
www.w1hkj.com




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: JPEG parameter struct mismatch
  2008-04-13  8:54 JPEG parameter struct mismatch w1hkj
@ 2008-04-13  9:49 ` Charles Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2008-04-13  9:49 UTC (permalink / raw)
  To: cygwin

w1hkj wrote:
> JPEG parameter struct mismatch:  library thinks size is 376, caller 
> expects 360.
> Testing the struct in question, "jpeg_compress_struct" with a sizeof 
> give the value 360.

The cygwin jpeg includes the so-called "lossless jpeg" patch. This patch 
changes the *private* portion of the jpeg structs, and their size.

See:
http://www.cygwin.com/ml/cygwin-apps/2001-02/msg00001.html

--
Chuck

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-13  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-13  8:54 JPEG parameter struct mismatch w1hkj
2008-04-13  9:49 ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).