class documentation
class PicameraStreamOutput(Output): (source)
Constructor: PicameraStreamOutput(stream, portal)
An Output class that sends frames to a stream.
| Method | __init__ |
Create an output that puts frames in an MJPEGStream. |
| Method | outputframe |
Add a frame to the stream's ringbuffer. |
| Instance Variable | portal |
Undocumented |
| Instance Variable | stream |
Undocumented |
Create an output that puts frames in an MJPEGStream.
We need to pass the stream object, and also the blocking portal, because new frame notifications happen in the anyio event loop and frames are sent from a thread. The blocking portal enables thread-to-async communication.