[MPlayer-dev-eng] mp-g2 pre14

Arpi arpi at thot.banki.hu
Mon Apr 21 22:28:32 CEST 2003


Hi,

> static mp_image_t* process_image(vf_dunno_t* vf, mp_image_t* mpi){
>     mp_image_t* dmpi;
>     if(!mpi){
> 	if(we have pending images?){
> 	    dmpi=vf_get_image(...)
> 	    render
> 	    return dmpi;
> 	}
> 	return NULL; // no thanks
>     }
>     dmpi=vf_get_image(...)
>     filter mpi into dmpi
>     while(we need one more image?){
> 	mpi=vf_process_image(vf);
> 	if(!mpi) sorry, no more...
> 	filter mpi into dmpi
>     }
>     return dmpi;
> }

maybe we should/could separate the mpi==NULL case, sotmething like
get_pending_image() and process_image(), the former should return NULL or
pending image (if implemented at all), the second could always expect
mpi!=NULL. it would be simpler for converting/writting nromal filters,
and could help a bit on error-handling (as NULL now may mean error
and no-image)

Rich, is it ok to split?


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list