#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.
Public Member Functions | |
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 Public Member Functions | |
static MtFootageData * | Alloc () |
static void | Free (MtFootageData *&p) |
Private Member Functions | |
MtFootageData () | |
~MtFootageData () | |
|
private |
|
private |
Filename GetFootageName | ( | ) | const |
Retrieves the filename of the footage (the first frame if an image sequence).
Int32 GetFirstFrameNumber | ( | ) | const |
Retrieves the frame number of the first frame in the footage.
Int32 GetLastFrameNumber | ( | ) | const |
Retrieves the frame number of the last frame in the footage.
Queries the width in pixels of the footage.
[in] | originalRes | If true, the returned pixel coordinates are for the original footage. If false, the returned pixel coordinates are for the downsampled footage. |
Queries the height in pixels of the footage.
[in] | originalRes | If true, the returned pixel coordinates are for the original footage. If false, the returned pixel coordinates are for the downsampled footage. |
Float GetResolutionAspectRatio | ( | ) | const |
Queries the aspect ratio of the horizontal to vertical resolution. Ignores pixel aspect ratio.
Float GetImageAspectRatio | ( | ) | const |
Queries the aspect ratio of the footage including effects of pixel aspect ratio.
Float GetPixelAspectRatio | ( | ) | const |
Queries the pixel aspect ratio of the footage.
Float GetDownsamplingFactor | ( | ) | const |
Queries the downsampling factor used for the footage.
|
static |
Internal.
|
static |
Destructs MtFootageDatas allocated with Alloc(). Use 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. |