diff mbox

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

Message ID 20170527141046.57488-2-kmark937@gmail.com
State Withdrawn
Headers show

Commit Message

Kevin Mark May 27, 2017, 2:10 p.m. UTC
Update the filters documentation to include the new scale2ref
constants.

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

Comments

Michael Niedermayer May 28, 2017, 12:30 a.m. UTC | #1
On Sat, May 27, 2017 at 10:10:45AM -0400, Kevin Mark wrote:
> Update the filters documentation to include the new scale2ref
> constants.
> 
> Signed-off-by: Kevin Mark <kmark937@gmail.com>
> ---
>  doc/filters.texi | 26 +++++++++++++++++++++++++-
>  1 file changed, 25 insertions(+), 1 deletion(-)

should be merged with the patch that adds these constants

thx

[...]
Kevin Mark May 28, 2017, 2:10 p.m. UTC | #2
On Sat, May 27, 2017 at 8:30 PM, Michael Niedermayer
<michael@niedermayer.cc> wrote:
> should be merged with the patch that adds these constants
>
> thx

I'll include this with the other updated patch.

Thanks,
Kevin
diff mbox

Patch

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