MF_CAPTURE_METADATA_FRAME_BACKGROUND_MASK attribute

Reports the metadata and mask buffer for a background segmentation mask that distinguishes between the background and foreground of a video frame.

Data type

BLOB

Remarks

The data carried by this attribute is a KSCAMERA_METADATA_BACKGROUNDSEGMENTATIONMASK structure that contains information about the dimensions of the background mask as well as its coverage of the frame it is inferred from, which is the frame that is outputted by the stream. It also carries a contiguous buffer representing the mask to be leveraged by the consuming app to define which pixels are considered part of the foreground or background. The scaling and image coordinate correlation of the mask regarding the frame is handled by the consuming app.

Requirements

Requirement Value
Minimum supported client
Windows Build 22000t
Minimum supported server
Windows Build 22000
Header
Mfapi.h

See also

Alphabetical List of Media Foundation Attributes

IMFAttributes::GetBlob

IMFAttributes::SetBlob

IMFMediaType

Media Type Attributes