ltmmMultiStreamTarget.TargetFormat Property

Visual Basic example

Syntax

object.TargetFormat As Long

Remarks

Gets or sets the target format accepted by the multi-stream target object. For a list of possible values, see ltmmSampleTarget_TargetFormat Constants.

By default, the value of this property is ltmmSampleTarget_TargetFormat_Undefined.  If you assign a value to the TargetFormat property that matches your expected final output format, then only media types that are accepted by the assigned format will be allowed. The AcceptedMediaType values are still honored, however, only the parts of the AcceptedMediaType that are not specified (GUID_NULL) are compared with the TargetFormat. You can still force a pin to only accept a major type of Video, and have the rest depend on the target format, by simply assigning an AcceptedMediaType with only the major type of video defined.

Platforms

Win32, x64

See Also

Elements:

ltmmMultiStreamTarget.GetAcceptedMediaType Method

ltmmMultiStreamTarget.GetConnectedMediaType Method

ltmmMultiStreamTarget.GetSample Method

ltmmMultiStreamTarget.SetAcceptedMediaType Method

ltmmMultiStreamTarget.WaitForSample Method

Topics:

Multimedia Properties, Methods and Events