From patchwork Tue Sep 24 12:50:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15259 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id A48A7448476 for ; Tue, 24 Sep 2019 15:50:35 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 80428689E26; Tue, 24 Sep 2019 15:50:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C6C14689DA7 for ; Tue, 24 Sep 2019 15:50:28 +0300 (EEST) Received: by mail-pg1-f194.google.com with SMTP id t14so871808pgs.3 for ; Tue, 24 Sep 2019 05:50:28 -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=OahxTH6GcCf/ykli+6mQedcXzSwh6p/nQKf6UYaDCcY=; b=k9BeDYLfnGyoV0+gLUXz6G0Jh2+JP5vuuK9KPalY+39GDdi/cDNRgkAXo2wi5oJOkC uxzWmhP657r/bAvGtZw0raRZ8hOIpgLjv6dzlBdq//wzBp/RLKN2nHbApIq0bojM/gBd 2RnQv2Ze56N7NJ8IKK4+F1++oJ21K8oLDYU/hKpfnjYr46eQRrG+JsjV2dsQ2nsEyZSN 4XSP8Um5isuiVcdlCaujpJoHZCwfZtMOB3a1PwShUnaF+ueKqtoR3NIeIsdASIDLVdDd AZiguDOlrWpC2t1L7dixNK9+dxGmNi1CFcxv0lLc5+vjuJ0+kvjaBxEqgiQS9b4VAmwk Ho7w== 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=OahxTH6GcCf/ykli+6mQedcXzSwh6p/nQKf6UYaDCcY=; b=lXwWiP1RGLisWBMh+3Sv4rwnvurvmdtXawoDc5OT0IF0ynUoRZ8jU92EMITFnswXAk uFDl0xoSVUv6Ws/GDxVi5eUzKino256+0kSUHlj9i85cBWAuyC5q5bIhjuTO9TD4rZIY OqWO19IUn8WmJej0HTpW2q1UMJs28U5fTp+Zwu53FXv67e8296n2j3NGOE9gTDi8DhHt sIwOF963xhWmF0McTY9cEDPUhyZvG13C9PMBY7sPwZZyyx1V6f1NWzhbRrM4dDUcWgqP UNGPpPZDFGdL47qM2nfUQDChY4H41GxJzTMc+Qkca8SonOqUQNMsryZaedawmFG4xi+A 61Rw== X-Gm-Message-State: APjAAAVFLELn4BOHNqoNeTTd2clOAiGA7/EsSZC8S83RNJ8rUthl/QN9 qLldEoNOWtjTOPqpH81FEL7vXhRH X-Google-Smtp-Source: APXvYqwJ0fQX01eMGewD1q/pj/I3DzKnGfyrzMVYykgdR2MIm/DltvNqmFcHz+lXxVfxaM8Bb6w0TQ== X-Received: by 2002:a17:90a:17cb:: with SMTP id q69mr2744763pja.135.1569329426555; Tue, 24 Sep 2019 05:50:26 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id 19sm75275pjd.23.2019.09.24.05.50.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Sep 2019 05:50:25 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Tue, 24 Sep 2019 20:50:22 +0800 Message-Id: <20190924125022.14335-1-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190919054314.32694-1-lance.lmwang@gmail.com> References: <20190919054314.32694-1-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH v3] doc/filters: add 4x4 layout example for xstack filter 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: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Reviewed-by: Gyan Signed-off-by: Limin Wang --- doc/filters.texi | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index e41384aed8..9e76af36a3 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -19057,6 +19057,11 @@ terminates. Default value is 0. @itemize @item Display 4 inputs into 2x2 grid. + +Below is the 4 inputs position: +input1(0, 0) | input3(w0, 0) +input2(0, h0) | input4(w0, h0) + Note that if inputs are of different sizes unused gaps might appear, as not all of output video is used. @example @@ -19065,6 +19070,10 @@ xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0 @item Display 4 inputs into 1x4 grid. + +Below is the 4 inputs position: +input1(0, 0) | input2(0, h0) | input3(0, h0+h1) | input4(0, h0+h1+h2) + Note that if inputs are of different sizes unused gaps might appear, as not all of output video is used. @example @@ -19073,11 +19082,34 @@ xstack=inputs=4:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2 @item Display 9 inputs into 3x3 grid. + +Below is the 9 inputs position: +input1(0, 0) | input4(w0, 0) | input7(w0+w1, 0) +input2(0, h0) | input5(w0, h0) | input8(w0+w1, h0) +input3(0, h0+h1) | input6(w0, h0+h1) | input9(w0+w1, h0+h1) + Note that if inputs are of different sizes unused gaps might appear, as not all of output video is used. @example -xstack=inputs=9:layout=w3_0|w3_h0+h2|w3_h0|0_h4|0_0|w3+w1_0|0_h1+h2|w3+w1_h0|w3+w1_h1+h2 +xstack=inputs=9:layout=0_0|0_h0|0_h0+h1|w0_0|w0_h0|w0_h0+h1|w0+w1_0|w0+w1_h0|w0+w1_h0+h1 @end example + +@item +Display 16 inputs into 4x4 grid. + +Below is the 16 inputs position: +input1(0, 0) | input5(w0, 0) | input9 (w0+w1, 0) | input13(w0+w1+w2, 0) +input2(0, h0) | input6(w0, h0) | input10(w0+w1, h0) | input14(w0+w1+w2, h0) +input3(0, h0+h1) | input7(w0, h0+h1) | input11(w0+w1, h0+h1) | input15(w0+w1+w2, h0+h1) +input4(0, h0+h1+h2) | input8(w0, h0+h1+h2) | input12(w0+w1, h0+h1+h2) | input16(w0+w1+w2, h0+h1+h2) + +Note that if inputs are of different sizes unused gaps might appear, +as not all of output video is used. +@example +xstack=inputs=16:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2|w0_0|w0_h0|w0_h0+h1|w0_h0+h1+h2|w0+w1_0|\ +w0+w1_h0|w0+w1_h0+h1|w0+w1_h0+h1+h2|w0+w1+w2_0|w0+w1+w2_h0|w0+w1+w2_h0+h1|w0+w1+w2_h0+h1+h2 +@end example + @end itemize @anchor{yadif}