Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmMultiStreamTarget::get_TargetFormat

Show in webframe

#include "ltmm.h"

C Syntax

HRESULT IltmmMultiStreamTarget_get_TargetFormat(pMultiStreamTarget, TargetFormat);

C++ Syntax

HRESULT get_TargetFormat(TargetFormat);

 

IltmmMultiStreamTarget *pMultiStreamTarget;

/* pointer to an interface */

long *TargetFormat;

/* pointer to a variable */

Gets the target format accepted by the multi stream target object.

Parameter

Description

pMultiStreamTarget

Pointer to an IltmmMultiStreamTarget interface.

Count

Pointer to a variable that will receive the target format. Can be any value from the ltmmSampleTarget_TargetFormat enumeration.

Returns

S_OK

The function was successful.

<> S_OK

An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

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. So, 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.

Required DLLs and Libraries

LTMM

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64

See Also

Elements:

IltmmMultiStreamTarget::put_TargetFormat, IltmmMultiStreamTarget::SetAcceptedMediaType, IltmmMultiStreamTarget::GetAcceptedMediaType, IltmmMultiStreamTarget::GetConnectedMediaType, IltmmMultiStreamTarget::GetSample, IltmmMultiStreamTarget::WaitForSample

Topics:

Multimedia Function Group

Example

For a C example, refer to Concatenate two AVI files using IltmmMultiStreamSource and IltmmMultiStreamTarget Example for C.

For a C example, refer to Replace Audio using IltmmMultiStreamSource and IltmmMultiStreamTarget Example for C.

For a C++ example, refer to Concatenate two AVI files using IltmmMultiStreamSource and IltmmMultiStreamTarget Example for C++.

For a C++ example, refer to Replace Audio using IltmmMultiStreamSource and IltmmMultiStreamTarget Example for C++.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.