From 1b275515089141821c01e5516d436c56e454795b Mon Sep 17 00:00:00 2001
From: Martin Olsson
Date: Wed, 4 Dec 2013 16:30:02 +0100
Subject: [PATCH] Fix a few typos in design doc and source comments
---
doc/design.tex | 8 ++++----
include/daala/codec.h | 2 +-
src/logging.h | 4 ++--
src/newdct.c | 2 +-
src/x86/sse2mc.c | 2 +-
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/doc/design.tex b/doc/design.tex
index 7a2bd47..0b6c78b 100644
--- a/doc/design.tex
+++ b/doc/design.tex
@@ -103,7 +103,7 @@ This is also useful for embedded devices, which may not have a floating-point
unit at all.
The only other stage of the encoding and decoding process that could introduce
- unneccessary loss is color conversion.
+ unnecessary loss is color conversion.
This is mostly an application issue.
As long as the codec can handle the most common color formats, there is no
reason for editing or encoding software to introduce additional color
@@ -526,7 +526,7 @@ The form of the pre-filter which allows increasing the length of the block
Each of ${\mathbf I}$, ${\mathbf J}$, ${\mathbf U}$ and ${\mathbf V}$ are
equal-sized square matrices, at most half the size of the block transform.
Here ${\mathbf I}$ is the identity matrix, ${\mathbf J}$ is an anti-diagonal
- matrix of $1$'s, somtimes called the reversal matrix, and ${\mathbf U}$ and
+ matrix of $1$'s, sometimes called the reversal matrix, and ${\mathbf U}$ and
${\mathbf V}$ are aribtrary invertible matrices.
Note that these matrices can be smaller than half the size of the block
transform.
@@ -568,7 +568,7 @@ Using the Type-III approximation reduces this to $9.6115$ dB, and using the
Forcing the transform to be orthogonal in any of these cases imposes
approximately a $0.2$ dB penalty \cite{Tra01b}.
Thus the penalty for using either approximation is very small.
-In general, the structure of the Type-III tranform matches better with the
+In general, the structure of the Type-III transform matches better with the
sizes of the coefficients, so that the smaller coefficients with larger
relative approximation error occur towards the end of the transform.
The Type-IV transform still remains competitve in terms of coding gain,
@@ -825,7 +825,7 @@ This means that it is not valid to attempt to find quantizers which produce
Chandler and Hemami have performed experiments for quantizing various wavelet
channels, but their results rely on a specific viewing environment, including
a specific image size and level of wavelet decomposition \cite{CH02b}.
-It is not clear how to generalize their results to other viewing enviroments or
+It is not clear how to generalize their results to other viewing environments or
more adaptive transforms.
%%CELT-style AVQ:
diff --git a/include/daala/codec.h b/include/daala/codec.h
index 9e37d17..463c6f6 100644
--- a/include/daala/codec.h
+++ b/include/daala/codec.h
@@ -85,7 +85,7 @@ extern "C" {
/**\name Error codes*/
/*@{*/
-/**No error occured.*/
+/**No error occurred.*/
#define OD_SUCCESS (0)
/**An invalid pointer was provided.*/
# define OD_EFAULT (-1)
diff --git a/src/logging.h b/src/logging.h
index aef35c3..3657893 100644
--- a/src/logging.h
+++ b/src/logging.h
@@ -103,12 +103,12 @@ int od_log_init(od_logger_function logger);
#ifndef OD_LOGGING_ENABLED
# define OD_LOG(a)
-/*Hack to accomodate non-newline printfs.*/
+/*Hack to accommodate non-newline printfs.*/
# define OD_LOG_PARTIAL(a)
# define od_logging_active(a, b) 0
#else
# define OD_LOG(a) od_log a
-/*Hack to accomodate non-newline printfs.*/
+/*Hack to accommodate non-newline printfs.*/
# define OD_LOG_PARTIAL(a) od_log_partial a
# define od_logging_active od_logging_active_impl
#endif
diff --git a/src/newdct.c b/src/newdct.c
index 0aefbf3..491e1dc 100644
--- a/src/newdct.c
+++ b/src/newdct.c
@@ -845,7 +845,7 @@ static void ieee1180_srand(int _seed){
ieee1180_rand_x=_seed;
}
-/*Computes a random number between -l and h, inclusive, accoring to the
+/*Computes a random number between -l and h, inclusive, according to the
specification in IEEE Std 1180-1990, "IEEE Standard Specifications for the
Implementations of 8x8 Inverse Discrete Cosine Transform."*/
static int ieee1180_rand(int _l,int _h){
diff --git a/src/x86/sse2mc.c b/src/x86/sse2mc.c
index 8eaaa6a..8eed805 100644
--- a/src/x86/sse2mc.c
+++ b/src/x86/sse2mc.c
@@ -2487,7 +2487,7 @@ static void od_mc_blend_full8_4x4(unsigned char *_dst,int _dystride,
:[dst]"+r"(_dst),[a]"=&r"(a)
/*Note that we pass the constant 0 for [row] here.
We'll still use it in indexing expression in the asm, but the overhead is
- neglible, and it's easier than writing a special case of
+ negligible, and it's easier than writing a special case of
OD_MC_BLEND_FULL8_4x4 for it.*/
:[src]"r"(_src),[dystride]"r"((ptrdiff_t)_dystride),[row]"r"((ptrdiff_t)0),
[OD_BIL4H]"m"(*OD_BIL4H),[OD_BIL4V]"m"(*OD_BIL4V),
--
1.8.5.rc3