Get all properties for a specific frame
| 237 | |
| 238 | // Get all properties for a specific frame |
| 239 | std::string Brightness::PropertiesJSON(int64_t requested_frame) const { |
| 240 | |
| 241 | // Generate JSON properties list |
| 242 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 243 | |
| 244 | // Keyframes |
| 245 | root["brightness"] = add_property_json("Brightness", brightness.GetValue(requested_frame), "float", "", &brightness, -1.0, 1.0, false, requested_frame); |
| 246 | root["contrast"] = add_property_json("Contrast", contrast.GetValue(requested_frame), "float", "", &contrast, -128, 128.0, false, requested_frame); |
| 247 | root["mask_mode"] = add_property_json("Mask Mode", mask_mode, "int", "", NULL, 0, 1, false, requested_frame); |
| 248 | root["mask_mode"]["choices"].append(add_property_choice_json("Limit to Mask", BRIGHTNESS_MASK_LIMIT_TO_AREA, mask_mode)); |
| 249 | root["mask_mode"]["choices"].append(add_property_choice_json("Vary Strength", BRIGHTNESS_MASK_VARY_STRENGTH, mask_mode)); |
| 250 | |
| 251 | // Return formatted string |
| 252 | return root.toStyledString(); |
| 253 | } |