view gui/bitmap.h @ 26414:a7031923e4dc

demux_asf: Fix operator precedence in packet length check Change (len & 3-1) to correct ((len & 3) - 1) in packet length check. Also change "a - 1 < b" to simpler "a <= b".
author uau
date Sun, 13 Apr 2008 23:04:07 +0000
parents 4129c8cfa742
children b0a7b35b78d2
line wrap: on
line source

#ifndef MPLAYER_GUI_BITMAP_H
#define MPLAYER_GUI_BITMAP_H

typedef struct txSample
{
 unsigned long Width;
 unsigned long Height;
 unsigned int  BPP;
 unsigned long ImageSize;
 char *        Image;
} txSample;

int bpRead( char * fname, txSample * bf );
void Convert32to1( txSample * in,txSample * out,int adaptivlimit );

#endif /* MPLAYER_GUI_BITMAP_H */