[FFmpeg-devel] [PATCH 2/3] doc/filters: Add new scale2ref constants

Kevin Mark kmark937 at gmail.com
Sat May 27 17:10:45 EEST 2017

Update the filters documentation to include the new scale2ref

Signed-off-by: Kevin Mark <kmark937 at gmail.com>
 doc/filters.texi | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index a0ab2fb0c7..ff41402f7e 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -12429,7 +12429,31 @@ Supersampling
 Scale (resize) the input video, based on a reference video.
 See the scale filter for available options, scale2ref supports the same but
-uses the reference video instead of the main input as basis.
+uses the reference video instead of the main input as basis. scale2ref also
+supports the following additional constants for the @option{w} and
+ at option{h} options:
+ at table @var
+ at item other_w
+ at item other_h
+The non-reference video's width and height
+ at item other_a
+The same as @var{other_w} / @var{other_h}
+ at item other_sar
+The non-reference video's sample aspect ratio
+ at item other_dar
+The non-reference video's display aspect ratio. Calculated from
+ at code{(other_w / other_h) * other_sar}.
+ at item other_hsub
+ at item other_vsub
+The non-reference video's horizontal and vertical chroma subsample values.
+For example for the pixel format "yuv422p" @var{hsub} is 2 and @var{vsub}
+is 1.
+ at end table
 @subsection Examples

More information about the ffmpeg-devel mailing list