What function should I use to composite two effect worlds with ADD mode?

how can I do it without iterate suit?
ADD mode means R = Ra+Rb, G = Ga+Gb, B = Ba+Bb, A = Aa+Ab
Is there a simple way to composite worlds in plugs-in just like what AE does?

Hi Tenshi,
you can do like this:
PF_CompositeMode compositeMode;
  compositeMode.xfer = PF_Xfer_ADD;
  compositeMode.rand_seed = 0;
  compositeMode.opacity   = PF_MAX_CHAN8;
  compositeMode.rgb_only  = FALSE;
  compositeMode.opacitySu = PF_MAX_CHAN16;
  ERR(suites.WorldTransformSuite1()->transfer_rect( in_data->effect_ref,
  in_data->quality,
  PF_MF_Alpha_PREMUL,
  PF_Field_FRAME,
  &world2->extent_hint,
  &world1,
  &compositeMode,
  NULL,
  0,
  0,
world2));
You can replace PF_Xfer_ADD by any transfer mode you like (you'll find them in AE_EffectCB.h).
Cheers,
François

Similar Messages

  • What function do I use to programmatically create End steps with onNewStep

    Hi,
    I want to create a custom step type that is a Label with an End step for labeling blocks of code.
    I tried Custom substep with OnNewStep, and I put in the function OnNewStepWithEndStep  from NIFlowControl.dll, but it's not working. By that I mean when I drop the Label step the end does not get dropped too. 
    I found this link, but it's lacking the detail I need. Thanks.
    http://forums.ni.com/t5/NI-TestStand/Custom-step-to-Open-edit-expression-when-placed-in-sequence/m-p...
    cc

    There are 2 subproperties you need to change:
    BlockEndTypes needs to be NI_Flow_End
    AppliesToBlockStructure needs to be True
    So if you expand your step in your type palette you should see those subproperties.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • I want to format my hard drive so i can have files bigger than 4GB what format should I use?

    I have a new hard drive that I want to format so it will work with both mac and PC (windows) but I have files that are bigger than 4GB, what format should I use?
    It needs to work with both PC and mac because I need to go between two computers etc

    If both of these computers are connect to the same router, both are in your home or place of work (Both are in the same location), it is very easy to Network them so you don't have to use DropBox or the external drive to share files between them.
    MickAUS2012 wrote:
    yea thanks for that,  i have drop box so i use that for some of my smaller files. Im just new to the mac so this is all a learning experince thanks for all your help everyone!

  • What program should I use and various??

    Hi friends,
    I have two questions:
    1) So I have finished my project...how do I fit it onto one dvd? Quicktime conversion??
    2) What program should I use to burn to dvd? I have a macbook.
    3) How do I make chapters on the dvd??
    Thank you so much for assisting

    1. Export a QuickTime Movie. Do NOT use QT Conversion. Import the resulting QuickTime file into the DVD creation program. Don't worry about file size at this point. The DVD authoring application will compress and encode. You can fit about two hours of video on a single-layer DVD.
    2. The simplest method is to use iDVD which probably came with the MacBook.
    3. Playing the FCE Timeline, press M twice, name the chapter if you wish and click the Add Chapter Marker button in the resulting window. Then when you export, make sure to choose to include Chapter markers in the Export window. Within iDVD, I think you can also set iDVD to include a chapter marker at set intervals, but not at specific points.
    Not to be snarky, but that seems like three questions...
    Good luck.

  • What software should I use to create a family budget?

    I use my Mac mostly for internet and word processing so I know I'm not touching 90% of the functionality. I want to create a household budget but the template in my ('09?) version of Numbers is not robust enough. Are there any suggestions on how to create a household budget? What software should I use? Thank you!

    There are dozens of apps designed to help with household budgets, but few are free. May I suggest you look for apps that have a free trial version, and try them out before spending money on something you may not like:
    http://mac.appstorm.net/roundups/finance-roundups/15-personal-finance-apps-for-t he-mac/

  • What method should be used for resizing the particular JTable Column width

    I have a four table. Only one table which are on top have a table header. I want that when user resize the topmost table with a mouse other table colume also be resized automatically. So I want to know that what method should be used for resizing the particular JTable Column width.
    Thanks
    Lalit

    maybe you can implement a interface ComponentListener as well as ComponentAdapter with your topmost Table.
    for example:
    toptable.addComponentListener(
    new ComponentAdapter(){
    public void componentResized(ComponentEvent e){
    table1.setSize(....);
    table2.setSize(....);
    /*Optionally, you must also call function revalidate
    anywhere;*/
    );

  • What classes should I use to send/receive bytes inmediately?

    What classes should I use to send/receive bytes inmediately? I mean, without using any buffers or whatever (I will implement this on my app), just the faster method.
    Is InputStream/OutputStream the lowest level choice?
    Thanks!

    Hi!
    Thank you very much for your help, I appreciate it a lot.
    While I test my server, I execute ping www.myclienthost.com -t (my client games are in other office, in the same building, but different ISP) and I don't see anything strange, so I guess network is working perfectly. However, if I use wireshark (sniffer) and I see that my system fails (server does not send acks so client disconnects) is because my acks messages are not sended for 6 o 7 seconds (it should send them every 2 or 3). It seems thread is blocked. and after 6 or 7 seconds one message with 2 or 3 acks together is sent. So, I see that the thread handler blocked for a few seconds and this is doing my server is failing. Why client handler thread on my server is blocked? One question: every 2 or 3 seconds I have a thread that uses sleep that iterates thru client handlers and takes OutputStream and send one ack message for every client handler. My question is, in client handler class I have a method called SendInfo(String whatever) which encrypts and sends through OutputStream, should I protectd this method from accesing from two threads??? as acks thread and client thread can access at the same time. Could this be the problem??
    EDIT: In my previous post I forgot to say what I found out with wireshark. Here I explain it. Sorry.
    By the way, how can I debug threads?? I would like to know if my client thread is blocked in that critical moment.
    Thanks a lot for your ideas and sorry for my English.
    Edited by: Ricardo_Ruiz_Lopez on Jan 22, 2009 7:38 AM

  • What exception should I use when commit work fails ?

    hi all:
        I create a class with methods to insert , modify and delete trasaction data, 
    when commit work fails, I want to throw an exception, what exception should I use
    for this case?

    In general, you should do your commit using CALL FUNCTION IN UPDATE TASK. As this runs in a different process, you will never be able to catch an exception in your main task, even if you throw one in the Open SQL code. What you should do is carefully validate your data before posting it to the database, so that commit cannot fail for data integrity reasons. If it fails for technical reasons (DB down etc.) there is nothing that your code could do about it anyway, so in this case even getting an exception would be no use. What exactly is it you are trying to accomplish?
    -- Sebastian

  • What backend should be used?

    well i m developing a card game in java.
    i would like to know for saving the game settings like the cards and variables of the game what backend should i use. i want the application to be fully platform independent and also dont want to use any proprietory s/w like ms access.
    should i store it in a txt/dat file or is there any such compatible db; not talking abt full fledged server kinda dbms like oracle or sql server. just a basic dbms s/w for a small need like this.
    thanx

    It really depends on the scope of the game. Will this be played on the web by many people at a time? Or is this more of a single player desktop app?
    For a dbms MySQL is a free, easy to install and light weight solution. This is my usual go-to light weight dbms.
    Outside of a database, one option is to serialize the objects that contain the states in which you want to save such as player info, card in players hand, and cards in the deck. You just need to make sure those classes implement the Serializable Interface. When the player saves or exits the game, the objects will be serialized saving their state. When the player is ready to start the game again you can deserialize those objects back into java objects on the stack with the same state they had when they were serialized.
    Take a look at the "Serializable" class on the documentation page here [url http://download.oracle.com/javase/6/docs/api/index.html]http://download.oracle.com/javase/6/docs/api/index.html. It is in the Java.io package.
    If you want a Java based DB that is super light wait (very little functionality), can be distributed with your game app, and completely platform independent you can take a look at SmallSQL [url http://www.smallsql.de/]http://www.smallsql.de/. I have not used this one myself but it might do the job you are looking for as well.
    Again, choosing between a DB and data file/serialized objects as well as choosing which DB you should use will depend on the scope of the game. If you are hosting the game, a DB like MySQL will work great. If it is a desktop app than serialization of object or distributing the SmallSQL java DB with you app might be the better choice.
    Edited by: JDScoot on May 15, 2011 12:05 PM

  • What technology should be used?

    i want to make remote desktop type of application with limited functionality. In achieving this i thought viewing the desktop from client should be the first step. so i want to know what technology should i use to send live video type of thing to client........
    I am able to create the video type of thing by taking snapshots(20 per second) of the screen but I am not able to send it to the client.......
    Is this correct way or there is any other way to create video?

    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/ScreenGrabber.html]
    Take that example, and mix it with this example.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/VideoTransmit.html]

  • Quick question! What tool should I use to make this logo?

    I would like to know how to make the following image 1 to turn to image 2 ? What tool should I use? Thank you very much !

    Probably the quickest way would be to use Offset Path, that is if the original file is vector artwork.  Your two screen shot images do not match.  If your assignment is to recreate the "CNN" logo, you'd be best to start with the internal Stroke ( White ).  Use the existing artwork as a template Layer.  Draw on a separate Layer going by the existing artwork.  Simple Pen tool operation consisting of around eight anchor points.  Once you've established the most accurate Stroke rendition, copy the file using a different name ( CNN02.ai or similar ).  Outline the copy.  Then, use Offset Path for the outer Red ( save that as CNN03.ai ). Copying in sequential steps allows you to go back just in case something does not look right.  If accuracy is important, you'll have to resolve the "C" deviation you have right now.

  • What time should I use clone method?

    Hi everyone:
    There is a problem puzzled me all the time. You know,If I want to use a object I could use the code:
    Class A=new Class(); I get a object A so I can use it. But there is a method called "clone".It's function is copy a object.But Why jdk have this method.Is there any useful ?
    I mean that what situation should I use the "clone " method?
    Thks!

    a regular clone copies all members of an object by reference. You can implement the Clonable interface to provide a clone which makes a 1:1 copy of your object, so no references are copied over. This ensures that the objects don't share the same objects, but do have the exact same content.

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • I feel I must move beyond iMovie, what program should I use ?

    I have been happily using iMovie and iDVD from versions 1 through 6.  iMovie 08 was so bad that Apple made iMovie 06 available as a free download for buyers of iMovie 08. The newer iMovies were better, but they seemed “dumbed down” (even for me).  Now, I am shocked and horrified to learn that the latest iMovie does not even set chapter markers!
    So, I have continued to use iMovie 06 and iDVD 08 (they seem to work fine under OS 10.9.4).   iMovie 06 is now 8 years old!  I feel compelled to move forward. A lot of my work is DV.    In the past, most of my source material came out of S-Video.   I used a Canopus ADVC300 analog-to-digital converter that gave good results.   Going forward, I will have more video utilizing Component Video, or HDMI.
    I am looking into 2 possibilities,  Adobe Premiere elements 12, or.........Final Cut Pro X.
    The final result of my work is almost always a DVD.   It is hard for me to move from iMovie and iDVD.  I never read the manuals for either program, yet,  I was able to produce DVDs with nice menus and overall quality close to Hollywood.
    It looks like Final Cut Pro X 'can' make a DVD directly without other software.  However, from what I have seen on YouTube the result is primitive compared to what iDVD was doing 10 years ago.
    Adobe Premiere elements 12 can make nice DVDs and Blu-ray's directly.  I have no problem with using a separate program to make DVDs but I haven't got a clue how to do that with Final Cut Pro X.   I suppose I can still use iDVD, but now I'm back to using discontinued software.
    I do not need any of the high-powered affects capability that Final Cut Pro X  possesses.  My “movie-making” is mostly confined to simple editing (the old iMovie 06 did all I needed).
    Frankly, one motivation for choosing Final Cut Pro X, is the excellent, compassionate and understanding support that the kind people on this very forum provide.  So, what program should I use?

    Ziatron wrote:
    ...  I am shocked and horrified to learn that the latest iMovie does not even set chapter markers!
    .. I am looking into 2 possibilities,  Adobe Premiere elements 12, or.........Final Cut Pro X.
    The final result of my work is almost always a DVD. ...
    ... I do not need any of the high-powered affects capability that Final Cut Pro X  possesses.  My “movie-making” is mostly confined to simple editing (the old iMovie 06 did all I needed).
    to turn perspective for a second by 180°:
    Why do you want to switch to a new editor anyhow?
    • iM-a never did discs - that was iDVDs job = no big change in your workflow
    • iDVD is still working, and aside obsolete, complex and $$$$ DVDSP (part of obsolete FC/p) or Encore (part of Adobes CC rent package) your only option left to create disks on MacOS is indeed iDVD (...ok, there's Toast and Burn and some weird 'shareware'-stuff...)..
    • iMovie-b supports the new HDef formats (AVCHD) - you mentioned converters and DVDs = no HDef in use, in your habitat, correct?
    • if you don't need FCPX' bling-bling (I can't imagine that ) - why not using FCPX-lite = iMovie? 15$ ...
    • chapters could be done in iDVD - just to mention that ............
    • AP and FCPX are following very different concepts in usage - my personal preference is 200% on FCPX, … I was one of the loudest nay-sayers, when iM08 araised, meanwhile, FCPX is my dream!! AP (tested it) is way too complex, crowded, 'optionalized' and did I mention 'complex' for me. A bit like Windows vs. MacOS: 'everything goes' (incl. getting lost) vs. 'convenience' (incl. restrictions) ... After 2y of practice, I'm editing my weekly hobby-projects with 6-cam-Multicam, incl. tons of  custom graphics, slow-mow, effects (soccer games) in less than 2h ... awesome!
    summary:
    • why switching?
    • use iMovie10 + iDVD
    • Premiere (or Premiere Elements!) and FCPX are both avail as fee trial ... test  it - but you need iDVD anyhow
    • 'disks'  is a dwindling niché, for years!- consider to switch to 'other' distribution options
    ... what are 'chapters' anyhow??... (kid din'!)

  • What query should I use to find all versions of Office 2013 64-bit installed on client computers?

    What query should I use to find all versions of Office 2013 64-bit installed on client computers? Could someone create a custom query? I need all of the client computers names and which ones have any Office 64-bit components. Thank you so much! I really
    appreciate it!

    Hi,
    You could edit the following query to meet your requirement.
    SELECT     dbo.v_R_System.Name0, dbo.v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
                          dbo.v_GS_OPERATING_SYSTEM.CSDVersion0 AS [OS Service Pack], arp.DisplayName0,
                          CASE WHEN arp.version0 LIKE '11.0.6361.0' THEN 'SP1' WHEN arp.version0 LIKE '11.0.7969.0' THEN 'SP2' WHEN arp.version0 LIKE '11.0.8173.0'
    THEN 'SP3' WHEN
                           arp.version0 LIKE '12.0.6215.1000' THEN 'SP1' WHEN arp.version0 LIKE '12.0.6425.1000' THEN 'SP2' WHEN arp.version0 LIKE '14.0.6029.1000'
    THEN 'SP1' ELSE '' END
                           AS 'Service Pack', arp.Version0
    FROM         dbo.v_Add_Remove_Programs AS arp INNER JOIN
                          dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
                          dbo.v_RA_System_SMSInstalledSites AS ASSG ON dbo.v_R_System.ResourceID = ASSG.ResourceID INNER JOIN
                          dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
    WHERE     (arp.DisplayName0 LIKE '%Microsoft Office%edition%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2010%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office 2000%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office XP%') AND (arp.DisplayName0 NOT LIKE '%update%') AND
                          (arp.DisplayName0 NOT LIKE '%Microsoft Office XP Web Components') AND (dbo.v_R_System.Operating_System_Name_and0 NOT LIKE '%server%')
    AND
                          (arp.InstallDate0 NOT LIKE 'NULL')
    ORDER BY dbo.v_R_System.Name0, arp.DisplayName0, arp.Version0
    Full details:http://social.technet.microsoft.com/Forums/systemcenter/en-US/7baeb348-fb63-4115-8d76-2c884d18f708/sql-query-to-check-ms-office-service-pack-level?forum=configmgrreporting
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for