IDirect3DSurface9 Problem after Windows 10 Update Creator
-
Hello Guys I am creating a direct3D surface for further creation of OffScreenplainSurface for video sample. And This Code was working fine before Windows10 Update. After Update, I found that IDirect3DSurface not returning the right D3DSURFACE_DESC.format which I am using to createOffScreenPlainSurface. Here is the Code
CComPtr sampleSurface;
MFGetService(mediaBuffer, MR_BUFFER_SERVICE, __uuidof(IDirect3DSurface9), (void**)&sampleSurface);D3DSURFACE_DESC surfaceDesc;
sampleSurface->GetDesc(&surfaceDesc);CComPtr sharedSampleSurface;
HANDLE shareHandleSurface = 0;
device3D->CreateOffscreenPlainSurface(
surfaceDesc.Width,
surfaceDesc.Height,
surfaceDesc.Format,
D3DPOOL_DEFAULT,
&sharedSampleSurface,
&shareHandleSurface
);Now, after windows10 Update surfaceDesc.format = 842094158 not the D3DFMT_YUY2 And I realized that sometimes after restart of Machine, it returns D3DFMT_YUY2 which looks like some services in windows10 update obstructing MFGetService. I found one service sppsvc which automatic delayed start and Trigger start but I am not able to get much of it. Any Help will be Appreciated. Thank You.
-
Hello Guys I am creating a direct3D surface for further creation of OffScreenplainSurface for video sample. And This Code was working fine before Windows10 Update. After Update, I found that IDirect3DSurface not returning the right D3DSURFACE_DESC.format which I am using to createOffScreenPlainSurface. Here is the Code
CComPtr sampleSurface;
MFGetService(mediaBuffer, MR_BUFFER_SERVICE, __uuidof(IDirect3DSurface9), (void**)&sampleSurface);D3DSURFACE_DESC surfaceDesc;
sampleSurface->GetDesc(&surfaceDesc);CComPtr sharedSampleSurface;
HANDLE shareHandleSurface = 0;
device3D->CreateOffscreenPlainSurface(
surfaceDesc.Width,
surfaceDesc.Height,
surfaceDesc.Format,
D3DPOOL_DEFAULT,
&sharedSampleSurface,
&shareHandleSurface
);Now, after windows10 Update surfaceDesc.format = 842094158 not the D3DFMT_YUY2 And I realized that sometimes after restart of Machine, it returns D3DFMT_YUY2 which looks like some services in windows10 update obstructing MFGetService. I found one service sppsvc which automatic delayed start and Trigger start but I am not able to get much of it. Any Help will be Appreciated. Thank You.
842094158
is0x3231564E
which isMAKEFOURCC('N', 'V', '1', '2')
. So yourmediaBuffer
seems to contain frames in that format. I don't know much about Direct3D but I guess that the format has changed with the video driver installed with Windows 10. -
842094158
is0x3231564E
which isMAKEFOURCC('N', 'V', '1', '2')
. So yourmediaBuffer
seems to contain frames in that format. I don't know much about Direct3D but I guess that the format has changed with the video driver installed with Windows 10. -
842094158
is0x3231564E
which isMAKEFOURCC('N', 'V', '1', '2')
. So yourmediaBuffer
seems to contain frames in that format. I don't know much about Direct3D but I guess that the format has changed with the video driver installed with Windows 10. -
Hello Is that possible that I get different Format from particular one machine and unchanged hardware? As after Windows 10 Update, sometimes I am getting NV12 surface format and sometimes YUY2. Thank you.
As I wrote, I don't know much about Direct3D. But there are some components like drivers and decoders involved which also have their own configuration. A quick research shows that Windows is providing decompressed video streams in the YUY2 or NV12 format. So an application should probably support both formats.
-
As I wrote, I don't know much about Direct3D. But there are some components like drivers and decoders involved which also have their own configuration. A quick research shows that Windows is providing decompressed video streams in the YUY2 or NV12 format. So an application should probably support both formats.
Thanks Jochen for your reply. I also found that Windows Supports both formats YUY2 or NV12. But, I am struggling why it is randomly showing either format which proves that there are some setting that needs to be set As I did not get any theory/description on getting random format from these two formats. Thanks Again for your Reply.