[MPlayer-dev-eng] [PATCH] changes in vf_get_image semantics

Diego Biurrun diego at biurrun.de
Thu Nov 25 15:11:32 CET 2004


Jindrich Makovicka writes:
> D Richard Felker III wrote:
> > furthermore, ALL of this (image size, border, etc.) should be decided
> > at CONFIG TIME, not everytime get_image is called. get_image should
> > implicitly assume the same sizes config() was called with, otherwise
> > it's nonsense. of course this would be a major pain to fix up in g1...
> > let's discuss it more.
> 
> i hope this patch is already quite close. the dimensions are stored in 
> vf during mpcodecs_config_vo and vf_config_next. most of the calls of 
> get_image are changed to pass -1 as width and height, which means 
> "allocate the default dimensions". so now the args of get_image mean 
> really the allocated size, while mpi->w and mpi->h are always taken from 
> the corresponding vf. it made possible to remove some duplicate code 
> from vf's, which computes the dimensions, maybe even some vf->priv's 
> could be simplified as some fields just duplicate vf->w and vf->h, like 
> in vf_scale/crop/expand.
> 
> it can be still buggy, i haven't yet time to test it properly.
> 
> http://kmlinux.fjfi.cvut.cz/~makovick/getimage.diff

When applied on top of current CVS it works but I get crahes in
uninit_vcodec at the end of the playback.  With an older snapshot from
20041120-18:09 it appears to work flawlessly thus I suppose this is
should replace some of the recent changes.  Could you please post a
patch for this or exact instructions so testing becomes a bit easier?

Diego




More information about the MPlayer-dev-eng mailing list