From patchwork Thu Sep 26 06:32:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15305 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 847F244A4CA for ; Thu, 26 Sep 2019 09:58:02 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5A1AC689A61; Thu, 26 Sep 2019 09:58:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1028568815B for ; Thu, 26 Sep 2019 09:57:55 +0300 (EEST) Received: by mail-qt1-f195.google.com with SMTP id c21so1501212qtj.12 for ; Wed, 25 Sep 2019 23:57:54 -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=S+wkt96KL/ZHnRPwPQslhOmwATpAr3aReXcPLNhpXuU=; b=A/BwkUSLcaldMoBLjCZMrZvctFleM8PivUETq7R4igj9Xw6JM6q5f5sRB6OB/vXl+X AORItc7RhWglNGEZiWlCaw+KJCPeB8bKbdyGdbaCt0uX1Bup9sF6nSdZr/Zh89uhLBe0 Hd+PAFQGRk1NrYbht+nIejcYXJgQ1t/2TClYofteBavrAbkTWNBbo/1ks0WCEFMo1q8n EZoGuUpvf6cd7CsPCCJOBYrNb2FFyj+abP7vLgNNL+FI0iWYei0KsCO5ZOBkisNcg0Ps aM20q7HaZpzSDaqYimKf9vNEvCTOm2IJ4lo2SEHEA9jrIbh0wWto2jywzJufxfJBBcD9 Kk2Q== 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=S+wkt96KL/ZHnRPwPQslhOmwATpAr3aReXcPLNhpXuU=; b=n5CdwrwzKj4Hzkq55a9x5/jxtilX5qrAQR0bwd+TLSWYup4LnDYbvjwMsAV17SKsTI ntM0A1tFxlMUuWyeFgZuSrLyJSFa7PwjA9uqgAMvp0y681sAzSxkP8Ki1FGV66c7e1Hd StF0M+55j1vOCCWDl1Nkrk6LAxhJMg6aH+6PUV28FHaO4c6MgBAXdfGrCWZK+9kbdou8 6AJFjjhop4aN9VqZBH6LiJZo+VQyyO2hTtwKrr07Uey/rq2iPpGagXO4sUHtyc3+DVuU wq7W9Md80nFP52a/+V0CcJ4oVFv/BcIlsYbincOFkbuuaQPLNFyinmQjz2gdBz/vm3am P63Q== X-Gm-Message-State: APjAAAUnEq0iRxdiG27YRJEsqRw2/ba+GfsEVvQoXDur7mh6AqHOkcUW tk9IC8zofUwe3jOrGDE7Y0UT6xan X-Google-Smtp-Source: APXvYqzxZUJAkxLQhrHWUxXwXIsgjbIj1nIyQYHRTKpiIKs0VQUog58u0SpKncVhqm/xTHnehLZn5g== X-Received: by 2002:a63:2224:: with SMTP id i36mr1786293pgi.135.1569479539339; Wed, 25 Sep 2019 23:32:19 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id o35sm855446pgm.29.2019.09.25.23.32.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Sep 2019 23:32:18 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 26 Sep 2019 14:32:12 +0800 Message-Id: <20190926063212.27468-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 v5] 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 | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index d0fdf957af..a53f572e10 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -19092,6 +19092,13 @@ terminates. Default value is 0. @itemize @item Display 4 inputs into 2x2 grid. + +Below is the 4 inputs position: +@example +input1(0, 0) | input3(w0, 0) +input2(0, h0) | input4(w0, h0) +@end example + Note that if inputs are of different sizes unused gaps might appear, as not all of output video is used. @example @@ -19100,6 +19107,15 @@ 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: +@example +input1(0, 0) +input2(0, h0) +input3(0, h0+h1) +input4(0, h0+h1+h2) +@end example + Note that if inputs are of different sizes unused gaps might appear, as not all of output video is used. @example @@ -19108,11 +19124,38 @@ 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: +@example +input1(0, 0) | input4(w0, 0) | input7(w0+w4, 0) +input2(0, h0) | input5(w0, h0) | input8(w0+w4, h0) +input3(0, h0+h1) | input6(w0, h0+h1) | input9(w0+w4, h0+h1) +@end example + 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+w4_0|w0+w4_h0|w0+w4_h0+h1 @end example + +@item +Display 16 inputs into 4x4 grid. + +Below is the 16 inputs position: +@example +input1(0, 0) | input5(w0, 0) | input9 (w0+w4, 0) | input13(w0+w4+w9, 0) +input2(0, h0) | input6(w0, h0) | input10(w0+w4, h0) | input14(w0+w4+w9, h0) +input3(0, h0+h1) | input7(w0, h0+h1) | input11(w0+w4, h0+h1) | input15(w0+w4+w9, h0+h1) +input4(0, h0+h1+h2)| input8(w0, h0+h1+h2)| input12(w0+w4, h0+h1+h2)| input16(w0+w4+w9, h0+h1+h2) +@end example + +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+w4_0| +w0+w4_h0|w0+w4_h0+h1|w0+w4_h0+h1+h2|w0+w4+w9_0|w0+w4+w9_h0|w0+w4+w9_h0+h1|w0+w4+w9_h0+h1+h2 +@end example + @end itemize @anchor{yadif}