共用方式為


IAMVideoCompression::get_WindowSize

Send Feedback

This method retrieves the number of frames over which the compressor will maintain the average data rate.

For example, assuming a data rate of 100K/sec and a frame rate of 10 frames per second, if the window size is 1, then every frame will be 10K or less. If the window size is 5, then every five consecutive frames will average 10K per frame, but individual frames may exceed this size.

The default window size is 1.

HRESULT get_WindowSize(
  DWORDLONG* pWindowSize
);

Parameters

  • pWindowSize
    [out] Pointer to a DWORDLONG variable that receives the window size, expressed as a number of frames.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success.
E_NOTIMPL Not implemented.
E_POINTER NULL pointer argument.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later.
Header:

See Also

IAMVideoCompression Interface | IAMVideoCompression::put_WindowSize

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.