MFT_Grayscale Sample (Windows)

Switch View :
ScriptFree
MFT_Grayscale Sample

Shows how to implement a video effect as a Media Foundation Transform (MFT). The grayscale MFT converts YUV video to grayscale by setting the chroma values in the video to neutral. The MFT accepts uncompressed video in UYVY, YUY2, or NV12 formats.

APIs Demonstrated

This sample demonstrates the following Microsoft Media Foundation interfaces:

Usage

The MFT_GrayScale sample builds a DLL that is a COM server for the MFT. Before using the MFT, you must register the DLL.

To see the grayscale MFT in use, run the PlaybackFX Sample. You can also use the TopoEdit tool to build a topology that includes the grayscale MFT. For more information about TopoEdit, see TopoEdit.

Requirements

ProductVersion
Windows SDKWindows Vista
Microsoft WindowsWindows Vista

 

Downloading the Sample

This sample is available in the following locations.

LocationPath/URL
Windows SDKSDK Root\Samples\multimedia\mediafoundation\mft_grayscale
MSDN Code GalleryDownload from MSDN Code Gallery

 

Related topics

About YUV Video
Media Foundation SDK Samples
Media Foundation Transforms
MFT_AudioDelay Sample
Writing a Custom MFT

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Content

Thomas Lee
Lack of common sense
How could MS guys keep this sample code, but remove the PlaybackFX sample from the SDK and the web completely? Besides, topoedit cannot hook this MFT with any video clips that I tried. Come on, MSFT, busy catching up with Google or Apple? Here is a little place for guys to think straight.