MCPcopy Index your code
hub / github.com/SpectacularAI/sdk / recordFrame

Method recordFrame

python/cli/visualization/visualizer.py:235–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 self.recordPipe = subprocess.Popen(cmd, stdin=subprocess.PIPE, shell=True)
234
235 def recordFrame(self):
236 buffer = glReadPixels(0, 0, self.resolution[0], self.resolution[1], GL_RGB, GL_UNSIGNED_BYTE)
237 self.recordPipe.stdin.write(buffer)
238
239class Visualizer:
240 def __init__(self, args=VisualizerArgs()):

Callers 1

__renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected