MFConvertBuffer2SubtitleInfo

Converts a buffer to subtitle information.

Syntax

HRESULT MFConvertBuffer2SubtitleInfo(
         ULONG nSize,
         BYTE *pInfoBuffer,
         MF_SUBTITLE_INFO **ppSubtitleInfo
)  

Parameters

nSize
Type: ULONG 

[in] Size.

pInfoBuffer
Type: BYTE *

[in] Pointer to the buffer.

ppSubtitleInfo
Type: MF_SUBTITLE_INFO **

[out] Pointer to the resulting subtitle information, populated after MFConvertBuffer2SubtitleInfo returns.

Return value

Type: HRESULT 

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The function succeeded.

Refer to Media Foundation return codes.

Requirements

Header: Declared in mfapi.h.