Skip to content

Latest commit

 

History

History
82 lines (62 loc) · 3.82 KB

nf-strmif-iamvideocompression-put_pframesperkeyframe.md

File metadata and controls

82 lines (62 loc) · 3.82 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:strmif.IAMVideoCompression.put_PFramesPerKeyFrame
IAMVideoCompression::put_PFramesPerKeyFrame (strmif.h)
The put_PFramesPerKeyFrame method sets the rate of predicted (P) frames per key frame.
IAMVideoCompression interface [DirectShow]
put_PFramesPerKeyFrame method
IAMVideoCompression.put_PFramesPerKeyFrame
IAMVideoCompression::put_PFramesPerKeyFrame
IAMVideoCompressionput_PFramesPerKeyFrame
dshow.iamvideocompression_put_pframesperkeyframe
put_PFramesPerKeyFrame
put_PFramesPerKeyFrame method [DirectShow]
put_PFramesPerKeyFrame method [DirectShow]
IAMVideoCompression interface
strmif/IAMVideoCompression::put_PFramesPerKeyFrame
dshow\iamvideocompression_put_pframesperkeyframe.htm
dshow
bf1dfc28-a6c7-4c0d-96ea-8cf417b13a10
4/26/2023
IAMVideoCompression interface [DirectShow],put_PFramesPerKeyFrame method, IAMVideoCompression.put_PFramesPerKeyFrame, IAMVideoCompression::put_PFramesPerKeyFrame, IAMVideoCompressionput_PFramesPerKeyFrame, dshow.iamvideocompression_put_pframesperkeyframe, put_PFramesPerKeyFrame, put_PFramesPerKeyFrame method [DirectShow], put_PFramesPerKeyFrame method [DirectShow],IAMVideoCompression interface, strmif/IAMVideoCompression::put_PFramesPerKeyFrame
strmif.h
Dshow.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Strmiids.lib
Windows
19H1
IAMVideoCompression::put_PFramesPerKeyFrame
strmif/IAMVideoCompression::put_PFramesPerKeyFrame
c++
APIRef
kbSyntax
COM
Strmiids.lib
Strmiids.dll
IAMVideoCompression.put_PFramesPerKeyFrame

IAMVideoCompression::put_PFramesPerKeyFrame

-description

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The put_PFramesPerKeyFrame method sets the rate of predicted (P) frames per key frame.

-parameters

-param PFramesPerKeyFrame [in]

Specifies the number of P frames per key frame. If the value is negative, the filter will use the default rate.

-returns

Returns an HRESULT value.

-remarks

To determine if the filter supports this method, call the IAMVideoCompression::GetInfo method and check for the CompressionCaps_CanBFrame flag in the pCapabilities parameter. The GetInfo method also returns the default P-frame rate.

-see-also

Error and Success Codes

IAMVideoCompression Interface

IAMVideoCompression::get_PFramesPerKeyFrame