Skip navigation
snehalmandavkar
Currently Being Moderated

what is meaning of following code

May 12, 2011 5:10 AM

Hi   All,

 

 

I am working on transitiom plug-in for  premiere pro cs3 ,using  premiere pro cs3 SDK.

 

while learning i am not get understand the following code, where will be use and what will be function of this code

also, did not understand the code which is mark below in the red.

 

 

static prMALError Execute(EffectHandle theData)
{
    prMALError        result                = esNoErr;
    prRect            bounds                = {0,0,0,0};
    PPixHand        destPPH                = ((*theData)->destination);
    SPBasicSuite    *SPBasic            = NULL;
    PrSDKPPixSuite    *PPixSuite            = NULL;
    float            transitionProgress    = 0.0f;
    PrPixelFormat    pixelFormat            = PrPixelFormat_Invalid;

 

    prBool            **specsH            = reinterpret_cast<prBool **>((*theData)->specsHandle);
    if (specsH == NULL)
    {
        // If specsH has not been initialized and is NULL, render with the default settings
    }
    else
    {
        // Render using user-controlled setting
    }

 

    ((*theData)->piSuites->ppixFuncs->ppixGetBounds)((*theData)->destinat ion, &bounds);

 

    // Sample code - not really necessary for the functionality of this plug-in
    DemoUsingInstanceData(theData, &(*theData)->instanceData);
    DemoUsingCallback(theData, bounds);

 

    // Get pixel format of PPix
    SPBasic = (*theData)->piSuites->utilFuncs->getSPBasicSuite ();
    if (SPBasic)
    {
        SPBasic->AcquireSuite (kPrSDKPPixSuite, kPrSDKPPixSuiteVersion, (const void**)&PPixSuite);

 

        if (PPixSuite)
        {
            PPixSuite->GetPixelFormat (destPPH, &pixelFormat);

 

            SPBasic->ReleaseSuite (kPrSDKPPixSuite, kPrSDKPPixSuiteVersion);
        }
    }

 

    transitionProgress = (float)(*theData)->part / (float)(*theData)->total;

 

    // Render the transition
    RenderDissolve(theData, &bounds, pixelFormat, transitionProgress);

 

    return result;
}

 

Thanks,

waiting fir reply

 
Replies
  • Currently Being Moderated
    May 13, 2011 12:50 PM   in reply to snehalmandavkar

    Hi there,

     

    Unfortunately the formatting didn't make it through in your post, so I'm not sure which part of the function you had the question about.  In general, this function is called in response to the esExecute selector, and handles the actual rendering for the transition.

     

    Regards,

     

    Zac

     
    |
    Mark as:
  • Currently Being Moderated
    May 13, 2011 2:17 PM   in reply to Zac Lam

    I think the question is what is the purpose of the Bool itself. What does this ON|OFF represent?

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2011 9:41 AM   in reply to snehalmandavkar

    Hi there,

     

    For Flex questions, I would suggest posting in the Flex forums here:

    http://forums.adobe.com/community/flex

     

    Regards,

     

    Zac

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points