On 15-05-2019 05:06 PM, Werner Robitza wrote:
On Wed, May 15, 2019 at 11:36 AM Gyan <ffm...@gyani.pro> wrote:
Which lines in the CLI help?
SWScaler AVOptions:
-sws_flags <flags> E..V..... scaler flags (default bicubic)
...
-src_format <pix_fmt> E..V..... source format (default yuv420p)
-dst_format <pix_fmt> E..V..... destination format (default
yuv420p)
-src_range <boolean> E..V..... source is full range (default
false)
-dst_range <boolean> E..V..... destination is full range
(default false)
I don't see any constants set in the AVOptions struct. Can you share a command
line where you could set this option using a string?
I was just going by the help printed above, including the default. If
a string is not valid, which values are?
The help function fetches the string name for the default value but the
user has to input an integer.
The pixel formats are declared in an enum in libavutil/pixfmt.h. The
integers correspond to their index in that list.
+If set to 1, source range will be full range.
Mention the range of values possible and their meaning.
I don't understand, as no other values are possible. Well, 0 is
possible but meaningless since it's default; 1 indicates "true".
Sure, if the option name was is_src_range_full. But src_range allows you
to specify a range. So, even though there are only two, better to
mention the allowed values and their meaning.
Gyan
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".