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

Arpi arpi at thot.banki.hu
Sat Mar 23 00:50:42 CET 2002


Hi,

> > > Attached you can find a patch that implements control() for HuffYUV
> > > decoder.
> > 
> > 	Applied. However, whenever I load one of the RGB files without
> > specifying "-vo x11" (so that it falls back on the default "-vo
> > xmga"), it
> > tries to load the Windows DLL.
> > 
> I have the same problem with YUV files and -vo x11: my codec get 
> selected, but video driver rejects its output format request (x11 
> does't support YUY2). With the new codec selction code Mplayer tries 
> out other codecs that can decode the video format (see A'rpi's mailto 
> find out the exact algorithm used). Since win32 dll uses only 
> codecs.conf to accept output format,it's selected for playback (even if 
> it can't decode the source video to the output format). In my example, 
> win32 tries to play a YUV file on a RGB surface... (obiously I get 
> sig11).

> Opening Video Decoder: [vfw] Win32/VfW video codecs
>                         ^^^^^^^^^^^^^^^^^^^^^^^Mplayer tries with win32
> 
> VDec: vo config request - 200 x 150, Packed YUY2
>                                       ^^^^^Win32 Codec suggests YUY2

it only suggests packed yuy2, but it supports rgb modes too (see
codecs.conf, and vd_vfd doesn't implement the query_format control() call
yet)

yuy2 cannot be played using -vo x11 now.
the libvo document says: every vo have to support at least yv12, rgb15 and
rgb24. yuy2 is not mandatory.

anyway vo_x11 has nice conversion code (using SwScaler) but yuy2 was
disabled to avoid selecting it by old codec core.

now i think it's time to enable it, with conversion flag set (return 0x3 at
query_format for converted formats - but afair it's already done by alex)


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