d3d11decoder: Register elements per GPU device with capability check
authorSeungha Yang <seungha.yang@navercorp.com>
Fri, 14 Feb 2020 16:23:32 +0000 (01:23 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 18 Feb 2020 11:58:45 +0000 (11:58 +0000)
commitfe72bf60537b994c3d4ac9a918921fff83e92f0d
treeffee41f953fab8d297e1236faceb5bf95e007fe3
parent13586bc77a54bec6cb802e904cb3a9a5b9ec2386
d3d11decoder: Register elements per GPU device with capability check

This implementation is similar to what we've done for nvcodec plugin.
Since supported resolution, profiles, and formats are device dependent ones,
single template caps cannot represent them, so this modification
will help autoplugging and fallback.

Note that the legacy gpu list and list of resolution to query were
taken from chromium's code.
sys/d3d11/gstd3d11_fwd.h
sys/d3d11/gstd3d11decoder.c
sys/d3d11/gstd3d11decoder.h
sys/d3d11/gstd3d11h264dec.c
sys/d3d11/gstd3d11h264dec.h
sys/d3d11/gstd3d11h265dec.c
sys/d3d11/gstd3d11h265dec.h
sys/d3d11/gstd3d11vp9dec.c
sys/d3d11/gstd3d11vp9dec.h
sys/d3d11/plugin.c