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

Interface for a media player's viewing settings. 更多...

#include <IMediaView.h>

Public 成员函数

virtual bool GetViewField (float &OutHorizontal, float &OutVertical) const
 Get the field of view. 更多...
 
virtual bool GetViewOrientation (FQuat &OutOrientation) const
 Get the view's orientation. 更多...
 
virtual bool IsViewFocusEnabled () const
 Whether the view focus is enabled. 更多...
 
virtual bool SetInteroccularDistance (float Distance)
 Set the inter-ocular distance. 更多...
 
virtual bool SetViewField (float Horizontal, float Vertical, bool Absolute)
 Set the field of view. 更多...
 
virtual bool SetViewFocusEnabled (bool Enabled)
 Enable or disable view focus. 更多...
 
virtual bool SetViewFocusField (float Horizontal, float Vertical)
 Set the view's focused field of view. 更多...
 
virtual bool SetViewFocusOffImportance (float Importance)
 Set the importance of the area that is not in focus. 更多...
 
virtual bool SetViewFocusOrientation (const FQuat &Orientation)
 Set the view's focused orientation. 更多...
 
virtual bool SetViewOrientation (const FQuat &Orientation, bool Absolute)
 Set the view's orientation. 更多...
 
virtual ~IMediaView ()
 Virtual destructor.
 

详细描述

Interface for a media player's viewing settings.

This interface is used to control viewing parameters in media players that support 360-degree or stereoscopic video output, or spatial audio output. There are currently three sets of configurable parameters: view, view focus and user settings.

The view is the area that the user is looking at. Media players may use it to optimize the decoding of the media, i.e. only decode the sub-section of the video that is actually visible.

The view focus is an optional area that allows for specifying which area the user is or should be focusing on. Media players may use it for foveated video rendering or for making the focused area more audible.

The user settings can be used by media players to customize the generated audio or video output for specific users.

参见
IMediaCache, IMediaControls, IMediaPlayer, IMediaSamples, IMediaTracks

成员函数说明

◆ GetViewField()

virtual bool IMediaView::GetViewField ( float &  OutHorizontal,
float &  OutVertical 
) const
inlinevirtual

Get the field of view.

参数
OutHorizontalWill contain the horizontal field of view.
OutVerticalWill contain the vertical field of view.
返回
true on success, false if feature is not available or if field of view has never been set.
参见
GetViewOrientation, SetViewField

◆ GetViewOrientation()

virtual bool IMediaView::GetViewOrientation ( FQuat &  OutOrientation) const
inlinevirtual

Get the view's orientation.

参数
OutOrientationWill contain the view orientation.
返回
true on success, false if feature is not available or if orientation has never been set.
参见
GetViewField, SetViewOrientation

◆ IsViewFocusEnabled()

virtual bool IMediaView::IsViewFocusEnabled ( ) const
inlinevirtual

Whether the view focus is enabled.

返回
true if enabled, false otherwise.

◆ SetInteroccularDistance()

virtual bool IMediaView::SetInteroccularDistance ( float  Distance)
inlinevirtual

Set the inter-ocular distance.

参数
DistanceThe inter-ocular distance (in centimeters).
返回
true on success, false otherwise.

◆ SetViewField()

virtual bool IMediaView::SetViewField ( float  Horizontal,
float  Vertical,
bool  Absolute 
)
inlinevirtual

Set the field of view.

参数
HorizontalHorizontal field of view (in Euler degrees).
VerticalVertical field of view (in Euler degrees).
Whetherthe field of view change should be absolute (true) or relative (false).
返回
true on success, false otherwise.
参见
GetViewField, SetViewFocusField, SetViewOrientation

◆ SetViewFocusEnabled()

virtual bool IMediaView::SetViewFocusEnabled ( bool  Enabled)
inlinevirtual

Enable or disable view focus.

参数
Enabledtrue to enable, false to disable.
返回
true on success, false otherwise.
参见
IsViewFocusEnabled, SetViewFocusField, SetViewFocusOffImportance, SetViewFocusOrientation

◆ SetViewFocusField()

virtual bool IMediaView::SetViewFocusField ( float  Horizontal,
float  Vertical 
)
inlinevirtual

Set the view's focused field of view.

参数
HorizontalHorizontal field of view (in Euler degrees).
VerticalVertical field of view (in Euler degrees).
返回
true on success, false otherwise.
参见
SetViewFocusEnabled, SetViewFocusOffImportance, SetViewField, SetViewFocusOrientation

◆ SetViewFocusOffImportance()

virtual bool IMediaView::SetViewFocusOffImportance ( float  Importance)
inlinevirtual

Set the importance of the area that is not in focus.

参数
ImportanceOff-area importance (0.0 = no importance, 1.0 = important).
返回
true on success, false otherwise.
参见
SetViewFocusEnabled, SetViewFocusField, SetViewFocusOrientation

◆ SetViewFocusOrientation()

virtual bool IMediaView::SetViewFocusOrientation ( const FQuat &  Orientation)
inlinevirtual

Set the view's focused orientation.

参数
OrientationQuaternion representing the viewer's orientation.
返回
true on success, false otherwise.
参见
SetViewFocusEnabled, SetViewFocusOffImportance, SetViewFocusField, SetViewField

◆ SetViewOrientation()

virtual bool IMediaView::SetViewOrientation ( const FQuat &  Orientation,
bool  Absolute 
)
inlinevirtual

Set the view's orientation.

参数
OrientationQuaternion representing the orientation.
Whetherthe orientation change should be absolute (true) or relative (false).
返回
true on success, false otherwise.
参见
GetViewOrientation, SetViewField

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