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.

MFVideoArea structure

Specifies a rectangular area within a video frame.

Syntax


typedef struct _MFVideoArea {
  MFOffset OffsetX;
  MFOffset OffsetY;
  SIZE     Area;
} MFVideoArea;

Members

OffsetX

An MFOffset structure that contains the x-coordinate of the upper-left corner of the rectangle. This coordinate might have a fractional value.

OffsetY

An MFOffset structure that contains the y-coordinate of the upper-left corner of the rectangle. This coordinate might have a fractional value.

Area

A SIZE structure that contains the width and height of the rectangle.

Examples

The following code initializes an MFVideoArea structure.


MFVideoArea MakeArea(float x, float y, DWORD width, DWORD height)
{
    MFVideoArea area;
    area.OffsetX = MakeOffset(x);
    area.OffsetY = MakeOffset(y);
    area.Area.cx = width;
    area.Area.cy = height;
    return area;
}


The MakeOffset function used in the previous example is defined as follows.


MFOffset MakeOffset(float v)
{
    MFOffset offset;
    offset.value = short(v);
    offset.fract = WORD(65536 * (v-offset.value));
    return offset;
}


Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfobjects.h (include Mfidl.h)

See also

Media Foundation Structures
MFOffset

 

 

Community Additions

Show:
© 2014 Microsoft