MtFootageData Class Reference Library » 运动追踪器

#include <lib_motiontracker.h>

详细描述

Provides basic information about the footage that has been loaded into the motion tracker.

Includes frame range, aspect ratio information, source filename, and downsampling settings.

公共成员函数

Filename   GetFootageName () const
Int32   GetFirstFrameNumber () const
Int32   GetLastFrameNumber () const
Int32   GetResolutionWidthPix ( Bool originalRes) const
Int32   GetResolutionHeightPix ( Bool originalRes) const
Float   GetResolutionAspectRatio () const
Float   GetImageAspectRatio () const
Float   GetPixelAspectRatio () const
Float   GetDownsamplingFactor () const

静态公共成员函数

static MtFootageData Alloc ()
static void  Free ( MtFootageData *&p)

私有成员函数

  MtFootageData ()
  ~MtFootageData ()

构造函数 & 析构函数文档编制

◆  MtFootageData()

MtFootageData () private

◆  ~MtFootageData()

~ MtFootageData () private

成员函数文档编制

◆  GetFootageName()

Filename GetFootageName ( ) const

Retrieves the filename of the footage (the first frame if an image sequence).

返回
The filename.

◆  GetFirstFrameNumber()

Int32 GetFirstFrameNumber ( ) const

Retrieves the frame number of the first frame in the footage.

返回
The first frame number. -1 if no footage loaded.

◆  GetLastFrameNumber()

Int32 GetLastFrameNumber ( ) const

Retrieves the frame number of the last frame in the footage.

返回
The last frame number. -1 if no footage loaded.

◆  GetResolutionWidthPix()

Int32 GetResolutionWidthPix ( Bool   originalRes ) const

Queries the width in pixels of the footage.

参数
[in] originalRes true , the returned pixel coordinates are for the original footage. If false , the returned pixel coordinates are for the downsampled footage.
返回
The width of footage in pixels.

◆  GetResolutionHeightPix()

Int32 GetResolutionHeightPix ( Bool   originalRes ) const

Queries the height in pixels of the footage.

参数
[in] originalRes true , the returned pixel coordinates are for the original footage. If false , the returned pixel coordinates are for the downsampled footage.
返回
The height of footage in pixels.

◆  GetResolutionAspectRatio()

Float GetResolutionAspectRatio ( ) const

Queries the aspect ratio of the horizontal to vertical resolution. Ignores pixel aspect ratio.

返回
The aspect ratio from resolution.

◆  GetImageAspectRatio()

Float GetImageAspectRatio ( ) const

Queries the aspect ratio of the footage including effects of pixel aspect ratio.

注意
GetImageAspectRatio() == GetResolutionAspectRatio() * GetPixelAspectRatio()
返回
The aspect ratio of footage.

◆  GetPixelAspectRatio()

Float GetPixelAspectRatio ( ) const

Queries the pixel aspect ratio of the footage.

返回
The pixel aspect ratio.

◆  GetDownsamplingFactor()

Float GetDownsamplingFactor ( ) const

Queries the downsampling factor used for the footage.

返回
The downsampling factor.

◆  Alloc()

static MtFootageData * Alloc ( )
static

Internal .

◆  Free()

static void Free ( MtFootageData *&  p )
static

Destructs MtFootageDatas allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

参数
[in,out] p The MtFootageData to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.