Update the filters documentation to include the new scale2ref constants. Signed-off-by: Kevin Mark <kmark...@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 +@option{h} options: + +@table @var +@item other_w +@item other_h +The non-reference video's width and height + +@item other_a +The same as @var{other_w} / @var{other_h} + +@item other_sar +The non-reference video's sample aspect ratio + +@item other_dar +The non-reference video's display aspect ratio. Calculated from +@code{(other_w / other_h) * other_sar}. + +@item other_hsub +@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. +@end table @subsection Examples -- 2.13.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel