|Microsoft DirectX 9.0|
The BeginFrame method begins frame processing.
HRESULT BeginFrame( const AMVABeginFrameInfo *pamvaBeginFrameInfo );
[in] Pointer to an AMVABeginFrameInfo structure containing the information needed to begin processing the frame.
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.
|E_INVALIDARG||Argument is invalid.|
|E_NOTIMPL||Method is not supported.|
|E_POINTER||Null pointer argument.|
This method can only be called after the pins are connected.
The AMVABeginFrameInfo structure contains an index to the destination buffer. Valid index values are from zero to dwActualUncompSurfacesAllocated1), obtained by calling IAMVideoAcceleratorNotify::SetUncompSurfacesInfo.
The decoder should not make any assumption about the initial contents of the frame, as the frame memory used might not be the same as the memory last used with this frame index.
A call to this method might block operation processing if no non-busy frame buffer is available.