Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all articles
Browse latest Browse all 53010

SDK_Exporter_params.cpp in SDK Exporter plugin for premiere pro cs4

$
0
0

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


Viewing all articles
Browse latest Browse all 53010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>