Skip to content

Commit 9cb8d3d

Browse files
committed
Various small fixes and spellcheck
Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent 90b0e24 commit 9cb8d3d

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@ The output image complies with the ACES Container specification [(SMPTE S2065-4)
2323

2424
The source code contains the following:
2525

26-
* [`cmake/`](./cmake) - CMake modules for locating dependencies (e.g., `libraw `)
26+
* [`build_scripts/`](./build_scripts) - Helper scripts for installing dependencies
27+
* [`cmake/`](./cmake) - CMake modules for locating dependencies (e.g., `libraw`)
2728
* [`config/`](./config) - CMake configuration files
2829
* [`data/`](./data) - Data files containing camera sensitivity, light source, color matching function and 190 training patch data
29-
* [`lib/`](./lib) - IDT and math libraries
30-
* [`src/`](./src) - AcesRender wrapper library and C++ header file containing `rawtoaces` usage information
31-
* [`test/`](./test) - Sample testing materials such as a ".NEF" RAW image and a camera spectral sensitivity data file
32-
* [`main.cpp`](main.cpp) - C++ source code file for call routines to process images
30+
* [`include/`](./include) - Public header files for the `rawtoaces` library
31+
* [`src/`](./src) - Source code for `rawtoaces` utilities and IDT implementation
32+
* [`unittest/`](./unittest) - Unit tests for `rawtoaces`
33+
* [`main.cpp`](./src/rawtoaces/main.cpp) - C++ source file for call routines to process images
3334

3435
## Prerequisites
3536

36-
To build `rawtoaces` you would need to sutisfy these dependencies:
37+
To build `rawtoaces` you would need to satisfy these dependencies:
3738

3839
| Library | Min Version| Purpose | Link to installation instruction |
3940
| ------- | -----------| -------- | -------------------------------- |
@@ -112,7 +113,7 @@ $ cmake --build build
112113
$ sudo cmake --install build # Optional if you want it to be accessible system wide
113114
```
114115

115-
The default process will install `librawtoaces_idt_${rawtoaces_version}.dylib` and `librawtoaces_util_${rawtoaces_version}.dylib` to `/usr/local/lib`, a few header files to `/usr/local/include/rawtoaces/include` and a number of data files into `/usr/local/include/rawtoaces/data`.
116+
The default process will install `librawtoaces_idt_${rawtoaces_version}.dylib` and `librawtoaces_util_${rawtoaces_version}.dylib` to `/usr/local/lib`, a few header files to `/usr/local/include/rawtoaces` and a number of data files into `/usr/local/include/rawtoaces/data`.
116117

117118
#### Docker
118119

config/RAWTOACES.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ prefix=@CMAKE_INSTALL_PREFIX@
22
exec_prefix=@INSTALL_BIN_DIR@
33
libdir=@INSTALL_LIB_DIR@
44
includedir=@INSTALL_INCLUDE_DIR@
5-
RAWTOACES_includedir=@INSTALL_INCLUDE_DIR@/RAWTOACES
5+
RAWTOACES_includedir=@INSTALL_INCLUDE_DIR@/rawtoaces
66

77
Name: RAWTOACES
88
Description: RAWTOACES raw image to ACES

src/rawtoaces_idt/rta.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void Illum::setIllumIndex( const double &index )
8686
// const char *: type of light source if user specifies
8787
//
8888
// outputs:
89-
// int: If successufully parsed, private data members (e.g., _data)
89+
// int: If successfully parsed, private data members (e.g., _data)
9090
// will be filled and return 1; Otherwise, return 0
9191

9292
int Illum::readSPD( const string &path, const string &type )
@@ -203,7 +203,7 @@ vector<double> Illum::cctToxy( const double &cctd ) const
203203
// const int: cct / correlated color temperature
204204
//
205205
// outputs:
206-
// int: If successufully processed, private data members (e.g., _data)
206+
// int: If successfully processed, private data members (e.g., _data)
207207
// will be filled and return 1; Otherwise, return 0
208208

209209
void Illum::calDayLightSPD( const int &cct )
@@ -341,7 +341,7 @@ const double Illum::getIllumIndex() const
341341
// const int: temp / temperature
342342
//
343343
// outputs:
344-
// int: If successufully processed, private data members (e.g., _data)
344+
// int: If successfully processed, private data members (e.g., _data)
345345
// will be filled and return 1; Otherwise, return 0
346346

347347
void Illum::calBlackBodySPD( const int &cct )
@@ -520,7 +520,7 @@ char *Spst::getModel()
520520
// N/A
521521
//
522522
// outputs:
523-
// uint8_t: Wavelength increment value (e.g., 5nm, 10nm) of the
523+
// int: Wavelength increment value (e.g., 5nm, 10nm) of the
524524
// camera's sensitivity
525525

526526
int Spst::getWLIncrement()
@@ -807,7 +807,7 @@ void Idt::scaleLSC( Illum &Illuminant )
807807
// const char *: camera model (from libraw)
808808
//
809809
// outputs:
810-
// boolean: If successufully parsed, _cameraSpst will be filled and return 1;
810+
// boolean: If successfully parsed, _cameraSpst will be filled and return 1;
811811
// Otherwise, return 0
812812

813813
int Idt::loadCameraSpst(
@@ -825,7 +825,7 @@ int Idt::loadCameraSpst(
825825
// string: type of light source if user specifies
826826
//
827827
// outputs:
828-
// int: If successufully parsed, _bestIllum will be filled and return 1;
828+
// int: If successfully parsed, _bestIllum will be filled and return 1;
829829
// Otherwise, return 0
830830

831831
int Idt::loadIlluminant( const vector<string> &paths, string type )
@@ -914,7 +914,7 @@ int Idt::loadIlluminant( const vector<string> &paths, string type )
914914
// string : path to the 190-patch training data
915915
//
916916
// outputs:
917-
// _trainingSpec: If successufully parsed, _trainingSpec will be filled
917+
// _trainingSpec: If successfully parsed, _trainingSpec will be filled
918918

919919
void Idt::loadTrainingData( const string &path )
920920
{
@@ -961,7 +961,7 @@ void Idt::loadTrainingData( const string &path )
961961
// string : path to the CIE 1931 Color Matching Functions data
962962
//
963963
// outputs:
964-
// _cmf: If successufully parsed, _cmf will be filled
964+
// _cmf: If successfully parsed, _cmf will be filled
965965

966966
void Idt::loadCMF( const string &path )
967967
{

src/rawtoaces_util/acesrender.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,8 +1969,10 @@ const vector<string> AcesRender::getSupportedCameras() const
19691969
void AcesRender::printLibRawCameras()
19701970
{
19711971
const char **cl = _rawProcessor->cameraList();
1972-
while ( *( cl + 1 ) != NULL )
1972+
while ( *cl != nullptr )
1973+
{
19731974
printf( "%s\n", *cl++ );
1975+
}
19741976
}
19751977

19761978
// =====================================================================

unittest/testMisc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE( Test_LowerCase )
3232
char text_test[] = "rawtoaces";
3333

3434
lowerCase( text );
35-
FORI( strlen( text ) - 1 )
35+
FORI( strlen( text ) )
3636
BOOST_CHECK_EQUAL( text[i], text_test[i] );
3737
};
3838

0 commit comments

Comments
 (0)