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

Alex Beregszaszi alex at galaktik.hu
Fri Sep 13 22:49:19 CEST 2002


Hi,

> > > 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.
nice..but..

tga_info should be private, also in init allocate sh->context and use that !

-- 
Alex Beregszaszi  <alex at naxine.org>



More information about the MPlayer-dev-eng mailing list