This question is regarding the code in
exSDKGenerateDefaultParams(exportStdParms *stdParms,
exGenerateDefaultParamRec *generateDefaultParamRec) function
The below function is called in the above function's code
exportInfoSuite->GetExportSourceInfo( exporterPluginID,
kExportInfo_VideoFrameRate,
&seqFrameRate);
to get info for videoframerate in seqFrameRate
Then seqFrameRate.mFloat64 is compared with different valuesin the code segment
if(timeSuite)
{
timeSuite->GetTicksPerSecond (&ticksPerSecond);
if (seqFrameRate.mFloat64 > 29.97f &&
seqFrameRate.mFloat64 < 29.98f ||
seqFrameRate.mFloat64 < 0.1f ||
seqFrameRate.mFloat64 > 60.0f) // Strange values fall into this case
{
timeSuite->GetTicksPerVideoFrame(kVideoFrameRate_NTSC, &seqFrameRateTicks);
}
}
for assigning the appropriate value to seqFrameRateTicks
The problem i m facing is that the value of seqFrameRate.mFloat64
is coming out to be zero(why?).
Also, since the type of ticksPerSecond and seqFrameRateTicks
is PrTime(which is a 64 bit int), i want to know what will be the best way
to convert them into other 32 bit values(int, float etc).
Thank You
Agam