[MPlayer-dev-eng] new xvid coder/decoder

elcabesa elcabesa at inwind.it
Sun Mar 23 14:36:25 CET 2003


On Sunday 23 March 2003 14:45, Arpi wrote:
> Hi,
>
> > im' working on porting xvid dev-4-api on  mplayer ,for my own testing
> > needs=) and for community too=)
> >
> > i hjave found some problem.. couse new api seems that doesn't allocate vo
> > buffer... and neither mpcodecs_get_image() seems to do it... these is
> > dome
>
> it depends on img_type parameter. EXPORT means teh codec will allocate, the
> rest (mainly IMGTYPE_TEMP, _STATIC, _IPB) means that mpcodecs_get_image
> will allocate it.
>
>   switch(cs) {
> #ifdef XVID_CSP_EXTERN
>   case XVID_CSP_EXTERN:
>     p->img_type = MP_IMGTYPE_STATIC;
>     break;
> #endif
>   case XVID_CSP_USER:
>     p->img_type = MP_IMGTYPE_EXPORT;
>     break;
>   default:
>     p->img_type = MP_IMGTYPE_TEMP;
>     break;
>   }
>
> so it seems current vd_xvid does support both ways
>
> > flag to enable to make it allocate memory?? or sohuld i allocate them in
> > vd_xvid.c file?
>
> no!
>
> btw read docs/tech/libmpcodecs.txt
>
> A'rpi / Astral & ESP-team
>
> --
> Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng


ok thanks understood=)
i have seen the peice of code you told me ad i have understood what it mean=)
thanks=)



More information about the MPlayer-dev-eng mailing list