Files
utun2/tools/chatgui/src/call_video_decoder.h
T

18 lines
509 B
C++

#pragma once
#include "../../../src/call/call_video.h"
#include <QImage>
#include <memory>
// Один RX worker; декодированные изображения принадлежат очереди показа по аудиочасам.
class CallVideoDecoder {
public:
CallVideoDecoder();
~CallVideoDecoder();
bool decode(const call_video_frame& frame, QImage& image);
void close();
static call_video_caps capabilities();
private:
struct Impl;
std::unique_ptr<Impl> m;
};