Skip to content

Commit ab87c05

Browse files
authored
Merge branch 'main' into typos-examples
2 parents 9ffc9a0 + 0025c5c commit ab87c05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+302
-345
lines changed

Documentation/build.sh

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,37 +22,44 @@ if [ ! -f genPropertiesReference.py ] ; then
2222
exit 1
2323
fi
2424

25-
if ! command -v sphinx-build > /dev/null 2>&1 ; then
26-
echo "Python can't import required modules; did you set up the prereqs?"
27-
echo "Check the README.md."
28-
exit 1
25+
if command -v uvx > /dev/null 2>&1; then
26+
USE_UV=1
27+
SPHINX_BUILD="uv run --with-requirements pipreq.txt sphinx-build"
28+
UV_RUN="uv run"
29+
else
30+
USE_UV=
31+
SPHINX_BUILD="sphinx-build"
32+
UV_RUN=""
2933
fi
3034

3135
rm -rf build
3236

3337
# Generate references
3438
EXPECTED_ERRS="unable to resolve reference|explicit link request|found in multiple"
35-
python genPropertiesReference.py \
39+
$UV_RUN python genPropertiesReference.py \
3640
-i ../include -o sources/Reference/ofxPropertiesReference.rst -r \
3741
> /tmp/ofx-doc-build.out 2>&1
38-
egrep -v "$EXPECTED_ERRS" /tmp/ofx-doc-build.out || true
42+
grep -v -E "$EXPECTED_ERRS" /tmp/ofx-doc-build.out || true
3943

4044
# Build the Doxygen docs
4145
EXPECTED_ERRS="malformed hyperlink target|Duplicate explicit|Definition list ends|unable to resolve|could not be resolved"
4246
cd ../include
4347
doxygen ofx.doxy > /tmp/ofx-doc-build.out 2>&1
44-
egrep -v "$EXPECTED_ERRS" /tmp/ofx-doc-build.out || true
48+
grep -v -E "$EXPECTED_ERRS" /tmp/ofx-doc-build.out || true
4549
cd -
4650

4751
# Use breathe.apidoc to collect the Doxygen API docs
4852
rm -rf sources/Reference/api
49-
python -m breathe.apidoc -p 'ofx_reference' -m --force -g class,interface,struct,union,file,namespace,group -o sources/Reference/api doxygen_build/xml
50-
53+
if [[ $USE_UV ]]; then
54+
$UV_RUN --with breathe python -m breathe.apidoc -p 'ofx_reference' -m --force -g class,interface,struct,union,file,namespace,group -o sources/Reference/api doxygen_build/xml
55+
else
56+
python -m breathe.apidoc -p 'ofx_reference' -m --force -g class,interface,struct,union,file,namespace,group -o sources/Reference/api doxygen_build/xml
57+
fi
5158

5259
# Build the Sphinx docs
5360
EXPECTED_ERRS='Explicit markup ends without|Duplicate C.*declaration|Declaration is|cpp:func targets a member|undefined label'
54-
sphinx-build -b html sources build > /tmp/ofx-doc-build.out 2>&1
55-
egrep -v "$EXPECTED_ERRS" /tmp/ofx-doc-build.out || true
61+
$SPHINX_BUILD -b html sources build > /tmp/ofx-doc-build.out 2>&1
62+
grep -v -E "$EXPECTED_ERRS" /tmp/ofx-doc-build.out || true
5663

5764
echo "Documentation build complete."
5865
echo "Open file:///$PWD/build/index.html in your browser"

Documentation/genPropertiesReference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22

3-
import os,sys, getopt,re
3+
import os,sys,getopt
44

55
badlyNamedProperties = ["kOfxImageEffectFrameVarying", "kOfxImageEffectPluginRenderThreadSafety"]
66

Documentation/sources/Reference/ofxPropertiesReference.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,7 @@ Properties Reference
4747

4848
.. doxygendefine:: kOfxImageEffectPropColourManagementAvailableConfigs
4949

50-
.. doxygendefine:: kOfxImageEffectColourManagementBasic
51-
52-
.. doxygendefine:: kOfxImageEffectColourManagementConfig
53-
54-
.. doxygendefine:: kOfxImageEffectColourManagementCore
55-
56-
.. doxygendefine:: kOfxImageEffectColourManagementFull
57-
58-
.. doxygendefine:: kOfxImageEffectColourManagementNone
59-
60-
.. doxygendefine:: kOfxImageEffectColourManagementOCIO
50+
.. doxygendefine:: kOfxImageEffectPropColourManagementConfig
6151

6252
.. doxygendefine:: kOfxImageEffectPropColourManagementStyle
6353

@@ -93,6 +83,8 @@ Properties Reference
9383

9484
.. doxygendefine:: kOfxImageEffectPropMetalRenderSupported
9585

86+
.. doxygendefine:: kOfxImageEffectPropNoSpatialAwareness
87+
9688
.. doxygendefine:: kOfxImageEffectPropOCIOConfig
9789

9890
.. doxygendefine:: kOfxImageEffectPropOCIODisplay

Documentation/sources/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
import subprocess, os, shutil
1313
project = 'OpenFX'
14-
copyright = '2024, Contributors to the OpenFX Project'
14+
copyright = '''2025, OpenFX a Series of LF Projects, LLC.
15+
For web site terms of use, trademark policy and other project policies please see https://lfprojects.org/'''
1516
author = 'Contributors to the OpenFX Project'
16-
release = '1.4'
17+
release = '1.5'
1718

1819
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
1920
# -- General configuration ---------------------------------------------------

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) -

0 commit comments

Comments
 (0)