c++ - Retrieve ID2D1DeviceContext from IDirect3DDevice9 -


i using source reader read video samples video file, , decode them using decoder rendering these samples using directx9.

i using idirect3ddevice9 rendering video frames, , working expected.

now want add in chroma-key effect, described in below like:

https://msdn.microsoft.com/en-us/library/windows/desktop/dn890715(v=vs.85).aspx

so how id2d1devicecontext idirect3ddevice9 , add chorma-key effect , render video frame?

id2d1devicecontext requires directx11 device , can not used obsolete idirect3ddevice9. typically create objects in following order: dxgi factory, d2d1 factory, d3d11 device, dxgi device, d2d1 device , d2d1 device context. may want check d2d getting starting guide , samples.

there no real point in dealing directx9 anymore, unless forced provide backward compatibility windows xp. chroma-key sample posted requires windows 10.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -