From patchwork Thu Sep 26 06:38:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15304 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 2A8D6448F27 for ; Thu, 26 Sep 2019 09:45:43 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ECCA0689EA8; Thu, 26 Sep 2019 09:45:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DB08068836A for ; Thu, 26 Sep 2019 09:45:35 +0300 (EEST) Received: by mail-pl1-f196.google.com with SMTP id e5so634609pls.9 for ; Wed, 25 Sep 2019 23:45:35 -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=Cmo0QUakPfeFYjmd/3aUWYv1FT+INxsN52sSjep/y34=; b=VHibkrgMOE0rkzopVIe6A59g5cweG3VdMFDWeUfzOdTlRg7YdQBNvZGUI+QVFc3SXF zJJuctMi57Tvz4VWUhRQE5W2L/3Ws9wCEMxGY6cmJ+PNYGVUEMv2vEvy/C79DuxorwHw EoR6Rath5TgyuTXpby7yzPogvuD/ruLOwT7Io8IhGy6zgWWR94B5l0yTlxXYZwwqNOm3 66KLRUlPD5G7gEKezZn3NKyYW/Suhi2HtsyDOoRTM8YxcgPYId042UDUa6U4CUvVPvEq vyb06q80O0kUkpnxUDSuHboB9UZ/V799bpa6StLEwQtBOPWB1+eX2NoWeqddAvNOSHRy yohg== 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=Cmo0QUakPfeFYjmd/3aUWYv1FT+INxsN52sSjep/y34=; b=rMV9pqYYpF8r1qG+5Z64bula2y2cRJEt3wWdV5aAU85FbXdY+SJuLooVUTaSWyLc1m vS9HVak6QdCDMNW9SNZIzLgvcA5ipMpP4Hjqludn22exFqEXEL+c666Aaz7IQzI7c4PA 5nHJR9CEhFPraM3Af9UzJ5J8+qLbzw/ZyQYnQziRGxlJ8MNNZj9lENLVZ6UoihYiuPkO /iMZ+nm1kwk0IBRbO0kAlqdLzoR9MFHZJ19KBQAs8bPFC32PlduuosoAV08HjSyVy9it T4rhOYN/sGntVHzWvHO3LqWupdgYyFn7vyNzHXGu0kmey1XLRMNo40NL5anAYoT7WU1J zLWg== X-Gm-Message-State: APjAAAU8D7r1eKlsHeFouefyECOmT7m9ebHJAFcAf5KxPvtuvi63S962 7eK9MS/3dDRCwccVzMaJrdec4QZr X-Google-Smtp-Source: APXvYqxnF3W/Y40l5gJ4F6dNEdd3iLZKAgrIpeKUf+tX3+NCBVJvqz6kLfFMIy2DrE+Q0YOqkpcxtA== X-Received: by 2002:a17:902:8601:: with SMTP id f1mr2162580plo.180.1569479941563; Wed, 25 Sep 2019 23:39:01 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id x20sm1241473pfp.120.2019.09.25.23.39.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Sep 2019 23:39:01 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 26 Sep 2019 14:38:56 +0800 Message-Id: <20190926063856.27555-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+w5, 0) | input13(w0+w5+w9, 0) +input2(0, h0) | input6(w0, h0) | input10(w0+w5, h0) | input14(w0+w5+w9, h0) +input3(0, h0+h1) | input7(w0, h0+h1) | input11(w0+w5, h0+h1) | input15(w0+w5+w9, h0+h1) +input4(0, h0+h1+h2)| input8(w0, h0+h1+h2)| input12(w0+w5, h0+h1+h2)| input16(w0+w5+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+w5_0| +w0+w5_h0|w0+w5_h0+h1|w0+w5_h0+h1+h2|w0+w5+w9_0|w0+w5+w9_h0|w0+w5+w9_h0+h1|w0+w5+w9_h0+h1+h2 +@end example + @end itemize @anchor{yadif}