[MPlayer-dev-eng] [PATCH] use standard aspect functions for vo_quartz

Alexander Strange astrange at ithinksw.com
Fri Aug 28 16:02:27 CEST 2009


On Aug 28, 2009, at 4:55 AM, Reimar Döffinger wrote:

> On Fri, Aug 28, 2009 at 10:15:41AM +0200, Guillaume POIRIER wrote:
>> 2009/8/28 Reimar Döffinger <Reimar.Doeffinger at gmx.de>:
>>> vo_quartz currently reimplements the whole aspect handling (and  
>>> probably
>>> badly, too), attached patch changes it to use the standard functions
>>> where obvious.
>>> I realized there are some other things missing like -geometry  
>>> support
>>> that at least after this change should work for specifying size, but
>>> position is ignored.
>>> Panscan is also still handled in an ugly way that can only work with
>>> fullscreen windows and even there leaves ugly artefacts on the
>>> neighbouring displays if there are any I think.
>>
>> Tested and works as expected on my machine.
>> Feel free to do whatever you want with vo_quartz: this VO won't be
>> developed further anyway since it uses Carbon, which isn't 64-bits
>> compatible. That means that it won't build by default on Snow  
>> Leopard.
>
> Btw. will the Carbon headers still be usable? Because Apple still  
> hasn't
> managed to include a handful of defines for the keycodes in Cocoa, so
> the only place to get them from is a Carbon header.
> Or do we have to define them all by ourselves (duplicating that code
> between vo_quartz and vo_corevideo IMO is not acceptable, as well as  
> the
> current mess with using "magic" numbers in corevideo that just fell  
> out
> from somewhere).

The system frameworks were already 64-bit in Leopard - just check the  
headers and see if they're under #if !__LP64__ or not. SL only ships  
with more 64-bit applications.




More information about the MPlayer-dev-eng mailing list