-
首页
-
C4D R23.110 C++ SDK
MediaConverterInterface Class Reference
#include <mediasession_converter.h>
详细描述
MediaConverterInterface
is a generic interface to access media conversions. It allows to connect streams and triggers the evaluation of the network.
成员函数文档编制
◆
MAXON_INTERFACE()
◆
SupportImportStrategy()
Returns true for media importers: The converter supports the import strategy where the input pushes the read data to the output nodes. The media session can only connect converters which support the same strategies, e.g.
MediaStreamImageDataImportInterface
.
-
返回
-
True for supported imported strategy, false otherwise.
◆
SupportExportStrategy()
Returns true for media exporters: The converter supports the export strategy where the output pulls the required data from the input nodes. The media session can only connect converters which support the same strategies, e.g.
MediaStreamImageDataExportInterface
.
-
返回
-
True for supported export strategy, false otherwise.
◆
GetInputConverter()
Get the connected MediaConvertRef used as input. An empty array if it's the source/root.
-
返回
-
Array
of inputs.
◆
AddOutputStream()
Adds an output stream to the converter.
-
返回
-
OK on success.
◆
RemoveOutputStream()
Removes an output stream from the converter.
-
返回
-
OK on success.
◆
GetOutputStreams()
Returns all output streams of this converter.
-
参数
-
[in]
|
flattenChildren
|
Return also all children streams by running recursively through all streams.
|
-
返回
-
Array
of output streams.
◆
Analyze()
Analyzes the streams. A converter needs to call the same function for all inputs followed by calling stream.SubscribeStream() to signal the interest for one or more streams.
-
参数
-
[in]
|
inputs
|
Block
of input streams to evaluate.
|
[in]
|
targetTime
|
Target time to load.
|
[in]
|
flags
|
See MEDIASESSIONFLAGS for details.
|
-
返回
-
OK on success.
◆
PrepareExecute()
Prepares to execute the streams. Called after
Analyze()
and before
Execute()
. At this moment all requested streams are already subscribed. This allows to setup progress hooks to setup correctly with the necessary data.
-
参数
-
[in]
|
inputs
|
Block
of input streams to evaluate.
|
[in]
|
targetTime
|
Target time to load.
|
[in]
|
flags
|
See MEDIASESSIONFLAGS for details.
|
-
返回
-
OK on success.
◆
Execute()
Executes the streams.
-
参数
-
[in]
|
inputs
|
Block
of input streams to evaluate.
|
[in]
|
targetTime
|
Target time to load.
|
[in]
|
flags
|
See MEDIASESSIONFLAGS for details.
|
-
返回
-
OK on success.
◆
Close()
Closes the converter and closes all streams and operations.
-
参数
-
[in]
|
inputs
|
Block
of input streams to close.
|
-
返回
-
OK on success.