removed unused structs, added MakeConfigurationView, added some headers

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@473 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber 2002-07-27 01:48:40 +00:00
parent e842e0f369
commit 19b1280331

View File

@ -23,13 +23,14 @@
#define BBT_CAPABILITY 1.0 #define BBT_CAPABILITY 1.0
struct BMPFileHeader { struct BMPFileHeader {
// for both MS and OS/2 BMP formats
uint16 magic; // = 'BM' uint16 magic; // = 'BM'
uint32 fileSize; // file size in bytes uint32 fileSize; // file size in bytes
uint32 reserved; // equals 0 uint32 reserved; // equals 0
uint32 dataOffset; // file offset to actual image uint32 dataOffset; // file offset to actual image
}; };
struct BMPInfoHeader { struct MSInfoHeader {
uint32 size; // size of this struct (40) uint32 size; // size of this struct (40)
uint32 width; // bitmap width uint32 width; // bitmap width
uint32 height; // bitmap height uint32 height; // bitmap height
@ -43,11 +44,12 @@ struct BMPInfoHeader {
uint32 colorsimportant; // number of important colors, zero = all uint32 colorsimportant; // number of important colors, zero = all
}; };
struct BMPColorTable { struct OS2InfoHeader {
uint8 red; // red intensity uint32 size; // size of this struct (40)
uint8 green; // green intensity uint16 width; // bitmap width
uint8 blue; // blue intensity uint16 height; // bitmap height
uint8 reserved; // unused (=0) uint16 planes; // number of planes, always 1?
uint16 bitsperpixel; // bits per pixel, (1,4,8,16 or 24)
}; };
class BMPTranslator : public BTranslator { class BMPTranslator : public BTranslator {
@ -85,6 +87,11 @@ public:
// this function is the whole point of the Translation Kit, // this function is the whole point of the Translation Kit,
// it translates the data in inSource to outDestination // it translates the data in inSource to outDestination
// using the format outType // using the format outType
virtual status_t MakeConfigurationView(BMessage *ioExtension,
BView **outView, BRect *outExtent);
// creates and returns the view for displaying information
// about this translator
protected: protected:
virtual ~BMPTranslator(); virtual ~BMPTranslator();