@@ -3307,12 +3307,16 @@ HRESULT CDX11VideoProcessor::GetVPInfo(std::wstring& str)
33073307 str += std::format (L" D3D11, RateConversion_{}" , rateConvIndex);
33083308
33093309 str.append (L" \n DeinterlaceTech.:" );
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" \n Reference Frames: Past {}, Future {}" , rateConvCaps.PastFrames , rateConvCaps.FutureFrames );
33183322 } else {
0 commit comments