From 8f4b5c62b70abec96ab04c40329dde293fbce8c6 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Mon, 11 Apr 2022 21:36:43 +0000 Subject: [PATCH] Fix typo in color constants: Marix -> Matrix Change-Id: Ia5dc8b37ea7ddbb3dba923e24ef07633edb822eb --- sharpyuv/sharpyuv_csp.c | 10 +++++----- sharpyuv/sharpyuv_csp.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sharpyuv/sharpyuv_csp.c b/sharpyuv/sharpyuv_csp.c index cdfcbe87..ee934f63 100644 --- a/sharpyuv/sharpyuv_csp.c +++ b/sharpyuv/sharpyuv_csp.c @@ -96,15 +96,15 @@ const SharpYuvConversionMatrix* SharpYuvGetConversionMatrix( switch (matrix_type) { case kSharpYuvMatrixWebp: return &kWebpMatrix; - case kSharpYuvMarixRec601Limited: + case kSharpYuvMatrixRec601Limited: return &kRec601LimitedMatrix; - case kSharpYuvMarixRec601Full: + case kSharpYuvMatrixRec601Full: return &kRec601FullMatrix; - case kSharpYuvMarixRec709Limited: + case kSharpYuvMatrixRec709Limited: return &kRec709LimitedMatrix; - case kSharpYuvMarixRec709Full: + case kSharpYuvMatrixRec709Full: return &kRec709FullMatrix; - case kSharpYuvMarixNum: + case kSharpYuvMatrixNum: return NULL; } return NULL; diff --git a/sharpyuv/sharpyuv_csp.h b/sharpyuv/sharpyuv_csp.h index 37229edb..153c1156 100644 --- a/sharpyuv/sharpyuv_csp.h +++ b/sharpyuv/sharpyuv_csp.h @@ -41,11 +41,11 @@ void SharpYuvComputeConversionMatrix(const SharpYuvColorSpace* yuv_color_space, // Enums for precomputed conversion matrices. typedef enum { kSharpYuvMatrixWebp = 0, - kSharpYuvMarixRec601Limited, - kSharpYuvMarixRec601Full, - kSharpYuvMarixRec709Limited, - kSharpYuvMarixRec709Full, - kSharpYuvMarixNum + kSharpYuvMatrixRec601Limited, + kSharpYuvMatrixRec601Full, + kSharpYuvMatrixRec709Limited, + kSharpYuvMatrixRec709Full, + kSharpYuvMatrixNum } SharpYuvMatrixType; // Returns a pointer to a matrix for one of the predefined colorspaces.