From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: image scaling Date: Fri, 22 Feb 2008 08:48:14 +0100 Message-ID: <85wsox8m9t.fsf@lola.goethe.zz> References: <87odaam9oy.fsf@stupidchicken.com> <8563wiaskc.fsf@lola.goethe.zz> <87lk5dr3kf.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203666516 16876 80.91.229.12 (22 Feb 2008 07:48:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 07:48:36 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 22 08:49:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSSeO-0008Pa-KK for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 08:48:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSSdt-0008Nj-Bx for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 02:48:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSSdn-0008MB-SB for emacs-devel@gnu.org; Fri, 22 Feb 2008 02:48:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSSdm-0008Lk-3f for emacs-devel@gnu.org; Fri, 22 Feb 2008 02:48:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSSdl-0008Le-Uu for emacs-devel@gnu.org; Fri, 22 Feb 2008 02:48:17 -0500 Original-Received: from mail-in-03.arcor-online.net ([151.189.21.43]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JSSdl-0005i8-JB for emacs-devel@gnu.org; Fri, 22 Feb 2008 02:48:17 -0500 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-01-z2.arcor-online.net [151.189.8.13]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 0EA132CAC63; Fri, 22 Feb 2008 08:48:16 +0100 (CET) Original-Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id F34A92BF57C; Fri, 22 Feb 2008 08:48:15 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-022-137.pools.arcor-ip.net [84.61.22.137]) by mail-in-13.arcor-online.net (Postfix) with ESMTP id CCEEE225123; Fri, 22 Feb 2008 08:48:15 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id AEB601CDB1E6; Fri, 22 Feb 2008 08:48:14 +0100 (CET) In-Reply-To: <87lk5dr3kf.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 21 Feb 2008 23:57:20 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.92.1/5930/Fri Feb 22 06:36:54 2008 on mail-in-13.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89942 Archived-At: Chong Yidong writes: > Of course, we could take the approach of writing our own "fallback" > code for when the libraries aren't available, but that negates the > point of using the libraries in the first place. Not if the fallback code sucks. Like pretty much all of Emacs' image-handling code does now. > As for refactoring the Emacs image code, I'm not sure if there's any > urgency for such a project. The code isn't elegant, The understatement of the year. Have you followed the code path for displaying the various pixels of an image? Please do so if you have not done so yet, and then repeat that statement with a straight face. > but it's simple enough to understand and work on; and I don't know of > any performance problem in the way Emacs handles image pixmaps. You must be kidding. We have an image cache exactly because Emacs can't handle images close to reasonably efficiently. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum