MCPcopy Index your code
hub / github.com/GStreamer/gst-python / main

Function main

old_examples/bps.py:103–117  ·  view source on GitHub ↗

GStreamer Buffers-Per-Second tester

(args)

Source from the content-addressed store, hash-verified

101 self.test()
102
103def main(args):
104 "GStreamer Buffers-Per-Second tester"
105
106 if len(args) < 2:
107 print 'usage: %s buffers' % args[0]
108 return 1
109
110 bps = BPS()
111
112 buffers = int(args[1])
113 if buffers < 1:
114 print 'buffers must be higher than 0'
115 return
116
117 bps.run(buffers)
118
119if __name__ == '__main__':
120 sys.exit(main(sys.argv))

Callers 1

bps.pyFile · 0.70

Calls 2

runMethod · 0.95
BPSClass · 0.85

Tested by

no test coverage detected