Partager via


Declaring the Derived Class (Windows Embedded CE 6.0)

1/6/2010

The IMediaObjectImpl template is declared in the header with the following syntax.

template <class _DERIVED_, 
int NUMBEROFINPUTS, 
int NUMBEROFOUTPUTS>
class IMediaObjectImpl : public IMediaObject

Parameters

  • *_*DERIVED_
    Derived class type.
  • NUMBEROFINPUTS
    Number of input streams.
  • NUMBEROFOUTPUTS
    Number of output streams.

Return Values

None.

Remarks

For example, to create a derived class named CMyDmoClass that supports one input stream and one output stream, you would declare it as follows.

class CMyDmoClass :
    public IMediaObjectImpl<CMyDmoClass, 1, 1>  // 1 input, 1 output

DMOs cannot dynamically create or destroy streams, so the stream numbers are constant.

Requirements

Header dmoimpl.h
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

DMO Reference
DMO Base Class Reference
IMediaObjectImpl Class Template

Concepts

Using the DMO Base Class