From patchwork Sun Mar 26 18:15:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Sabatini X-Patchwork-Id: 40841 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:7a30:b0:df:834d:2c1a with SMTP id t48csp793379pzh; Sun, 26 Mar 2023 11:15:39 -0700 (PDT) X-Google-Smtp-Source: AK7set8ECWH0SN8BT5c9hsDrhoi0XJELSOkU0oilH7DxGNXafIwrbdwtipDiZXEa5t8pAM4IVknb X-Received: by 2002:a17:906:9b8f:b0:8af:22b4:99d2 with SMTP id dd15-20020a1709069b8f00b008af22b499d2mr18102583ejc.5.1679854539424; Sun, 26 Mar 2023 11:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679854539; cv=none; d=google.com; s=arc-20160816; b=Vh6R0ldDHBlmgscV/B5e/BfeGw/wo56IDNU7PO2/FkuPFc92tJm9jz/j8MxDS51tdw v+jjLYZdm9YACiAv/iQUrFubn/WraIaETSg4K1DUYQkjLD+pYvjeI3IdpLq4W6zc7bP4 pzi2b73UcMYG7g9dwxX/PYR5dppmeGS/PLqKzWrb5lMUECdmbIopLNILyRX7UOiNCnVX 2BJjhkZuWKyktVVxweo0wv8KPI7z8bLtQO9NZTlb4Fhf2+f4YEgOw8wXtnb3DC1J+Sq6 3nKVFNDtbOh8h6vLuhFeoEuh8Q8Hhk6Im11Mb/xFT1xar2IKshEfQPl+Z866mFmJCnqg r7jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=KNmEynUK/uwr76MqB4YYxv2hVO8awDdKHdEMAFzXDOc=; b=XZBleICxpwGWzbaeqN7q1JVkdP63HLy8D7Q7ru0Q8l3IT+ecPsbCCzfUE3RPwdZ1we hgehvyIGwLvXpv4fsoqDL2zkuPqxnFsH/zhVlZiDqAa6Qgciz5JSUUo1nDk1JJUS2kJw M5SUXy3+InEymKYHW1TPkJ2ObMY0OlNtnS/NYZPawo3o1XbyBOy1qXgFDKhLBrJgugmI GRrq6H/Qc1FXbirIUzqXGLK7Ylm9q9owu+gmkY8A0DPNCAIoEvDktAVcjyjBARL6yyBa anS4aTKQkIdKalLkLQiMbm936NB89PM9TfwXam4WUga4y9Fz7jVVjit3MP/k6KfmAild Ka6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=Z8QpImyN; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id o10-20020a170906974a00b00939ad825dd8si20616508ejy.837.2023.03.26.11.15.38; Sun, 26 Mar 2023 11:15:39 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=Z8QpImyN; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 029D568C59F; Sun, 26 Mar 2023 21:15:36 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3DE6168C584 for ; Sun, 26 Mar 2023 21:15:29 +0300 (EEST) Received: by mail-wm1-f42.google.com with SMTP id l37so3790663wms.2 for ; Sun, 26 Mar 2023 11:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679854527; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zwMN+QtoAJ4nA4R4aS5MVoXph+j0YZrxt+0JUzuCaT0=; b=Z8QpImyNGzan94Eb/AvQndOK/MNDSQ78MVxYlNVkCbCJyAJGlfvQtHpFSmG91mVkqs ZH/K6Lvvo/K6TKaWGyvGW11pYWHbfHD8NNiKiW7EL2ES49IS8bzSLamtcMXx4YF/jmhu /1yXGXQgH14v/nIy7RCBTyg4eBV6EIjjvRLxrAdpmk2D6xgv96nRcWPWdix4onL9OBa9 GIagpsQt5yvMHsq9QafCjMzqNORMJy4tmO3rp2TTiXgjb4jYVlcUvaGTFCZXWw56r67d HddKjbuxmj4JAkR+J5ybBco94PmU89wFJVGz/CEEBtQ44Q+Av8bJGKlymkgzjqLsAoS4 plgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679854527; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zwMN+QtoAJ4nA4R4aS5MVoXph+j0YZrxt+0JUzuCaT0=; b=7YYMxv/qPKyNXDTU7E4f0bT/9dU5fdS52qYOsk1ID4kC0c98fSG4ERZ2zguTs+nSF8 zx2Nb5a1tJBFi2EzIMZKKd3PBSkkTbSLvrD1ftXBeJWaomA9j+wZ8Rzq6MbqFValEnQg MDPSNm8LHgg3UcEK6TjNM+wsJ7j71y/UYODaoX2rCDVFU6sPED7Q6e6rzkgTGDCXHJ5Z 8RtA8HpqGwWX8+N9J52Hpy242ROvZ2trvZlLx7ouRNpxEU7uQPKZmo+P1f9xOMrM2tKu 0IFe7Fvyb3nO9onTpWVgnFKN7xBlL3kYwlxwbWnAF5bMefb97ZGRP6lR3NW+179i+rpQ v9Kg== X-Gm-Message-State: AO0yUKVG2owiMSf5KwrZM+e8xbbz0O09DOwfO/vo8vpTwGSK+qzvBWsx FXir4r9Wa4h+v+S8KZ09IP9oYQ6Jquw= X-Received: by 2002:a7b:c04a:0:b0:3ee:6161:7d98 with SMTP id u10-20020a7bc04a000000b003ee61617d98mr7617518wmc.16.1679854527691; Sun, 26 Mar 2023 11:15:27 -0700 (PDT) Received: from mariano (dynamic-adsl-62-10-98-143.clienti.tiscali.it. [62.10.98.143]) by smtp.gmail.com with ESMTPSA id t9-20020a1c7709000000b003ed1ff06faasm11109286wmi.19.2023.03.26.11.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 11:15:27 -0700 (PDT) Received: by mariano (Postfix, from userid 1000) id D08DFBFB73; Sun, 26 Mar 2023 20:15:25 +0200 (CEST) From: Stefano Sabatini To: FFmpeg development discussions and patches Date: Sun, 26 Mar 2023 20:15:25 +0200 Message-Id: <20230326181525.59087-1-stefasab@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] doc/filters/aspect: update documentation 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 Cc: Stefano Sabatini Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: fXjpSZzLTV8a Drop mention of unsupported N:M syntax, dropped since 0ed61546c459. Also, drop reference of common expression constants, and fix description of a expression parameter. Fix issue: http://trac.ffmpeg.org/ticket/9974 --- doc/filters.texi | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 889de8b11a..8d4c6ae2f6 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -20888,12 +20888,9 @@ It accepts the following parameters: @item r, ratio, dar (@code{setdar} only), sar (@code{setsar} only) Set the aspect ratio used by the filter. -The parameter can be a floating point number string, an expression, or -a string of the form @var{num}:@var{den}, where @var{num} and -@var{den} are the numerator and denominator of the aspect ratio. If -the parameter is not specified, it is assumed the value "0". -In case the form "@var{num}:@var{den}" is used, the @code{:} character -should be escaped. +The parameter can be a floating point number string, or an expression. If the +parameter is not specified, it is assumed the value "0", meaning that the same +input value is assumed. @item max Set the maximum integer value to use for expressing numerator and @@ -20902,19 +20899,14 @@ Default value is @code{100}. @end table -The parameter @var{sar} is an expression containing -the following constants: +The parameter @var{sar} is an expression containing the following constants: @table @option -@item E, PI, PHI -These are approximated values for the mathematical constants e -(Euler's number), pi (Greek pi), and phi (the golden ratio). - @item w, h The input width and height. @item a -These are the same as @var{w} / @var{h}. +Same as @var{w} / @var{h}. @item sar The input sample aspect ratio.