IDvdInfo2::GetSubpictureAttributes method
The GetSubpictureAttributes method retrieves the attributes of the specified subpicture stream in the specified title or menu.
Syntax
HRESULT GetSubpictureAttributes(
[in] ULONG ulStream,
[out] DVD_SubpictureAttributes *pAttributes
);
Parameters
- ulStream [in]
-
Index number, from 0 through 31, of the subpicture stream to query. See Remarks.
- pAttributes [out]
-
Pointer to a DVD_SubpictureAttributes structure that receives the subpicture attributes.
Return value
Returns one of the following HRESULT values.
| Return code | Description |
|---|---|
|
Success. |
|
No subpicture streams were found. |
|
Invalid argument. |
|
The subpicture has no defined attributes. |
Remarks
The index numbers 0-31 are valid only for titles. Menus have only one subpicture stream, which must be specified using one of the constants in the table below:
| Value | Description |
|---|---|
| DVD_STREAM_DATA_CURRENT (0x800) | To query the currently selected subpicture stream. |
| DVD_STREAM_DATA_VMGM (0x400) | To query the subpicture attributes for the Video Manager or "Top" Menu. |
| DVD_STREAM_DATA_VTSM (0x401) | To query the subpicture attributes for the currently selected Video Title Set Menu. |
This method is demonstrated in the DVDSample application in CDvdCore::GetSPAttributes() and CSPLangDlg::GetSPLang.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
See also