summaryrefslogtreecommitdiff
path: root/core/image.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-09-22 09:00:01 +0200
committerGitHub <noreply@github.com>2017-09-22 09:00:01 +0200
commit9906aeb2f8b492e6662e68aafe11e62524a87cc8 (patch)
tree61f479d3b83fafc419a348835ed823b350f3dc2f /core/image.cpp
parentf6c94e62850c2418b4ccfe2bf6393974cc435f8d (diff)
parent1a97d6455d05320eef5ab9da7a7b0528d791be4f (diff)
Merge pull request #11485 from rosshadden/fix/typos
Fixed a bunch of typos, including an error code. [ci skip]
Diffstat (limited to 'core/image.cpp')
-rw-r--r--core/image.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/image.cpp b/core/image.cpp
index 4d1f32c360..70a7b2bceb 100644
--- a/core/image.cpp
+++ b/core/image.cpp
@@ -530,7 +530,7 @@ static void _scale_cubic(const uint8_t *p_src, uint8_t *p_dst, uint32_t p_src_wi
int height = p_src_height;
double xfac = (double)width / p_dst_width;
double yfac = (double)height / p_dst_height;
- // coordinates of source points and cooefficiens
+ // coordinates of source points and coefficients
double ox, oy, dx, dy, k1, k2;
int ox1, oy1, ox2, oy2;
// destination pixel values
@@ -561,7 +561,7 @@ static void _scale_cubic(const uint8_t *p_src, uint8_t *p_dst, uint32_t p_src_wi
}
for (int n = -1; n < 3; n++) {
- // get Y cooefficient
+ // get Y coefficient
k1 = _bicubic_interp_kernel(dy - (double)n);
oy2 = oy1 + n;
@@ -571,7 +571,7 @@ static void _scale_cubic(const uint8_t *p_src, uint8_t *p_dst, uint32_t p_src_wi
oy2 = ymax;
for (int m = -1; m < 3; m++) {
- // get X cooefficient
+ // get X coefficient
k2 = k1 * _bicubic_interp_kernel((double)m - dx);
ox2 = ox1 + m;