From owner-freebsd-ports Tue May 15 7:57:13 2001 Delivered-To: freebsd-ports@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id 9435B37B423; Tue, 15 May 2001 07:57:04 -0700 (PDT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.3/8.11.3) with ESMTP id f4FEwrt62595; Tue, 15 May 2001 10:58:56 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200105151458.f4FEwrt62595@aldan.algebra.com> Date: Tue, 15 May 2001 10:58:50 -0400 (EDT) From: Mikhail Teterin Subject: Re: GhostScript and JPEG To: ghost@aladdin.com Cc: ports@freebsd.org, andreas@freebsd.org, raph@artofcode.com, jseger@freebsd.org In-Reply-To: <200105150027.RAA00297@aladdin.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 14 May, L. Peter Deutsch wrote: >> Khmm, was this ever suggested to the libjpeg maintainers? > > Yes. Their opinion is reflected in the following comment in jpeglib.h: > > /* > * Unfortunately, some bozo at Adobe saw no reason to be bound by the > * standard; the PostScript DCT filter can emit files with many more > * than 10 blocks/MCU. If you happen to run across such a file, you > * can up D_MAX_BLOCKS_IN_MCU to handle it. We even let you do > * this from the jconfig.h file. However, we strongly discourage > * changing C_MAX_BLOCKS_IN_MCU; just because Adobe sometimes emits > * noncompliant files doesn't mean you should too. > */ > #define C_MAX_BLOCKS_IN_MCU 10 /* compressor's limit on blocks per MCU */ > #ifndef D_MAX_BLOCKS_IN_MCU > #define D_MAX_BLOCKS_IN_MCU 10 /* decompressor's limit on blocks per MCU */ > #endif Ok, this is an argument to keep C_MAX_BLOCKS_IN_MCU at 10, but to bump up the D_... to 64. Any objections to me applying this change to the jpeg port? (JSeger seems to be off-line for months :( ) Then the ghostscript ports can be modified to the shared jpeg library. -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message