MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / PropertiesJSON

Method PropertiesJSON

src/effects/Hue.cpp:184–197  ·  view source on GitHub ↗

Get all properties for a specific frame

Source from the content-addressed store, hash-verified

182
183// Get all properties for a specific frame
184std::string Hue::PropertiesJSON(int64_t requested_frame) const {
185
186 // Generate JSON properties list
187 Json::Value root = BasePropertiesJSON(requested_frame);
188
189 // Keyframes
190 root["hue"] = add_property_json("Hue", hue.GetValue(requested_frame), "float", "", &hue, 0.0, 1.0, false, requested_frame);
191 root["mask_mode"] = add_property_json("Mask Mode", mask_mode, "int", "", NULL, 0, 1, false, requested_frame);
192 root["mask_mode"]["choices"].append(add_property_choice_json("Limit to Mask", HUE_MASK_LIMIT_TO_AREA, mask_mode));
193 root["mask_mode"]["choices"].append(add_property_choice_json("Vary Strength", HUE_MASK_VARY_STRENGTH, mask_mode));
194
195 // Return formatted string
196 return root.toStyledString();
197}

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected