Get all properties for a specific frame
| 192 | |
| 193 | // Get all properties for a specific frame |
| 194 | std::string Pixelate::PropertiesJSON(int64_t requested_frame) const { |
| 195 | |
| 196 | // Generate JSON properties list |
| 197 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 198 | |
| 199 | // Keyframes |
| 200 | root["pixelization"] = add_property_json("Pixelization", pixelization.GetValue(requested_frame), "float", "", &pixelization, 0.0, 0.9999, false, requested_frame); |
| 201 | root["left"] = add_property_json("Left Margin", left.GetValue(requested_frame), "float", "", &left, 0.0, 1.0, false, requested_frame); |
| 202 | root["top"] = add_property_json("Top Margin", top.GetValue(requested_frame), "float", "", &top, 0.0, 1.0, false, requested_frame); |
| 203 | root["right"] = add_property_json("Right Margin", right.GetValue(requested_frame), "float", "", &right, 0.0, 1.0, false, requested_frame); |
| 204 | root["bottom"] = add_property_json("Bottom Margin", bottom.GetValue(requested_frame), "float", "", &bottom, 0.0, 1.0, false, requested_frame); |
| 205 | root["mask_mode"] = add_property_json("Mask Mode", mask_mode, "int", "", NULL, 0, 1, false, requested_frame); |
| 206 | root["mask_mode"]["choices"].append(add_property_choice_json("Limit to Mask", PIXELATE_MASK_LIMIT_TO_AREA, mask_mode)); |
| 207 | root["mask_mode"]["choices"].append(add_property_choice_json("Vary Strength", PIXELATE_MASK_VARY_STRENGTH, mask_mode)); |
| 208 | |
| 209 | // Return formatted string |
| 210 | return root.toStyledString(); |
| 211 | } |