Share via


WM_WRITER_STATISTICS_EX structure (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The WM_WRITER_STATISTICS_EX structure is used by IWMWriterAdvanced3::GetStatisticsEx to obtain extended writer statistics.

Syntax

typedef struct _WMWriterStatisticsEx {
  DWORD dwBitratePlusOverhead;
  DWORD dwCurrentSampleDropRateInQueue;
  DWORD dwCurrentSampleDropRateInCodec;
  DWORD dwCurrentSampleDropRateInMultiplexer;
  DWORD dwTotalSampleDropsInQueue;
  DWORD dwTotalSampleDropsInCodec;
  DWORD dwTotalSampleDropsInMultiplexer;
} WM_WRITER_STATISTICS_EX;

Members

dwBitratePlusOverhead

DWORD containing the bit rate plus any overhead.

dwCurrentSampleDropRateInQueue

DWORD containing the current rate at which samples are dropped in the queue in order to reduce demands on the CPU.

dwCurrentSampleDropRateInCodec

DWORD containing the current rate at which samples are dropped in the codec. Samples can be dropped when they contain little new data. To prevent this from happening, call IWMWriterAdvanced2::SetInputSetting to set the g_wszFixedFrameRate setting to TRUE.

dwCurrentSampleDropRateInMultiplexer

DWORD containing the current rate at which samples are dropped in the multiplexer because they arrived late or overflowed the buffer window.

dwTotalSampleDropsInQueue

DWORD containing the total number of samples dropped in the queue.

dwTotalSampleDropsInCodec

DWORD containing the total number of samples dropped in the codec.

dwTotalSampleDropsInMultiplexer

DWORD containing the total number of samples dropped in the multiplexer.

Remarks

Sample rates are given in kilohertz.

Basic writer statistics are contained within a WM_WRITER_STATISTICS structure and must be obtained by calling IWMWriterAdvanced::GetStatistics.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only],Windows Media Format 9 Series SDK, or later versions of the SDK
Minimum supported server Windows 2000 Server [desktop apps only]
Header wmsdkidl.h (include Wmsdk.h)

See also

Structures