MFPMediaPlayerMBS constants

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to MFPMediaPlayerMBS class.

Aspect Ratio Modes

MFPMediaPlayerMBS.VideoARModeMask = 7

Type Topic Plugin Version
const Windows Media Foundation MBS WinFrameworks Plugin 20.0
One of the aspect ratio modes.

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

MFPMediaPlayerMBS.VideoARModeNone = 0

Type Topic Plugin Version
const Windows Media Foundation MBS WinFrameworks Plugin 20.0
One of the aspect ratio modes.

Do not maintain the aspect ratio of the video. Stretch the video to fit the output rectangle.

MFPMediaPlayerMBS.VideoARModeNonLinearStretch = 4

Type Topic Plugin Version
const Windows Media Foundation MBS WinFrameworks Plugin 20.0
One of the aspect ratio modes.

Apply a non-linear horizontal stretch if the aspect ratio of the destination rectangle does not match the aspect ratio of the source rectangle.

The non-linear stretch algorithm preserves the aspect ratio in the middle of the picture and stretches (or shrinks) the image progressively more toward the left and right. This mode is useful when viewing 4:3 content full-screen on a 16:9 display, instead of pillar-boxing. Non-linear vertical stretch is not supported, because the visual results are generally poor.

This mode may cause performance degradation.

If this flag is set, you must also set the VideoARModePreservePixel and VideoARModePreservePicture flags.

MFPMediaPlayerMBS.VideoARModePreservePicture = 1

Type Topic Plugin Version
const Windows Media Foundation MBS WinFrameworks Plugin 20.0
One of the aspect ratio modes.

Preserve the aspect ratio of the video by letterboxing or within the output rectangle.

MFPMediaPlayerMBS.VideoARModePreservePixel = 2

Type Topic Plugin Version
const Windows Media Foundation MBS WinFrameworks Plugin 20.0
One of the aspect ratio modes.

Correct the aspect ratio if the physical size of the display device does not match the display resolution. For example, if the native resolution of the monitor is 1600 by 1200 (4:3) but the display resolution is 1280 by 1024 (5:4), the monitor will display non-square pixels.

If this flag is set, you must also set the VideoARModePreservePicture flag.

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


💬 Ask a question or report a problem