다음을 통해 공유


IBitstreamProcessor::SetBitstreamType (Windows CE 5.0)

Send Feedback

This method sets the bit-stream type to a defined value and should be called immediately after IBitstreamProcessor::Init.

HRESULT SetBitstreamType(DWORDdwBitstreamType);

Parameters

  • dwBitstreamType
    [in] Predefined value for a bit stream.

Return Values

The following table shows a list of possible return values.

Return value Description
S_OK The request completed successfully.
E_INVALIDARG The dwBitstreamType parameter was not understood.
E_UNEXPECTED Initialization was unsuccessful.

Remarks

The bit-stream microprocessor is being set to a predefined stream type that corresponds to the intended data stream type. This is accomplished by the metadriver by mapping from a requested media control interface to a data type stored in the system registry. Also during this call, DMA channels along with their role should be set up. This call should precede any DMA channel related calls.

This method can be called more than once with different types per single initialization call. All activities related to any previous bit-stream type and the DMA channels associate with it will be stopped by the client and the driver. The client software should retrieve a new set of DMA channels after a successful result from IbitStreamProcessor::SetBitstreamType.

You can define your own supported media types and associate codes. There are no pre-defined bit-stream type codes. The renderer should provide a registry key that maps the globally unique identifier (GUID) of the primary media control interface to a bit-stream type DWORD. The metarenderer will call back into a renderer with this code during initialization.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Dvddrvr.idl.

See Also

IBitstreamProcessor::Init | IBitstreamProcessor:IUnknown

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.