mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 13:33:13 -07:00
Log into SessionLog
This commit is contained in:
parent
c4921ad682
commit
5403cbb389
6 changed files with 25 additions and 22 deletions
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "exception.h"
|
||||
|
||||
#include <chiaki/log.h>
|
||||
|
||||
#include <QMutex>
|
||||
#include <QObject>
|
||||
|
||||
|
@ -41,16 +43,19 @@ class VideoDecoder: public QObject
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
VideoDecoder();
|
||||
VideoDecoder(ChiakiLog *log);
|
||||
~VideoDecoder();
|
||||
|
||||
void PushFrame(uint8_t *buf, size_t buf_size);
|
||||
AVFrame *PullFrame();
|
||||
|
||||
ChiakiLog *GetChiakiLog() { return log; }
|
||||
|
||||
signals:
|
||||
void FramesAvailable();
|
||||
|
||||
private:
|
||||
ChiakiLog *log;
|
||||
QMutex mutex;
|
||||
|
||||
AVCodec *codec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue