Detecting a seek operation in Render

Hello
I am writing a plug-in where the rendering of a given frame depends upon several previous frames.
Thus, in order to correctly render, I need my filter to be applied to a consecutive series of frame.
If the user seeks through the clip, in order to perform a correct rendering operation, I'll need to perform a "look behind" operation.
Thus, my question is : is there an easy way to detect whether a seek operation just took place ? Do I need to perform my own caching of the time info in the PF_InData structure ?
Thanks for your help !

Hi Benjamin,
The flag described at that post is for a different problem.  If you need to make a calculation that starts from the first frame and accumulates over the duration of the frames, you should be prepared to handle a request for anytime, and not necessarily the next frame in sequence from the beginning.  What happens when the user moves the time needle to the middle of the footage?  An effect should be prepared to handle normal use cases like that.
One approach is to go back and calculate all the necessary frames between the current frame and the last frame that has been calculated.  You can use PF_CHECKOUT_PARAM() to get input frames for any previous frame that you need to make the calculation.  And then cache the results of your calculations in sequence data.
Regards,
Zac

Similar Messages

  • How do I detect user's Operating System?

    Hello,
    I was wondering if there is an amazing bit of actionscript
    out there that allows flash to detect the user's operating system,
    and from there then open the correct install version of adobe
    reader (basically just several different .exe files which I already
    have downloaded).
    I am using actionscript 2.0.
    Appreciate any help!
    Thanks

    trace(System.capabilities.version);
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Error detected during paging operation

    My computer is freezing on a regular basis and I get the repeated Event ID: 51 message 'An error was detected on device \Device\Harddisk0\D during a paging operation.' in the system log.
    The hard drive is a new Maxtor DiamondMax 10 SATA.
    I've been to the Maxtor site and it says 'These errors are not caused by the external storage device. The error may be related to problems in either the USB / ATA / SCSI / 1394 controller sub system or another storage device.'
    Does this mean there is a fault with the motherboard?
    The motherboard is an K8T Neo2 Series (MS-6702E).

    Quote from: mcihael on 13-June-05, 03:50:14
    Hi,
    it may help if you'd disable USB legacy supprt in BIOS. I have had similar issues with my Firewire-HDD. The BIOS setting mentioned before fixed that apparently.
    Michael
    Thanks I will give that a try.
    I'm still getting the same problem.
    I have upgraded the PSU to a 450W and changed the memory configuration from dual-channel (using DIMM1 & DIMM3) to the ordinary configuration (using DIMM1 & DIMM2).
    Neither of these measures has worked.
    I am using two Crucial CT6464Z40B 512MB PC3200 memory modules that according to Crucial should be 100% compatible with the board.

  • Webcam not detected in Mavericks Operating System

    Hi Team,
    I upgraded my Macboox OS to Mavericks and since than the webcam is not detected in facetime skype or my other office application like Cisco Jabber.
    I know "sudo killall VDCAssistant" works, But it works for some days and again webcam stops working.
    We have huge engineer base in office who uses Macbook and if the colloboration through video is not working, it may affect the further purchases.
    Is Apple willing to provide some permanent solution to this problem.
    regards
    Ronak Patel

    Rod Miller wrote: EZ Jim . . . can you check out my post  >Notebooks> MacBook Pro https: // discussions apple com/ message/ 25384885 and reply? ...
    Yes
    Rod Miller wrote: ... Yahoo and iSpQ are not replying to tickets so I'm kind of stuck.  I can live without these 3rd party apps but will loose some relationships I've had for years, friends that don't have Macs...
    You mention earlier that you have an iMac that works with the apps that give trouble on your rMBP.
    If your rMBP originally came with Mavericks installed, the only workaround I can suggest is that you use your iMac to maintain your non-Apple relationships until the problem is resolved.
    If your rMBP originally came with Mountain-Lion or earlier installed, and if you need to use your rMBP with the problem software apps, consider retreating to Mountain Lion until the problem is resolved in Mavericks.

  • Does java support file seeking operation?

    Just like MFC CFile::Seek or API seekp.
    What I want to do is to write on indicated position in the file.

    Maybe the RandomAccessFile class will help you ...
    Nicolas

  • What happens to RandomAccessFile when seek operation fails?

    Hi,
    I wonder what happens to RAF when the seek() op fails - does the file remain open?
    I guess i should close it if fails, what is the best thing to do - protect or catch exception?
    Am i wrong about it?
    Thanks.

    I wonder what happens to RAF when the seek() op fails - does the file remain open?In the absence of evidence or documentation to the contrary that is what you should assume.
    I guess i should close it if failsWhy? All it means is that that offset doesn't exist within the file.

  • Event structure to detect the element operated in a cluster

    Hi,
    i have a cluster with #60 booleans in it with all different labels (1...60).
    i have created a event (for whole cluster, not added individual 60 elements) in event structure to find the label of the element.
    when i try to fetch the label.text, i am able to get only the cluster label not the element.
    please give suggestions,, so that i wil be able to extract the individual label in a cluster.
    Thanks in advance
    phani
    phani srikanth

    ... and if you don't want to deal with all these references and prperety nodes inside the event structure, you could do as follows. same difference.
    ...and if the cluster is of mixed datatype, wire the output of search array to a case structure and act according to the changed element.
    Personally, you might want to use an array of boolean instead, simplifying the code even more.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    BooleanInCluster.png ‏11 KB

  • Operating System (OS) Detection

    Is there a way to detect the specific operating system and
    install the appropriate version of Adobe Acrobat Reader based on
    that detection?
    This is for a CD with an .exe
    Acrobat 7.0 and earlier versions do not support Windows
    Vista. Adobe
    does not plan to release updates to Acrobat 7.0 and earlier
    for
    Windows Vista compatibility.

    I'm not sure if you want the Acrobat forums, but you can get
    this info in ActionScript with Flash Player by using the
    flash.system.Capabilities class. More info here:
    http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html
    If you're looking for the Acrobat forums, it's here:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/
    hth,
    matt horn
    flex docs

  • Operating System detection of client

    hi ,
    I stuck with one problem?
    I want to detect user/client Operating System?
    can anybody tell me how to do it?
    thanks

    Stop doubleposting. Stick to one topic: [http://forums.sun.com/thread.jspa?threadID=5350423].

  • Is there a way to detect when flash is being suppressed?

    Here is the dilemma. I need to detect if Flash is on the page in the viewport playing or is being suppressed below the fold.
    I've tried numerous tactics to detect if flash is playing properly or is being suppressed to no avail.
    ThrottleEvent is inaccurate since flash must render in view, then go out of view for this event to be triggered. It is not automatically dispatched if flash is below the fold.
    Detecting a reduction of frame rate: Also inaccurate for the same issue. Flash if renders below the fold, the frame rate is going to read as if it is not suppressed. Flash must scroll into view then out of view for the frame rate to read properly as suppressed.
    Event enter frame for frame rate also inaccurate for issues above; needs to be in view and go out of view to see the slow down.
    Activate/Deactivate -- needs focus so that doesn't help. I need to detect without focus.
    Event.Render...useless.
    Timer... no help there.
    I've gone through tons of permutations of those above, combinations but nothing seems to be accurate enough. I know that Flash is being suppressed but I can't detect it. If I could know that Flash is playing at its proper operating speed (not suppressed) as in the viewport I could know the alternate.
    Does anyone know how I can go about this?
    Thanks,

    If you put your VI in the Windows STARTUP group, and then in the VI execution properties, set it to RUN MINIMIZED, you should achieve the desired result. As far as LOGGING when windows is opened or closed, that is a different matter. You might be able to extract that information from one of the BIOS tools.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • How can I print a full page 8.5x11 photo using mg2520? My operating system in windows 8

    I am currently running windows 8 and using a canon pixma mg 2520 and cannot print full size 8.5x11 prints.  I can print 4x6 but would like to print full size pictures...please help!!!!!!!!!!1

    Hi kvsalazar24,
    There is a program that comes with the printer named Easy-PhotoPrint EX that can assist you with printing photos.  If you do not have the program installed, it can be downloaded from the Canon USA website.  Please click here to go to the Drivers and Software page for the PIXMA MG2520.  Once on the initial download page for your model, please do the following:
    1. Verify that the operating system detected in the "OPERATING SYSTEM" drop-down menu is correct, and if it is not, please click the drop-down menu to select your operating system.
    2. Next, please click on the red arrow next to the "SOFTWARE" section and click the Easy-PhotoPrint EX file.  When you do, a red DOWNLOAD button will appear. Please click on the checkbox below the DOWNLOAD button, then click the red DOWNLOAD button to begin the download. The time for the download process may vary depending on the speed of your Internet connection and the size of the file being downloaded.
    Once you have downloaded the file, please double-click on it and follow the prompts to install the program on your computer.  
    Once the program is installed, please follow these steps to print a photo:
    1. Open Easy-PhotoPrint EX.
    2. Once inside of the application, you will see a folder structure on the left-hand side where you can select a photo or image. Please navigate to the location of the photo/image you would like to print. When you do, all available images in that location should appear in the right pane of the window. Please note: If a screen appears with options to Photo-Print, Create an Album, Sticker Print, etc., please select the PHOTO-PRINT option to view the area with the folder structure.
    3. Underneath each of the photos appearing in the right pane of the window, you will see a n up and down arrow, as well as a "0". Please click the UP arrow once underneath the image you would like to select, then click the PAPER SELECTION tab at the top of the window.
    4. On the PAPER SELECTION TAB, please select the PRINTER, PAPER SOURCE, PAPER SIZE, and MEDIA TYPE, then click the LAYOUT/PRINT tab at the top of the window.
    5. Please select the desired layout from the left-hand pane of the window. When you do, a preview of what the image should look like when printed will appear in the right-hand pane of the window.
    6. Once you have selected a layout, please click the PRINT button. The photo/image should print.
    If you still experience difficulty, please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How is it possible to use Index Seek for LIKE %search-string% case?

    Hello,
    I have the following SP:
    CREATE PROCEDURE dbo.USP_SAMPLE_PROCEDURE(@Beginning nvarchar(15))
    AS
    SELECT * FROM HumanResources.Employee
    WHERE NationalIDNumber LIKE @Beginning + N'%';
    GO
    If I run the sp first time with param: N'94', then the following plan is generated and added to the cache:
    SQL Server "sniffs" the input value (94) when compiling the query. So for this param using Index Seek for AK_Employee_NationalIDNumber index will be the best option. On the other hand, the query plan should be generic enough to be able to handle
    any values specified in the @Beginning param.
    If I call the sp with @Beginning =N'%94':
    EXEC dbo.USP_SAMPLE_PROCEDURE N'%94'
    I see the same execution plan as above. The question is how is it possible to reuse this execution plan in this case? To be more precise, how
    Index Seek can be used in case LIKE %search-string% case. I expected that
    ONLY Index Scan operation can be used here.
    Alexey

    The key is that the index seek operator includes both seek (greater than and less than) and a predicate (LIKE).  With the leading wildcard, the seek is effectively returning all rows just like a scan and the filter returns only rows matching
    the LIKE expression.
    Do you want to say that in case of leading wildcard, expressions Expr1007 and Expr1008 (see image below) calculated such a way that
    Seek Predicates retrieve all rows from the index. And only
    Predicate does the real job by taking only rows matching the Like expression? If this is the case, then it explains how
    Index Seek can be used to resolve such queries: LIKE N'%94'.
    However, it leads me to another question: Since
    Index Seek in
    this particular case scans
    all the rows, what is the difference between
    Index Seek and Index Scan?
    According to
    MSDN:
    The Index Seek operator uses the seeking ability of indexes to retrieve rows from a nonclustered index.
    The storage engine uses the index to process
    only those rows that satisfy the SEEK:() predicate. It optionally may include a WHERE:() predicate, which the storage engine will evaluate against all rows that satisfy the SEEK:() predicate (it does not use the indexes to do this).
    The Index Scan operator retrieves
    all rows from the nonclustered index specified in the Argument column. If an optional WHERE:() predicate appears in the Argument column, only those rows that satisfy the predicate are returned.
    It seems like Index Scan is a special case of Index Seek,
    which means that when we see Index Seek in the execution plan, it does NOT mean that storage engine does NOT scan all rows. Right?
    Alexey

  • Detect remote desktop connection in Windows XP

    Dear experts,
    I have a single service thread application which do an activity at regular intervals.
    I have made a provision that only one instance of this thead runs at a time.
    However,this is not solving my issue to much extent.
    I want that i should be able to detect if current operating system session is RDP or not.
    I tried "os.<properties>" but none of such exists.This is strange !.
    Plz help.

    I just wonder why people do not plainly accept ignorance instead filling jittery, as we can make from these
    rude comments posted. This is the exact solution i worked on .
    //Detect local or remote session
    import com.sun.jna.Library;
    import com.sun.jna.Native;
    import com.sun.jna.ptr.IntByReference;
    import com.sun.jna.win32.*;
    import com.sun.jna.examples.win32.Kernel32;
    public class DetectSession
    boolean ret;
    DetectSession()
    ret = isLocalSession();
    if (ret == true ) {
    System.out.print("Local");
    else {
    System.out.print("Remote");
    public interface Kernel32 extends Library {
    public int GetCurrentProcessId();
    public boolean ProcessIdToSessionId(int x,IntByReference y);
    public int WTSGetActiveConsoleSessionId();
    public static void main(String args[])
    new DetectSession();
    public static boolean isLocalSession() {
    Kernel32 kernel32;
    IntByReference pSessionId;
    int consoleSessionId;
    Kernel32 lib = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);
    pSessionId = new IntByReference();
    if (lib.ProcessIdToSessionId(lib.GetCurrentProcessId(), pSessionId)) {
    consoleSessionId = lib.WTSGetActiveConsoleSessionId();
    if(consoleSessionId != 0xFFFFFFFF && consoleSessionId == pSessionId.getValue()) {
    return(true);
    return(false);
    } // isLocalSession
    }

  • How to detect the OS

    Dear sirs...
    in jdeveloper 10g 10.1.2, how can i detect the current operating system?
    thanks for any help

    Try:
    String os = System.getProperty("os.name");
    See following link for more info:
    http://java.sun.com/docs/books/tutorial/essential/system/properties.html

  • My scene detect in Premiere cs3 on WIN 7, 64 bit is ghosted and can't turn on

    I have my premiere cs3 on two computers one with xp pro and the other with win 7 64bit and I can't activate my scene detect on either operating system, I read manual and did some on line searches but it assumes in the tutorials it is already active. Am I doing something stupid or is there a way to turn it on
    Joan

    Yeah, sorry I should have been more specific.  There is no way in Premiere to split it, which still amazes me.  HDV split works great though.  I just noticed the name of the OP, you would think that they would know that....
    Phil

Maybe you are looking for

  • Lightroom 5 permanently runs out of memory

    Lightroom 5 on Windows 7 32 Bit and 8 Gigabytes of memory (more than the 32 Bit system can use) permanently runs out of memory when doing some more complex edits on a RAW file, especially when exporting to 16 Bit TIFF. The RAW files were created by c

  • Help:after amber update,Camera shut down....

    just after update to amber,my 920's camera never turn on, shut down when i turn it on.......what can i do? before amber it's ok..

  • Just a recommendation for CD/DVD on T41/T42/T43 etc

    My experience recently: DONT buy the Mat**bleep**a UJDA series. Mine was UJDA745 and didnt work at all. Instead buy the GCC-4242N-R4 Just my humble opinion for the Thinkpad users out there. Hope it helps

  • SQL Developer Bug: NVL() function error when debug/run stored procedure

    Version: SQL Developer: 1.5.3 (build main-5783) Oracle DB connected: Oracle9i Enterprise Edition Release 9.2.0.6.0 Stored procedure code like this: procedure search(V_STATUS_IN IN CHAR(1)) is begin declare V_STATUS CHAR(1) := NULL; begin V_STATUS :=

  • CALL FUNCTION 'crm_mktbp_merge_bps' does not write to database

    Hello Experts, i try to use the function call 'crm_mktbp_merge_bps' to merge the marketing attributes of two business partners (contact persons). Inital situation: Business partner 1 (lv_ap_guid) is maintained with 1 profile and its attributes. Busin