Skip to content

Latest commit

 

History

History
147 lines (111 loc) · 5.06 KB

nf-wmcontainer-imfasfindexer-getseekpositionforvalue.md

File metadata and controls

147 lines (111 loc) · 5.06 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wmcontainer.IMFASFIndexer.GetSeekPositionForValue
IMFASFIndexer::GetSeekPositionForValue (wmcontainer.h)
Given a desired seek time, gets the offset from which the client should start reading data.
GetSeekPositionForValue
GetSeekPositionForValue method [Media Foundation]
GetSeekPositionForValue method [Media Foundation]
IMFASFIndexer interface
IMFASFIndexer interface [Media Foundation]
GetSeekPositionForValue method
IMFASFIndexer.GetSeekPositionForValue
IMFASFIndexer::GetSeekPositionForValue
c8e9982e-b056-48dc-ac5f-20bf65b475ec
mf.imfasfindexer_getseekpositionforvalue
wmcontainer/IMFASFIndexer::GetSeekPositionForValue
mf\imfasfindexer_getseekpositionforvalue.htm
mf
c8e9982e-b056-48dc-ac5f-20bf65b475ec
12/05/2018
GetSeekPositionForValue, GetSeekPositionForValue method [Media Foundation], GetSeekPositionForValue method [Media Foundation],IMFASFIndexer interface, IMFASFIndexer interface [Media Foundation],GetSeekPositionForValue method, IMFASFIndexer.GetSeekPositionForValue, IMFASFIndexer::GetSeekPositionForValue, c8e9982e-b056-48dc-ac5f-20bf65b475ec, mf.imfasfindexer_getseekpositionforvalue, wmcontainer/IMFASFIndexer::GetSeekPositionForValue
wmcontainer.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Mfuuid.lib
Windows
19H1
IMFASFIndexer::GetSeekPositionForValue
wmcontainer/IMFASFIndexer::GetSeekPositionForValue
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFASFIndexer.GetSeekPositionForValue

IMFASFIndexer::GetSeekPositionForValue

-description

Given a desired seek time, gets the offset from which the client should start reading data.

-parameters

-param pvarValue [in]

The value of the index entry for which to get the position. The format of this value varies depending on the type of index, which is specified in the index identifier. For time-based indexing, the variant type is VT_I8 and the value is the desired seek time, in 100-nanosecond units.

-param pIndexIdentifier [in]

Pointer to an ASF_INDEX_IDENTIFIER structure that identifies the stream number and index type.

-param pcbOffsetWithinData [out]

Receives the offset within the data segment of the ASF Data Object. The offset is in bytes, and is relative to the start of packet 0. The offset gives the starting location from which the client should begin reading from the stream. This location might not correspond exactly to the requested seek time.

For reverse playback, if no key frame exists after the desired seek position, this parameter receives the value MFASFINDEXER_READ_FOR_REVERSEPLAYBACK_OUTOFDATASEGMENT. In that case, the seek position should be 1 byte pass the end of the data segment.

-param phnsApproxTime [out]

Receives the approximate time stamp of the data that is located at the offset returned in the pcbOffsetWithinData parameter. The accuracy of this value is equal to the indexing interval of the ASF index, typically about 1 second.

  • If the index type specified in pIndexIdentifier is GUID_NULL (time indexing), this parameter can be NULL.
  • For all other index types, this parameter must be NULL.
If the approximate time stamp cannot be determined, this parameter receives the value MFASFINDEXER_APPROX_SEEK_TIME_UNKNOWN.

-param pdwPayloadNumberOfStreamWithinPacket [out]

Receives the payload number of the payload that contains the information for the specified stream. Packets can contain multiple payloads, each containing data for a different stream. This parameter can be NULL.

-returns

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

Return code Description
S_OK
The method succeeded.
MF_E_ASF_OUTOFRANGE
The requested seek time is out of range.
MF_E_NO_INDEX
No index exists of the specified type for the specified stream.

-see-also

ASF Index Object

IMFASFIndexer

MFTIME