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

Method PropertiesJSON

src/effects/Deinterlace.cpp:146–158  ·  view source on GitHub ↗

Get all properties for a specific frame

Source from the content-addressed store, hash-verified

144
145// Get all properties for a specific frame
146std::string Deinterlace::PropertiesJSON(int64_t requested_frame) const {
147
148 // Generate JSON properties list
149 Json::Value root = BasePropertiesJSON(requested_frame);
150
151 // Add Is Odd Frame choices (dropdown style)
152 root["isOdd"] = add_property_json("Is Odd Frame", isOdd, "bool", "", NULL, 0, 1, false, requested_frame);
153 root["isOdd"]["choices"].append(add_property_choice_json("Yes", true, isOdd));
154 root["isOdd"]["choices"].append(add_property_choice_json("No", false, isOdd));
155
156 // Return formatted string
157 return root.toStyledString();
158}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected