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

Arpi arpi at thot.banki.hu
Sun Mar 23 14:45:51 CET 2003


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


More information about the MPlayer-dev-eng mailing list