SAMPLE: Playing AVI File on Direct3D Retained Mode TextureLast reviewed: September 5, 1997Article ID: Q155951 |
4.03
WINDOWS
kbgraphic kbmm kbprg kbfile
The information in this article applies to:
SUMMARYThe AVIRM sample demonstrates a method of streaming video from an Audio- Video Interleaved (.avi) file onto a Direct3D Retained Mode texture. The texture is created with the IDirect3DRM::CreateTexture() method and is updated by modifying the memory pointed to by the buffer1 member of the D3DRMIMAGE structure specified. The stretching capabilities of DirectDraw are used to stretch the AVI frames to fit a 256 by 256 DirectDraw surface used to update the texture. The texture is modified each frame, and the IDirect3DRMTexture::Changed() method is called to inform the renderer of the change. This sample was developed using Microsoft's Visual C++ 4.x Developer Studio. To build the sample, the development environment must include the DirectX 2 SDK.
You can find AVIRM.EXE (size: 28578 bytes) , a 28K self-extracting file, on the followingservices:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online Services REFERENCESAVI streaming code from the AVIDD95 sample was used in this sample. Please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q154789 TITLE : SAMPLE: AVI Playback (Streaming) onto DirectDraw Surface |
KBCategory: kbgraphic kbmm kbprg kbfile
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |