Mother of Toiletseat Capture / Processing library
A 2 channel multi threaded processor framework. Uses Capture devices as inputs, codecs as transforms, and provides an interface to receive the end results.
- A processor is created.
- A graph is created and the ISampleInput of the processor is given to the graph ISampleGrabber callback handlers.
- Codecs are wrapped by an ISampleTransform impl and given to the processor.
- After starting, the samples are queued up from the capture graph.
- Two threads begin compressing the two channels, and passing the results to an output queue.
- A third thread pulls the compressed data packets from the output ques, and passes them to the user ISampleInput implementation.
- The sample packet is deleted.
- When destroyed, the capture graph and threads are stopped, and all queued packets are deleted.