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

Method SetJsonValue

src/ImageReader.cpp:151–164  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

149
150// Load Json::Value into this object
151void ImageReader::SetJsonValue(const Json::Value root) {
152
153 // Set parent data
154 ReaderBase::SetJsonValue(root);
155
156 // Set data from Json (if key is found)
157 if (!root["path"].isNull())
158 path = root["path"].asString();
159
160 if (is_open) {
161 Close();
162 Open();
163 }
164}
165
166#endif //USE_IMAGEMAGICK

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected