From abcf3e8a75538db5270398f69d4bfd8097a57f31 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Thu, 1 Aug 2002 21:23:04 +0000 Subject: [PATCH] changed translator quality and capabilities to more reasonable levels git-svn-id: file:///srv/svn/repos/haiku/trunk/current@552 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../translators/bmptranslator/BMPTranslator.h | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/add-ons/translators/bmptranslator/BMPTranslator.h b/src/add-ons/translators/bmptranslator/BMPTranslator.h index 385e120370..a192276277 100644 --- a/src/add-ons/translators/bmptranslator/BMPTranslator.h +++ b/src/add-ons/translators/bmptranslator/BMPTranslator.h @@ -42,11 +42,24 @@ #define BMP_RLE4_COMPRESS 2 #define BMP_TRANSLATOR_VERSION 100 -#define BMP_QUALITY 1.0 -#define BMP_CAPABILITY 1.0 +#define BMP_IN_QUALITY 1.0 + // high in quality becuase this code supports all BMP features +#define BMP_IN_CAPABILITY 0.8 + // high in capability because this code opens basically all BMPs +#define BMP_OUT_QUALITY 1.0 + // high out quality because this code outputs fully standard BMPs +#define BMP_OUT_CAPABILITY 0.5 + // medium out capability because RLE compression is not an option + +#define BBT_IN_QUALITY 0.6 + // medium in quality because only most common features are supported +#define BBT_IN_CAPABILITY 0.8 + // high in capability because most variations are supported +#define BBT_OUT_QUALITY 0.6 + // medium out quality because only most common features are supported +#define BBT_OUT_CAPABILITY 0.8 + // high out capability because most variations are supported -#define BBT_QUALITY 1.0 -#define BBT_CAPABILITY 1.0 struct BMPFileHeader { // for both MS and OS/2 BMP formats @@ -62,8 +75,8 @@ struct MSInfoHeader { uint32 height; // bitmap height uint16 planes; // number of planes, always 1? uint16 bitsperpixel; // bits per pixel, (1,4,8,16 or 24) - uint32 compression; // type of compression (0 none, 1 8 bit RLE, 2 4 bit RLE) - uint32 imagesize; // compressed size of image? set to zero if compression == 0? + uint32 compression; // type of compression + uint32 imagesize; // size of image data if compressed uint32 xpixperm; // horizontal pixels per meter uint32 ypixperm; // vertical pixels per meter uint32 colorsused; // number of actually used colors