About
A MtFootageData object stores information on the video footage loaded by the parent MotionTrackerObject.
Access
The MtFootageData object is obtained from the parent MotionTrackerObject.
- MotionTrackerObject::GetFootageData(): Returns a new MtFootageData object.
- MtFootageData::Free(): Deletes a MtFootageData object.
- Warning
- The returned object is a copy owned by the caller.
  
  
 
  
  BaseObject* const obj = doc->GetActiveObject();
 
  const MotionTrackerObject* const moTrackObject = static_cast<MotionTrackerObject*>(obj);
 
  MtFootageData* footage = moTrackObject->GetFootageData();
  if (footage == nullptr)
 
  const Filename footageName = footage->GetFootageName();
 
  
  MtFootageData::Free(footage);
#define Omotiontracker
Motion tracker.
Definition: ge_prepass.h:1104
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:69
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:204
Footage Data
The MtFootageData object provides read-access to several properties of the loaded video footage.
General information on the loaded footage:
- MtFootageData::GetFootageName(): Returns the Filename of the loaded video file.
- MtFootageData::GetFirstFrameNumber(): Returns the first frame of the loaded video file.
- MtFootageData::GetLastFrameNumber() Returns the last frame of the loaded video file.
Video Resolution and Ratio of the loaded footage:
- MtFootageData::GetResolutionWidthPix(): Returns the resolution width.
- MtFootageData::GetResolutionHeightPix(): Returns the resolution height.
- MtFootageData::GetResolutionAspectRatio(): Returns the resolution aspect ratio.
- MtFootageData::GetPixelAspectRatio(): Returns the pixel aspect ratio.
- MtFootageData::GetImageAspectRatio(): Returns the result aspect ratio.
- MtFootageData::GetDownsamplingFactor(): Returns the used downsampling factor.
  
  
 
  MtFootageData* footage = moTrackObject->GetFootageData();
  if (footage == nullptr)
 
  
  AutoFree<MtFootageData> freeFootage;
  freeFootage.Assign(footage);
 
  
  const Filename footageName = footage->GetFootageName();
 
  
  const Int32 width  = footage->GetResolutionWidthPix(
true);
 
  const Int32 height = footage->GetResolutionHeightPix(
true);
 
 
  
  const String widthStr  = String::IntToString(width);
  const String heightStr = String::IntToString(height);
maxon::Int32 Int32
Definition: ge_sys_math.h:51
Further Reading