summaryrefslogtreecommitdiff
path: root/doc/filters.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi54
1 files changed, 52 insertions, 2 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index e4fb57eb69..afb48b1192 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -2049,10 +2049,35 @@ This filter accepts the following options:
@table @option
@item dar
-Output display aspect ratio, as a rational or a decimal number.
+Output display aspect ratio.
@end table
+The parameter @var{dar} is an expression containing
+the following constants:
+
+@table @option
+@item E, PI, PHI
+the corresponding mathematical approximated values for e
+(euler number), pi (greek PI), phi (golden ratio)
+
+@item w, h
+the input width and height
+
+@item a
+same as @var{w} / @var{h}
+
+@item sar
+input sample aspect ratio
+
+@item dar
+input display aspect ratio, it is the same as (@var{w} / @var{h}) * @var{sar}
+
+@item hsub, vsub
+horizontal and vertical chroma subsample values. For example for the
+pixel format "yuv422p" @var{hsub} is 2 and @var{vsub} is 1.
+@end table
+
For example to change the display aspect ratio to 16:9, specify:
@example
setdar=dar=16/9
@@ -2158,10 +2183,35 @@ This filter accepts the following options:
@table @option
@item sar
-Output sample aspect ratio, as a rational or decimal number.
+Output sample aspect ratio.
@end table
+The parameter @var{sar} is an expression containing
+the following constants:
+
+@table @option
+@item E, PI, PHI
+the corresponding mathematical approximated values for e
+(euler number), pi (greek PI), phi (golden ratio)
+
+@item w, h
+the input width and height
+
+@item a
+same as @var{w} / @var{h}
+
+@item sar
+input sample aspect ratio
+
+@item dar
+input display aspect ratio, it is the same as (@var{w} / @var{h}) * @var{sar}
+
+@item hsub, vsub
+horizontal and vertical chroma subsample values. For example for the
+pixel format "yuv422p" @var{hsub} is 2 and @var{vsub} is 1.
+@end table
+
For example to change the sample aspect ratio to 10:11, specify:
@example
setsar=sar=10/11