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)
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)
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)
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)
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)