MF_MT_DEFAULT_STRIDE attribute
Default surface stride, for an uncompressed video media type. Stride is the number of bytes needed to go from one row of pixels to the next.
Data type
UINT32
Treat as a INT32 value.
Remarks
The attribute value is stored as a UINT32, but should be cast to a 32-bit signed integer value. Stride can be negative.
Stride is positive for top-down images, and negative for bottom-up images.
This attribute gives the stride for a contiguous representation of the image in memory; that is, a representation with no additional padding bytes after each row. If a media buffer supports the IMF2DBuffer interface, use the IMF2DBuffer::Lock2D method to get the actual stride of the surface, which might include extra padding bytes.
For more information about surface stride, see Image Stride.
For an example of how to calculate the default stride, see Uncompressed Video Buffers.
The GUID constant for this attribute is exported from mfuuid.lib.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2008 [desktop apps | UWP apps] |
Header |
|
See also