[Mplayer-users] font bitmap format?

Arpi arpi at thot.banki.hu
Wed Apr 11 19:46:43 CEST 2001


Hi,

> Arpi wrote:	
> >I've just tried imagemagick, and it works.
> >I could convert from gif to pgm just typing:
> >
> >convert test.gif test.pgm
> >
> >And it really supports a big list of fileformats (except .RAW )
> 
> .RAW    =    .PGM - {16Byte header}  
> 
Not really...
.RAW:

32-byte header, exactly:
"mhwanh" 0x04 0x00
xsh xsl ysh ysl ch cl
0x01 0x2c 0x01 0x2c
zeros...

if colors (ch*256+cl) not zero, then colors*3 byte palette data.

raw image data,  xsize=xsh*256+xsl, ysize=ysh*256+ysl  bpp=colors?1:3

I like it because it's simple and handle all image fromats, from 1bpp to
24bpp.

> I'll write you a converter for that, if you want :-) 
I'll add .pgm support for font reader.


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list