diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2023-06-11 20:34:28 +0200 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-06-11 20:34:28 +0200 |
commit | 7c3a09001774b9e0790ee7f31b29900cdebbf693 (patch) | |
tree | 8ca040dc4a400786a712acafc7c3535941aff7bb /decode.h | |
parent | 5a661dc172c8a4cca8d2e84d2852962d1a10bed0 (diff) |
Introduce communication proto and add basic demultiplexer
Diffstat (limited to 'decode.h')
-rw-r--r-- | decode.h | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -22,17 +22,11 @@ #include <stddef.h> struct DecodeContext; -struct Frame; struct Window; -struct DecodeStats { - size_t bitrate; -}; - struct DecodeContext* DecodeContextCreate(struct Window* window); -bool DecodeContextDecode(struct DecodeContext* decode_context, int fd); -void DecodeContextGetStats(struct DecodeContext* decode_context, - struct DecodeStats* decode_stats); +bool DecodeContextDecode(struct DecodeContext* decode_context, + const void* buffer, size_t size); void DecodeContextDestroy(struct DecodeContext* decode_context); #endif // RECEIVER_DECODE_H_ |