From patchwork Sat May 27 14:10:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Mark X-Patchwork-Id: 3749 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.2 with SMTP id 2csp744495vsk; Sat, 27 May 2017 07:18:12 -0700 (PDT) X-Received: by 10.28.136.85 with SMTP id k82mr4852174wmd.55.1495894692234; Sat, 27 May 2017 07:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495894692; cv=none; d=google.com; s=arc-20160816; b=N3Hfz3D8kDxInflaIuwdHq73qdCmQBoKeYrkLAIaiJFLHb+jlpAuhVU005qY6J8KUI F61a/Kg0bTuXN4JF35OBJn26ehllZMEdWwxVS8atM9+SlBB5cDP6/W7Kyw2SeaEAsdbH qUPn4Lt+mFG2RTseiUAsU3efOklZgoUCDCsgPTVmU2YlbdUmzEdYsk3Wt4TaObPsKNqM 8aDO3KwvmLoYSiuAKOy/t4v78Z8jsR8Y7wdCGRZFsW3xQI+NFKVL53CnAzqhOka/Fe3X aRbol/fOyWAk2zDIv8g76mLeW8TVtxk8rqJB2iMaxEJdVY8MpsyQoanwEn97JLAAXhs/ EERQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=xToxIAI2BJXTyfOf6A4qe9h+KuInIxic1B29KYtDwK8=; b=h93BnQxZD4W2Cvk1nuI0c8LgT8Rry+v85DJlAvp6I9a5voOHCD3sPEHn1TSbvwqLVd 6NiHCuH7amLOhW2Q+EvY6eDZkw45pS3Qp6vmAC5U0l+U3Y9f+eGI7+94xYMPdHPaTXkv IGFaOHbpe71wusANO1oQls35s98hIQqrQOzr0afuvxurAx5S31ddMSWtRnA1JK8gM1mM Pn/1IyIMHuJBv9TERo3t0lvZb3Q2CySlIitF1CY7alR/yRLspmuxCOIfHhzos8FPRg41 YYjloj4u6GQEAqauAWrzHIT2w0aBaheC+o2+3lQFHgjrRo+hAw4tfJHggtXidqmeaj5B 4JDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; 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=NONE 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 m192si5849680wmd.129.2017.05.27.07.18.11; Sat, 27 May 2017 07:18:12 -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; 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=NONE 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 7F9E96899C4; Sat, 27 May 2017 17:18:06 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9844F689933 for ; Sat, 27 May 2017 17:18:00 +0300 (EEST) Received: by mail-qk0-f196.google.com with SMTP id y128so4254044qka.3 for ; Sat, 27 May 2017 07:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TGiS745QztRRLKGzHhvKEzLZ9wAyU15ihgX93InZmKw=; b=dvQksJsFjFdq2smuXTBFa246DHGEiSX1zbzri/+9ikm1WOogDqrHNeUi3JqqFAWrdw B+qa3+YiY79UWxqhMsGVxbeg9GeDEC7oMtcvCj6d/uaQeIjFbjMErxD6F8F/UO5MxSWp 7ayX0JMpik+inou5ToRNeTZLmaD30BT2amkIoMuIQ2id+BG0xqS9a3H5UgdSTj1mMcjj p0Eq7tLqLBGSHnjrsEwpOYcNaJ3Wf4LCGn3L+H5ltPcO+jmrzxSvPZ/ippv46jUW/egx +9Rors977cBOR0ZegMdEJmxeRoVI4UAktplxwow0YJjL0YnOFVrJeMQzaqzdDVWUzDey 1dVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TGiS745QztRRLKGzHhvKEzLZ9wAyU15ihgX93InZmKw=; b=gOE62A3sKIuwxM6oHr6+n8yl0Pe7coou4+d45+9j0s69n9f005Fr5M+QZX+EkOoe5D uTyx6N22HJNJXVoWqnjR+urAWK5qbWbaUyT0Exa/ehkzEhCYfc98EXGstU+lTjYCUkpp GUMgEttY8yc9VYBQLy3DZSrzTbjwDyfm/pHVFG3Da+EYesRAhUi0kUTc/CcfeNQlki0v oZbKkiZHHY+uKLpDIC8DurH3vjp0grkP6Foq2ZmhYQqQF5ih1bcytCGf4ZxNY+pjGQ35 Pt89JlikRlpI/cZweZd7fsaxr3WSwruBbM8tEigwlhGxOcaDrgbA9UFnd+VVGq+CzptV YafA== X-Gm-Message-State: AODbwcCiCWqBiZdeSq2Vg2+rxiJx/mYhIN6As6txhUMWaH835eZfbPSJ eBybo2YyFxBEANL/omk= X-Received: by 10.55.188.135 with SMTP id m129mr7015212qkf.226.1495894275718; Sat, 27 May 2017 07:11:15 -0700 (PDT) Received: from Klingon.fios-router.home (pool-173-69-140-116.bltmmd.fios.verizon.net. [173.69.140.116]) by smtp.gmail.com with ESMTPSA id o15sm2687903qki.47.2017.05.27.07.11.15 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 27 May 2017 07:11:15 -0700 (PDT) From: Kevin Mark To: ffmpeg-devel@ffmpeg.org Date: Sat, 27 May 2017 10:10:45 -0400 Message-Id: <20170527141046.57488-2-kmark937@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170527141046.57488-1-kmark937@gmail.com> References: <20170527141046.57488-1-kmark937@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/3] doc/filters: Add new scale2ref constants X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Kevin Mark MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Update the filters documentation to include the new scale2ref constants. Signed-off-by: Kevin Mark --- doc/filters.texi | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index a0ab2fb0c7..ff41402f7e 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -12429,7 +12429,31 @@ Supersampling Scale (resize) the input video, based on a reference video. See the scale filter for available options, scale2ref supports the same but -uses the reference video instead of the main input as basis. +uses the reference video instead of the main input as basis. scale2ref also +supports the following additional constants for the @option{w} and +@option{h} options: + +@table @var +@item other_w +@item other_h +The non-reference video's width and height + +@item other_a +The same as @var{other_w} / @var{other_h} + +@item other_sar +The non-reference video's sample aspect ratio + +@item other_dar +The non-reference video's display aspect ratio. Calculated from +@code{(other_w / other_h) * other_sar}. + +@item other_hsub +@item other_vsub +The non-reference video's horizontal and vertical chroma subsample values. +For example for the pixel format "yuv422p" @var{hsub} is 2 and @var{vsub} +is 1. +@end table @subsection Examples