Пример #1
0
 def write_process():
     testdata = [[x * y for x in range(width)] for y in range(height)]
     yield from write_frame_to_stream(input, testdata, pause=True)
     yield from write_frame_to_stream(input, testdata, pause=True)
     yield from write_frame_to_stream(input, testdata, pause=True)
     yield Passive()
     while True:
         yield from write_to_stream(input,
                                    line_last=0,
                                    frame_last=0,
                                    payload=0)
Пример #2
0
 def write_process():
     yield from write_frame_to_stream(input, testdata, pause=True)
     yield Passive()
     while True:
         yield from write_to_stream(input,
                                    line_last=0,
                                    frame_last=0,
                                    payload=0)
Пример #3
0
 def write_process():
     for i in range(2):
         yield from write_frame_to_stream(input, image, pause=False)
     yield Passive()
     yield from do_nothing(100)
Пример #4
0
 def write_process():
     yield from write_frame_to_stream(input, image, pause=False, timeout=10000)
     yield Passive()
     while True:
         yield from write_frame_to_stream(input, image, pause=False, timeout=10000)
Пример #5
0
 def write_process():
     yield from write_frame_to_stream(input, image, pause=False)
     yield Passive()
     yield from write_frame_to_stream(input, image, pause=False)
     while True:
         yield from write_to_stream(input, line_last=0, frame_last=0, payload=0)