Commit 20aa304b authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

d3d11_fmt: reduce the size of processor support logs

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 43b2b125
......@@ -476,10 +476,24 @@ void D3D11_LogProcessorSupport(vlc_object_t *o,
HRESULT hr;
for (int format = 0; format < 188; format++) {
hr = ID3D11VideoProcessorEnumerator_CheckVideoProcessorFormat(processorEnumerator, format, &flags);
if (SUCCEEDED(hr) && (flags & D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT))
msg_Dbg(o, "processor format %s (%d) is supported for input", DxgiFormatToStr(format),format);
if (SUCCEEDED(hr) && (flags & D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT))
msg_Dbg(o, "processor format %s (%d) is supported for output", DxgiFormatToStr(format),format);
if (FAILED(hr))
continue;
const char *name = DxgiFormatToStr(format);
const char *support = NULL;
if ((flags & (D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT|D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT))
== (D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT|D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT))
support = "input/output";
else if (flags & D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT)
support = "input";
else if (flags & D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT)
support = "output";
if (support)
{
if (name)
msg_Dbg(o, "processor format %s is supported for %s", name, support);
else
msg_Dbg(o, "processor format (%d) is supported for %s", format, support);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment