[MPlayer-dev-eng] [PATCH] tga loader for libmpcodecs

Tilman Sauerbeck tsauerbeck at users.sourceforge.net
Fri Sep 13 22:36:41 CEST 2002


On Fri, 13 Sep 2002 18:42:23 +0200 Arpi <arpi at thot.banki.hu> wrote:

> > If I understand that correctly, VDCTRL_QUERY_FORMAT gives information
> > about the supported formats... So I return CONTROL_TRUE when the tga
> not really
> codecs.conf's "out" contains the list of the supported formats.
> vdctrl_query_format is called for each format listed in codecs.conf to ask
> the codec if it's supported for that given file.
> 
> > decoder is queried for IMGFMT_BGR24 or IMGFMT_BGR32. Basically, I just
> > want to use BGR24 for 24bpp TGA files and BGR32 for 32bpp TGA files at the
> > moment (that way I can decode quite fast). Is it possible to do so?
> 
> then you should add BGR24,BGR32 to codecs.conf, and your vdctrl_query_fmt
> should check the file bpp (24 or 32) and accept BG24 _or_ BGR32 _only_
> depending on it.

Ah, understood. Here's the patch making these changes.

Regards,
Tilman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch2
Type: application/octet-stream
Size: 8991 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020913/bc62bf2c/attachment.obj>


More information about the MPlayer-dev-eng mailing list