mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-10 10:18:46 +00:00
20 lines
432 B
C
20 lines
432 B
C
|
#pragma once
|
||
|
|
||
|
#include "renderer.h"
|
||
|
|
||
|
class SwFrameMapper
|
||
|
{
|
||
|
public:
|
||
|
explicit SwFrameMapper(IFFmpegRenderer* renderer);
|
||
|
void setVideoFormat(int videoFormat);
|
||
|
AVFrame* getSwFrameFromHwFrame(AVFrame* hwFrame);
|
||
|
|
||
|
private:
|
||
|
bool initializeReadBackFormat(AVBufferRef* hwFrameCtxRef, AVFrame* testFrame);
|
||
|
|
||
|
IFFmpegRenderer* m_Renderer;
|
||
|
int m_VideoFormat;
|
||
|
enum AVPixelFormat m_SwPixelFormat;
|
||
|
bool m_MapFrame;
|
||
|
};
|