Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 7

 

Downloading the Sample

This sample is available in the Windows classic samples github repository.

Related topics

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

 

 

Show:
© 2018 Microsoft