Skip to content

Commit

Permalink
Fix remaining typos (#1272)
Browse files Browse the repository at this point in the history
* Fix remaining typos

Found via `codespell -q 3 -S CHANGES.md,./ASWF/tsc-meetings -L ba,dout,halfs,iif,leapyear,lits,nnumber,offsetp`

Signed-off-by: luz paz <luzpaz@github.com>

* Fix source typos

Substitutes 'compression' for 'compresssion'

Signed-off-by: luz paz <luzpaz@github.com>

* Added requested modifications

Signed-off-by: luz paz <luzpaz@github.com>
  • Loading branch information
luzpaz authored and cary-ilm committed Mar 5, 2023
1 parent 034a771 commit 24589cd
Show file tree
Hide file tree
Showing 50 changed files with 119 additions and 116 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set(OPENEXR_VERSION_API "${OpenEXR_VERSION_MAJOR}_${OpenEXR_VERSION_MINOR}")
# See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
#
# Library API version (CMake's library VERSION attribute) is of the
# form CURRENT.REVISION.AGE; the CMake SOVERSION attribute corresonds
# form CURRENT.REVISION.AGE; the CMake SOVERSION attribute corresponds
# to just CURRENT. These produce a .so and a symlink symlink, e.g.:
# libOpenEXR-3_1.so.29 -> libOpenEXR-3_1.so.29.0.0
# ^ ^ ^ ^
Expand Down Expand Up @@ -75,7 +75,7 @@ message(STATUS "Configure ${OPENEXR_PACKAGE_NAME}, library API version: ${OPENEX
add_subdirectory(src/lib)
add_subdirectory(src/bin)

# Tell CMake where to find the OpenEXRConfig.cmake file. Makes it posible to call
# Tell CMake where to find the OpenEXRConfig.cmake file. Makes it possible to call
# find_package(OpenEXR) in downstream projects
set(OpenEXR_DIR "${CMAKE_CURRENT_BINARY_DIR}/cmake" CACHE PATH "" FORCE)
# Add an empty OpenEXRTargets.cmake file for the config to use.
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ comments. Click that link to sign the form.

The downloadable PDF's on the EasyCLA page are provided for reference
only. To execute the signature, sign the form online through the
releveant links.
relevant links.

The OpenEXR CLAs are the standard forms used by Linux Foundation
projects and [recommended by the ASWF
Expand Down Expand Up @@ -426,7 +426,7 @@ All headers should contain:

Because OpenEXR must deal properly with large images, whose width
and/or height approach the maximum allowable in 32-bit signed
integers, take special care that integer arithmatic doesn't overlow,
integers, take special care that integer arithmetic doesn't overflow,
and make it as clear as possible exactly what the code is doing,
especially in the edge cases.

Expand All @@ -440,7 +440,7 @@ To clarify the intention, prefer to cast between types using
x = (size_t) y;
x = size_t (y);

Prefer to use ``std::numeric_limits<>`` instead of preprocesser
Prefer to use ``std::numeric_limits<>`` instead of preprocessor
define's such as ``INT_MAX``:

// good:
Expand Down
2 changes: 1 addition & 1 deletion Contrib/DtexToExr/PxDeepUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ inline bool IsInfinity( T i_f )
}

//-*****************************************************************************
// A zero-nan functon, which actually zeros inf as well.
// A zero-nan function, which actually zeros inf as well.
template <typename T>
inline T ZeroNAN( T i_f )
{
Expand Down
4 changes: 2 additions & 2 deletions Contrib/DtexToExr/m4/compilelinkrun.m4
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ dnl $6: body section of sourcecode for a c++ test program
dnl The test program should make use of a library that is supposed to
dnl be tested.
dnl
dnl $7: the action to be perfomed if the test succeeds
dnl $7: the action to be performed if the test succeeds
dnl (e.g. AC_MSG_RESULT("OpenEXR test program succeeded"))
dnl
dnl $8 the action to be perfomed if the test fails
dnl $8 the action to be performed if the test fails
dnl (e.g. AC_MSG_ERROR("OpenEXR test program failed"))
dnl

Expand Down
6 changes: 3 additions & 3 deletions Contrib/DtexToExr/m4/path.pkgconfig.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([AM_PATH_PKGCONFIG],
[
dnl sets cflags and ldflags
dnl TEST_CXXFLAGS and TEST_LDFLAGS, by trying thes following
dnl TEST_CXXFLAGS and TEST_LDFLAGS, by trying the following
dnl until something works:
dnl
dnl 1 - try the test_prefix
Expand All @@ -21,14 +21,14 @@ dnl $1: arg_cxxflags - CXXFLAGS variable to set
dnl
dnl $2: arg-ldflags - LDFLAGS variable to set
dnl
dnl $3: package name (the package being checked), as requried by pkg-config
dnl $3: package name (the package being checked), as required by pkg-config
dnl
dnl $4: arg_include_subdir
dnl the name of the subdirectory name that is tacked on to
dnl the end of the include path e.g. "OpenEXR" in
dnl /usr/local/include/OpenEXR
dnl
dnl $5: arg_default_libs - default libraries, used if pkgconfig doesnt work
dnl $5: arg_default_libs - default libraries, used if pkgconfig doesn't work
dnl
dnl $6: arg_test_prefix
dnl the argument passed to configure specifying a directory to
Expand Down
2 changes: 1 addition & 1 deletion GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Any existing Committer can nominate an individual making significant
and valuable contributions to the OpenEXR project to become a new
Committer. New committers are approved by vote of the TSC.

If you are interested in becomming a Committer, contact the TSC at
If you are interested in becoming a Committer, contact the TSC at
info@openexr.com.

## Technical Steering Committee
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The OpenEXR technical documentation at
[openexr.readthedocs.io](https://openexr.readthedocs.io) is generated
via [Sphinx](https://www.sphinx-doc.org) with the
[Breathe](https://breathe.readthedocs.io) extension using information
extracted from header comments by [Doxgen](https://www.doxygen.nl).
extracted from header comments by [Doxygen](https://www.doxygen.nl).

To build the documentation locally from the source headers and
``.rst`` files, set the CMake option ``DOCS=ON``. This adds
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ report it by emailing security@openexr.org. Only Technical Steering
Committee members and Academy Software Foundation project management
have access to these messages. Include detailed steps to reproduce the
issue, and any other information that could aid an investigation. Our
policy is to respond to vulernability reports within 14 days.
policy is to respond to vulnerability reports within 14 days.

Our policy is to address critical security vulnerabilities rapidly and
post patches as quickly as possible.
Expand Down
4 changes: 2 additions & 2 deletions cmake/IexConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
// C++ namespace configuration / options

//
// Current internal library namepace name
// Current internal library namespace name
//
#define IEX_INTERNAL_NAMESPACE_CUSTOM @IEX_NAMESPACE_CUSTOM@
#define IEX_INTERNAL_NAMESPACE @IEX_INTERNAL_NAMESPACE@

//
// Current public user namepace name
// Current public user namespace name
//

#define IEX_NAMESPACE_CUSTOM @IEX_NAMESPACE_CUSTOM@
Expand Down
4 changes: 2 additions & 2 deletions cmake/IlmThreadConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#cmakedefine01 ILMTHREAD_HAVE_POSIX_SEMAPHORES

//
// Current internal library namepace name
// Current internal library namespace name
//
#define ILMTHREAD_INTERNAL_NAMESPACE_CUSTOM @ILMTHREAD_NAMESPACE_CUSTOM@
#define ILMTHREAD_INTERNAL_NAMESPACE @ILMTHREAD_INTERNAL_NAMESPACE@

//
// Current public user namepace name
// Current public user namespace name
//

#define ILMTHREAD_NAMESPACE_CUSTOM @ILMTHREAD_NAMESPACE_CUSTOM@
Expand Down
2 changes: 1 addition & 1 deletion cmake/LibraryDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function(OPENEXR_DEFINE_LIBRARY libname)

# Use ${OPENEXR_CXX_STANDARD} to determine the standard we use to compile
# OpenEXR itself. But the headers only require C++11 features, so that's
# all we need to pass on as interface reqirements to downstream projects.
# all we need to pass on as interface requirements to downstream projects.
# For example, it's fine for an OpenEXR built with C++14 to be called from
# an app that is compiled with C++11; OpenEXR needn't force the app to
# also use C++14.
Expand Down
4 changes: 2 additions & 2 deletions cmake/OpenEXRConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
// C++ namespace configuration / options

//
// Current internal library namepace name
// Current internal library namespace name
//
#define OPENEXR_IMF_INTERNAL_NAMESPACE_CUSTOM @OPENEXR_NAMESPACE_CUSTOM@
#define OPENEXR_IMF_INTERNAL_NAMESPACE @OPENEXR_INTERNAL_IMF_NAMESPACE@

//
// Current public user namepace name
// Current public user namespace name
//

#define OPENEXR_IMF_NAMESPACE_CUSTOM @OPENEXR_NAMESPACE_CUSTOM@
Expand Down
2 changes: 1 addition & 1 deletion cmake/OpenEXRSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_DEBUG_POSTFIX "_d" CACHE STRING "Suffix for debug builds")

if(NOT OPENEXR_IS_SUBPROJECT)
# Usual cmake option to build shared libraries or not, only overriden if OpenEXR is a top level project,
# Usual cmake option to build shared libraries or not, only overridden if OpenEXR is a top level project,
# in general this setting should be explicitly configured by the end user
option(BUILD_SHARED_LIBS "Build shared library" ON)
endif()
Expand Down
4 changes: 2 additions & 2 deletions docs/ReadingAndWritingImageFiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ other three arguments define the memory address of pixel ``(x,y)`` as
**Note:** ``base`` is of type ``char*``, and that offsets from
``base`` are not implicitly multiplied by the size of an individual
pixel, as in the RGBA-only interface. ``xStride`` and ``yStride`` must
explictly take the size of the pixels into account.
explicitly take the size of the pixels into account.

With the values specified in our example, the OpenEXR library computes
the address of the G channel of pixel ``(x,y)`` like this:
Expand Down Expand Up @@ -1897,7 +1897,7 @@ of a three-dimensional scene as seen from a particular 3D location.
Every pixel in the image corresponds to a 3D direction, and the data
stored in the pixel represent the amount of light arriving from this
direction. In 3D rendering applications, environment maps are often
used for image-based lighting techniques that appoximate how objects
used for image-based lighting techniques that approximate how objects
are illuminated by their surroundings. Environment maps with enough
dynamic range to represent even the brightest light sources in the
environment are sometimes called "light probe images."
Expand Down
2 changes: 1 addition & 1 deletion docs/SymbolVisibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ differences between platforms, hence this document to add
clarity. Each compiler / platform describes their own behavior, but
not how that behaves relative to
others. [libc++](https://libcxx.llvm.org/docs/DesignDocs/VisibilityMacros.html)
from the llvm project is the closest to providing comparitive
from the llvm project is the closest to providing comparative
information, where by looking at how they define their macros and the
comments surrounding, one can infer the behavior among at least
windows DLL mode, then gcc vs. clang for unixen. Other compilers, for
Expand Down
2 changes: 1 addition & 1 deletion docs/TechnicalIntroduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ alpha. After reading an OpenEXR image such an application must undo
the premultiplication by dividing the color channels by alpha. This
division fails when alpha is zero. The application software could set
all color channels to zero wherever the alpha channel is zero, but
this might alter the image in an irreversable way. For example, the
this might alter the image in an irreversible way. For example, the
flame on top of a candle would simply disappear and could not be
recovered.

Expand Down
2 changes: 1 addition & 1 deletion docs/TheoryDeepPixels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Alpha vs Transparency
OpenEXR images use alpha :math:`\alpha` instead of transparency.
:math:`T=1-\alpha`: if :math:`\alpha=1` (so :math:`T=0`) then all light
is absorbed; if :math:`\alpha=0` (so :math:`T=1`), then all light is
transmitted and the material is transparent. Subsituting :math:`T` into :eq:`absorb` and :eq:`two` combined alpha of two objects is given by the *screen* compositing operation:
transmitted and the material is transparent. Substituting :math:`T` into :eq:`absorb` and :eq:`two` combined alpha of two objects is given by the *screen* compositing operation:

.. math::
\alpha_c = 1-(1-\alpha_1)(1-\alpha_2)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/writeDeepScanlineFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ writeDeepScanlineFile(const char filename[],
(char *) (&dataZ[0][0]
- dataWindow.min.x
- dataWindow.min.y * width),
sizeof (float *) * 1, // xStride for pointe
sizeof (float *) * 1, // xStride for pointer

sizeof (float *) * width, // yStride for pointer array
sizeof (float) * 1)); // stride for Z data sample
Expand Down
2 changes: 1 addition & 1 deletion share/ci/scripts/linux/validate_openexr_libs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

#
# Validate the libary symlinks:
# Validate the library symlinks:
# * The actual elf binary is, e.g. libIlmThread-3_1.so.29.0.0
# * The symlinks are:
# libIlmThread.so -> libIlmThread-3_1.so
Expand Down
5 changes: 2 additions & 3 deletions src/bin/exrcheck/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ usageMessage (const char argv0[])
cerr << " -t : avoid spending excessive time (some files will not be fully checked)\n";
cerr << " -s : use stream API instead of file API\n";
cerr << " -c : add core library checks\n";
cerr << " -v : print OpenEXR and Imath software libary version info\n";

cerr << " -v : print OpenEXR and Imath software library version info\n";
}


Expand Down Expand Up @@ -108,7 +107,7 @@ main(int argc, char **argv)
else if (!strcmp (argv[i], "-m"))
{
//
// note for further memory reduction, calls to the folowing could be added here
// note for further memory reduction, calls to the following could be added here
// CompositeDeepScanLine::setMaximumSampleCount();
// Header::setMaxImageSize();
// Header::setMaxTileSize();
Expand Down
6 changes: 3 additions & 3 deletions src/bin/exrenvmap/blurImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ blurImage (EnvmapImage &image1, bool verbose)
// * Repeatedly resample the image, each time shrinking
// it to no less than half its current size, until the
// width of each cube face is MAX_IN_WIDTH pixels.
//
// * Multiply each pixel by a weight that is proportinal
//
// * Multiply each pixel by a weight that is proportional
// to the solid angle subtended by the pixel as seen
// from the center of the environment cube.
//
Expand Down Expand Up @@ -149,7 +149,7 @@ blurImage (EnvmapImage &image1, bool verbose)

{
//
// Multiply each pixel by a weight that is proportinal
// Multiply each pixel by a weight that is proportional
// to the solid angle subtended by the pixel.
//

Expand Down
3 changes: 1 addition & 2 deletions src/bin/exrenvmap/makeLatLongMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <readInputImage.h>
#include "namespaceAlias.h"


void
makeLatLongMap (EnvmapImage &image,
IMF::Header &header,
Expand All @@ -27,7 +26,7 @@ makeLatLongMap (EnvmapImage &image,
int tileHeight,
IMF::LevelMode levelMode,
IMF::LevelRoundingMode roundingMode,
IMF::Compression compresssion,
IMF::Compression compression,
int mapWidth,
float filterRadius,
int numSamples,
Expand Down
2 changes: 1 addition & 1 deletion src/bin/exrenvmap/readInputImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ readSixImages (const char inFileName[],
//
// Generate six file names by replacing the first '%' character in
// inFileName with +X, -X, ... -Z. Interpreting the corresponding
// image files as the six sides of a cube, assembe a single cube-
// image files as the six sides of a cube, assemble a single cube-
// face map image.
//

Expand Down
4 changes: 2 additions & 2 deletions src/bin/exrmakepreview/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ main(int argc, char **argv)

if (previewWidth <= 0)
{
cerr << "Preview image width must be greather than zero." << endl;
return 1;
cerr << "Preview image width must be greater than zero." << endl;
return 1;
}

//
Expand Down
2 changes: 1 addition & 1 deletion src/bin/exrmaketiled/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ usageMessage (const char argv0[], bool verbose = false)
" is produced, image channel c will be resampled\n"
" without low-pass filtering. This option can\n"
" be specified multiple times to disable low-pass\n"
" filtering for mutiple channels.\n"
" filtering for multiple channels.\n"
"\n"
"-e x y when a MIPMAP_LEVELS or RIPMAP_LEVELS image\n"
" is produced, low-pass filtering takes samples\n"
Expand Down
5 changes: 3 additions & 2 deletions src/bin/exrmultipart/exrmultipart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ separate (vector <const char*> in, const char* out, bool override)
int numOutputs;
vector<string> fornamecheck;

// add check for existance of the file
// add check for existence of the file
try
{
MultiPartInputFile temp (filename.c_str());
Expand Down Expand Up @@ -662,7 +662,8 @@ separate (vector <const char*> in, const char* out, bool override)
}

delete inputimage;
cout << "\n" << "Seperate Success" << endl;
cout << "\n"
<< "Separate Success" << endl;
}

void
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Iex/IexBaseExc.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ DEFINE_EXC_EXP (IEX_EXPORT, TypeExc, BaseExc) // An object is an inappropriate
// BaseExc is thrown. The stack-tracing routine should return a
// string that contains a printable representation of the program's
// current call stack. This string will be stored in the BaseExc
// object; the string is accesible via the BaseExc::stackTrace()
// object; the string is accessible via the BaseExc::stackTrace()
// method.
//
// setStackTracer(0)
Expand Down
6 changes: 3 additions & 3 deletions src/lib/Iex/IexMathExc.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

IEX_INTERNAL_NAMESPACE_HEADER_ENTER

//---------------------------------------------------------
// Exception classess which correspond to specific floating
//--------------------------------------------------------
// Exception classes which correspond to specific floating
// point exceptions.
//---------------------------------------------------------
//--------------------------------------------------------

DEFINE_EXC_EXP (IEX_EXPORT, OverflowExc, MathExc) // Overflow
DEFINE_EXC_EXP (IEX_EXPORT, UnderflowExc, MathExc) // Underflow
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Iex/IexMathFloatExc.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int getMathExcOn();


//------------------------------------------------------------------------
// A classs that temporarily sets floating point exception trapping
// A class that temporarily sets floating point exception trapping
// and conversion, and later restores the previous settings.
//
// Example:
Expand Down
Loading

0 comments on commit 24589cd

Please sign in to comment.