Skip to content

Commit 6fec56e

Browse files
committed
DX11: косметика текста в окне Information.
1 parent b23a15c commit 6fec56e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Source/DX11VideoProcessor.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3307,12 +3307,16 @@ HRESULT CDX11VideoProcessor::GetVPInfo(std::wstring& str)
33073307
str += std::format(L"D3D11, RateConversion_{}", rateConvIndex);
33083308

33093309
str.append(L"\nDeinterlaceTech.:");
3310-
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND) str.append(L" Blend,");
3311-
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB) str.append(L" Bob,");
3312-
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE) str.append(L" Adaptive,");
3313-
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION) str.append(L" Motion Compensation,");
3314-
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE) str.append(L" Inverse Telecine,");
3315-
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION) str.append(L" Frame Rate Conversion");
3310+
if (rateConvCaps.ProcessorCaps) {
3311+
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND) str.append(L" Blend,");
3312+
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB) str.append(L" Bob,");
3313+
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE) str.append(L" Adaptive,");
3314+
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION) str.append(L" Motion Compensation,");
3315+
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE) str.append(L" Inverse Telecine,");
3316+
if (rateConvCaps.ProcessorCaps & D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION) str.append(L" Frame Rate Conversion");
3317+
} else {
3318+
str.append(L" none");
3319+
}
33163320
str_trim_end(str, ',');
33173321
str += std::format(L"\nReference Frames: Past {}, Future {}", rateConvCaps.PastFrames, rateConvCaps.FutureFrames);
33183322
} else {

0 commit comments

Comments
 (0)