From patchwork Thu Sep 19 05:43:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15149 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 DE21F446492 for ; Thu, 19 Sep 2019 08:43:28 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BA6AD68A0B1; Thu, 19 Sep 2019 08:43:28 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2EA05689DA7 for ; Thu, 19 Sep 2019 08:43:22 +0300 (EEST) Received: by mail-pg1-f196.google.com with SMTP id 4so1190060pgm.12 for ; Wed, 18 Sep 2019 22:43:22 -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; bh=V1b5MLrispx7pVjWMHaJIMvHz5qo8QFp/mDHUwdik1s=; b=opC5RCfs0lu61haubvKRQCMbIBDGAmyGfzp6IUrRj3CSR5JQN3kVUN6SifunthzPQM gU2GWmviGvY2CMhLJMXoaBOhAjmZe80dJvbhuC6y8sJEk/XmivfU1ntRgGYuM/3vqAMG DLzu1WY1+aU8FPWsvZ6ENcZHruJS/1k7ePZfdCBnW5EgRk4y1UrHUhdXq7FhD67dWGwA 747qg7aq5Ho/QVhF2yf0psfgloSElqGR9BNgq0PevsJpvhSq+RSu55Wh091DnEFdqOFq kSiH4q7iT7sIQoX9fFtq5f4g3B9T1VXxmqBMycF1ja3VBTtjGdn/zTjDiA8B5h47oxS8 kDYw== 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; bh=V1b5MLrispx7pVjWMHaJIMvHz5qo8QFp/mDHUwdik1s=; b=drW5TrpN/mdB9UdSPbCbz2UUFbGN/nPWliCdo5ZmcB1TmUSSo8QUVLrxVsPBDcMBFm YMu+xQ1nCVitIFKchcSNG6MkdygvWO1OtS5cq70hipQTEfAG8ixcTw4LaA4ZVrw3ooBb UhUWTf1TEzhkv9isqFaV+4G2L4s4xzN51khirzGSBWUX4La02VSi1w+5HjOzVQILMV+h 6WU7UpGBMH9asZUETerdkNxoZM0J4HLRW8eD60ORVrYaZHgqfrWgVgEPtJokvCXOm3oH sDNdPw+KqA0daUTFjVc7OSOHXNgAXnbq7Txe/tlmYlVUy7v58D1foOCDxL6yy2MFptzy Ed/Q== X-Gm-Message-State: APjAAAWOWMytAJyvrMvwW57jzPzMtdwniBkthHxQXBU5nvC4AlpzuSA2 kwE4J6bmdWdAlUwyA1YGc9ygnwYB X-Google-Smtp-Source: APXvYqwXicHLgUVh+mj5/v9T60oCvHMxetHxe326ob3yU7GHzt1VFCl+HRuLKSqHgvWsJRO/T+KH+w== X-Received: by 2002:a17:90a:33c1:: with SMTP id n59mr1783835pjb.20.1568871799873; Wed, 18 Sep 2019 22:43:19 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id w11sm12395592pfd.116.2019.09.18.22.43.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 22:43:19 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 19 Sep 2019 13:43:14 +0800 Message-Id: <20190919054314.32694-1-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 Subject: [FFmpeg-devel] [PATCH v1] 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 In additon, I have added details of each input position to help understand how to write the layout parameters. 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 06ce7ec069..bd5edf9d0c 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -19045,6 +19045,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 @@ -19053,6 +19058,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 @@ -19061,11 +19070,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}