//
|
// Created by lilin on 2019-8-20.
|
//
|
|
#ifndef BARESIP_FRAMEQUEUE_H
|
#define BARESIP_FRAMEQUEUE_H
|
|
#include "queue"
|
#include "pthread.h"
|
#include "../AndroidLog.h"
|
extern "C" {
|
#include <libavformat/avformat.h>
|
}
|
class FrameQueue {
|
|
public:
|
std::queue<AVFrame *> queueFrame;
|
pthread_mutex_t mutexPacket;
|
pthread_cond_t condPacket;
|
public:
|
|
FrameQueue();
|
~FrameQueue();
|
int putAvFrame(AVFrame *frame);
|
|
AVFrame* getAvFrame();
|
|
void clearQueue();
|
|
void notifyQueue();
|
|
};
|
|
|
#endif //BARESIP_FRAMEQUEUE_H
|