From 3b2000c2bf123baef5b934e1d04cc86e5f404a87 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Sat, 10 Oct 2015 12:54:33 -0400 Subject: [PATCH] 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 Signed-off-by: Michael Niedermayer --- doc/scaler.texi | 2 +- 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" },