Skip to content

Commit 1e69304

Browse files
committed
Rebase to main & include new prop PropNoSpatialAwareness
- Added to ofx-props.yml - Ran gen-props.py script to update property set headers Signed-off-by: Gary Oberbrunner <[email protected]>
1 parent fbb22eb commit 1e69304

File tree

4 files changed

+156
-139
lines changed

4 files changed

+156
-139
lines changed

include/ofx-props.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ propertySets:
8888
- OfxImageEffectPluginPropOverlayInteractV2
8989
- OfxImageEffectPropColourManagementAvailableConfigs
9090
- OfxImageEffectPropColourManagementStyle
91+
- OfxImageEffectPropNoSpatialAwareness
9192
EffectInstance:
9293
write: host
9394
props:
@@ -440,6 +441,7 @@ Actions:
440441
- OfxImageEffectPropOpenGLEnabled
441442
- OfxImageEffectPropOpenGLTextureIndex
442443
- OfxImageEffectPropOpenGLTextureTarget
444+
- OfxImageEffectPropNoSpatialAwareness
443445
OfxImageEffectActionBeginSequenceRender:
444446
inArgs:
445447
- OfxImageEffectPropFrameRange
@@ -464,6 +466,7 @@ Actions:
464466
- OfxImageEffectPropOpenGLTextureIndex
465467
- OfxImageEffectPropOpenGLTextureTarget
466468
- OfxImageEffectPropInteractiveRenderStatus
469+
- OfxImageEffectPropNoSpatialAwareness
467470
outArgs:
468471
OfxImageEffectActionEndSequenceRender:
469472
inArgs:
@@ -1339,3 +1342,7 @@ properties:
13391342
OfxPropParamSetNeedsSyncing:
13401343
type: bool
13411344
dimension: 1
1345+
OfxImageEffectPropNoSpatialAwareness:
1346+
dimension: 1
1347+
type: enum
1348+
values: ['false', 'true']

openfx-cpp/include/openfx/ofxPropsBySet.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ static inline const std::map<const char *, std::vector<Prop>> prop_sets {
103103
{ "OfxOpenGLPropPixelDepth", prop_defs[PropId::OfxOpenGLPropPixelDepth], false, true, false },
104104
{ "OfxImageEffectPluginPropOverlayInteractV2", prop_defs[PropId::OfxImageEffectPluginPropOverlayInteractV2], false, true, false },
105105
{ "OfxImageEffectPropColourManagementAvailableConfigs", prop_defs[PropId::OfxImageEffectPropColourManagementAvailableConfigs], false, true, false },
106-
{ "OfxImageEffectPropColourManagementStyle", prop_defs[PropId::OfxImageEffectPropColourManagementStyle], false, true, false } } },
106+
{ "OfxImageEffectPropColourManagementStyle", prop_defs[PropId::OfxImageEffectPropColourManagementStyle], false, true, false },
107+
{ "OfxImageEffectPropNoSpatialAwareness", prop_defs[PropId::OfxImageEffectPropNoSpatialAwareness], false, true, false } } },
107108
// EffectInstance
108109
{ "EffectInstance", {
109110
{ "OfxPropType", prop_defs[PropId::OfxPropType], true, false, false },
@@ -668,6 +669,7 @@ static inline const std::map<std::array<std::string_view, 2>, std::vector<const
668669
"OfxImageEffectPropMetalCommandQueue",
669670
"OfxImageEffectPropMetalEnabled",
670671
"OfxImageEffectPropMetalRenderSupported",
672+
"OfxImageEffectPropNoSpatialAwareness",
671673
"OfxImageEffectPropOpenCLCommandQueue",
672674
"OfxImageEffectPropOpenCLEnabled",
673675
"OfxImageEffectPropOpenCLImage",
@@ -756,6 +758,7 @@ static inline const std::map<std::array<std::string_view, 2>, std::vector<const
756758
"OfxImageEffectPropMetalCommandQueue",
757759
"OfxImageEffectPropMetalEnabled",
758760
"OfxImageEffectPropMetalRenderSupported",
761+
"OfxImageEffectPropNoSpatialAwareness",
759762
"OfxImageEffectPropOpenCLCommandQueue",
760763
"OfxImageEffectPropOpenCLEnabled",
761764
"OfxImageEffectPropOpenCLImage",

openfx-cpp/include/openfx/ofxPropsMetadata.h

Lines changed: 144 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -73,143 +73,144 @@ enum class PropId {
7373
OfxImageEffectPropMetalEnabled, // 40
7474
OfxImageEffectPropMetalRenderSupported, // 41
7575
OfxImageEffectPropMultipleClipDepths, // 42
76-
OfxImageEffectPropOCIOConfig, // 43
77-
OfxImageEffectPropOCIODisplay, // 44
78-
OfxImageEffectPropOCIOView, // 45
79-
OfxImageEffectPropOpenCLCommandQueue, // 46
80-
OfxImageEffectPropOpenCLEnabled, // 47
81-
OfxImageEffectPropOpenCLImage, // 48
82-
OfxImageEffectPropOpenCLRenderSupported, // 49
83-
OfxImageEffectPropOpenCLSupported, // 50
84-
OfxImageEffectPropOpenGLEnabled, // 51
85-
OfxImageEffectPropOpenGLRenderSupported, // 52
86-
OfxImageEffectPropOpenGLTextureIndex, // 53
87-
OfxImageEffectPropOpenGLTextureTarget, // 54
88-
OfxImageEffectPropPixelAspectRatio, // 55
89-
OfxImageEffectPropPixelDepth, // 56
90-
OfxImageEffectPropPluginHandle, // 57
91-
OfxImageEffectPropPreMultiplication, // 58
92-
OfxImageEffectPropProjectExtent, // 59
93-
OfxImageEffectPropProjectOffset, // 60
94-
OfxImageEffectPropProjectSize, // 61
95-
OfxImageEffectPropRegionOfDefinition, // 62
96-
OfxImageEffectPropRegionOfInterest, // 63
97-
OfxImageEffectPropRenderQualityDraft, // 64
98-
OfxImageEffectPropRenderScale, // 65
99-
OfxImageEffectPropRenderWindow, // 66
100-
OfxImageEffectPropSequentialRenderStatus, // 67
101-
OfxImageEffectPropSetableFielding, // 68
102-
OfxImageEffectPropSetableFrameRate, // 69
103-
OfxImageEffectPropSupportedComponents, // 70
104-
OfxImageEffectPropSupportedContexts, // 71
105-
OfxImageEffectPropSupportedPixelDepths, // 72
106-
OfxImageEffectPropSupportsMultiResolution, // 73
107-
OfxImageEffectPropSupportsMultipleClipPARs, // 74
108-
OfxImageEffectPropSupportsOverlays, // 75
109-
OfxImageEffectPropSupportsTiles, // 76
110-
OfxImageEffectPropTemporalClipAccess, // 77
111-
OfxImageEffectPropUnmappedFrameRange, // 78
112-
OfxImageEffectPropUnmappedFrameRate, // 79
113-
OfxImagePropBounds, // 80
114-
OfxImagePropData, // 81
115-
OfxImagePropField, // 82
116-
OfxImagePropPixelAspectRatio, // 83
117-
OfxImagePropRegionOfDefinition, // 84
118-
OfxImagePropRowBytes, // 85
119-
OfxImagePropUniqueIdentifier, // 86
120-
OfxInteractPropBackgroundColour, // 87
121-
OfxInteractPropBitDepth, // 88
122-
OfxInteractPropDrawContext, // 89
123-
OfxInteractPropHasAlpha, // 90
124-
OfxInteractPropPenPosition, // 91
125-
OfxInteractPropPenPressure, // 92
126-
OfxInteractPropPenViewportPosition, // 93
127-
OfxInteractPropPixelScale, // 94
128-
OfxInteractPropSlaveToParam, // 95
129-
OfxInteractPropSuggestedColour, // 96
130-
OfxInteractPropViewport, // 97
131-
OfxOpenGLPropPixelDepth, // 98
132-
OfxParamHostPropMaxPages, // 99
133-
OfxParamHostPropMaxParameters, // 100
134-
OfxParamHostPropPageRowColumnCount, // 101
135-
OfxParamHostPropSupportsBooleanAnimation, // 102
136-
OfxParamHostPropSupportsChoiceAnimation, // 103
137-
OfxParamHostPropSupportsCustomAnimation, // 104
138-
OfxParamHostPropSupportsCustomInteract, // 105
139-
OfxParamHostPropSupportsParametricAnimation, // 106
140-
OfxParamHostPropSupportsStrChoice, // 107
141-
OfxParamHostPropSupportsStrChoiceAnimation, // 108
142-
OfxParamHostPropSupportsStringAnimation, // 109
143-
OfxParamPropAnimates, // 110
144-
OfxParamPropCacheInvalidation, // 111
145-
OfxParamPropCanUndo, // 112
146-
OfxParamPropChoiceEnum, // 113
147-
OfxParamPropChoiceOption, // 114
148-
OfxParamPropChoiceOrder, // 115
149-
OfxParamPropCustomCallbackV1, // 116
150-
OfxParamPropCustomValue, // 117
151-
OfxParamPropDataPtr, // 118
152-
OfxParamPropDefault, // 119
153-
OfxParamPropDefaultCoordinateSystem, // 120
154-
OfxParamPropDigits, // 121
155-
OfxParamPropDimensionLabel, // 122
156-
OfxParamPropDisplayMax, // 123
157-
OfxParamPropDisplayMin, // 124
158-
OfxParamPropDoubleType, // 125
159-
OfxParamPropEnabled, // 126
160-
OfxParamPropEvaluateOnChange, // 127
161-
OfxParamPropGroupOpen, // 128
162-
OfxParamPropHasHostOverlayHandle, // 129
163-
OfxParamPropHint, // 130
164-
OfxParamPropIncrement, // 131
165-
OfxParamPropInteractMinimumSize, // 132
166-
OfxParamPropInteractPreferedSize, // 133
167-
OfxParamPropInteractSize, // 134
168-
OfxParamPropInteractSizeAspect, // 135
169-
OfxParamPropInteractV1, // 136
170-
OfxParamPropInterpolationAmount, // 137
171-
OfxParamPropInterpolationTime, // 138
172-
OfxParamPropIsAnimating, // 139
173-
OfxParamPropIsAutoKeying, // 140
174-
OfxParamPropMax, // 141
175-
OfxParamPropMin, // 142
176-
OfxParamPropPageChild, // 143
177-
OfxParamPropParametricDimension, // 144
178-
OfxParamPropParametricInteractBackground, // 145
179-
OfxParamPropParametricRange, // 146
180-
OfxParamPropParametricUIColour, // 147
181-
OfxParamPropParent, // 148
182-
OfxParamPropPersistant, // 149
183-
OfxParamPropPluginMayWrite, // 150
184-
OfxParamPropScriptName, // 151
185-
OfxParamPropSecret, // 152
186-
OfxParamPropShowTimeMarker, // 153
187-
OfxParamPropStringFilePathExists, // 154
188-
OfxParamPropStringMode, // 155
189-
OfxParamPropType, // 156
190-
OfxPluginPropFilePath, // 157
191-
OfxPluginPropParamPageOrder, // 158
192-
OfxPropAPIVersion, // 159
193-
OfxPropChangeReason, // 160
194-
OfxPropEffectInstance, // 161
195-
OfxPropHostOSHandle, // 162
196-
OfxPropIcon, // 163
197-
OfxPropInstanceData, // 164
198-
OfxPropIsInteractive, // 165
199-
OfxPropLabel, // 166
200-
OfxPropLongLabel, // 167
201-
OfxPropName, // 168
202-
OfxPropParamSetNeedsSyncing, // 169
203-
OfxPropPluginDescription, // 170
204-
OfxPropShortLabel, // 171
205-
OfxPropTime, // 172
206-
OfxPropType, // 173
207-
OfxPropVersion, // 174
208-
OfxPropVersionLabel, // 175
209-
OfxParamPropUseHostOverlayHandle, // 176 (orig name: OfxParamPropUseHostOverlayHandle)
210-
OfxPropKeyString, // 177 (orig name: OfxPropKeyString)
211-
OfxPropKeySym, // 178 (orig name: OfxPropKeySym)
212-
NProps // 179
76+
OfxImageEffectPropNoSpatialAwareness, // 43
77+
OfxImageEffectPropOCIOConfig, // 44
78+
OfxImageEffectPropOCIODisplay, // 45
79+
OfxImageEffectPropOCIOView, // 46
80+
OfxImageEffectPropOpenCLCommandQueue, // 47
81+
OfxImageEffectPropOpenCLEnabled, // 48
82+
OfxImageEffectPropOpenCLImage, // 49
83+
OfxImageEffectPropOpenCLRenderSupported, // 50
84+
OfxImageEffectPropOpenCLSupported, // 51
85+
OfxImageEffectPropOpenGLEnabled, // 52
86+
OfxImageEffectPropOpenGLRenderSupported, // 53
87+
OfxImageEffectPropOpenGLTextureIndex, // 54
88+
OfxImageEffectPropOpenGLTextureTarget, // 55
89+
OfxImageEffectPropPixelAspectRatio, // 56
90+
OfxImageEffectPropPixelDepth, // 57
91+
OfxImageEffectPropPluginHandle, // 58
92+
OfxImageEffectPropPreMultiplication, // 59
93+
OfxImageEffectPropProjectExtent, // 60
94+
OfxImageEffectPropProjectOffset, // 61
95+
OfxImageEffectPropProjectSize, // 62
96+
OfxImageEffectPropRegionOfDefinition, // 63
97+
OfxImageEffectPropRegionOfInterest, // 64
98+
OfxImageEffectPropRenderQualityDraft, // 65
99+
OfxImageEffectPropRenderScale, // 66
100+
OfxImageEffectPropRenderWindow, // 67
101+
OfxImageEffectPropSequentialRenderStatus, // 68
102+
OfxImageEffectPropSetableFielding, // 69
103+
OfxImageEffectPropSetableFrameRate, // 70
104+
OfxImageEffectPropSupportedComponents, // 71
105+
OfxImageEffectPropSupportedContexts, // 72
106+
OfxImageEffectPropSupportedPixelDepths, // 73
107+
OfxImageEffectPropSupportsMultiResolution, // 74
108+
OfxImageEffectPropSupportsMultipleClipPARs, // 75
109+
OfxImageEffectPropSupportsOverlays, // 76
110+
OfxImageEffectPropSupportsTiles, // 77
111+
OfxImageEffectPropTemporalClipAccess, // 78
112+
OfxImageEffectPropUnmappedFrameRange, // 79
113+
OfxImageEffectPropUnmappedFrameRate, // 80
114+
OfxImagePropBounds, // 81
115+
OfxImagePropData, // 82
116+
OfxImagePropField, // 83
117+
OfxImagePropPixelAspectRatio, // 84
118+
OfxImagePropRegionOfDefinition, // 85
119+
OfxImagePropRowBytes, // 86
120+
OfxImagePropUniqueIdentifier, // 87
121+
OfxInteractPropBackgroundColour, // 88
122+
OfxInteractPropBitDepth, // 89
123+
OfxInteractPropDrawContext, // 90
124+
OfxInteractPropHasAlpha, // 91
125+
OfxInteractPropPenPosition, // 92
126+
OfxInteractPropPenPressure, // 93
127+
OfxInteractPropPenViewportPosition, // 94
128+
OfxInteractPropPixelScale, // 95
129+
OfxInteractPropSlaveToParam, // 96
130+
OfxInteractPropSuggestedColour, // 97
131+
OfxInteractPropViewport, // 98
132+
OfxOpenGLPropPixelDepth, // 99
133+
OfxParamHostPropMaxPages, // 100
134+
OfxParamHostPropMaxParameters, // 101
135+
OfxParamHostPropPageRowColumnCount, // 102
136+
OfxParamHostPropSupportsBooleanAnimation, // 103
137+
OfxParamHostPropSupportsChoiceAnimation, // 104
138+
OfxParamHostPropSupportsCustomAnimation, // 105
139+
OfxParamHostPropSupportsCustomInteract, // 106
140+
OfxParamHostPropSupportsParametricAnimation, // 107
141+
OfxParamHostPropSupportsStrChoice, // 108
142+
OfxParamHostPropSupportsStrChoiceAnimation, // 109
143+
OfxParamHostPropSupportsStringAnimation, // 110
144+
OfxParamPropAnimates, // 111
145+
OfxParamPropCacheInvalidation, // 112
146+
OfxParamPropCanUndo, // 113
147+
OfxParamPropChoiceEnum, // 114
148+
OfxParamPropChoiceOption, // 115
149+
OfxParamPropChoiceOrder, // 116
150+
OfxParamPropCustomCallbackV1, // 117
151+
OfxParamPropCustomValue, // 118
152+
OfxParamPropDataPtr, // 119
153+
OfxParamPropDefault, // 120
154+
OfxParamPropDefaultCoordinateSystem, // 121
155+
OfxParamPropDigits, // 122
156+
OfxParamPropDimensionLabel, // 123
157+
OfxParamPropDisplayMax, // 124
158+
OfxParamPropDisplayMin, // 125
159+
OfxParamPropDoubleType, // 126
160+
OfxParamPropEnabled, // 127
161+
OfxParamPropEvaluateOnChange, // 128
162+
OfxParamPropGroupOpen, // 129
163+
OfxParamPropHasHostOverlayHandle, // 130
164+
OfxParamPropHint, // 131
165+
OfxParamPropIncrement, // 132
166+
OfxParamPropInteractMinimumSize, // 133
167+
OfxParamPropInteractPreferedSize, // 134
168+
OfxParamPropInteractSize, // 135
169+
OfxParamPropInteractSizeAspect, // 136
170+
OfxParamPropInteractV1, // 137
171+
OfxParamPropInterpolationAmount, // 138
172+
OfxParamPropInterpolationTime, // 139
173+
OfxParamPropIsAnimating, // 140
174+
OfxParamPropIsAutoKeying, // 141
175+
OfxParamPropMax, // 142
176+
OfxParamPropMin, // 143
177+
OfxParamPropPageChild, // 144
178+
OfxParamPropParametricDimension, // 145
179+
OfxParamPropParametricInteractBackground, // 146
180+
OfxParamPropParametricRange, // 147
181+
OfxParamPropParametricUIColour, // 148
182+
OfxParamPropParent, // 149
183+
OfxParamPropPersistant, // 150
184+
OfxParamPropPluginMayWrite, // 151
185+
OfxParamPropScriptName, // 152
186+
OfxParamPropSecret, // 153
187+
OfxParamPropShowTimeMarker, // 154
188+
OfxParamPropStringFilePathExists, // 155
189+
OfxParamPropStringMode, // 156
190+
OfxParamPropType, // 157
191+
OfxPluginPropFilePath, // 158
192+
OfxPluginPropParamPageOrder, // 159
193+
OfxPropAPIVersion, // 160
194+
OfxPropChangeReason, // 161
195+
OfxPropEffectInstance, // 162
196+
OfxPropHostOSHandle, // 163
197+
OfxPropIcon, // 164
198+
OfxPropInstanceData, // 165
199+
OfxPropIsInteractive, // 166
200+
OfxPropLabel, // 167
201+
OfxPropLongLabel, // 168
202+
OfxPropName, // 169
203+
OfxPropParamSetNeedsSyncing, // 170
204+
OfxPropPluginDescription, // 171
205+
OfxPropShortLabel, // 172
206+
OfxPropTime, // 173
207+
OfxPropType, // 174
208+
OfxPropVersion, // 175
209+
OfxPropVersionLabel, // 176
210+
OfxParamPropUseHostOverlayHandle, // 177 (orig name: OfxParamPropUseHostOverlayHandle)
211+
OfxPropKeyString, // 178 (orig name: OfxPropKeyString)
212+
OfxPropKeySym, // 179 (orig name: OfxPropKeySym)
213+
NProps // 180
213214
}; // PropId
214215

215216
// Separate arrays for enum-values for enum props, to keep everything constexpr
@@ -240,6 +241,8 @@ constexpr std::array OfxImageEffectPropFieldToRender =
240241
{"OfxImageFieldNone","OfxImageFieldBoth","OfxImageFieldLower","OfxImageFieldUpper"};
241242
constexpr std::array OfxImageEffectPropMetalRenderSupported =
242243
{"false","true","needed"};
244+
constexpr std::array OfxImageEffectPropNoSpatialAwareness =
245+
{"false","true"};
243246
constexpr std::array OfxImageEffectPropOpenCLRenderSupported =
244247
{"false","true","needed"};
245248
constexpr std::array OfxImageEffectPropOpenCLSupported =
@@ -393,6 +396,8 @@ static inline constexpr PropDefsArray<PropDef> prop_defs = {
393396
{PropType::Enum}, 1, 1, prop_enum_values::OfxImageEffectPropMetalRenderSupported.data(), prop_enum_values::OfxImageEffectPropMetalRenderSupported.size()},
394397
{ "OfxImageEffectPropMultipleClipDepths", PropId::OfxImageEffectPropMultipleClipDepths,
395398
{PropType::Bool}, 1, 1, nullptr, 0},
399+
{ "OfxImageEffectPropNoSpatialAwareness", PropId::OfxImageEffectPropNoSpatialAwareness,
400+
{PropType::Enum}, 1, 1, prop_enum_values::OfxImageEffectPropNoSpatialAwareness.data(), prop_enum_values::OfxImageEffectPropNoSpatialAwareness.size()},
396401
{ "OfxImageEffectPropOCIOConfig", PropId::OfxImageEffectPropOCIOConfig,
397402
{PropType::String}, 1, 1, nullptr, 0},
398403
{ "OfxImageEffectPropOCIODisplay", PropId::OfxImageEffectPropOCIODisplay,
@@ -727,6 +732,7 @@ DEFINE_PROP_TRAITS(OfxImageEffectPropMetalCommandQueue, void *, false);
727732
DEFINE_PROP_TRAITS(OfxImageEffectPropMetalEnabled, bool, false);
728733
DEFINE_PROP_TRAITS(OfxImageEffectPropMetalRenderSupported, const char *, false);
729734
DEFINE_PROP_TRAITS(OfxImageEffectPropMultipleClipDepths, bool, false);
735+
DEFINE_PROP_TRAITS(OfxImageEffectPropNoSpatialAwareness, const char *, false);
730736
DEFINE_PROP_TRAITS(OfxImageEffectPropOCIOConfig, const char *, false);
731737
DEFINE_PROP_TRAITS(OfxImageEffectPropOCIODisplay, const char *, false);
732738
DEFINE_PROP_TRAITS(OfxImageEffectPropOCIOView, const char *, false);
@@ -912,6 +918,7 @@ static_assert(string_view("OfxImageEffectPropMetalCommandQueue") == string_view(
912918
static_assert(string_view("OfxImageEffectPropMetalEnabled") == string_view(kOfxImageEffectPropMetalEnabled));
913919
static_assert(string_view("OfxImageEffectPropMetalRenderSupported") == string_view(kOfxImageEffectPropMetalRenderSupported));
914920
static_assert(string_view("OfxImageEffectPropMultipleClipDepths") == string_view(kOfxImageEffectPropSupportsMultipleClipDepths));
921+
static_assert(string_view("OfxImageEffectPropNoSpatialAwareness") == string_view(kOfxImageEffectPropNoSpatialAwareness));
915922
static_assert(string_view("OfxImageEffectPropOCIOConfig") == string_view(kOfxImageEffectPropOCIOConfig));
916923
static_assert(string_view("OfxImageEffectPropOCIODisplay") == string_view(kOfxImageEffectPropOCIODisplay));
917924
static_assert(string_view("OfxImageEffectPropOCIOView") == string_view(kOfxImageEffectPropOCIOView));

scripts/gen-props.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def gen_props_by_set(props_by_set, props_by_action, outfile_path: Path):
447447
#include <ofxDrawSuite.h>
448448
#include <ofxParametricParam.h>
449449
#include <ofxKeySyms.h>
450-
#include <ofxPropsMetadata.h>
450+
#include "ofxPropsMetadata.h"
451451
// #include <ofxOld.h>
452452
453453
namespace openfx {

0 commit comments

Comments
 (0)