Skip to content

Commit c900ec5

Browse files
committed
Fix typos in HostSupport subdirectory
Found via codespell Signed-off-by: luzpaz <[email protected]>
1 parent 96ccd1a commit c900ec5

18 files changed

+98
-98
lines changed

HostSupport/examples/cacheDemo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public :
8585
printf("\n");
8686

8787
if(isQuestion) {
88-
/// cant do this properly inour example, as we need to raise a dialogue to ask a question, so just return yes
88+
/// can't do this properly in our example, as we need to raise a dialogue to ask a question, so just return yes
8989
return kOfxStatReplyYes;
9090
}
9191
else {

HostSupport/examples/hostDemoClipInstance.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ namespace MyHost {
261261
/// Field Order - Which spatial field occurs temporally first in a frame.
262262
/// \returns
263263
/// - kOfxImageFieldNone - the clip material is unfielded
264-
/// - kOfxImageFieldLower - the clip material is fielded, with image rows 0,2,4.... occuring first in a frame
265-
/// - kOfxImageFieldUpper - the clip material is fielded, with image rows line 1,3,5.... occuring first in a frame
264+
/// - kOfxImageFieldLower - the clip material is fielded, with image rows 0,2,4.... occurring first in a frame
265+
/// - kOfxImageFieldUpper - the clip material is fielded, with image rows line 1,3,5.... occurring first in a frame
266266
const std::string &MyClipInstance::getFieldOrder() const
267267
{
268268
/// our clip is pretending to be progressive PAL SD, so return kOfxImageFieldNone
@@ -300,8 +300,8 @@ namespace MyHost {
300300

301301
// Continuous Samples -
302302
//
303-
// 0 if the images can only be sampled at discreet times (eg: the clip is a sequence of frames),
304-
// 1 if the images can only be sampled continuously (eg: the clip is infact an animating roto spline and can be rendered anywhen).
303+
// 0 if the images can only be sampled at discrete times (eg: the clip is a sequence of frames),
304+
// 1 if the images can only be sampled continuously (eg: the clip is in fact an animating roto spline and can be rendered anywhen).
305305
bool MyClipInstance::getContinuousSamples() const
306306
{
307307
return false;

HostSupport/examples/hostDemoClipInstance.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace MyHost {
1010

11-
// foward
11+
// forward
1212
class MyClipInstance;
1313

1414
/// make an image up
@@ -77,8 +77,8 @@ namespace MyHost {
7777
/// Field Order - Which spatial field occurs temporally first in a frame.
7878
/// \returns
7979
/// - kOfxImageFieldNone - the clip material is unfielded
80-
/// - kOfxImageFieldLower - the clip material is fielded, with image rows 0,2,4.... occuring first in a frame
81-
/// - kOfxImageFieldUpper - the clip material is fielded, with image rows line 1,3,5.... occuring first in a frame
80+
/// - kOfxImageFieldLower - the clip material is fielded, with image rows 0,2,4.... occurring first in a frame
81+
/// - kOfxImageFieldUpper - the clip material is fielded, with image rows line 1,3,5.... occurring first in a frame
8282
virtual const std::string &getFieldOrder() const;
8383

8484
// Connected -
@@ -98,8 +98,8 @@ namespace MyHost {
9898

9999
// Continuous Samples -
100100
//
101-
// 0 if the images can only be sampled at discreet times (eg: the clip is a sequence of frames),
102-
// 1 if the images can only be sampled continuously (eg: the clip is infact an animating roto spline and can be rendered anywhen).
101+
// 0 if the images can only be sampled at discrete times (eg: the clip is a sequence of frames),
102+
// 1 if the images can only be sampled continuously (eg: the clip is in fact an animating roto spline and can be rendered anywhen).
103103
virtual bool getContinuousSamples() const;
104104

105105
/// override this to fill in the image at the given time.

HostSupport/examples/hostDemoEffectInstance.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace MyHost {
5858

5959
// The extent of the current project in canonical coordinates.
6060
// The extent is the size of the 'output' for the current project. See ProjectCoordinateSystems
61-
// for more infomation on the project extent. The extent is in canonical coordinates and only
61+
// for more information on the project extent. The extent is in canonical coordinates and only
6262
// returns the top right position, as the extent is always rooted at 0,0. For example a PAL SD
6363
// project would have an extent of 768, 576.
6464
virtual void getProjectExtent(double& xSize, double& ySize) const;

HostSupport/examples/hostDemoHostDescriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ namespace MyHost
122122
printf("\n");
123123

124124
if(isQuestion) {
125-
/// cant do this properly inour example, as we need to raise a dialogue to ask a question, so just return yes
125+
/// can't do this properly in our example, as we need to raise a dialogue to ask a question, so just return yes
126126
return kOfxStatReplyYes;
127127
}
128128
else {

HostSupport/include/ofxhClip.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace OFX {
3333

3434
virtual ~ClipBase() { }
3535

36-
/// ctor, when copy constructing an instance from a descripto
36+
/// ctor, when copy constructing an instance from a descriptor
3737
explicit ClipBase(const ClipBase &other);
3838

3939
/// name of the clip
@@ -106,8 +106,8 @@ namespace OFX {
106106
protected:
107107
ImageEffect::Instance* _effectInstance; ///< image effect instance
108108
bool _isOutput; ///< are we the output clip
109-
std::string _pixelDepth; ///< what is the bit depth we is at. Set during the clip prefernces action.
110-
std::string _components; ///< what components do we have. Set during the clip prefernces action.
109+
std::string _pixelDepth; ///< what is the bit depth we is at. Set during the clip preferences action.
110+
std::string _components; ///< what components do we have. Set during the clip preferences action.
111111

112112
public:
113113
ClipInstance(ImageEffect::Instance* effectInstance, ClipDescriptor& desc);
@@ -224,8 +224,8 @@ namespace OFX {
224224
/// Field Order - Which spatial field occurs temporally first in a frame.
225225
/// \returns
226226
/// - kOfxImageFieldNone - the clip material is unfielded
227-
/// - kOfxImageFieldLower - the clip material is fielded, with image rows 0,2,4.... occuring first in a frame
228-
/// - kOfxImageFieldUpper - the clip material is fielded, with image rows line 1,3,5.... occuring first in a frame
227+
/// - kOfxImageFieldLower - the clip material is fielded, with image rows 0,2,4.... occurring first in a frame
228+
/// - kOfxImageFieldUpper - the clip material is fielded, with image rows line 1,3,5.... occurring first in a frame
229229
virtual const std::string &getFieldOrder() const = 0;
230230

231231
// Connected -
@@ -245,8 +245,8 @@ namespace OFX {
245245

246246
// Continuous Samples -
247247
//
248-
// 0 if the images can only be sampled at discreet times (eg: the clip is a sequence of frames),
249-
// 1 if the images can only be sampled continuously (eg: the clip is infact an animating roto spline and can be rendered anywhen).
248+
// 0 if the images can only be sampled at discrete times (eg: the clip is a sequence of frames),
249+
// 1 if the images can only be sampled continuously (eg: the clip is in fact an animating roto spline and can be rendered anywhen).
250250
virtual bool getContinuousSamples() const = 0;
251251

252252
/// override this to fill in the image at the given time.
@@ -271,7 +271,7 @@ namespace OFX {
271271
virtual OfxRectD getRegionOfDefinition(OfxTime time) const = 0;
272272

273273
/// given the colour component, find the nearest set of supported colour components
274-
/// override this for extra wierd custom component depths
274+
/// override this for extra weird custom component depths
275275
virtual const std::string &findSupportedComp(const std::string &s) const;
276276
};
277277

@@ -291,7 +291,7 @@ namespace OFX {
291291
ImageBase();
292292

293293
/// construct from a clip instance, but leave the
294-
/// filling it to the calling code via the propery set
294+
/// filling it to the calling code via the property set
295295
explicit ImageBase(ClipInstance& instance);
296296

297297
// Render Scale (renderScaleX,renderScaleY) -
@@ -365,7 +365,7 @@ namespace OFX {
365365
Image();
366366

367367
/// construct from a clip instance, but leave the
368-
/// filling it to the calling code via the propery set
368+
/// filling it to the calling code via the property set
369369
explicit Image(ClipInstance& instance);
370370

371371
// Render Scale (renderScaleX,renderScaleY) -
@@ -430,7 +430,7 @@ namespace OFX {
430430
Texture();
431431

432432
/// construct from a clip instance, but leave the
433-
/// filling it to the calling code via the propery set
433+
/// filling it to the calling code via the property set
434434
explicit Texture(ClipInstance& instance);
435435

436436
// Render Scale (renderScaleX,renderScaleY) -

HostSupport/include/ofxhImageEffect.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ namespace OFX {
124124
virtual OfxStatus flushOpenGLResources() const = 0;
125125
# endif
126126

127-
/// override this to use your own memory instance - must inherrit from memory::instance
127+
/// override this to use your own memory instance - must inherit from memory::instance
128128
virtual Memory::Instance* newMemoryInstance(size_t nBytes);
129129

130-
// return an memory::instance calls makeMemoryInstance that can be overriden
130+
// return an memory::instance calls makeMemoryInstance that can be overridden
131131
Memory::Instance* imageMemoryAlloc(size_t nBytes);
132132
};
133133

@@ -335,7 +335,7 @@ namespace OFX {
335335
/// get output fielding as set in the clip preferences action.
336336
const std::string &getOutputPreMultiplication() const {return _outputPreMultiplication; }
337337

338-
/// get the output frame rate, as set in the clip prefences action.
338+
/// get the output frame rate, as set in the clip preferences action.
339339
double getOutputFrameRate() const {return _outputFrameRate;}
340340

341341

@@ -368,16 +368,16 @@ namespace OFX {
368368
/// params and input images are exactly the same. eg: random noise generator
369369
bool isFrameVarying() const {return _frameVarying;}
370370

371-
/// pure virtuals that must be overriden
371+
/// pure virtuals that must be overridden
372372
virtual ClipInstance* getClip(const std::string& name) const;
373373

374374
/// override this to make processing abort, return 1 to abort processing
375375
virtual int abort();
376376

377-
/// override this to use your own memory instance - must inherrit from memory::instance
377+
/// override this to use your own memory instance - must inherit from memory::instance
378378
virtual Memory::Instance* newMemoryInstance(size_t nBytes);
379379

380-
// return an memory::instance calls makeMemoryInstance that can be overriden
380+
// return an memory::instance calls makeMemoryInstance that can be overridden
381381
Memory::Instance* imageMemoryAlloc(size_t nBytes);
382382

383383
/// make a clip
@@ -410,10 +410,10 @@ namespace OFX {
410410
/// overridden from Property::Notify
411411
virtual void notify(const std::string &name, bool singleValue, int indexOrN);
412412

413-
/// overridden from gethook, get the virutals for viewport size, pixel scale, background colour
413+
/// overridden from gethook, get the virtuals for viewport size, pixel scale, background colour
414414
virtual double getDoubleProperty(const std::string &name, int index) const;
415415

416-
/// overridden from gethook, get the virutals for viewport size, pixel scale, background colour
416+
/// overridden from gethook, get the virtuals for viewport size, pixel scale, background colour
417417
virtual void getDoublePropertyN(const std::string &name, double *values, int count) const;
418418

419419
/// overridden from gethook, don't know what to do
@@ -441,7 +441,7 @@ namespace OFX {
441441

442442
// The extent of the current project in canonical coordinates.
443443
// The extent is the size of the 'output' for the current project. See ProjectCoordinateSystems
444-
// for more infomation on the project extent. The extent is in canonical coordinates and only
444+
// for more information on the project extent. The extent is in canonical coordinates and only
445445
// returns the top right position, as the extent is always rooted at 0,0. For example a PAL SD
446446
// project would have an extent of 768, 576.
447447
virtual void getProjectExtent(double& xSize, double& ySize) const = 0;
@@ -611,7 +611,7 @@ namespace OFX {
611611
virtual void setDefaultClipPreferences();
612612

613613
/// Initialise the clip preferences arguments, override this to do
614-
/// stuff with wierd components etc... Calls setDefaultClipPreferences
614+
/// stuff with weird components etc... Calls setDefaultClipPreferences
615615
virtual void setupClipPreferencesArgs(Property::Set &args);
616616

617617
/// Run the clip preferences action from the effect.

HostSupport/include/ofxhInteract.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace OFX {
7676
};
7777

7878
/// a generic interact, it doesn't belong to anything in particular
79-
/// we need to generify this slighty more and remove the renderscale args
79+
/// we need to generify this further and remove the renderscale args
8080
/// into a derived class, as they only belong to image effect plugins
8181
class Instance : public Base, protected Property::GetHook {
8282
protected:
@@ -148,7 +148,7 @@ namespace OFX {
148148
// don't know what to do
149149
virtual void reset(const std::string &name);
150150

151-
/// the gethook virutals for pixel scale, background colour
151+
/// the gethook virtuals for pixel scale, background colour
152152
virtual double getDoubleProperty(const std::string &name, int index) const;
153153

154154
/// for pixel scale and background colour
@@ -161,19 +161,19 @@ namespace OFX {
161161
//
162162
// Params -
163163
//
164-
// time - the effect time at which changed occured
164+
// time - the effect time at which changed occurred
165165
// renderScale - the render scale
166166
virtual OfxStatus drawAction(OfxTime time, const OfxPointD &renderScale);
167167

168168
// interact action - kOfxInteractActionPenMotion
169169
//
170170
// Params -
171171
//
172-
// time - the effect time at which changed occured
172+
// time - the effect time at which changed occurred
173173
// renderScale - the render scale
174174
// penX - the X position
175175
// penY - the Y position
176-
// pressure - the pen pressue 0 to 1
176+
// pressure - the pen pressure 0 to 1
177177
virtual OfxStatus penMotionAction(OfxTime time,
178178
const OfxPointD &renderScale,
179179
const OfxPointD &penPos,
@@ -184,11 +184,11 @@ namespace OFX {
184184
//
185185
// Params -
186186
//
187-
// time - the effect time at which changed occured
187+
// time - the effect time at which changed occurred
188188
// renderScale - the render scale
189189
// penX - the X position
190190
// penY - the Y position
191-
// pressure - the pen pressue 0 to 1
191+
// pressure - the pen pressure 0 to 1
192192
virtual OfxStatus penUpAction(OfxTime time,
193193
const OfxPointD &renderScale,
194194
const OfxPointD &penPos,
@@ -199,11 +199,11 @@ namespace OFX {
199199
//
200200
// Params -
201201
//
202-
// time - the effect time at which changed occured
202+
// time - the effect time at which changed occurred
203203
// renderScale - the render scale
204204
// penX - the X position
205205
// penY - the Y position
206-
// pressure - the pen pressue 0 to 1
206+
// pressure - the pen pressure 0 to 1
207207
virtual OfxStatus penDownAction(OfxTime time,
208208
const OfxPointD &renderScale,
209209
const OfxPointD &penPos,
@@ -214,7 +214,7 @@ namespace OFX {
214214
//
215215
// Params -
216216
//
217-
// time - the effect time at which changed occured
217+
// time - the effect time at which changed occurred
218218
// renderScale - the render scale
219219
// key - the pressed key
220220
// keyString - the pressed key string
@@ -227,7 +227,7 @@ namespace OFX {
227227
//
228228
// Params -
229229
//
230-
// time - the effect time at which changed occured
230+
// time - the effect time at which changed occurred
231231
// renderScale - the render scale
232232
// key - the pressed key
233233
// keyString - the pressed key string
@@ -240,7 +240,7 @@ namespace OFX {
240240
//
241241
// Params -
242242
//
243-
// time - the effect time at which changed occured
243+
// time - the effect time at which changed occurred
244244
// renderScale - the render scale
245245
// key - the pressed key
246246
// keyString - the pressed key string
@@ -253,7 +253,7 @@ namespace OFX {
253253
//
254254
// Params -
255255
//
256-
// time - the effect time at which changed occured
256+
// time - the effect time at which changed occurred
257257
// renderScale - the render scale
258258
virtual OfxStatus gainFocusAction(OfxTime time,
259259
const OfxPointD &renderScale);
@@ -262,7 +262,7 @@ namespace OFX {
262262
//
263263
// Params -
264264
//
265-
// time - the effect time at which changed occured
265+
// time - the effect time at which changed occurred
266266
// renderScale - the render scale
267267
virtual OfxStatus loseFocusAction(OfxTime time,
268268
const OfxPointD &renderScale);

0 commit comments

Comments
 (0)