IMediaObjectImpl.InternalGetInputSizeInfo Method

IMediaObjectImpl

An NDoc Documented Class Library

IMediaObjectImpl.InternalGetInputSizeInfo Method 

(Virtual) Retrieves the buffer requirements for a specified input stream

protected virtual int InternalGetInputSizeInfo(
   int dwInputStreamIndex,
   out int pcbSize,
   out int pcbMaxLookahead,
   out int pcbAlignment
);

Parameters

dwInputStreamIndex
Input stream number
pcbSize
Minimum size of an input buffer for this stream, in bytes
pcbMaxLookahead
Maximum amount of data that the DMO will hold for lookahead, in bytes
pcbAlignment
the required buffer alignment, in bytes. If the input stream has no alignment requirement, the value is 1.

Return Value

S_OK for successful operation

Remarks

The implementator could override this method to specify different values. The default implementation reports that we can accept any alignment, hold no lookahead buffers, and the input buffer must be at least 1 byte long.

See Also

IMediaObjectImpl Class | MediaObjectTemplate Namespace