MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / validate_camera_rotation

Method validate_camera_rotation

OpenHD/ohd_video/src/validate_settings.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool openhd::validate_camera_rotation(int value) {
41 const bool ret = value == 0 || value == 90 || value == 180 || value == 270;
42 if (!ret) {
43 openhd::log::get_default()->warn("Invalid camera_rotation: {}", value);
44 }
45 return ret;
46}
47
48bool openhd::validate_rpi_keyframe_interval(int value) {
49 const bool ret = value >= -1 && value < 2147483647;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected