[FFmpeg-devel] [PATCH v5] doc/filters: add 4x4 layout example for xstack filter
lance.lmwang at gmail.com
lance.lmwang at gmail.com
Thu Sep 26 09:38:56 EEST 2019
From: Limin Wang <lance.lmwang at gmail.com>
Reviewed-by: Gyan <ffmpeg at gyani.pro>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
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:
+ at example
+input1(0, 0) | input3(w0, 0)
+input2(0, h0) | input4(w0, h0)
+ at 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:
+ at example
+input1(0, 0)
+input2(0, h0)
+input3(0, h0+h1)
+input4(0, h0+h1+h2)
+ at 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:
+ at 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)
+ at 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
+
+ at item
+Display 16 inputs into 4x4 grid.
+
+Below is the 16 inputs position:
+ at 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)
+ at end example
+
+Note that if inputs are of different sizes unused gaps might appear,
+as not all of output video is used.
+ at 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
+ at end example
+
@end itemize
@anchor{yadif}
--
2.21.0
More information about the ffmpeg-devel
mailing list