From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D428943E7E for ; Tue, 16 Aug 2022 13:43:23 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9971268B823; Tue, 16 Aug 2022 16:43:20 +0300 (EEST) Received: from shout01.mail.de (shout01.mail.de [62.201.172.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4798168B4BB for ; Tue, 16 Aug 2022 16:43:14 +0300 (EEST) Received: from postfix02.mail.de (postfix02.bt.mail.de [10.0.121.126]) by shout01.mail.de (Postfix) with ESMTP id E912CA0BDD for ; Tue, 16 Aug 2022 15:43:13 +0200 (CEST) Received: from smtp04.mail.de (smtp04.bt.mail.de [10.0.121.214]) by postfix02.mail.de (Postfix) with ESMTP id CE739A03C1 for ; Tue, 16 Aug 2022 15:43:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1660657393; bh=06gX+0+A3otC5AXFspPj7A2uS3/uhFHiN4rxppjKjSQ=; h=Message-ID:Date:Subject:To:From:From:To:CC:Subject:Reply-To; b=e/6HmMlGTx6nWtCv1IxCbkLVLdOm6yqFTGMRzxDajS7jNV1sHsv6QzXyzErb83u7d 3HtYO75cwzZBWCv9o6kmWmt6ZZw/K2bhyS6c5l6F/0beQ4fswNd4oMmi/Op3Yuh1a3 /A0niM4MxBaoNqXm9q7UAbope4RC7aBRA/MCf1exsVItF7mygkWxO5k0QIejESbur+ jgm7qyI5MCp4CBRe8u7wq7E6E/eYNx82iY4IkdjqkfNkEddreOL7MK72zwQDPN2vfg 9PR44WLE+E8LaBosrNUlTAInT/6lP+JCtJ0nXAk9hASbSd1iG771X3zvuFNntvDOJC l3L3kEjoLO9Nw== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtp04.mail.de (Postfix) with ESMTPSA id 96261C1338 for ; Tue, 16 Aug 2022 15:43:13 +0200 (CEST) Message-ID: Date: Tue, 16 Aug 2022 15:43:12 +0200 MIME-Version: 1.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220816133046.70846-1-thilo.borgmann@mail.de> <20220816133046.70846-5-thilo.borgmann@mail.de> From: Thilo Borgmann In-Reply-To: <20220816133046.70846-5-thilo.borgmann@mail.de> X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1340 X-purgate-ID: 154282::1660657393-000016C9-B5A73FF5/0/0 Subject: Re: [FFmpeg-devel] [PATCH 5/5] ffmpeg: Add {h, v}scale argument to display_matrix option to allow for scaling via the display matrix X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Am 16.08.22 um 15:30 schrieb Thilo Borgmann: > --- > doc/ffmpeg.texi | 4 ++++ > fftools/ffmpeg_filter.c | 15 +++++++++++++++ > fftools/ffmpeg_opt.c | 10 ++++++++++ > libavutil/display.c | 21 +++++++++++++++++++++ > libavutil/display.h | 28 ++++++++++++++++++++++++++++ > 5 files changed, 78 insertions(+) > > [...] > diff --git a/libavutil/display.c b/libavutil/display.c > index d31061283c..b89763ff48 100644 > --- a/libavutil/display.c > +++ b/libavutil/display.c > @@ -28,9 +28,11 @@ > > // fixed point to double > #define CONV_FP(x) ((double) (x)) / (1 << 16) > +#define CONV_FP2(x) ((double) (x)) / (1 << 30) > > // double to fixed point > #define CONV_DB(x) (int32_t) ((x) * (1 << 16)) > +#define CONV_DB2(x) (int32_t) ((x) * (1 << 30)) > > double av_display_rotation_get(const int32_t matrix[9]) > { > @@ -48,6 +50,17 @@ double av_display_rotation_get(const int32_t matrix[9]) > return -rotation; > } > > +double av_display_hscale_get(const int32_t matrix[9]) > +{ > + return fabs(CONV_FP2(matrix[2])); > +} > + > +double av_display_vscale_get(const int32_t matrix[9]) > +{ > + return fabs(CONV_FP2(matrix[5])); > +} > + > +#include obviously wrong and missed to remove... will be fixed locally. -Thilo _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".