IAMVideoCompression::OverrideFrameSize
Microsoft DirectShow 9.0 |
IAMVideoCompression::OverrideFrameSize
The OverrideFrameSize method overrides the frame size of a specified frame.
Syntax
HRESULT OverrideFrameSize( long FrameNumber, long Size );
Parameters
FrameNumber
[in] Specifies the frame number. The first frame that the filter delivers is numbered zero.
Size
[in] Specifies the maximum size of the specified frame, in bytes.
Return Values
Returns an HRESULT value. Possible values include the following.
Return code | Description |
S_OK | Success. |
E_NOTIMPL | Not implemented. |
Remarks
If the filter supports this method, the IAMVideoCompression::GetInfo method will return the CompressionCaps_CanCrunch flag in the pCapabilities parameter. However, this flag can also indicate that the filter supports setting the bit rate, so it does not guarantee that the OverrideFrameSize method is supported.
Requirements
Header: Declared in Strmif.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also