d3d11device: Enhance format enumeration and debugging
authorSeungha Yang <seungha@centricular.com>
Sat, 14 May 2022 15:56:59 +0000 (00:56 +0900)
committerSeungha Yang <seungha@centricular.com>
Fri, 20 May 2022 17:37:45 +0000 (02:37 +0900)
commite5ba099fd870b588199c15e1ddbba4f135f3f080
tree054ce0388586ce25770761e4b3958a6ff5c5cebf
parent79cf6beeb653b0c7e5fd4f7d8724932d9d9ba6e3
d3d11device: Enhance format enumeration and debugging

* Enhance debug log to print human readable D3D11_FORMAT_SUPPORT flags
  value, instead of packed numeric flagset value.
* Only device supported format will be added to format table.
  Depending on device feature level (i.e., D3D9 feature devices),
  16bits formats will not be supported. Although there might be formats
  we deinfed but not supported, it will not be a major issue in practice
  since our D3D11 implementation does not support legacy devices already
  (known limitation) and also old d3dvideosink will be promoted in that case.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2441>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11_private.h
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11format.cpp
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11format.h