Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3075 Discussions

how to copy d3d9 surface to dxva2 surface

james_l_1
Beginner
778 Views

I am using intel media sdk 2014 R2 in windowns 7 x64.

The directx sdk version is Microsoft DirectX SDK (June 2010). IDE is VS2010.

I want to use it to encode d3d9 rendertarget surface.

but I can't copy d3d9 surface to dxva2 surface.

The function of IDirect3DDevice9::StretchRect() always return error.

I'm sure the both surfaces has the same size and d3dformat.

How can I do about it? 

Very thanks.

 

0 Kudos
2 Replies
james_l_1
Beginner
778 Views

I have solve this problem. I made two mistake:

1 I use IDirect3D9 object. It seems to use IDirect3D9Ex object is fine.

2 I locked the target surface before to call StretchRect().

I'm sorry to bother you.

0 Kudos
ybl_y_
Beginner
778 Views

石家庄利鼎电子材料有限公司环氧树脂砂浆 环氧树脂灌浆料

0 Kudos
Reply