examples: Add d3d11videosink examples for shared-texture use cases
authorSeungha Yang <seungha@centricular.com>
Thu, 10 Dec 2020 20:23:20 +0000 (05:23 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 26 Jan 2021 18:14:37 +0000 (18:14 +0000)
commit657370a91c326578840a0fc9488650665197864f
tree3fa65cf296eab3da1710bf5523d079d3205cd18f
parent60e223f4fd26a36aef5824ee898af7af99ff70f7
examples: Add d3d11videosink examples for shared-texture use cases

Add two examples to demonstrate "draw-on-shared-texture" use cases.

d3d11videosink will draw application's own texture without copy
by using:
- Enable "draw-on-shared-texture" property
- make use of "begin-draw" and "draw" signals

And then, application will render the shared application's texture
to swapchain's backbuffer by using
1) Direct3D11 APIs
2) Or, Direct3D9Ex + interop APIs

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1873>
tests/examples/d3d11videosink/d3d11device.cpp [new file with mode: 0644]
tests/examples/d3d11videosink/d3d11device.h [new file with mode: 0644]
tests/examples/d3d11videosink/d3d11videosink-shared-texture-d3d9ex.cpp [new file with mode: 0644]
tests/examples/d3d11videosink/d3d11videosink-shared-texture.cpp [new file with mode: 0644]
tests/examples/d3d11videosink/meson.build