doc/filters: move scale=ref_* to correct sectton

This was accidentally filed under scale_npp, instead of scale. (Why is
this entire section basically duplicated anyway?)
This commit is contained in:
Niklas Haas 2024-05-04 13:10:41 +02:00
parent 6a5b021e35
commit 8bf0a9c2ca
1 changed files with 24 additions and 26 deletions

View File

@ -21228,6 +21228,16 @@ The position (byte offset) of the frame in the input stream, or NaN if
this information is unavailable and/or meaningless (for example in case of synthetic video).
Only available with @code{eval=frame}.
Deprecated, do not use.
@item ref_w, rw
@item ref_h, rh
@item ref_a
@item ref_dar, rdar
@item ref_n
@item ref_t
@item ref_pos
Eqvuialent to the above, but for a second reference input. If any of these
variables are present, this filter accepts two inputs.
@end table
@subsection Examples
@ -21329,6 +21339,20 @@ making sure the resulting resolution is even (required by some codecs):
@example
scale='trunc(ih*dar/2)*2:trunc(ih/2)*2',setsar=1/1
@end example
@item
Scale a subtitle stream (sub) to match the main video (main) in size before
overlaying.
@example
'[main]split[a][b]; [ref][a]scale=rw:rh[c]; [b][c]overlay'
@end example
@item
Scale a logo to 1/10th the height of a video, while preserving its display
aspect ratio.
@example
[logo-in][video-in]scale=w=oh*dar:h=rh/10[logo-out]
@end example
@end itemize
@subsection Commands
@ -21562,34 +21586,8 @@ The position (byte offset) of the frame in the input stream, or NaN if
this information is unavailable and/or meaningless (for example in case of synthetic video).
Only available with @code{eval=frame}.
Deprecated, do not use.
@item ref_w, rw
@item ref_h, rh
@item ref_a
@item ref_dar, rdar
@item ref_n
@item ref_t
@item ref_pos
Eqvuialent to the above, but for a second reference input. If any of these
variables are present, this filter accepts two inputs.
@end table
@subsection Examples
@itemize
@item
Scale a subtitle stream (sub) to match the main video (main) in size before overlaying
@example
'[main]split[a][b]; [ref][a]scale=rw:rh[c]; [b][c]overlay'
@end example
@item
Scale a logo to 1/10th the height of a video, while preserving its display aspect ratio.
@example
[logo-in][video-in]scale=w=oh*dar:h=rh/10[logo-out]
@end example
@end itemize
@section scale2ref_npp
Use the NVIDIA Performance Primitives (libnpp) to scale (resize) the input