engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IMediaClockSink类 参考

Interface for media clock sinks. 更多...

#include <IMediaClockSink.h>

+ 类 IMediaClockSink 继承关系图:

Public 成员函数

virtual void TickFetch (FTimespan DeltaTime, FTimespan Timecode)
 Called each tick to handle updates after the Engine ticked. 更多...
 
virtual void TickInput (FTimespan DeltaTime, FTimespan Timecode)
 Called each tick to handle input before the Engine is ticked. 更多...
 
virtual void TickOutput (FTimespan DeltaTime, FTimespan Timecode)
 Called each tick to output the rendered frame. 更多...
 
virtual void TickRender (FTimespan DeltaTime, FTimespan Timecode)
 Called each tick before the frame finished rendering. 更多...
 
virtual ~IMediaClockSink ()
 Virtual destructor.
 

详细描述

Interface for media clock sinks.

This interface can be implemented by classes that wish to be ticked by the Media Framework clock. The following tick stages are available (in the order in which they are called on clock sinks):

TickInput Called each tick from the main thread before the Engine is being ticked. It is used by media player plug-ins to update their state and initiate the reading of new input samples.

TickFetch Called each tick from the main thread after the Engine has been ticked, but before TickRender. It can be used by media players to fetch the results of the TickInput stage prior to rendering.

TickRender Called each tick from the main thread after TickFetch is complete, but before the frame has finished rendering. It is mainly used by media sinks to render the fetched input samples, such as drawing video frames to a texture or playing audio samples on a sound component.

TickOutput Called each tick from the main thread after the Engine has been ticked and the frame finished rendering. It can be used by output plug-ins to write the completed frame to disk or stream it over the network.

成员函数说明

◆ TickFetch()

virtual void IMediaClockSink::TickFetch ( FTimespan  DeltaTime,
FTimespan  Timecode 
)
inlinevirtual

Called each tick to handle updates after the Engine ticked.

参数
DeltaTimeTime since this function was last called.
TimecodeThe current media time code.
参见
TickInput, TickOutput, TickRender

被 FMediaPlayerFacade 重载.

◆ TickInput()

virtual void IMediaClockSink::TickInput ( FTimespan  DeltaTime,
FTimespan  Timecode 
)
inlinevirtual

Called each tick to handle input before the Engine is ticked.

参数
DeltaTimeTime since this function was last called.
TimecodeThe current media time code.
参见
TickFetch, TickOutput, TickRender

被 FMediaPlayerFacade 重载.

◆ TickOutput()

virtual void IMediaClockSink::TickOutput ( FTimespan  DeltaTime,
FTimespan  Timecode 
)
inlinevirtual

Called each tick to output the rendered frame.

参数
DeltaTimeTime since this function was last called.
TimecodeThe current media time code.
参见
TickFetch, TickInput, TickRender

被 FMediaPlayerFacade 重载.

◆ TickRender()

virtual void IMediaClockSink::TickRender ( FTimespan  DeltaTime,
FTimespan  Timecode 
)
inlinevirtual

Called each tick before the frame finished rendering.

参数
DeltaTimeTime since this function was last called.
TimecodeThe current media time code.
参见
TickFetch, TickInput, TickOutput

该类的文档由以下文件生成: