avfilter/vf_libplacebo: add reset_sar option

This was requested by users of `vf_libplacebo`, to mirror the existing
option on the other `vf_scale_*` family of filters. While we have
`vf_normalize`, it was not as useful in the event that the content
stretching was actually desired.

Bridges an important usability gap between `vf_scale` and `vf_libplacebo`
that made mixing and matching the filters needlessly difficult.
This commit is contained in:
Niklas Haas
2025-06-16 20:01:48 +02:00
parent c0698840c4
commit 7039a37e35
2 changed files with 11 additions and 6 deletions

View File

@@ -16291,11 +16291,15 @@ will be performed.
@item force_divisible_by
Work the same as the identical @ref{scale} filter options.
@item reset_sar
If enabled, output frames will always have a pixel aspect ratio of 1:1. If
disabled (the default), any aspect ratio mismatches, including those from
e.g. anamorphic video sources, are forwarded to the output pixel aspect ratio.
@item normalize_sar
If enabled, output frames will always have a pixel aspect ratio of 1:1. This
will introduce additional padding/cropping as necessary. If disabled (the
default), any aspect ratio mismatches, including those from e.g. anamorphic
video sources, are forwarded to the output pixel aspect ratio.
Like @option{reset_sar}, but instead of stretching the video content to fill
the new output aspect ratio, the content is instead padded or cropped as
necessary.
@item pad_crop_ratio
Specifies a ratio (between @code{0.0} and @code{1.0}) between padding and