mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 16:17:20 +00:00
Fix DXVA2 chroma subsampling assuming interlaced content
This commit is contained in:
1 parent
9dc96bda58
commit
626fba4a8f
1 file changed
+6
-3
@@ -1109,14 +1109,17 @@ void DXVA2Renderer::renderFrame(AVFrame *frame)
|
||||
switch (frame->chroma_location) {
|
||||
case AVCHROMA_LOC_LEFT:
|
||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
||||
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes;
|
||||
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes |
|
||||
DXVA2_VideoChromaSubsampling_ProgressiveChroma;
|
||||
break;
|
||||
case AVCHROMA_LOC_CENTER:
|
||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes;
|
||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes |
|
||||
DXVA2_VideoChromaSubsampling_ProgressiveChroma;
|
||||
break;
|
||||
case AVCHROMA_LOC_TOPLEFT:
|
||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
||||
DXVA2_VideoChromaSubsampling_Vertically_Cosited;
|
||||
DXVA2_VideoChromaSubsampling_Vertically_Cosited |
|
||||
DXVA2_VideoChromaSubsampling_ProgressiveChroma;
|
||||
break;
|
||||
default:
|
||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Unknown;
|
||||
|
||||
Reference in new issue
Block a user