mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 09:48:43 +00:00
Fix DXVA2 chroma subsampling assuming interlaced content
This commit is contained in:
parent
9dc96bda58
commit
626fba4a8f
1 changed files with 6 additions and 3 deletions
|
@ -1109,14 +1109,17 @@ void DXVA2Renderer::renderFrame(AVFrame *frame)
|
||||||
switch (frame->chroma_location) {
|
switch (frame->chroma_location) {
|
||||||
case AVCHROMA_LOC_LEFT:
|
case AVCHROMA_LOC_LEFT:
|
||||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
||||||
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes;
|
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes |
|
||||||
|
DXVA2_VideoChromaSubsampling_ProgressiveChroma;
|
||||||
break;
|
break;
|
||||||
case AVCHROMA_LOC_CENTER:
|
case AVCHROMA_LOC_CENTER:
|
||||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes;
|
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes |
|
||||||
|
DXVA2_VideoChromaSubsampling_ProgressiveChroma;
|
||||||
break;
|
break;
|
||||||
case AVCHROMA_LOC_TOPLEFT:
|
case AVCHROMA_LOC_TOPLEFT:
|
||||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
||||||
DXVA2_VideoChromaSubsampling_Vertically_Cosited;
|
DXVA2_VideoChromaSubsampling_Vertically_Cosited |
|
||||||
|
DXVA2_VideoChromaSubsampling_ProgressiveChroma;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Unknown;
|
m_Desc.SampleFormat.VideoChromaSubsampling = DXVA2_VideoChromaSubsampling_Unknown;
|
||||||
|
|
Loading…
Reference in a new issue