次の方法で共有


CTransformInputPin::Receive (Compact 2013)

3/26/2014

Receives the next block of data from the stream.

Syntax

HRESULT Receive(
  IMediaSample* pSample 
);

Parameters

  • pSample
    Pointer to a media sample.

Return Value

Returns an HRESULT value.

Remarks

This member function implements the IMemInputPin::Receive method.

Add a reference to the block of data if access to it is required after the completion of this method. For instance, some decoder filters for temporal compression data streams require that the previous sample be kept in order to decode the current sample.

This member function calls the CTransformFilter::Receive member function, which does the work of calling the transform function and then passing the sample on.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CTransformInputPin Class