[MPlayer-dev-eng] [PATCH] HuffYUV native support

Arpi arpi at thot.banki.hu
Thu Mar 21 00:05:37 CET 2002


Hi,

> These patches add HuffYUV native support to Mplayer for YUV and RGB 
> files (RGBA not supported yet).
> 
> Output format is YUY2 or BGR32,BGR24, and is selected in init function 
> because frame format is not known at demuxer. This portion does not 
> work correctly: some vo (es. sdl) select YUV, other (es. x11) RGB, 
> ignoring my request made by mpcodecs_config_vo.

your request is only the 'preferred outfmt'. so, when no common supported
outfmt, then it will be used as input of conversion (not yet implemented).

the list of supported outfmts is still in codecs.conf, but you can implement
the QUERY_FORMAT control() call so these will be queried, and in case of
FALSE reply they will be removed from codecs.conf list by vd.c.

see the vd_raw.c for example.

the QUERY_FORMAT control call will be called from mpcodecs_config_vo().

> This is the code fragment:
> 
> switch (hc->bitmaptype) {
>   case BMPTYPE_YUV:
>    vo_ret = mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2);
>    break;
>   case BMPTYPE_RGB:
>    vo_ret = mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24);
>    break;
> }
> 
> Is output format selection by mpcodecs already implemented?

yes. also implement that control() case.
only automatic conversion missing from libmpcodecs.

> I also had to disable MP_IMAGEFLAG_ACCEPT_STRIDE for BGR32/BGR24 output 
> because it wasn't working, i'm still looking at it.
ok


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