From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Native image rotation Date: Sun, 24 Feb 2019 23:22:28 +0000 Message-ID: <20190224232228.GA67813@breton.holly.idiocy.org> References: <20190224113050.GA67303@breton.holly.idiocy.org> <83tvgtnoyh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="95908"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.2 (2019-01-07) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 00:22:46 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gy36c-000OqK-BD for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2019 00:22:46 +0100 Original-Received: from localhost ([127.0.0.1]:57323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gy36b-0000dU-72 for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2019 18:22:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gy36V-0000dN-7t for emacs-devel@gnu.org; Sun, 24 Feb 2019 18:22:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gy36T-0000Ez-VJ for emacs-devel@gnu.org; Sun, 24 Feb 2019 18:22:39 -0500 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:36315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gy36O-0008VS-Fq; Sun, 24 Feb 2019 18:22:33 -0500 Original-Received: by mail-wr1-x430.google.com with SMTP id o17so7944996wrw.3; Sun, 24 Feb 2019 15:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=TUfx/r/1EfLIm4mjCwimwFANkQDnHmL6I+LjCpv3gTw=; b=NErIuT0RCbb426xMBTfeRCWaQpFdPx4vyl3FosfhAUFOsVlUkkYYubYEqyU+ab4pGn u+beOoaRUd7Hg9VOyXZo0i3Gbzetw9NrmyqVdjk8xJfCgvd297vYQGu0j63xVqpzBYae WvImFO/hjSu2NPyOo5TIr1DHToSdHjyjka8rmEsYMcTJnJ8ydc2Q9XJxYgjk2bvPVJrA 3gf86bO/A2MXg+l/CKuWTrX5IGprA6gYmq95KwOjduNe6S8giDUNsHqJO/MCGlx8GGfv H/bZXCLHX6Ofpr2E3TR6NKoNfJsM3lKexl+R2vN1swF9vcdLb1Gwi5T7BSgLBinB3S1D ekxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=TUfx/r/1EfLIm4mjCwimwFANkQDnHmL6I+LjCpv3gTw=; b=ABOMoXLIbs6qDEzGF4RIOhGsg2KxWTnQoE25iDeX/1RM170k8bUTNjJHqAR73SMXZy qoQ+OsBYHh8xfa12nYdOBvDkRHxfYgYWZy0P1N66fVQ56kaYo8+AALUU477+EsrwDgsp eLjezBd7pTuNcfCGLO4S+uiOzkQAhNiRccuS7V/Er/xUkJaWwJ2ThTWQjDiIYSUYKQeq ssEHi86RGjSlgpU24h5VejhnppO6XBALP0Kc2igOYwB3x8cH9cwrUEAhY/TeJI2FXmF9 2GjWnBPz6oTpVnM04raELPWmo51amP+UBOXBSsuqWV/9jRq9W4oJqvusHUpKh2hikCSf 3gsA== X-Gm-Message-State: AHQUAublqnUzmfCzk2mxXvuyUEPOEs+Q0v4wdpBPVqiVyksZU+Dj9Nm5 UbQQA9ggtswaiQBaOB9F+meNl3Sy X-Google-Smtp-Source: AHgI3IYW2X5dr6q/es/yAk8pqn+JjAQpRimGMyyji2PmOPO7yhCLc3DKjeLeGah0wa4XjAY7sGR7XA== X-Received: by 2002:a5d:680d:: with SMTP id w13mr9870426wru.196.1551050550865; Sun, 24 Feb 2019 15:22:30 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-2116-b59c-3958-9dbd.holly.idiocy.org. [2001:8b0:3f8:8129:2116:b59c:3958:9dbd]) by smtp.gmail.com with ESMTPSA id i10sm22561521wrx.54.2019.02.24.15.22.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 15:22:30 -0800 (PST) Content-Disposition: inline In-Reply-To: <83tvgtnoyh.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::430 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233585 Archived-At: On Sun, Feb 24, 2019 at 06:14:30PM +0200, Eli Zaretskii wrote: > > Though I wonder what would be the use cases for rotating images in > Emacs by angles other than integral multiples of 90 deg. I’ve no idea, but the maths required isn’t significantly easier as we still need to calculate the two transforms and the rotation. The main advantage would be that we could replace all sin(r) and cos(r) instances with either 1 or 0, but I expect we would get a better performance improvement from precalculating those values and the matrix multiplications. And I guess we maybe wouldn’t have to worry about clearing under the image any more in X: rotating can leave transparent sections. But the maths is performed only once, when the image is loaded, so I doubt we’d find a significant improvement. -- Alan Third