Skip to content

Latest commit

 

History

History
122 lines (97 loc) · 3.54 KB

nf-vfw-avistreamfindsample.md

File metadata and controls

122 lines (97 loc) · 3.54 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:vfw.AVIStreamFindSample
AVIStreamFindSample function (vfw.h)
The AVIStreamFindSample function returns the position of a sample (key frame, nonempty frame, or a frame containing a format change) relative to the specified position.
AVIStreamFindSample
AVIStreamFindSample function [Windows Multimedia]
_win32_AVIStreamFindSample
multimedia.avistreamfindsample
vfw/AVIStreamFindSample
multimedia\avistreamfindsample.htm
Multimedia
2bd89f50-0d3a-4c34-b7b8-dc29f2d54d55
12/05/2018
AVIStreamFindSample, AVIStreamFindSample function [Windows Multimedia], _win32_AVIStreamFindSample, multimedia.avistreamfindsample, vfw/AVIStreamFindSample
vfw.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Vfw32.lib
Avifil32.dll
Windows
19H1
AVIStreamFindSample
vfw/AVIStreamFindSample
c++
APIRef
kbSyntax
DllExport
Avifil32.dll
AVIStreamFindSample

AVIStreamFindSample function

-description

The AVIStreamFindSample function returns the position of a sample (key frame, nonempty frame, or a frame containing a format change) relative to the specified position.

This function supersedes the obsolete AVIStreamFindKeyFrame function.

-parameters

-param pavi

Handle to an open stream.

-param lPos

Starting frame for the search.

-param lFlags

Flags that designate the type of frame to locate, the direction in the stream to search, and the type of return information. The following flags are defined.

Value Meaning
FIND_ANY Finds a nonempty frame. This flag supersedes the SEARCH_ANY flag.
FIND_KEY Finds a key frame. This flag supersedes the SEARCH_KEY flag.
FIND_FORMAT Finds a format change.
FIND_NEXT Finds nearest sample, frame, or format change searching forward. The current sample is included in the search. Use this flag with the FIND_ANY, FIND_KEY, or FIND_FORMAT flag. This flag supersedes the SEARCH_FORWARD flag.
FIND_PREV Finds nearest sample, frame, or format change searching backward. The current sample is included in the search. Use this flag with the FIND_ANY, FIND_KEY, or FIND_FORMAT flag. This flag supersedes the SEARCH_NEAREST and SEARCH_BACKWARD flags.
FIND_FROM_START Finds first sample, frame, or format change beginning from the start of the stream. Use this flag with the FIND_ANY, FIND_KEY, or FIND_FORMAT flag.

-returns

Returns the position of the frame found or -1 if the search is unsuccessful.

-remarks

The FIND_KEY, FIND_ANY, and FIND_FORMAT flags are mutually exclusive, as are the FIND_NEXT and FIND_PREV flags.

The argument pavi contains a pointer to an IAVIStream interface.

-see-also

AVIFile Functions

AVIFile Functions and Macros