次の方法で共有


CMediaType::GetSampleSize

 
Microsoft DirectShow 9.0

CMediaType::GetSampleSize

The GetSampleSize method retrieves the sample size.

Syntax

  ULONG GetSampleSize(void) const;

Return Value

If the sample size is fixed, returns the sample size in bytes. Otherwise, returns zero.

Requirements

**  Header:** Declared in Mtype.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also