[MPlayer-dev-eng] [PATCH] YUV support for vo_quartz, at last
Camillo Lugaresi
camillolugaresi at virgilio.it
Mon May 3 20:46:21 CEST 2004
Things have moved on since my last check, but maybe a reply will
still be useful:
At 11:43 -0400 1-05-2004, Nicolas Plourde wrote:
>>With SDL support enabled, mplayer is a Cocoa application, so
>>vo_quartz is running as Carbon-in-Cocoa. Without SDL, you'll need
>>to do the standard Carbon initialization procedure. Apple has
>>plenty of sample code for this.
>
>Can you point me to this documentation or sample code, I cant find
>it anywhere.
Start from developer.apple.com. There's a wealth of documentation,
sample code and assorted resources for all Mac OS technologies and
programming topics.
Regarding Carbon initialization, there really isn't much that you
have to do. Carbon does most of its initialization automatically
(sorry about the confusion - I did most of my Mac programming in the
"old days" :) ), and the application only needs to run the event loop.
One thing to consider, however, is that some of the standard event
handlers are not installed unless you call RunApplicationEventLoop().
vo_quartz can't call RAEL because of mplayer's design, so you'd have
to do some extra work (eg install an event handler to process Apple
Events). But since the interface is very bare-bones for now, this is
not strictly necessary.
Camillo Lugaresi
More information about the MPlayer-dev-eng
mailing list