mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 05:50:49 +00:00
Add basic HEVC Main10 support in DXVA2 renderer
This commit is contained in:
1 parent
1669095fb1
commit
ca26fa2dd0
2 files changed
+26
-7
No files matched your search
@@ -47,9 +47,14 @@ public:
|
||||
}
|
||||
|
||||
virtual enum AVPixelFormat getPreferredPixelFormat(int videoFormat) {
|
||||
// Planar YUV 4:2:0
|
||||
SDL_assert(videoFormat != VIDEO_FORMAT_H265_MAIN10);
|
||||
return AV_PIX_FMT_YUV420P;
|
||||
if (videoFormat == VIDEO_FORMAT_H265_MAIN10) {
|
||||
// 10-bit YUV 4:2:0
|
||||
return AV_PIX_FMT_P010;
|
||||
}
|
||||
else {
|
||||
// Planar YUV 4:2:0
|
||||
return AV_PIX_FMT_YUV420P;
|
||||
}
|
||||
}
|
||||
|
||||
// IOverlayRenderer
|
||||
|
||||
Reference in new issue
Block a user