Media Type Attributes
The following attributes apply to media types. Some of these attributes are intended only for converting legacy media type formats into Media Foundation media types.
General Format Attributes
These attributes can be applied to all media types.
Attribute | Description |
---|---|
MF_MT_ALL_SAMPLES_INDEPENDENT | Specifies whether each sample is independent of the other samples in the stream. |
MF_MT_AM_FORMAT_TYPE | Format GUID. |
MF_MT_COMPRESSED | Specifies whether the media data is compressed |
MF_MT_FIXED_SIZE_SAMPLES | Specifies whether the samples have a fixed size. |
MF_MT_MAJOR_TYPE | Major type GUID. |
MF_MT_SAMPLE_SIZE | Size of each sample, in bytes. |
MF_MT_SUBTYPE | Subtype GUID. |
MF_MT_USER_DATA | Contains user data for a media type that was converted from a legacy format structure. |
MF_MT_WRAPPED_TYPE | Contains a media type that has been wrapped in another media type. |
Audio Format Attributes
These attributes can be applied to media types whose major type equals MFMediaType_Audio.
Attribute | Description |
---|---|
MF_MT_AAC_AUDIO_PROFILE_LEVEL_INDICATION | Specifies the audio profile and level of an Advanced Audio Coding (AAC) stream. |
MF_MT_AAC_PAYLOAD_TYPE | Specifies the payload type for an Advanced Audio Coding (AAC) stream. |
MF_MT_AUDIO_AVG_BYTES_PER_SECOND | Average number of bytes per second. |
MF_MT_AUDIO_BITS_PER_SAMPLE | Number of bits per audio sample. |
MF_MT_AUDIO_BLOCK_ALIGNMENT | Block alignment, in bytes. |
MF_MT_AUDIO_CHANNEL_MASK | Specifies the assignment of audio channels to speaker positions. |
MF_MT_AUDIO_FLOAT_SAMPLES_PER_SECOND | Number of audio samples per second (floating-point value). |
MF_MT_AUDIO_FOLDDOWN_MATRIX | Specifies how an audio decoder should transform multichannel audio to stereo output. |
MF_MT_AUDIO_NUM_CHANNELS | Number of audio channels. |
MF_MT_AUDIO_PREFER_WAVEFORMATEX | Specifies the preferred legacy format structure to use when converting an audio media type. |
MF_MT_AUDIO_SAMPLES_PER_BLOCK | Number of audio samples contained in one compressed block of audio data. |
MF_MT_AUDIO_SAMPLES_PER_SECOND | Number of audio samples per second (integer value). |
MF_MT_AUDIO_VALID_BITS_PER_SAMPLE | Number of valid bits of audio data in each audio sample. |
MF_MT_AUDIO_WMADRC_AVGREF | Reference average volume level of a Windows Media Audio file. |
MF_MT_AUDIO_WMADRC_AVGTARGET | Target average volume level of a Windows Media Audio file. |
MF_MT_AUDIO_WMADRC_PEAKREF | Reference peak volume level of a Windows Media Audio file. |
MF_MT_AUDIO_WMADRC_PEAKTARGET | Target peak volume level of a Windows Media Audio file. |
MF_MT_ORIGINAL_WAVE_FORMAT_TAG | Contains the original WAVE format tag for an audio stream. |
Video Format Attributes
These attributes can be applied to media types whose major type equals MFMediaType_Video.
Attribute | Description |
---|---|
MF_MT_AVG_BIT_ERROR_RATE | Data error rate. |
MF_MT_AVG_BITRATE | Approximate data rate of the video stream. |
MF_MT_CUSTOM_VIDEO_PRIMARIES | Custom color primaries. |
MF_MT_DEFAULT_STRIDE | Default surface stride. |
MF_MT_DRM_FLAGS | Specifies whether the video requires enforcing copy protection. |
MF_MT_FRAME_RATE | Frame rate. |
MF_MT_FRAME_RATE_RANGE_MAX | The maximum frame rate supported by a video capture device. |
MF_MT_FRAME_RATE_RANGE_MIN | The minimum frame rate supported by a video capture device. |
MF_MT_FRAME_SIZE | Width and height of the video frame. |
MF_MT_GEOMETRIC_APERTURE | Geometric aperture. |
MF_MT_INTERLACE_MODE | Describes how the frames are interlaced. |
MF_MT_MAX_KEYFRAME_SPACING | Maximum number of frames from one key frame to the next. |
MF_MT_MINIMUM_DISPLAY_APERTURE | Minimum display aperture. |
MF_MT_MPEG_SEQUENCE_HEADER | MPEG-1 or MPEG-2 sequence header. |
MF_MT_MPEG_START_TIME_CODE | Group-of-pictures (GOP) start time code. |
MF_MT_MPEG2_FLAGS | Miscellaneous flags for MPEG-2 video. |
MF_MT_MPEG2_LEVEL | MPEG-2 or H.264 level. |
MF_MT_MPEG2_PROFILE | MPEG-2 or H.264 profile. |
MF_MT_ORIGINAL_4CC | Contains the original codec FOURCC for a video stream. |
MF_MT_PAD_CONTROL_FLAGS | Aspect ratio of the output rectangle. |
MF_MT_PALETTE | Palette entries. |
MF_MT_PAN_SCAN_APERTURE | Defines the 4×3 region of video that should be displayed in pan/scan mode. |
MF_MT_PAN_SCAN_ENABLED | Specifies whether pan/scan mode is enabled. |
MF_MT_PIXEL_ASPECT_RATIO | Pixel aspect ratio. |
MF_MT_SOURCE_CONTENT_HINT | Intended aspect ratio. |
MF_MT_TRANSFER_FUNCTION | Conversion function from RGB to R'G'B'. |
MF_MT_VIDEO_3D | Specifies whether a video stream contains 3D content. |
MF_MT_VIDEO_CHROMA_SITING | Describes how chroma was sampled for Y'Cb'Cr' video. |
MF_MT_VIDEO_LIGHTING | Optimal lighting conditions for viewing. |
MF_MT_VIDEO_NOMINAL_RANGE | Nominal range of the color information |
MF_MT_VIDEO_PRIMARIES | Color primaries. |
MF_MT_VIDEO_ROTATION | Specifies the rotation of a video frame in the counter-clockwise direction. |
MF_MT_YUV_MATRIX | Conversion matrix from the Y'Cb'Cr' color space to the R'G'B' color space. |
MF_XVP_CALLER_ALLOCATES_OUTPUT | Specifies whether that the caller will allocate the textures used for output by the Video Processor MFT. |
MF_XVP_DISABLE_FRC | Disables frame-rate conversion in the Video Processor MFT. |
Other Format Attributes
The following attributes apply to interleaved DV video.
Attribute | Description |
---|---|
MF_MT_DV_AAUX_CTRL_PACK_0 | Audio auxiliary (AAUX) source control pack for the first audio block. |
MF_MT_DV_AAUX_CTRL_PACK_1 | AAUX source control pack for the second audio block. |
MF_MT_DV_AAUX_SRC_PACK_0 | AAUX source pack for the first audio block. |
MF_MT_DV_AAUX_SRC_PACK_1 | AAUX source pack for the second audio block. |
MF_MT_DV_VAUX_CTRL_PACK | Video auxiliary (VAUX) source control pack. |
MF_MT_DV_VAUX_SRC_PACK | VAUX source pack. |
The following attributes apply to Advanced Streaming Format (ASF) files.
Attribute | Description |
---|---|
MF_MT_ARBITRARY_FORMAT | Additional format data for a binary stream in an ASF file. |
MF_MT_ARBITRARY_HEADER | Type-specific data for a binary stream in an ASF file. |
MF_MT_IMAGE_LOSS_TOLERANT | Specifies whether an ASF image stream is a degradable JPEG type. |
The following attributes apply to MPEG-4 files.
Attribute | Description |
---|---|
MF_MT_MPEG4_CURRENT_SAMPLE_ENTRY | The index of the current entry in the sample description box. |
MF_MT_MPEG4_SAMPLE_DESCRIPTION | The sample description box. |
Related topics