diff options
| author | Mistivia <i@mistivia.com> | 2025-09-13 11:46:38 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-09-13 11:46:38 +0800 |
| commit | 4864500034260f43261a1cc86b7d9bce0d541e07 (patch) | |
| tree | 499a54bae8e90d8d80047bc26d0d34f1246a6dc0 /transmuxer.h | |
| parent | 603df4bdbeee6ae09e61f05eed0c05ed430eee1b (diff) | |
add transmuxer
Diffstat (limited to 'transmuxer.h')
| -rw-r--r-- | transmuxer.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/transmuxer.h b/transmuxer.h new file mode 100644 index 0000000..9bcbf1b --- /dev/null +++ b/transmuxer.h @@ -0,0 +1,20 @@ +#ifndef TRANSMUXER_H_ +#define TRANSMUXER_H_ + +#include "ringbuf.h" +#include "pthread.h" +#include <bits/pthreadtypes.h> + +typedef struct { + pthread_mutex_t lock; + pthread_cond_t streaming_cond; + RingBuffer *stream; + bool quit; +} Transmuxer; + +void Transmuxer_init(Transmuxer *self); + +void* Transmuxer_main(void *vself); +void Transmuxer_new_stream(Transmuxer *self, RingBuffer *ringbuf); + +#endif |
