Lines Matching +full:capture +full:- +full:exit
13 VERSION_HEADER = bytearray('MesaOverlayControlVersion', 'utf-8')
14 DEVICE_NAME_HEADER = bytearray('DeviceName', 'utf-8')
15 MESA_VERSION_HEADER = bytearray('MesaVersion', 'utf-8')
27 sys.exit(1)
40 - None on error or disconnection
41 - bytes() (empty) on timeout
69 MSGBEGIN = bytes(':', 'utf-8')[0]
70 MSGEND = bytes(';', 'utf-8')[0]
71 MSGSEP = bytes('=', 'utf-8')[0]
88 - None on error or disconnection
89 - bytes() (empty) on timeout
127 ncmds -= 1
146 elapsed = time.monotonic() - now
147 remaining = max(0, remaining - elapsed)
172 name = param.decode('utf-8')
174 mesa_version = param.decode('utf-8')
178 sys.exit(1)
187 if args.cmd == 'start-capture':
188 conn.send(bytearray(':capture=1;', 'utf-8'))
189 elif args.cmd == 'stop-capture':
190 conn.send(bytearray(':capture=0;', 'utf-8'))
194 parser.add_argument('--info', action='store_true', help='Print info from socket')
195 parser.add_argument('--socket', '-s', type=str, help='Path to socket')
198 commands.add_parser('start-capture')
199 commands.add_parser('stop-capture')