From patchwork Tue Sep 24 22:26:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15278 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 B9AE5449A5E for ; Wed, 25 Sep 2019 01:26:23 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 994FB689E94; Wed, 25 Sep 2019 01:26:23 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C4802689241 for ; Wed, 25 Sep 2019 01:26:16 +0300 (EEST) Received: by mail-pl1-f193.google.com with SMTP id w10so1553083plq.5 for ; Tue, 24 Sep 2019 15:26:16 -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=vorjS9k3yDo05hrqLRKOzkaX7RDdT0BKFMNCqGggORo=; b=pI2Ll5V+dTX1jfZEZtVDS10/xuHU0vlUvI/ZAei+GNSLnr7CAwMjAss2cl9aMbeDd3 ky9OlVeBUJtDUBgg8aH9mMLKGNKtVCgIjiTXl/CCT/HqDco5GDbVRlh00567iTD7z+oS OGRhowfnv2+nU6l+dzGwg9Py+c70tfYYicEyuVYWvafm2ecYBICsKMG+LQwYB3LahPeF pJXc1oNmLcHNh0undSuBIk3dRW15ECi8pIjzLzijHw7qQMY7pzrb2wee3b4HkL2ngJeY u58Wu95C6bTZKLGEpXUFzZ0ngjDn1zffGFaN5SV+yvhra7TElyvO60vnMXceVckgskB3 KoFw== 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=vorjS9k3yDo05hrqLRKOzkaX7RDdT0BKFMNCqGggORo=; b=OFlkH8qF4jgcrhGx7RRtroC6zJxWYbHNqdhN4UAlbctqN+Hk/zkpQTP2Wvh2wLjeNQ HdbziC7U/FtjcY6f7zswD43W9oFCrDS9oMRH97dGo1guV0HXI5k7r71PYaTdGYplzRhE BY95gnzI9UkGfiWsdrDYOyHH5aZycInXKfKNHivFXP66JjE0hZGI6T8OxaySXHxLPetj 3Oou5SiN79FSRkA1BdVpfIkqRowy/OEgoKwk3oxvptmKvzKE2w5S2EGKHpsLnKzV8e3z S8jLiK+ysvM11YCojibrAzkRftAyPi4Y0YthiVRlXJXtkYdIVDg9sJPThX51UWAuVidS bi+Q== X-Gm-Message-State: APjAAAXkfeIHkKo6HHxskupkthpbtNKqqxSMiyjeq495hR8B6i/bMbUe MDpKmBi3aArzKzxqERfxJGkrvWMp X-Google-Smtp-Source: APXvYqxlx3WS0TWNzKFltjo9D9NXMiZwDaz0oZuz/+9+NSkkVuK7pHa5CX5EAiGQHlz6F1x+DfbzkQ== X-Received: by 2002:a17:902:b709:: with SMTP id d9mr5561755pls.7.1569363974938; Tue, 24 Sep 2019 15:26:14 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id k23sm2771217pgg.73.2019.09.24.15.26.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Sep 2019 15:26:14 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 25 Sep 2019 06:26:09 +0800 Message-Id: <20190924222609.21514-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 v4] 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 | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index e41384a..a8342c0 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -19057,6 +19057,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 @@ -19065,6 +19072,12 @@ 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 @@ -19073,11 +19086,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+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) +@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+w1_0|w0+w1_h0|w0+w1_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+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) +@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+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}