| 336 | } |
| 337 | |
| 338 | void ColorMap::SetJson(const std::string value) |
| 339 | { |
| 340 | try { |
| 341 | const Json::Value root = openshot::stringToJson(value); |
| 342 | SetJsonValue(root); |
| 343 | } |
| 344 | catch (...) { |
| 345 | throw InvalidJSON("Invalid JSON for ColorMap effect"); |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | void ColorMap::SetJsonValue(const Json::Value root) |
| 350 | { |
nothing calls this directly
no test coverage detected