(state: &ActiveStreamQualityState)
| 1516 | } |
| 1517 | |
| 1518 | fn stream_quality_state_value(state: &ActiveStreamQualityState) -> Value { |
| 1519 | json_value!({ |
| 1520 | "profile": state.profile, |
| 1521 | "maxEdge": state.max_edge, |
| 1522 | "fps": state.fps, |
| 1523 | "minBitrate": state.min_bitrate, |
| 1524 | "bitsPerPixel": state.bits_per_pixel, |
| 1525 | "videoCodec": state.video_codec, |
| 1526 | }) |
| 1527 | } |
| 1528 | |
| 1529 | fn stream_quality_profile(id: &str) -> Result<StreamQualityProfile, AppError> { |
| 1530 | STREAM_QUALITY_PROFILES |