共用方式為


IAMVideoAccelerator::GetInternalCompBufferInfo

 
Microsoft DirectShow 9.0

IAMVideoAccelerator::GetInternalCompBufferInfo

The GetInternalCompBufferInfo method called after the pins are connected, retrieving compressed buffer information given the connected type.

Syntax

  HRESULT GetInternalCompBufferInfo(
  LPDWORD pdwNumTypesCompBuffers,
  LPAMVACompBufferInfo pamvaCompBufferInfo
);

Parameters

pdwNumTypesCompBuffers

[in] [out] Pointer to a variable of type DWORD. If pamvaCompBufferInfo is not NULL, this parameter receives the number of uncompressed buffer types. Otherwise, on input this parameter specifies the maximum number of compressed buffer types to return, and on output receives the actual number of compressed buffer types.

pamvaCompBufferInfo

[out] If non-NULL, then up to pdwNumTypesCompBuffers AMVACompBufferInfo structures are returned. This data includes the width, height, pixel format, and DirectDraw capabilities to be used to create the surface and the size in bytes the surface will occupy.

Return Values

Returns an HRESULT value that depends on the implementation of the interface. HRESULT can include one of the following standard constants, or other values not listed.

Return code Description
E_FAIL Failure.
E_INVALIDARG Argument is invalid.
E_NOTIMPL Method is not supported.
E_POINTER Null pointer argument.
S_OK Success.

Remarks

A video accelerator driver may support multiple compressed buffer types (for instance, video accelerator data and Inverse Discrete Cosine Transfer [IDCT] data.)

Requirements

Header: Include videoacc.h.

Library: Use Strmiids.lib.

See Also