From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74476: [PATCH] Explore JPEG loading without quantization Date: Sat, 30 Nov 2024 15:54:38 +0100 Message-ID: <87y11093gx.fsf@ledu-giraud.fr> References: <871pz39v6p.fsf@ledu-giraud.fr> <86iks581nf.fsf@gnu.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36031"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 74476@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 30 15:55:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tHOsU-0009BQ-KU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 15:55:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHOsC-0004uA-Jh; Sat, 30 Nov 2024 09:55:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHOsA-0004sa-Gk for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:55:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHOsA-0005Dn-7A for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:55:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=8qPyDBMAuLUoDY+0Q1McNJmX+GZNcz/4eXhSC9MTu4s=; b=pvCPVRgEwvb8Uwg4o3RFYOfcne2+M7BTe9/HK2Ik4iE64pTRqJwa4//8z2DZ5L72UafO8LGMF8AvCLfXQ81EVRJ60Dix3l3gGV7eX7L5afBgX5zkUvsL7S5IMhI9xe2sCg6h/4KMN76a5lWmozT80pEKpyxM426h4jCXfNFs1sdxP3hPbl8cheSdzMqTPHek8QXkwr+KommuTKzcmBKBvajkSRToqNsVXAEuDI4xvxBf6W/lqfQpmuEugQzg6tlLO7C29A3tdP7qRF2Ob/3tCuejqHAHSb5i3u89FesPvuKD33mBbcb8bVWtMbboBodWSvBH17csBx7/7tadeaH0pg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHOs9-0005jp-SK for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Nov 2024 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74476-submit@debbugs.gnu.org id=B74476.173297848522019 (code B ref 74476); Sat, 30 Nov 2024 14:55:01 +0000 Original-Received: (at 74476) by debbugs.gnu.org; 30 Nov 2024 14:54:45 +0000 Original-Received: from localhost ([127.0.0.1]:46053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHOrs-0005j5-KK for submit@debbugs.gnu.org; Sat, 30 Nov 2024 09:54:44 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:20311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHOrp-0005iw-QX for 74476@debbugs.gnu.org; Sat, 30 Nov 2024 09:54:42 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=i5yDQHpq TYEcWSqIz5tLdSRsZsN78f20qGm84Ek0dhU=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=i1uPrV3M+UGLMUM7teiry4uchVoPIt OX67ytK7vU8IfRA8rwG11DLYslLhHUfS8uHF6HFrt6edJKa7JGvzkHCg== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=i5yDQHpqTYEcWSqI z5tLdSRsZsN78f20qGm84Ek0dhU=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=fwDfoRIa9gOAQBTN8Avuif2G9qnHgZxuDfEz4N yslY+R6GCDd9WQbVQi1j8zO6N61WJkgvKyftgqv03WssJ9pJu75taaHeFETwIfB0ll7moy HAKDMp4x85F2eosegRgo5eXTSsp6X4IGE2Uhr608AE2ikXqf11em23TZBQSLa/Nqcs5PpG 4BnmNNUfgt9w0JumMnlKeUqsvr5bqXmdNeoVKjqxUaI+Dbb+nThjTfaqtOclz7Qz1W5B2g LK0x4CRLQlQZjGxjXa52Qaw9x8cpaatGB8Cly5u4RC/L8lm6luQy9Hhn7zO+TKaxRNL8Hi o10IGYD9jbixl5fS5K2OvHnw== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 7b303c18 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 30 Nov 2024 15:54:41 +0100 (CET) In-Reply-To: (Alan Third's message of "Sat, 30 Nov 2024 11:44:29 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296168 Archived-At: Alan Third writes: [...] > Manuel, I think you want to use lookup_rgb_color when setting the > pixels in the final image buffer. This should do the right thing. You > presumably also need to call init_color_table before using it, and I > see calls to colors_in_color_table and free_color_table which look > necessary, but I think they're already in the jpeg code. Hi Alan, I don't really understand: my proposed patch is getting rid of calls to lookup_rgb_color and init_color_table. -- Manuel Giraud