• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Overlapping NSMovieViews step on each other
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overlapping NSMovieViews step on each other


  • Subject: Re: Overlapping NSMovieViews step on each other
  • From: Gen Kiyooka <email@hidden>
  • Date: Tue, 29 Mar 2005 21:13:42 -0800

http://developer.apple.com/samplecode/QuickTime/idxCocoa-date.html#doclist

I think the samples that you will find interesting are:
Movie Overlay - which demonstrates a technique mentioned previously on this thread

CocoaVideoFrameToGWorld (HTML) (SIT)
Demonstrates how to draw each frame of a QuickTime movie into a Cocoa NSQuickDrawView.

CocoaVideoFrameToNSImage (HTML) (SIT)
Demonstrates how to create an NSImage for each frame of a QuickTime movie.

http://developer.apple.com/samplecode/QuickTime/idxGraphicsImaging-date.html#doclist
This one is probably not Cocoa.
OpenGL Movie - demonstrates playing QuickTime movie into an offscreen buffer
(Two of these drawing into textured quads on a GL context and there's another good approach).

OpenGLCompositorLab might be the videomixer. If not, then the videomixer was
a sample from WWDC2004 presentation and I downloaded it from the ADC
log-in download site.

Gen

On Mar 29, 2005, at 8:08 PM, Gen Kiyooka wrote:
On Mar 29, 2005, at 1:46 PM, Ricky Sharp wrote:
On Mar 29, 2005, at 3:35 PM, David Hoerl wrote:

If I have two NSMovieViews which have some area of overlap, I was expecting that one would be dominant and the other one would play "under" it.

However, what I see is that they alternate writing to the screen.

How would one put a movie playing on top of another (exactly like the picture-in-picture feature of TVs)? Can this be done in one window or do I need to stack a second window on top of the first one (and use smoke and mirrors when the lower windows is moved around)?

QuickTime has the ability to install a callback (basically, a static C function) that will be called immediately
after the current frame has been blitted into the Window. You could install such a callback on the larger
frame, and blit a frame from the 2nd movie into a rectangular region. There is a 'video mixer' Cocoa-QuickTime
sample kicking around that probably has a bunch of other approaches based on GL.

Gen Kiyooka
Digigami

BTW, I haven't used the Cocoa classes, but basically, for the smaller picture (as in picture in picture),
you need a movie player that is rendering to an off-screen gworld, which essentially, is a 32-bit pixel
buffer. Not
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Overlapping NSMovieViews step on each other (From: David Hoerl <email@hidden>)
 >Re: Overlapping NSMovieViews step on each other (From: Ricky Sharp <email@hidden>)
 >Re: Overlapping NSMovieViews step on each other (From: Gen Kiyooka <email@hidden>)

  • Prev by Date: Spell checker bug?
  • Next by Date: Re: NSImage Rotation
  • Previous by thread: Re: Overlapping NSMovieViews step on each other
  • Next by thread: Re: Overlapping NSMovieViews step on each other
  • Index(es):
    • Date
    • Thread