1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00

d3dva: include selected decoder and format in verbose output

This commit is contained in:
Kevin Mitchell 2016-04-17 18:28:14 -07:00
parent 1f1117d0dd
commit 611594e7e8
2 changed files with 7 additions and 0 deletions

View File

@ -160,10 +160,14 @@ static void dump_decoder_info(struct lavc_ctx *s, const GUID *guid)
static DWORD get_dxfmt_cb(struct lavc_ctx *s, const GUID *guid, int depth)
{
struct priv *p = s->hwdec_priv;
for (int i = 0; i < MP_ARRAY_SIZE(d3d11_formats); i++) {
const struct d3d11_format *format = &d3d11_formats[i];
if (depth <= format->depth &&
d3d11_format_supported(s, guid, format)) {
MP_VERBOSE(p, "Selecting %s %s\n",
d3d_decoder_guid_to_desc(guid),
format->name);
return format->format;
}
}

View File

@ -170,6 +170,9 @@ static DWORD get_dxfmt_cb(struct lavc_ctx *s, const GUID *guid, int depth)
for (UINT j = 0; j < n_formats; j++) {
if (formats[i] == d3d9_fmt->format) {
ret = formats[i];
MP_VERBOSE(p, "Selecting %s %s\n",
d3d_decoder_guid_to_desc(guid),
mp_tag_str(ret));
goto done;
}
}