public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* jpeg package: wrong jpeglib.h?
@ 2003-09-03  0:13 Teun Burgers
  2003-09-03  5:11 ` Charles Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Teun Burgers @ 2003-09-03  0:13 UTC (permalink / raw)
  To: cygwin

I've got a program that won't compile with /usr/include/jpeglib.h.
The reason is that struct jpeg_component_info does
not contain height_in_blocks.

The jpeglib.h distributed in jpegsrc.v6b.tar.gz from
http://www.ijg.org/files/ *does* contains height_in_blocks.

What is the reason for using a different jpeglib.h?

Teun

--
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 package: wrong jpeglib.h?
  2003-09-03  0:13 jpeg package: wrong jpeglib.h? Teun Burgers
@ 2003-09-03  5:11 ` Charles Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2003-09-03  5:11 UTC (permalink / raw)
  To: cygwin

Teun Burgers wrote:

> I've got a program that won't compile with /usr/include/jpeglib.h.
> The reason is that struct jpeg_component_info does
> not contain height_in_blocks.
> 
> The jpeglib.h distributed in jpegsrc.v6b.tar.gz from
> http://www.ijg.org/files/ *does* contains height_in_blocks.
> 
> What is the reason for using a different jpeglib.h?

Cygwin's jpeg is built with the lossless jpeg patch, which modifies the 
header files slightly.  However, if you read the header file carefully, 
height_in_blocks is in the PRIVATE section of the header.  It is NOT 
supposed to be accessed by external programs -- I have this on the 
highest (for jpeg) authority, Tom Lane himself.

So, don't do that.

But, if you must do that, height_in_blocks has simply been renamed to 
"height_in_data_units" -- because with lossless jpeg, each "compression 
unit" is not necessarily a DCT block.

Please search the mailing list archives where this has been discussed in 
the past. IIRC several mechanisms for working transparently with the 
cygwin versions of the jpeglib headers were presented in those discussions.

--
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:[~2003-09-03  5:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03  0:13 jpeg package: wrong jpeglib.h? Teun Burgers
2003-09-03  5:11 ` 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).