Export (0) Print
Expand All
Expand Minimize

MFVideoAlphaBitmapFlags enumeration

Defines flags for the MFVideoAlphaBitmapParams structure.

Syntax


typedef enum  { 
  MFVideoAlphaBitmap_EntireDDS    = 0x00000001,
  MFVideoAlphaBitmap_SrcColorKey  = 0x00000002,
  MFVideoAlphaBitmap_SrcRect      = 0x00000004,
  MFVideoAlphaBitmap_DestRect     = 0x00000008,
  MFVideoAlphaBitmap_FilterMode   = 0x00000010,
  MFVideoAlphaBitmap_Alpha        = 0x00000020,
  MFVideoAlphaBitmap_BitMask      = 0x0000003f
} MFVideoAlphaBitmapFlags;

Constants

MFVideoAlphaBitmap_EntireDDS

Alpha-blend the entire DirectDraw suface.

If you are alpha-blending a DirectDraw surface, you can set this flag when you call IMFVideoMixerBitmap::SetAlphaBitmap. If this flag is set, the mixer ignores the rcSrc member of the MFVideoAlphaBitmapParams structure. If this flag is absent, the rcSrc member specifies the source rectangle.

This flag cannot be used if you specify a GDI bitmap for alpha-blending. For a GDI bitmap, you must fill in the rcSrc member when you call SetAlphaBitmap.

This flag does not apply to the IMFVideoMixerBitmap::UpdateAlphaBitmapParameters method.

MFVideoAlphaBitmap_SrcColorKey

If this flag is set, the clrSrcKey member of the MFVideoAlphaBitmapParams structure specifies a color key for alpha-blending. If this flag is absent, the clrSrcKey member is ignored.

This flag is not valid if you are alpha-blending a Direct3D surface with per-pixel alpha (D3DFMT_A8R8G8B8). When the DirectDraw surface has per-pixel alpha, the pixel alpha values are used for the alpha-blending operation.

MFVideoAlphaBitmap_SrcRect

Update the source rectangle.

This flag applies to the UpdateAlphaBitmapParameters method. If this flag is set, the rcSrc member of the MFVideoAlphaBitmapParams structure updates the source rectangle. If this flag is absent, the rcSrc member is ignored. By setting this flag, you can animate the image by selecting different portions of the bitmap.

This flag does not apply to the SetAlphaBitmap method.

MFVideoAlphaBitmap_DestRect

If this flag is set, the nrcDest member of the MFVideoAlphaBitmapParams structure specifies a normalized rectangle for scaling the bitmap. If this flag is absent, the nrcDest member is ignored.

MFVideoAlphaBitmap_FilterMode

If this flag is set, the dwFilterMode member of the MFVideoAlphaBitmapParams structure specifies a Direct3D filtering mode. If this flag is absent, the dwFilterMode member is ignored.

MFVideoAlphaBitmap_Alpha

If this flag is set, the fAlpha member of the MFVideoAlphaBitmapParams structure specifies an alpha value to apply to the entire image. If this flag is absent, the fAlpha member is ignored.

MFVideoAlphaBitmap_BitMask

Bitmask to validate flag values. This value is not a valid flag.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Evr9.h

See also

Media Foundation Enumerations
Enhanced Video Renderer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft