diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-10 19:54:33 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-10 20:32:56 +0300 |
commit | 3b2000c2bf123baef5b934e1d04cc86e5f404a87 (patch) | |
tree | ab90e67125c055942e5a40b7f266f9f4bea204ad | |
parent | 810fbd8933031d58764190f58dff3fc6986cf866 (diff) |
doc/scaler, swscale/options: use proper capitalization
Proper names should be capitalized in all user facing API as far as
possible. The option names themselves have not been changed since:
1. We consistently keep option names in lower case.
2. Changing them would break existing scripts.
The converse is also true: improper names should not be capitalized
generally.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | doc/scaler.texi | 2 | ||||
-rw-r--r-- | libswscale/options.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/scaler.texi b/doc/scaler.texi index 060a45ca74..55b2fbe736 100644 --- a/doc/scaler.texi +++ b/doc/scaler.texi @@ -46,7 +46,7 @@ Select Gaussian rescaling algorithm. Select sinc rescaling algorithm. @item lanczos -Select lanczos rescaling algorithm. +Select Lanczos rescaling algorithm. @item spline Select natural bicubic spline rescaling algorithm. diff --git a/libswscale/options.c b/libswscale/options.c index ac35af7bd8..cf793ef401 100644 --- a/libswscale/options.c +++ b/libswscale/options.c @@ -42,9 +42,9 @@ static const AVOption swscale_options[] = { { "neighbor", "nearest neighbor", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_POINT }, INT_MIN, INT_MAX, VE, "sws_flags" }, { "area", "averaging area", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_AREA }, INT_MIN, INT_MAX, VE, "sws_flags" }, { "bicublin", "luma bicubic, chroma bilinear", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_BICUBLIN }, INT_MIN, INT_MAX, VE, "sws_flags" }, - { "gauss", "gaussian", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_GAUSS }, INT_MIN, INT_MAX, VE, "sws_flags" }, + { "gauss", "Gaussian", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_GAUSS }, INT_MIN, INT_MAX, VE, "sws_flags" }, { "sinc", "sinc", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_SINC }, INT_MIN, INT_MAX, VE, "sws_flags" }, - { "lanczos", "lanczos", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_LANCZOS }, INT_MIN, INT_MAX, VE, "sws_flags" }, + { "lanczos", "Lanczos", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_LANCZOS }, INT_MIN, INT_MAX, VE, "sws_flags" }, { "spline", "natural bicubic spline", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_SPLINE }, INT_MIN, INT_MAX, VE, "sws_flags" }, { "print_info", "print info", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_PRINT_INFO }, INT_MIN, INT_MAX, VE, "sws_flags" }, { "accurate_rnd", "accurate rounding", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_ACCURATE_RND }, INT_MIN, INT_MAX, VE, "sws_flags" }, |