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

How can I get time_step, time_scale, total_time on gpu accelerated plugin?

$
0
0

Hi, everyone!.

 

I am going to develop gpu accelerated plugin now.

btw, I have a question.

How can I get time_step, time_scale and total_time on gpu mode like on software mode?

 

-- software mode ---

static PF_Err Render(

PF_InData* in_data,

PF_OutData* out_data,

PF_ParamDef* params[],

PF_LayerDef* output)

{

     float current_time = in_data->current_time;

     float time_step = in_data->time_step;

     float time_scale = in_data->time_scale;

 

------- Gpu Mode ------------

prSuiteError Render(

const PrGPUFilterRenderParams* inRenderParams,

const PPixHand* inFrames,

csSDK_size_t inFrameCount,

PPixHand* outFrame)

{

     float current_time = inRenderParams->inClipTime;

     float time_step = ???;

     float time_scale = ???;

 

I don't know what ??? is.

 

Can you help me with that?

 

Thanks.

Igor.


Viewing all articles
Browse latest Browse all 53010

Trending Articles