diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmscgats.c | 2 | ||||
-rw-r--r-- | src/cmserr.c | 4 | ||||
-rw-r--r-- | src/cmsgamma.c | 2 | ||||
-rw-r--r-- | src/cmsgmt.c | 2 | ||||
-rw-r--r-- | src/cmsio0.c | 2 | ||||
-rw-r--r-- | src/cmsio1.c | 6 | ||||
-rw-r--r-- | src/cmsnamed.c | 4 | ||||
-rw-r--r-- | src/cmstypes.c | 8 | ||||
-rw-r--r-- | src/cmswtpnt.c | 8 | ||||
-rw-r--r-- | src/cmsxform.c | 2 |
10 files changed, 20 insertions, 20 deletions
diff --git a/src/cmscgats.c b/src/cmscgats.c index a511ef4..a5b1130 100644 --- a/src/cmscgats.c +++ b/src/cmscgats.c @@ -248,7 +248,7 @@ static PROPERTY PredefinedProperties[] = { {"MATERIAL", WRITE_STRINGIFY}, // Identifies the material on which the target was produced using a code // uniquely identifying th e material. This is intend ed to be used for IT8.7 - // physical targets only (i.e . IT8.7/1 a nd IT8.7/2). + // physical targets only (i.e . IT8.7/1 and IT8.7/2). {"INSTRUMENTATION", WRITE_STRINGIFY}, // Used to report the specific instrumentation used (manufacturer and // model number) to generate the data reported. This data will often diff --git a/src/cmserr.c b/src/cmserr.c index f0acb25..2483eea 100644 --- a/src/cmserr.c +++ b/src/cmserr.c @@ -79,7 +79,7 @@ long int CMSEXPORT cmsfilelength(FILE* f) // User may override this behaviour by using a memory plug-in, which basically replaces // the default memory management functions. In this case, no check is performed and it -// is up to the plug-in writter to keep in the safe side. There are only three functions +// is up to the plug-in writer to keep in the safe side. There are only three functions // required to be implemented: malloc, realloc and free, although the user may want to // replace the optional mallocZero, calloc and dup as well. @@ -308,7 +308,7 @@ void* CMSEXPORT _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Numbe // Sub allocation takes care of many pointers of small size. The memory allocated in // this way have be freed at once. Next function allocates a single chunk for linked list -// I prefer this method over realloc due to the big inpact on xput realloc may have if +// I prefer this method over realloc due to the big impact on xput realloc may have if // memory is being swapped to disk. This approach is safer (although that may not be true on all platforms) static _cmsSubAllocator_chunk* _cmsCreateSubAllocChunk(cmsContext ContextID, cmsUInt32Number Initial) diff --git a/src/cmsgamma.c b/src/cmsgamma.c index 28f9ed5..5d4c481 100644 --- a/src/cmsgamma.c +++ b/src/cmsgamma.c @@ -207,7 +207,7 @@ _cmsParametricCurvesCollection *GetParametricCurveByType(cmsContext ContextID, i } // Low level allocate, which takes care of memory details. nEntries may be zero, and in this case -// no optimation curve is computed. nSegments may also be zero in the inverse case, where only the +// no optimization curve is computed. nSegments may also be zero in the inverse case, where only the // optimization curve is given. Both features simultaneously is an error static cmsToneCurve* AllocateToneCurveStruct(cmsContext ContextID, cmsUInt32Number nEntries, diff --git a/src/cmsgmt.c b/src/cmsgmt.c index f28e251..0d087b7 100644 --- a/src/cmsgmt.c +++ b/src/cmsgmt.c @@ -593,7 +593,7 @@ cmsBool CMSEXPORT cmsDesaturateLab(cmsCIELab* Lab, // Actually, doing that "well" is quite hard, since every component may behave completely different.
// Since the true point of this function is to detect suitable optimizations, I am imposing some requirements
// that simplifies things: only RGB, and only profiles that can got in both directions.
-// The algorith obtains Y from a syntetical gray R=G=B. Then least squares fitting is used to estimate gamma.
+// The algorithm obtains Y from a syntetical gray R=G=B. Then least squares fitting is used to estimate gamma.
// For gamma close to 1.0, RGB is linear. On profiles not supported, -1 is returned.
cmsFloat64Number CMSEXPORT cmsDetectRGBProfileGamma(cmsHPROFILE hProfile, cmsFloat64Number thereshold)
diff --git a/src/cmsio0.c b/src/cmsio0.c index cc49b4b..e1c97cd 100644 --- a/src/cmsio0.c +++ b/src/cmsio0.c @@ -1616,7 +1616,7 @@ void* CMSEXPORT cmsReadTag(cmsHPROFILE hProfile, cmsTagSignature sig) return Icc -> TagPtrs[n]; - // Return error and unlock tha data + // Return error and unlock the data Error: _cmsUnlockMutex(Icc->ContextID, Icc ->UsrMutex); return NULL; diff --git a/src/cmsio1.c b/src/cmsio1.c index f2a3970..28e8c18 100644 --- a/src/cmsio1.c +++ b/src/cmsio1.c @@ -260,7 +260,7 @@ Error: -// Read the DToAX tag, adjusting the encoding of Lab or XYZ if neded +// Read the DToAX tag, adjusting the encoding of Lab or XYZ if needed static cmsPipeline* _cmsReadFloatInputTag(cmsHPROFILE hProfile, cmsTagSignature tagFloat) { @@ -536,7 +536,7 @@ void ChangeInterpolationToTrilinear(cmsPipeline* Lut) } -// Read the DToAX tag, adjusting the encoding of Lab or XYZ if neded +// Read the DToAX tag, adjusting the encoding of Lab or XYZ if needed static cmsPipeline* _cmsReadFloatOutputTag(cmsHPROFILE hProfile, cmsTagSignature tagFloat) { @@ -661,7 +661,7 @@ Error: // --------------------------------------------------------------------------------------------------------------- -// Read the AToD0 tag, adjusting the encoding of Lab or XYZ if neded +// Read the AToD0 tag, adjusting the encoding of Lab or XYZ if needed static cmsPipeline* _cmsReadFloatDevicelinkTag(cmsHPROFILE hProfile, cmsTagSignature tagFloat) { diff --git a/src/cmsnamed.c b/src/cmsnamed.c index c0595dd..07eb47c 100644 --- a/src/cmsnamed.c +++ b/src/cmsnamed.c @@ -204,7 +204,7 @@ void strFrom16(char str[3], cmsUInt16Number n) } // Add an ASCII entry. Do not add any \0 termination (ICC1v43_2010-12.pdf page 61) -// In the case the user explicitely sets an empty string, we force a \0 +// In the case the user explicitly sets an empty string, we force a \0 cmsBool CMSEXPORT cmsMLUsetASCII(cmsMLU* mlu, const char LanguageCode[3], const char CountryCode[3], const char* ASCIIString) { cmsUInt32Number i, len = (cmsUInt32Number) strlen(ASCIIString); @@ -641,7 +641,7 @@ cmsUInt32Number CMSEXPORT cmsNamedColorCount(const cmsNAMEDCOLORLIST* NamedColor return NamedColorList ->nColors; } -// Info aboout a given color +// Info about a given color cmsBool CMSEXPORT cmsNamedColorInfo(const cmsNAMEDCOLORLIST* NamedColorList, cmsUInt32Number nColor, char* Name, char* Prefix, diff --git a/src/cmstypes.c b/src/cmstypes.c index 658e9cd..475858d 100644 --- a/src/cmstypes.c +++ b/src/cmstypes.c @@ -1354,7 +1354,7 @@ void Type_ParametricCurve_Free(struct _cms_typehandler_struct* self, void* Ptr) // // All the dateTimeNumber values in a profile shall be in Coordinated Universal Time // (UTC, also known as GMT or ZULU Time). Profile writers are required to convert local -// time to UTC when setting these values. Programmes that display these values may show +// time to UTC when setting these values. Programs that display these values may show // the dateTimeNumber as UTC, show the equivalent local time (at current locale), or // display both UTC and local versions of the dateTimeNumber. @@ -1793,7 +1793,7 @@ cmsUInt32Number uipow(cmsUInt32Number n, cmsUInt32Number a, cmsUInt32Number b) // That will create a MPE LUT with Matrix, pre tables, CLUT and post tables. -// 8 bit lut may be scaled easely to v4 PCS, but we need also to properly adjust +// 8 bit lut may be scaled easily to v4 PCS, but we need also to properly adjust // PCS on BToAxx tags and AtoB if abstract. We need to fix input direction. static @@ -4558,7 +4558,7 @@ Error: -// This one is a liitle bit more complex, so we don't use position tables this time. +// This one is a little bit more complex, so we don't use position tables this time. static cmsBool Type_MPE_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems) { @@ -4990,7 +4990,7 @@ cmsBool ReadOneElem(cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i, cmsUIn if (!_cmsReadUInt32Number(io, &e->Offsets[i])) return FALSE; if (!_cmsReadUInt32Number(io, &e ->Sizes[i])) return FALSE; - // An offset of zero has special meaning and shal be preserved + // An offset of zero has special meaning and shall be preserved if (e ->Offsets[i] > 0) e ->Offsets[i] += BaseOffset; return TRUE; diff --git a/src/cmswtpnt.c b/src/cmswtpnt.c index c7184c3..ddd60b0 100644 --- a/src/cmswtpnt.c +++ b/src/cmswtpnt.c @@ -264,16 +264,16 @@ cmsBool _cmsAdaptMatrixToD50(cmsMAT3* r, const cmsCIExyY* SourceWhitePt) // Build a White point, primary chromas transfer matrix from RGB to CIE XYZ // This is just an approximation, I am not handling all the non-linear -// aspects of the RGB to XYZ process, and assumming that the gamma correction +// aspects of the RGB to XYZ process, and assuming that the gamma correction // has transitive property in the transformation chain. // -// the alghoritm: +// the algoritm: // // - First I build the absolute conversion matrix using // primaries in XYZ. This matrix is next inverted // - Then I eval the source white point across this matrix -// obtaining the coeficients of the transformation -// - Then, I apply these coeficients to the original matrix +// obtaining the coefficients of the transformation +// - Then, I apply these coefficients to the original matrix // cmsBool _cmsBuildRGB2XYZtransferMatrix(cmsMAT3* r, const cmsCIExyY* WhitePt, const cmsCIExyYTRIPLE* Primrs) { diff --git a/src/cmsxform.c b/src/cmsxform.c index 640382c..3ae15a8 100644 --- a/src/cmsxform.c +++ b/src/cmsxform.c @@ -284,7 +284,7 @@ void FloatXFORM(_cmsTRANSFORM* p, accum = p->FromInputFloat(p, fIn, accum, Stride->BytesPerPlaneIn); - // Any gamut chack to do? + // Any gamut check to do? if (p->GamutCheck != NULL) { // Evaluate gamut marker. |