Skip to content

Commit 5093342

Browse files
luzpazgaryo
authored andcommitted
Fix typos in include/ and Support/
Found via codespell Signed-off-by: luzpaz <[email protected]>
1 parent 363e272 commit 5093342

35 files changed

+172
-172
lines changed

Support/Library/ofxsImageEffect.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ namespace OFX {
11521152
return v;
11531153
}
11541154

1155-
/** @brief get the RoD for this clip in the cannonical coordinate system */
1155+
/** @brief get the RoD for this clip in the canonical coordinate system */
11561156
OfxRectD Clip::getRegionOfDefinition(double t)
11571157
{
11581158
OfxRectD bounds;
@@ -1178,7 +1178,7 @@ namespace OFX {
11781178
return new Image(imageHandle);
11791179
}
11801180

1181-
/** @brief fetch an image, with a specific region in cannonical coordinates */
1181+
/** @brief fetch an image, with a specific region in canonical coordinates */
11821182
Image *Clip::fetchImage(double t, const OfxRectD &bounds)
11831183
{
11841184
OfxPropertySetHandle imageHandle;
@@ -1310,13 +1310,13 @@ namespace OFX {
13101310
return _effectProps.propGetInt(kOfxPropIsInteractive) != 0;
13111311
}
13121312

1313-
/** @brief set the instance to be sequentially renderred, this should have been part of clip preferences! */
1313+
/** @brief set the instance to be sequentially rendered, this should have been part of clip preferences! */
13141314
void ImageEffect::setSequentialRender(bool v)
13151315
{
13161316
_effectProps.propSetInt(kOfxImageEffectInstancePropSequentialRender, int(v));
13171317
}
13181318

1319-
/** @brief Have we informed the host we want to be seqentially renderred ? */
1319+
/** @brief Have we informed the host we want to be seqentially rendered ? */
13201320
bool ImageEffect::getSequentialRender(void) const
13211321
{
13221322
return _effectProps.propGetInt(kOfxImageEffectInstancePropSequentialRender) != 0;
@@ -1351,7 +1351,7 @@ namespace OFX {
13511351
}
13521352
#endif
13531353

1354-
/** @brief notify host that the internal data structures need syncing back to parameters for persistance and so on. This is reset by the host after calling SyncPrivateData. */
1354+
/** @brief notify host that the internal data structures need syncing back to parameters for persistence and so on. This is reset by the host after calling SyncPrivateData. */
13551355
void ImageEffect::setParamSetNeedsSyncing()
13561356
{
13571357
_effectProps.propSetInt(kOfxPropParamSetNeedsSyncing, 1, false); // introduced in OFX 1.2
@@ -1506,7 +1506,7 @@ namespace OFX {
15061506
// fa niente
15071507
}
15081508

1509-
/** @brief The sync private data action, called when the effect needs to sync any private data to persistant parameters */
1509+
/** @brief The sync private data action, called when the effect needs to sync any private data to persistent parameters */
15101510
void ImageEffect::syncPrivateData(void)
15111511
{
15121512
// fa niente
@@ -1747,7 +1747,7 @@ namespace OFX {
17471747
}
17481748
}
17491749

1750-
/** @brief Set whether the effect can be continously sampled. */
1750+
/** @brief Set whether the effect can be continuously sampled. */
17511751
void ClipPreferencesSetter::setOutputHasContinousSamples(bool v)
17521752
{
17531753
doneSomething_ = true;

Support/Library/ofxsInteract.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace OFX {
6666
throwSuiteStatusException(stat);
6767
_interactProperties.propSetHandle(propHandle);
6868

69-
// set othe instance data on the property handle to point to this interact
69+
// set other instance data on the property handle to point to this interact
7070
_interactProperties.propSetPointer(kOfxPropInstanceData, (void *)this);
7171

7272
// get the effect handle from this handle
@@ -92,7 +92,7 @@ namespace OFX {
9292
return _interactProperties.propGetInt(kOfxInteractPropHasAlpha) != 0;
9393
}
9494

95-
/** @brief Returns the size of a real screen pixel under the interact's cannonical projection */
95+
/** @brief Returns the size of a real screen pixel under the interact's canonical projection */
9696
OfxPointD
9797
Interact::getPixelScale(void) const
9898
{
@@ -130,7 +130,7 @@ namespace OFX {
130130
throwSuiteStatusException(stat);
131131
}
132132

133-
/** @brief Swap a buffer in the case of a double bufferred interact, this is possibly a silly one */
133+
/** @brief Swap a buffer in the case of a double buffered interact, this is possibly a silly one */
134134
void
135135
Interact::swapBuffers(void) const
136136
{

Support/Library/ofxsLog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace OFX {
3636
gLogFileName = value;
3737
}
3838

39-
/** @brief Opens the log file, returns whether this was sucessful or not. */
39+
/** @brief Opens the log file, returns whether this was successful or not. */
4040
bool open(void)
4141
{
4242
#ifdef DEBUG

Support/Library/ofxsParams.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace OFX {
101101
, _paramType(type)
102102
, _paramProps(props)
103103
{
104-
// validate the properities on this descriptor
104+
// validate the properties on this descriptor
105105
if(type != eDummyParam)
106106
OFX::Validation::validateParameterProperties(type, props, true);
107107
}
@@ -201,7 +201,7 @@ namespace OFX {
201201
_paramProps.propSetInt(kOfxParamPropAnimates, v);
202202
}
203203

204-
/** @brief set whether the param is persistant, defaults to true */
204+
/** @brief set whether the param is persistent, defaults to true */
205205
void ValueParamDescriptor::setIsPersistant(bool v)
206206
{
207207
_paramProps.propSetInt(kOfxParamPropPersistant, v);
@@ -1050,7 +1050,7 @@ namespace OFX {
10501050
}
10511051
}
10521052

1053-
/** @brief estabilishes the order of page params. Do it by calling it in turn for each page */
1053+
/** @brief establishes the order of page params. Do it by calling it in turn for each page */
10541054
void
10551055
ParamSetDescriptor::setPageParamOrder(PageParamDescriptor &p)
10561056
{
@@ -1391,21 +1391,21 @@ namespace OFX {
13911391
return _paramProps.propGetInt(kOfxParamPropIsAutoKeying) != 0;
13921392
}
13931393

1394-
/** @brief is the param persistant */
1394+
/** @brief is the param persistent */
13951395
bool
13961396
ValueParam::getIsPersistant(void) const
13971397
{
13981398
return _paramProps.propGetInt(kOfxParamPropPersistant) != 0;
13991399
}
14001400

1401-
/** @brief Get's whether the value of the param is significant (ie: affects the rendered image) */
1401+
/** @brief Gets whether the value of the param is significant (ie: affects the rendered image) */
14021402
bool
14031403
ValueParam::getEvaluateOnChange(void) const
14041404
{
14051405
return _paramProps.propGetInt(kOfxParamPropEvaluateOnChange) != 0;
14061406
}
14071407

1408-
/** @brief Get's whether the value of the param is significant (ie: affects the rendered image) */
1408+
/** @brief Gets whether the value of the param is significant (ie: affects the rendered image) */
14091409
CacheInvalidationEnum
14101410
ValueParam::getCacheInvalidation(void) const
14111411
{
@@ -2775,7 +2775,7 @@ namespace OFX {
27752775
27762776
@returns
27772777
- ::kOfxStatOK - all was fine
2778-
- ::kOfxStatErrBadHandle - if the paramter handle was invalid
2778+
- ::kOfxStatErrBadHandle - if the parameter handle was invalid
27792779
- ::kOfxStatErrUnknown - if the type is unknown
27802780
27812781
This modifies an existing control point. Note that by changing key, the order of the

Support/Library/ofxsProperty.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace OFX {
2121
break;
2222

2323
case kOfxStatErrUnknown :
24-
case kOfxStatErrUnsupported : // unsupported implies unknow here
24+
case kOfxStatErrUnsupported : // unsupported implies unknown here
2525
if(OFX::PropertySet::getThrowOnUnsupportedProperties()) // are we suppressing this?
2626
throw OFX::Exception::PropertyUnknownToHost(propName.c_str());
2727
break;
@@ -72,7 +72,7 @@ namespace OFX {
7272
{
7373
assert(_propHandle != 0);
7474
OfxStatus stat = gPropSuite->propReset(_propHandle, property);
75-
Log::error(stat != kOfxStatOK, "Failed on reseting property %s to its defaults, host returned status %s.", property, mapStatusToString(stat));
75+
Log::error(stat != kOfxStatOK, "Failed on resetting property %s to its defaults, host returned status %s.", property, mapStatusToString(stat));
7676
throwPropertyException(stat, property);
7777

7878
if(_gPropLogging > 0) Log::print("Reset property %s.", property);

Support/Library/ofxsPropertyValidation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ namespace OFX {
294294
PropertyDescription(kOfxImageEffectPropSupportedComponents, OFX::eString, -1, eDescFinished),
295295
PropertyDescription(kOfxImageEffectPropSupportedContexts, OFX::eString, -1, eDescFinished),
296296

297-
// multi dimensional int properities
297+
// multi dimensional int properties
298298
PropertyDescription(kOfxParamHostPropPageRowColumnCount, OFX::eInt, 2, eDescFinished),
299299
};
300300

Support/OSXStaticLoader/pluginLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ main(int argc, char *argv[])
4343
int nP = nPluginsFunc();
4444

4545

46-
printf("Sucessfully loaded '%s', containing %d %s\n", argv[1], nP, (nP == 1 ? "plugin" : "plugins"));
46+
printf("Successfully loaded '%s', containing %d %s\n", argv[1], nP, (nP == 1 ? "plugin" : "plugins"));
4747

4848
for(int i = 0; i < nP; i++) {
4949
// get a plugin

Support/Plugins/Basic/basic.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,15 +419,15 @@ BasicPlugin:: isIdentity(const OFX::IsIdentityArguments &args, OFX::Clip * &iden
419419
return true;
420420
}
421421

422-
// nope, idenity we is
422+
// nope, identity we is
423423
return false;
424424
}
425425

426426
// set the enabledness of the individual component scales
427427
void
428428
BasicPlugin::setEnabledness(void)
429429
{
430-
// the componet enabledness depends on the clip being RGBA and the param being true
430+
// the component enabledness depends on the clip being RGBA and the param being true
431431
bool v = componentScalesEnabled_->getValue() && srcClip_->getPixelComponents() == OFX::ePixelComponentRGBA;
432432

433433
// enable them
@@ -502,11 +502,11 @@ bool BasicInteract::draw(const OFX::DrawArgs &args)
502502
bool
503503
BasicInteract::penMotion(const OFX::PenArgs &args)
504504
{
505-
// figure the size of the box in cannonical coords
505+
// figure the size of the box in canonical coords
506506
float dx = (float)(kBoxSize.x * args.pixelScale.x);
507507
float dy = (float)(kBoxSize.y * args.pixelScale.y);
508508

509-
// pen position is in cannonical coords
509+
// pen position is in canonical coords
510510
OfxPointD penPos = args.penPosition;
511511

512512
switch(_state) {
@@ -564,7 +564,7 @@ BasicInteract::penDown(const OFX::PenArgs &args)
564564
// move our position
565565
_position = args.penPosition;
566566

567-
// and request a redraw just incase
567+
// and request a redraw just in case
568568
_effect->redrawOverlays();
569569
}
570570

Support/Plugins/ChoiceParams/choiceparams.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ bool ChoiceParamsInteract::draw(const OFX::DrawArgs &args)
481481
bool
482482
ChoiceParamsInteract::penMotion(const OFX::PenArgs &args)
483483
{
484-
// figure the size of the box in cannonical coords
484+
// figure the size of the box in canonical coords
485485
float dx = (float)(kBoxSize.x * args.pixelScale.x);
486486
float dy = (float)(kBoxSize.y * args.pixelScale.y);
487487

488-
// pen position is in cannonical coords
488+
// pen position is in canonical coords
489489
OfxPointD penPos = args.penPosition;
490490

491491
switch(_state) {
@@ -543,7 +543,7 @@ ChoiceParamsInteract::penDown(const OFX::PenArgs &args)
543543
// move our position
544544
_position = args.penPosition;
545545

546-
// and request a redraw just incase
546+
// and request a redraw just in case
547547
_effect->redrawOverlays();
548548
}
549549

Support/Plugins/Retimer/retimer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ namespace OFX
280280

281281
void RetimerExamplePluginFactory::load()
282282
{
283-
// we can't be used on hosts that don't perfrom temporal clip access
283+
// we can't be used on hosts that don't perform temporal clip access
284284
if(!gHostDescription.temporalClipAccess) {
285285
throw OFX::Exception::HostInadequate("Need random temporal image access to work");
286286
}
@@ -331,7 +331,7 @@ void RetimerExamplePluginFactory::describeInContext(OFX::ImageEffectDescriptor &
331331
dstClip->setFieldExtraction(eFieldExtractDoubled); // which is the default anyway
332332
dstClip->setSupportsTiles(true);
333333

334-
// what param we have is dependant on the host
334+
// what param we have is dependent on the host
335335
if(context == OFX::eContextRetimer) {
336336
// Define the mandated kOfxImageEffectRetimerParamName param, note that we don't do anything with this other than.
337337
// describe it. It is not a true param but how the host indicates to the plug-in which frame

0 commit comments

Comments
 (0)