MCPcopy Create free account
hub / github.com/ARM-software/AVH / configureStream

Method configureStream

interface/vstream/python/vsi_video.py:125–139  ·  view source on GitHub ↗

Configure the video stream parameters on the server. Args: frame_width: Width of the video frame. frame_height: Height of the video frame. frame_rate: Frame rate in frames per second. color_format: Color format code. Returns:

(self, frame_width, frame_height, frame_rate, color_format)

Source from the content-addressed store, hash-verified

123 return filename_valid
124
125 def configureStream(self, frame_width, frame_height, frame_rate, color_format):
126 """
127 Configure the video stream parameters on the server.
128 Args:
129 frame_width: Width of the video frame.
130 frame_height: Height of the video frame.
131 frame_rate: Frame rate in frames per second.
132 color_format: Color format code.
133 Returns:
134 True if configuration is valid, False otherwise.
135 """
136 self.conn.send([self.STREAM_CONFIGURE, frame_width, frame_height, frame_rate, color_format])
137 configuration_valid = self.conn.recv()
138
139 return configuration_valid
140
141 def enableStream(self):
142 """

Callers 1

wrCONTROLFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected