I'm updating my code from Carbon to Cocoa, and finding a dramatic slowdown when 
using QTKitMovieMBS to get a movie frame, as opposed to EditableMovie.Picture

With this code:

  while currentTime <= maxTime
    
    #if TargetCocoa
      dim p as picture
      dim qttime as QTKitTimeMBS = new QTKitTimeMBS(currentTime,600) // time @ 
timescale
      dim nsi as NSImageMBS = qm.FrameImageAtTime(qttime)
      p = nsi.copyPicture
    #else // carbon or win32
      em.Position = currentTime
      dim p as picture = em.Picture
    #endif
    dim p2 as new picture(128,128,32)
    p2.graphics.drawPicture p,0,0,p2.width,p2.height,0,0,p.width,p.height // 
stretch p onto p2's size
    currentTime = currentTime + frameDuration
  wend

I'm seeing that the Carbon version is about 20x faster than the Cocoa version.  

Any idea why?  
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to