From patchwork Thu Sep 26 07:28:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15307 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 718154483C6 for ; Thu, 26 Sep 2019 10:35:26 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 489C7689831; Thu, 26 Sep 2019 10:35:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7BECC6881D1 for ; Thu, 26 Sep 2019 10:35:19 +0300 (EEST) Received: by mail-pf1-f193.google.com with SMTP id a2so1300883pfo.10 for ; Thu, 26 Sep 2019 00:35:19 -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=iks4Z5keSzhuZTU3WrnSJqOUIaOfnG+uBXOiLmIt6oA=; b=f0OkezUhuzDHD8vMgwnx4Vg/ImKOIVLiTdl5ChlrESDBTqGaLMxV6l2xqr+6IGjTtA NZ3QcIL1VNMNqsmE8Ptq9ajaKH6wCNYPIksc0GbLgEX1ZzQ+t2U5f3iyN7uUrCIdyFul Kg9K2awUrdWC/oSE53RpjcEE12dydFVn91X2zOQZ8NhBsXosygvPqaGUwWmmqP3tsa1r 8n/hRnnMYICxSmBzpuXSRdxWkmISJPcczOC74YlZbpN9v+v1yWbRHGPPIPJ7EOBS6xDu PtaWQeuq4nw1tZWguQ3QmfhwF5uw6AOpGaVaJ1esM4exK62NDEe4dr+BTd9Qhi86SwhU vtQg== 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=iks4Z5keSzhuZTU3WrnSJqOUIaOfnG+uBXOiLmIt6oA=; b=UCrgG9kkThDXtru9HQS7W/W2AxPs3b7pQbVyR+OC9lx4/Mek03vk5Tpc4Ef2MnQW+3 xHwvVZcOPam0eiXkCDZdrMk+wWR7Kl8I85I5hiHpysfWs0r9Wp8OvottmaaEAN6E0tsU S8V4pK1z5LDwQ/acKsC5bMLKpn35kycynz+neI6sfbSjXi5ok/a1+05TlYe4K2JK9zMy EVEgibk0d7OEp5wabBnCXHuxgWitJmy2nGJBa3KkJftqvhavcuI2o8SHHMaiAaNDQbMD KuS25KkgvkjkjvS0FwpBKg/gm2PFhJwL1UbUSi27ZvRLlY432ochMbGcFNVJ2+D4ttdw aX9A== X-Gm-Message-State: APjAAAXSWvRDWP2W8Ig5FT2CedwNCRkjhchy46jpqqK8TBERvatjfsze vZ1eLKi5suc3wrBcFtn96lHIShzZ X-Google-Smtp-Source: APXvYqzkVWuDI3T8iWcXh/VgvKARJQmGhn/T/cC2z/b61/sgifJ2auO0wW8AY/mFuJis8QUy0LoV1Q== X-Received: by 2002:a62:7c14:: with SMTP id x20mr2089390pfc.228.1569482921534; Thu, 26 Sep 2019 00:28:41 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id y4sm1118070pga.60.2019.09.26.00.28.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 00:28:40 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 26 Sep 2019 15:28:35 +0800 Message-Id: <20190926072835.27784-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+w3, 0) +input2(0, h0) | input5(w0, h0) | input8(w0+w3, h0) +input3(0, h0+h1) | input6(w0, h0+h1) | input9(w0+w3, 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+w3_0|w0+w3_h0|w0+w3_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+w8, 0) +input2(0, h0) | input6(w0, h0) | input10(w0+w4, h0) | input14(w0+w4+w8, h0) +input3(0, h0+h1) | input7(w0, h0+h1) | input11(w0+w4, h0+h1) | input15(w0+w4+w8, h0+h1) +input4(0, h0+h1+h2)| input8(w0, h0+h1+h2)| input12(w0+w4, h0+h1+h2)| input16(w0+w4+w8, 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+w8_0|w0+w4+w8_h0|w0+w4+w8_h0+h1|w0+w4+w8_h0+h1+h2 +@end example + @end itemize @anchor{yadif}