[MPlayer-dev-eng] [PATCH]aspect normalizing and autoexpand.

Mauro Lacy mauro at lacy.com.ar
Tue Apr 17 15:45:30 CEST 2007


Hi, hello to everyone, I'm new to the list. I'm sending two patches that 
can be of interest.
The first one implements aspect normalizing: it changes the aspect of 
the movie to the nearest normal aspect.(4:3,  16:9 or 2.35)
The second(more interesting) implements autoexpand, it automatically 
expands the display zone, so subtitles can be on the black bands of the 
screen, in the case by example of 16:9 or 2.35 movies that are played on 
a 4:3 monitor/screen(the usual case).

The patches are a work in progress, specially the autoexpand one, 
because the expanding process depends on the monitoraspect(indeed, if 
you are displaying the movie on a display that has a more "wider" aspect 
than the movie itself, no expanding is needed). I couldn't find a  
simple way to import the monitoraspect value to the libmpcodecs 
library(monitoraspect is defined in libvo). Help and suggestions will be 
appreciated.

The way I found to enable autoexpand, is to put vf=expand, without 
arguments, in the mplayer config file. For aspect normalizing, a new 
config directive, like  'normalaspect' or something like that, is 
needed. I'm planning to add this soon.

Lastly, the autoexpand process depends, as far as I can tell, on the 
video format of the movie. I've implemented an "heuristic" solution, but 
a more elegant one, based on video format instead of on the value of a 
variable used in the calculation, is clearly needed.

Well, here are the patches, I hope they can be useful.
Best regards,
Mauro
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vd.c.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070417/502f9626/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vf_expand.c.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070417/502f9626/attachment.txt>


More information about the MPlayer-dev-eng mailing list