From a3927cc80034bc7498f9e5b726ed3b4d67321a43 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 11 May 2022 10:39:53 -0700 Subject: [PATCH] sharpyuv.c,cosmetics: fix indent + a few typos in sharpyuv_csp.c Change-Id: I34b208d10d7808b42afb39b0618fb2e5d76633eb --- sharpyuv/sharpyuv.c | 12 ++++++------ sharpyuv/sharpyuv_csp.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sharpyuv/sharpyuv.c b/sharpyuv/sharpyuv.c index 468e1cf3..b752cf2e 100644 --- a/sharpyuv/sharpyuv.c +++ b/sharpyuv/sharpyuv.c @@ -422,7 +422,7 @@ static int DoSharpArgbToYuv(const uint8_t* r_ptr, const uint8_t* g_ptr, free(best_rgb_uv); free(tmp_buffer); return ok; - } +} #undef SAFE_ALLOC // Hidden exported init function. @@ -446,11 +446,11 @@ void SharpYuvInit(VP8CPUInfo cpu_info_func) { } int SharpYuvConvert(const uint8_t* r_ptr, const uint8_t* g_ptr, - const uint8_t* b_ptr, int step, int rgb_stride, - uint8_t* dst_y, int dst_stride_y, uint8_t* dst_u, - int dst_stride_u, uint8_t* dst_v, int dst_stride_v, - int width, int height, - const SharpYuvConversionMatrix* yuv_matrix) { + const uint8_t* b_ptr, int step, int rgb_stride, + uint8_t* dst_y, int dst_stride_y, uint8_t* dst_u, + int dst_stride_u, uint8_t* dst_v, int dst_stride_v, + int width, int height, + const SharpYuvConversionMatrix* yuv_matrix) { if (width < kMinDimensionIterativeConversion || height < kMinDimensionIterativeConversion) { return 0; diff --git a/sharpyuv/sharpyuv_csp.c b/sharpyuv/sharpyuv_csp.c index 4b35fbe4..4dc8142c 100644 --- a/sharpyuv/sharpyuv_csp.c +++ b/sharpyuv/sharpyuv_csp.c @@ -66,25 +66,25 @@ static const SharpYuvConversionMatrix kWebpMatrix = { {-9719, -19081, 28800, 128 << 16}, {28800, -24116, -4684, 128 << 16}, }; -// Kr=0.2990f Kb=0.1140f btits=8 range=kLimited +// Kr=0.2990f Kb=0.1140f bits=8 range=kSharpYuvRangeLimited static const SharpYuvConversionMatrix kRec601LimitedMatrix = { {16829, 33039, 6416, 16 << 16}, {-9714, -19071, 28784, 128 << 16}, {28784, -24103, -4681, 128 << 16}, }; -// Kr=0.2990f Kb=0.1140f btits=8 range=kFull +// Kr=0.2990f Kb=0.1140f bits=8 range=kSharpYuvRangeFull static const SharpYuvConversionMatrix kRec601FullMatrix = { {19595, 38470, 7471, 0}, {-11058, -21710, 32768, 128 << 16}, {32768, -27439, -5329, 128 << 16}, }; -// Kr=0.2126f Kb=0.0722f bits=8 range=kLimited +// Kr=0.2126f Kb=0.0722f bits=8 range=kSharpYuvRangeLimited static const SharpYuvConversionMatrix kRec709LimitedMatrix = { {11966, 40254, 4064, 16 << 16}, {-6596, -22189, 28784, 128 << 16}, {28784, -26145, -2639, 128 << 16}, }; -// Kr=0.2126f Kb=0.0722f bits=8 range=kFull +// Kr=0.2126f Kb=0.0722f bits=8 range=kSharpYuvRangeFull static const SharpYuvConversionMatrix kRec709FullMatrix = { {13933, 46871, 4732, 0}, {-7509, -25259, 32768, 128 << 16},