Re: [2/5] d3dx9: Implement D3DXSaveSurfaceToFileInMemory.
28 May
2012
28 May
'12
12:38 p.m.
- hr = IWICImagingFactory_CreateStream(factory, &stream); + hr = IWICImagingFactory_CreateStream(factory, &wic_stream); IWICImagingFactory_Release(factory); if (FAILED(hr)) goto cleanup_err;
- hr = IWICStream_InitializeFromFilename(stream, dst_filename, GENERIC_WRITE); + hr = CreateStreamOnHGlobal(NULL, TRUE, &stream); if (FAILED(hr)) goto cleanup_err;
+ hr = IWICStream_InitializeFromIStream(wic_stream, stream);
Why bother creating an IWICStream here? Just use your HGLOBAL stream to initialize the encoder.
4948
Age (days ago)
4948
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vincent Povirk