-
首页
-
C4D R23.110 C++ SDK
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.
构造函数 & 析构函数文档编制
◆
MtFootageData()
◆
~MtFootageData()
成员函数文档编制
◆
GetFootageName()
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()
Internal
.
◆
Free()
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.
|