Microsoft DirectX 9.0 |
The GetSmartRecompressFormat method retrieves the current compression format for
Syntax
HRESULT GetSmartRecompressFormat(
long **ppFormat
);
Parameters
ppFormat
Address of a variable that receives a pointer to an SCompFmt0 structure, cast as a pointer to a long. If the method fails, the value is set to NULL.
Return Value
Returns an HRESULT value. Possible values include the following.
Return code | Description |
S_OK | Success. |
E_OUTOFMEMORY | Insufficient memory. |
E_POINTER | NULL pointer argument. |
Remarks
If the application has not set a smart compression format (by calling IAMTimelineGroup::SetSmartRecompressFormat), the format returned by this method will be invalid. Call the IAMTimelineGroup::IsSmartRecompressFormatSet method to determine whether a compression format was set.
If the method succeeds, the caller must free the returned media type and delete the SCompFmt0 structure:
if (pFormat) {
FreeMediaType(pFormat->MediaType);
delete pFormat;
}
Requirements
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.
See Also