Microsoft DirectX 8.0

Constants

Microsoft® DirectShow® Editing Services defines the following constants.

Dynamic Reconnection Flags

These flags specify the level of dynamic reconnection to use during rendering.

ConstantValueDescription
CONNECTF_DYNAMIC_NONE0x00No dynamic reconnection. Load everything before rendering the project.
CONNECTF_DYNAMIC_SOURCES0x01Load sources only as needed.
CONNECTF_DYNAMIC_EFFECTS0x02Reserved. Do not use.

See Also

IRenderEngine::SetDynamicReconnectLevel

File Name Validation Flags

These flags specify the behavior of the media locator.

ConstantValueDescription
SFN_VALIDATEF_CHECK0x01Check the validity of file names. You must set this flag to validate file names. If not, the other flags have no effect.
SFN_VALIDATEF_POPUP0x02If a file is not located, display an Open File dialog box for the end user.
SFN_VALIDATEF_TELLME0x04If a missing file is located, briefly display a message box with the name and location of the file. This flag is mostly useful for testing purposes; the message box is probably not suitable for a retail product.
SFN_VALIDATEF_REPLACE0x08If a missing file is located, update the name of the source object. (Only valid in the IAMTimeline::ValidateSourceNames method.)
SFN_VALIDATEF_USELOCAL0x10Search local directories only, not directories on the network.
SFN_VALIDATEF_NOFIND0x20Do not search for missing files. File names are still validated if you set the SFN_VALIDATEF_CHECK flag.
SFN_VALIDATEF_IGNOREMUTED0x40Ignore muted source objects. (Only valid in the IAMTimeline::ValidateSourceNames method.)

See Also

IMediaLocator::FindMediaFile, IRenderEngine::SetSourceNameValidation

Resize Flags

These flags specify how a video source is rendered if its size does not match the output dimensions.

ConstantValueDescription
RESIZEF_STRETCH0The image is stretched to fit the target frame size in both dimensions, without preserving the aspect ratio.
RESIZEF_CROP1The image is not resized. If the image is smaller than the target frame, the surrounding area is black. If the image is larger than the target frame, the image is cropped.
RESIZEF_PRESERVEASPECTRATIO2The image is resized to fit the target frame along one dimension, while preserving the aspect ratio. If the ratio of width to height in the image does not match the ratio in the target frame, it creates a letterbox.
RESIZEF_PRESERVEASPECTRATIO_NOLETTERBOX3The image is resized to fill the entire target frame while preserving the aspect ratio. Rather than create a letterbox, this mode crops the image, either along the sides or across the top and bottom.

The following images show the effects of these flags.

Resize Flags

See Also

IAMTimelineSrc::GetStretchMode, IAMTimelineSrc::SetStretchMode