MediaOutputInterface Class Reference

#include <mediasession_output.h>

Inheritance diagram for MediaOutputInterface:

详细描述

The MediaOutputInterface class provides an specific implementation to provide output data to a given destination.

公共成员函数

MAXON_METHOD Result < void >  ResetConverter ()
MAXON_METHOD Result < void >  SetSelectionHandler (const MediaOutputSelectionHandler &selectionHandler)
const MAXON_METHOD MediaOutputSelectionHandler GetSelectionHandler () const
MAXON_METHOD Result < SELECTIONHANDLERRESULT CallSelectionHandler (const MediaStreamRef &stream, const MediaStreamFormat &props)

私有成员函数

  MAXON_INTERFACE ( MediaOutputInterface , MAXON_REFERENCE_NORMAL , "net.maxon.image.interface.mediaoutput")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( MediaOutputInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.image.interface.mediaoutput"   
)
private

◆  ResetConverter()

MAXON_METHOD Result <void> ResetConverter ( )

Resets the converter to default state. This function will be called if the converter is reused and needs to be reinitialized.

返回
OK on success.

◆  SetSelectionHandler()

MAXON_METHOD Result <void> SetSelectionHandler ( const MediaOutputSelectionHandler selectionHandler )

Sets a selection handler to be called as soon as a new stream is recognized.

参数
[in] selectionHandler Handler to be called.
返回
OK on success.

◆  GetSelectionHandler()

const MAXON_METHOD MediaOutputSelectionHandler & GetSelectionHandler ( ) const

Sets a selection handler to be called as soon as a new stream is recognized.

返回
OK on success.

◆  CallSelectionHandler()

MAXON_METHOD Result < SELECTIONHANDLERRESULT > CallSelectionHandler ( const MediaStreamRef &  stream ,
const MediaStreamFormat &  props  
)

Called by the input media converter implementation before loading a stream. This function triggers the execution of the MediaOutputSelectionHandler set with SetSelectionHandler.

参数
[in] stream Stream to check for filtering.
[in] props Properties of the stream. This can be used to filter for names or special formats etc.
返回
OK on success.