Method
_configureStream
(self, frame_width, frame_height, color_format, frame_rate)
Source from the content-addressed store, hash-verified
| 128 | |
| 129 | # Configure video stream |
| 130 | def _configureStream(self, frame_width, frame_height, color_format, frame_rate): |
| 131 | if (frame_width == 0 or frame_height == 0 or frame_rate == 0): |
| 132 | return False |
| 133 | |
| 134 | self.resolution = (frame_width, frame_height) |
| 135 | self.color_format = color_format |
| 136 | self.frame_rate = frame_rate |
| 137 | |
| 138 | return True |
| 139 | |
| 140 | # Enable video stream |
| 141 | def _enableStream(self, mode): |
Tested by
no test coverage detected