forked from sandflow/openexr-ht
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kimball Thurston <[email protected]>
- Loading branch information
Showing
165 changed files
with
3,719 additions
and
3,624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,33 +35,34 @@ usageMessage (ostream& stream, const char* program_name, bool verbose = false) | |
stream << "Usage: " << program_name << " [options] infile outfile" << endl; | ||
|
||
if (verbose) | ||
stream << "\n" | ||
"Read an OpenEXR file from infile and save the contents\n" | ||
"in ACES image file outfile.\n" | ||
"\n" | ||
"The ACES image file format is a subset of the OpenEXR file\n" | ||
"format. ACES image files are restricted as follows:\n" | ||
"\n" | ||
" * Images are stored as scanlines; tiles are not allowed.\n" | ||
" * Images contain three color channels, either:\n" | ||
" R, G, B (red, green, blue)\n" | ||
" or:\n" | ||
" Y, RY, BY (luminance, sub-sampled chroma)\n" | ||
" * Images may optionally contain an alpha channel.\n" | ||
" * Only three compression types are allowed:\n" | ||
" NO_COMPRESSION (file is not compressed)\n" | ||
" PIZ_COMPRESSION (lossless)\n" | ||
" B44A_COMPRESSION (lossy)\n" | ||
" * The \"chromaticities\" header attribute must specify\n" | ||
" the ACES RGB primaries and white point.\n" | ||
"\n" | ||
"Options:\n" | ||
" -v, --verbose verbose mode\n" | ||
" -h, --help print this message\n" | ||
" --version print version information\n" | ||
"\n" | ||
"Report bugs via https://github.com/AcademySoftwareFoundation/openexr/issues or email [email protected]\n" | ||
""; | ||
stream | ||
<< "\n" | ||
"Read an OpenEXR file from infile and save the contents\n" | ||
"in ACES image file outfile.\n" | ||
"\n" | ||
"The ACES image file format is a subset of the OpenEXR file\n" | ||
"format. ACES image files are restricted as follows:\n" | ||
"\n" | ||
" * Images are stored as scanlines; tiles are not allowed.\n" | ||
" * Images contain three color channels, either:\n" | ||
" R, G, B (red, green, blue)\n" | ||
" or:\n" | ||
" Y, RY, BY (luminance, sub-sampled chroma)\n" | ||
" * Images may optionally contain an alpha channel.\n" | ||
" * Only three compression types are allowed:\n" | ||
" NO_COMPRESSION (file is not compressed)\n" | ||
" PIZ_COMPRESSION (lossless)\n" | ||
" B44A_COMPRESSION (lossy)\n" | ||
" * The \"chromaticities\" header attribute must specify\n" | ||
" the ACES RGB primaries and white point.\n" | ||
"\n" | ||
"Options:\n" | ||
" -v, --verbose verbose mode\n" | ||
" -h, --help print this message\n" | ||
" --version print version information\n" | ||
"\n" | ||
"Report bugs via https://github.com/AcademySoftwareFoundation/openexr/issues or email [email protected]\n" | ||
""; | ||
} | ||
|
||
void | ||
|
@@ -154,10 +155,10 @@ main (int argc, char** argv) | |
} | ||
else if (!strcmp (argv[i], "--version")) | ||
{ | ||
const char* libraryVersion = getLibraryVersion(); | ||
const char* libraryVersion = getLibraryVersion (); | ||
|
||
cout << "exr2aces (OpenEXR) " << OPENEXR_VERSION_STRING; | ||
if (strcmp(libraryVersion, OPENEXR_VERSION_STRING)) | ||
if (strcmp (libraryVersion, OPENEXR_VERSION_STRING)) | ||
cout << "(OpenEXR version " << libraryVersion << ")"; | ||
cout << " https://openexr.com" << endl; | ||
cout << "Copyright (c) Contributors to the OpenEXR Project" << endl; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,22 +24,24 @@ using namespace std; | |
void | ||
usageMessage (ostream& stream, const char* program_name, bool verbose = false) | ||
{ | ||
stream << "Usage: " << program_name << " [options] imagefile [imagefile ...]\n"; | ||
stream << "Usage: " << program_name | ||
<< " [options] imagefile [imagefile ...]\n"; | ||
|
||
if (verbose) | ||
stream << "\n" | ||
"Read exr files to validate their contents and the correct behavior of the software.\n" | ||
"\n" | ||
"Options:\n" | ||
" -m avoid excessive memory allocation (some files will not be fully checked)\n" | ||
" -t avoid spending excessive time (some files will not be fully checked)\n" | ||
" -s use stream API instead of file API\n" | ||
" -c add core library checks\n" | ||
" -h, --help print this message\n" | ||
" --version print version information\n" | ||
"\n" | ||
"Report bugs via https://github.com/AcademySoftwareFoundation/openexr/issues or email [email protected]\n" | ||
""; | ||
stream | ||
<< "\n" | ||
"Read exr files to validate their contents and the correct behavior of the software.\n" | ||
"\n" | ||
"Options:\n" | ||
" -m avoid excessive memory allocation (some files will not be fully checked)\n" | ||
" -t avoid spending excessive time (some files will not be fully checked)\n" | ||
" -s use stream API instead of file API\n" | ||
" -c add core library checks\n" | ||
" -h, --help print this message\n" | ||
" --version print version information\n" | ||
"\n" | ||
"Report bugs via https://github.com/AcademySoftwareFoundation/openexr/issues or email [email protected]\n" | ||
""; | ||
} | ||
|
||
bool | ||
|
@@ -126,26 +128,16 @@ main (int argc, char** argv) | |
// Header::setMaxTileSize(); | ||
|
||
reduceMemory = true; | ||
|
||
} | ||
else if (!strcmp (argv[i], "-t")) | ||
{ | ||
reduceTime = true; | ||
} | ||
else if (!strcmp (argv[i], "-s")) | ||
{ | ||
useStream = true; | ||
} | ||
else if (!strcmp (argv[i], "-c")) | ||
{ | ||
enableCoreCheck = true; | ||
} | ||
else if (!strcmp (argv[i], "-t")) { reduceTime = true; } | ||
else if (!strcmp (argv[i], "-s")) { useStream = true; } | ||
else if (!strcmp (argv[i], "-c")) { enableCoreCheck = true; } | ||
else if (!strcmp (argv[i], "--version")) | ||
{ | ||
const char* libraryVersion = getLibraryVersion(); | ||
const char* libraryVersion = getLibraryVersion (); | ||
|
||
cout << "exrcheck (OpenEXR) " << OPENEXR_VERSION_STRING; | ||
if (strcmp(libraryVersion, OPENEXR_VERSION_STRING)) | ||
if (strcmp (libraryVersion, OPENEXR_VERSION_STRING)) | ||
cout << "(OpenEXR version " << libraryVersion << ")"; | ||
cout << " https://openexr.com" << endl; | ||
cout << "Copyright (c) Contributors to the OpenEXR Project" << endl; | ||
|
@@ -176,10 +168,7 @@ main (int argc, char** argv) | |
cout << "bad\n"; | ||
badFileFound = true; | ||
} | ||
else | ||
{ | ||
cout << "OK\n"; | ||
} | ||
else { cout << "OK\n"; } | ||
} | ||
} | ||
|
||
|
Oops, something went wrong.