Ocean
Ocean Media MediaFoundation Library

The Ocean Media MediaFoundation Library provides MediaFoundation media functionalities. More...

Collaboration diagram for Ocean Media MediaFoundation Library:

Data Structures

class  Ocean::Media::MediaFoundation::MFAudio
 This class implements a Media Foundation audio object. More...
 
class  Ocean::Media::MediaFoundation::MFFiniteMedium
 This class is the base class for all Media Foundation finite mediums. More...
 
class  Ocean::Media::MediaFoundation::MFFrameMedium
 This is the base class for all Media Foundation frame mediums. More...
 
class  Ocean::Media::MediaFoundation::MFLibrary
 This class implements the MediaFoundation library. More...
 
class  Ocean::Media::MediaFoundation::MFLiveVideo
 This class implements a MediaFoundation live video object allowing to access e.g., webcams. More...
 
class  Ocean::Media::MediaFoundation::MFMedium
 This is the base class for all MediaFoundation mediums. More...
 
class  Ocean::Media::MediaFoundation::MFMovie
 This class implements a MediaFoundation movie object. More...
 
class  Ocean::Media::MediaFoundation::MFMovieRecorder
 This class implements a MediaFoundation movie recorder object. More...
 
class  Ocean::Media::MediaFoundation::MFSoundMedium
 This class is the base class for all MediaFoundation sound mediums. More...
 
class  Ocean::Media::MediaFoundation::SampleGrabber
 This class implements a callback interface. More...
 
class  Ocean::Media::MediaFoundation::Utilities
 This class implements utilities functions for the Microsoft Media Foundation. More...
 

Typedefs

template<typename T >
using Ocean::Media::MediaFoundation::ScopedMediaFoundationObject = ScopedObjectCompileTimeVoidT< T *, release >
 Template specialization for ScopedObjectCompileTimeVoid using the release() function to release media foundation objects. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFActivate = ScopedMediaFoundationObject< IMFActivate >
 Definition of a scoped object holding a IMFActivate object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFAudioStreamVolume = ScopedMediaFoundationObject< IMFAudioStreamVolume >
 Definition of a scoped object holding a IMFAudioStreamVolume object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFAttributes = ScopedMediaFoundationObject< IMFAttributes >
 Definition of a scoped object holding a IMFAttributes object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFMediaBuffer = ScopedMediaFoundationObject< IMFMediaBuffer >
 Definition of a scoped object holding a IMFMediaBuffer object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFMediaEvent = ScopedMediaFoundationObject< IMFMediaEvent >
 Definition of a scoped object holding a IMFMediaEvent object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFMediaEventGenerator = ScopedMediaFoundationObject< IMFMediaEventGenerator >
 Definition of a scoped object holding a IMFMediaEventGenerator object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFMediaSession = ScopedMediaFoundationObject< IMFMediaSession >
 Definition of a scoped object holding a IMFMediaSession object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFMediaSource = ScopedMediaFoundationObject< IMFMediaSource >
 Definition of a scoped object holding a ScopedIMFMediaSource object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFMediaType = ScopedMediaFoundationObject< IMFMediaType >
 Definition of a scoped object holding a IMFMediaType object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFMediaTypeHandler = ScopedMediaFoundationObject< IMFMediaTypeHandler >
 Definition of a scoped object holding a IMFMediaTypeHandler object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFSample = ScopedMediaFoundationObject< IMFSample >
 Definition of a scoped object holding a IMFSample object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFStreamSink = ScopedMediaFoundationObject< IMFStreamSink >
 Definition of a scoped object holding a IMFStreamSink object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFTopology = ScopedMediaFoundationObject< IMFTopology >
 Definition of a scoped object holding a IMFTopology object. More...
 
using Ocean::Media::MediaFoundation::ScopedIMFTopologyNode = ScopedMediaFoundationObject< IMFTopologyNode >
 Definition of a scoped object holding a IMFTopologyNode object. More...
 
typedef ScopedMediaFoundationObject< SampleGrabberOcean::Media::MediaFoundation::ScopedSampleGrabber
 Definition of a scoped object holding a SampleGrabber object. More...
 

Functions

OCEAN_MEDIA_MF_EXPORT std::string Ocean::Media::MediaFoundation::nameMediaFoundationLibrary ()
 Returns the name of this media MediaFoundation library. More...
 
void Ocean::Media::MediaFoundation::registerMediaFoundationLibrary ()
 Registers this media library at the global library manager. More...
 
bool Ocean::Media::MediaFoundation::unregisterMediaFoundationLibrary ()
 Unregisters this media library at the global library manager. More...
 
template<class T >
void Ocean::Media::MediaFoundation::release (T *object)
 This functions allows to release a media foundation object if it does exist. More...
 
bool OCEAN_MEDIA_MF_EXPORT pluginLoad ()
 Tries to load the plugin and initializes all internal 3rd party libraries. More...
 
bool OCEAN_MEDIA_MF_EXPORT pluginUnload ()
 Tries to unload the plugin and all internal resources of 3rd party libraries. More...
 

Detailed Description

The Ocean Media MediaFoundation Library provides MediaFoundation media functionalities.

The library is available on windows platforms only.

Typedef Documentation

◆ ScopedIMFActivate

Definition of a scoped object holding a IMFActivate object.

The wrapped IMFActivate object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFAttributes

Definition of a scoped object holding a IMFAttributes object.

The wrapped IMFAttributes object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFAudioStreamVolume

Definition of a scoped object holding a IMFAudioStreamVolume object.

The wrapped IMFAudioStreamVolume object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFMediaBuffer

Definition of a scoped object holding a IMFMediaBuffer object.

The wrapped IMFMediaBuffer object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFMediaEvent

Definition of a scoped object holding a IMFMediaEvent object.

The wrapped IMFMediaEvent object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFMediaEventGenerator

Definition of a scoped object holding a IMFMediaEventGenerator object.

The wrapped IMFMediaEventGenerator object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFMediaSession

Definition of a scoped object holding a IMFMediaSession object.

The wrapped IMFMediaSession object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFMediaSource

Definition of a scoped object holding a ScopedIMFMediaSource object.

The wrapped ScopedIMFMediaSource object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFMediaType

Definition of a scoped object holding a IMFMediaType object.

The wrapped IMFMediaType object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFMediaTypeHandler

Definition of a scoped object holding a IMFMediaTypeHandler object.

The wrapped IMFMediaTypeHandler object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFSample

Definition of a scoped object holding a IMFSample object.

The wrapped IMFSample object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFStreamSink

Definition of a scoped object holding a IMFStreamSink object.

The wrapped IMFStreamSink object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFTopology

Definition of a scoped object holding a IMFTopology object.

The wrapped IMFTopology object will be released automatically once the scoped object does not exist anymore.

◆ ScopedIMFTopologyNode

Definition of a scoped object holding a IMFTopologyNode object.

The wrapped IMFTopologyNode object will be released automatically once the scoped object does not exist anymore.

◆ ScopedMediaFoundationObject

Template specialization for ScopedObjectCompileTimeVoid using the release() function to release media foundation objects.

Template Parameters
TThe data type of the wrapped object

◆ ScopedSampleGrabber

Definition of a scoped object holding a SampleGrabber object.

The wrapped SampleGrabber object will be released automatically once the scoped object does not exist anymore.

Function Documentation

◆ nameMediaFoundationLibrary()

OCEAN_MEDIA_MF_EXPORT std::string Ocean::Media::MediaFoundation::nameMediaFoundationLibrary ( )

Returns the name of this media MediaFoundation library.

◆ pluginLoad()

bool OCEAN_MEDIA_MF_EXPORT pluginLoad ( )

Tries to load the plugin and initializes all internal 3rd party libraries.

Make sure that the plugin will be loaded only once!

Returns
True, if succeeded
See also
pluginUnload().

◆ pluginUnload()

bool OCEAN_MEDIA_MF_EXPORT pluginUnload ( )

Tries to unload the plugin and all internal resources of 3rd party libraries.

Make sure that all resources of this plugin has been released before!

Returns
True, if succeeded
See also
pluginLoad().

◆ registerMediaFoundationLibrary()

void Ocean::Media::MediaFoundation::registerMediaFoundationLibrary ( )

Registers this media library at the global library manager.

This function calls MFLibrary::registerLibrary() only.

◆ release()

template<class T >
void Ocean::Media::MediaFoundation::release ( T *  object)

This functions allows to release a media foundation object if it does exist.

Parameters
objectMedia Foundation object to be released

◆ unregisterMediaFoundationLibrary()

bool Ocean::Media::MediaFoundation::unregisterMediaFoundationLibrary ( )

Unregisters this media library at the global library manager.

This function calls MFLibrary::unregisterLibrary() only.

Returns
True, if succeeded