mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-22 20:42:56 +00:00
25 lines
317 B
C++
25 lines
317 B
C++
#pragma once
|
|
|
|
#include "renderer.h"
|
|
|
|
#include <QQueue>
|
|
|
|
class Pacer
|
|
{
|
|
public:
|
|
Pacer();
|
|
|
|
~Pacer();
|
|
|
|
AVFrame* getFrameAtVsync();
|
|
|
|
void submitFrame(AVFrame* frame);
|
|
|
|
void drain();
|
|
|
|
private:
|
|
QQueue<AVFrame*> m_FrameQueue;
|
|
QQueue<int> m_FrameQueueHistory;
|
|
SDL_SpinLock m_FrameQueueLock;
|
|
};
|