From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: png images in tool-bar / alpha mask Date: Thu, 3 Apr 2008 22:42:47 +0100 Message-ID: <75A94D20-9656-4AD6-9A00-6C0EB26B2335@gmail.com> References: <6C1A0020-7B4B-4202-8757-B818A066D40A@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: multipart/signed; boundary=Apple-Mail-20--828982903; micalg=sha1; protocol="application/pkcs7-signature" X-Trace: ger.gmane.org 1207259047 23253 80.91.229.12 (3 Apr 2008 21:44:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2008 21:44:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 03 23:44:39 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 1JhXEQ-0001XW-O4 for ged-emacs-devel@m.gmane.org; Thu, 03 Apr 2008 23:44:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhXDo-0003h6-7E for ged-emacs-devel@m.gmane.org; Thu, 03 Apr 2008 17:43:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhXD2-0002zI-EE for emacs-devel@gnu.org; Thu, 03 Apr 2008 17:43:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhXCz-0002vP-29 for emacs-devel@gnu.org; Thu, 03 Apr 2008 17:43:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhXCy-0002v8-O5 for emacs-devel@gnu.org; Thu, 03 Apr 2008 17:42:56 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JhXCx-00080g-UL for emacs-devel@gnu.org; Thu, 03 Apr 2008 17:42:56 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so1610911nfh.26 for ; Thu, 03 Apr 2008 14:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; bh=cQtTmJj/3gasgcxTOswMiJScnY7GSqF18c7k6xMKQyI=; b=drWdWhuKAZjzka2yA/88dV/We59p1pQMZDzr83ix559CAYgpxCb9Y482Ih5yH5e9HR6bvmiQCGJat99sPL4dQXge6jppK4B9j1QalQ2bmH07IJUZ5PyS6HQDuF5kn8EspIGVWq2Q39wL9+19bCdw9oZQ0NsXZ8Wb/2C+s8flFRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; b=HOA6dUXezvYAJPFCf3XyRKU7BfNgf5B0dgvnyElog9dJuHh7AefKh99L6KzGx+5R0KK8WATsK/Rw+3EqBLLJkn7k6zIY+wv1tQ13YqBUHTw5JeCU1qIAJTqSzWgs+kSfldcFEfUwf8qT1QrqHD6yjoQ8fh+RXgKaMXKN37nRiqw= Original-Received: by 10.78.144.11 with SMTP id r11mr1062950hud.49.1207258974699; Thu, 03 Apr 2008 14:42:54 -0700 (PDT) Original-Received: from scarlett.lan ( [89.242.130.219]) by mx.google.com with ESMTPS id 32sm6668595nfu.7.2008.04.03.14.42.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Apr 2008 14:42:53 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.919.2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:94285 Archived-At: --Apple-Mail-20--828982903 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 3 Apr 2008, at 22:15, YAMAMOTO Mitsuharu wrote: > > It seems to completely ignore postprocessing for PNG images. Didn't > you say that "One could remove the reference to the original image as > soon as any kind of processing is done in order to maintain > compatibility."? prepare_image_for_display sets data.ptr_val in the image structure as well. What happens when the image is manipulated after it's been first drawn? I assumed that data.ptr_val would be invalidated at that point, as is done in x_clear_image_1. Are you concerned about postprocess_image? One would have to invalidate the pointer and free the image when anything is done to the image there (x_build_heuristic_mask is called, or QCconversion is given). Any other places where image manipulation can take place? --Apple-Mail-20--828982903 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAMCAQICEEfSZyInpN9bVdFPsdICbiIwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA3MTIwOTIzMDM0OFoXDTA4MTIwODIzMDM0 OFowYjEQMA4GA1UEBBMHUmVpdHRlcjEOMAwGA1UEKhMFRGF2aWQxFjAUBgNVBAMTDURhdmlkIFJl aXR0ZXIxJjAkBgkqhkiG9w0BCQEWF2RhdmlkLnJlaXR0ZXJAZ21haWwuY29tM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