Corrected the quality/capability values which I set when I misunderstood them.

These values are described best in the BeBook: TranslatorRoster.html


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6130 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber
2004-01-18 04:26:25 +00:00
parent 1cf1e4e9d2
commit 9f92d9c62b
5 changed files with 25 additions and 51 deletions
@@ -42,23 +42,15 @@
#define BMP_RLE4_COMPRESS 2
#define BMP_TRANSLATOR_VERSION 0x100
#define BMP_IN_QUALITY 1.0
// high in quality becuase this code supports all BMP features
#define BMP_IN_QUALITY 0.4
#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 BMP_OUT_QUALITY 0.4
#define BMP_OUT_CAPABILITY 0.8
#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_IN_QUALITY 0.4
#define BBT_IN_CAPABILITY 0.6
#define BBT_OUT_QUALITY 0.4
#define BBT_OUT_CAPABILITY 0.6
struct BMPFileHeader {
@@ -48,16 +48,14 @@
#define TIFF_TRANSLATOR_VERSION 0x100
#define TIFF_IN_QUALITY 0.5
#define TIFF_IN_QUALITY 0.7
#define TIFF_IN_CAPABILITY 0.6
#define TIFF_OUT_QUALITY 0.8
// high out quality because this code outputs fully standard TIFFs
#define TIFF_OUT_CAPABILITY 0.4
// medium out capability because not many TIFF features are supported
#define TIFF_OUT_QUALITY 0.7
#define TIFF_OUT_CAPABILITY 0.6
#define BBT_IN_QUALITY 0.4
#define BBT_IN_QUALITY 0.7
#define BBT_IN_CAPABILITY 0.6
#define BBT_OUT_QUALITY 0.4
#define BBT_OUT_QUALITY 0.7
#define BBT_OUT_CAPABILITY 0.6
class TIFFTranslatorSettings;
@@ -47,15 +47,15 @@
#define PNG_TRANSLATOR_VERSION 0x100
#define PNG_IN_QUALITY 0.6
#define PNG_IN_CAPABILITY 0.2
#define PNG_OUT_QUALITY 0.6
#define PNG_OUT_CAPABILITY 0.2
#define PNG_IN_QUALITY 0.8
#define PNG_IN_CAPABILITY 0.8
#define PNG_OUT_QUALITY 0.8
#define PNG_OUT_CAPABILITY 0.5
#define BBT_IN_QUALITY 0.5
#define BBT_IN_CAPABILITY 0.2
#define BBT_IN_QUALITY 0.8
#define BBT_IN_CAPABILITY 0.6
#define BBT_OUT_QUALITY 0.5
#define BBT_OUT_CAPABILITY 0.2
#define BBT_OUT_CAPABILITY 0.4
class PNGTranslator : public BTranslator {
@@ -44,22 +44,14 @@
#define STXT_TRANSLATOR_VERSION 0x100
#define STXT_IN_QUALITY 0.5
// high in quality becuase this code supports all STXT features
#define STXT_IN_CAPABILITY 0.5
// high in capability because this code opens basically all STXTs
#define STXT_OUT_QUALITY 0.5
// high out quality because this code outputs fully standard STXTs
#define STXT_OUT_CAPABILITY 0.5
// medium out capability because RLE compression is not an option
#define TEXT_IN_QUALITY 0.4
// medium in quality because only most common features are supported
#define TEXT_IN_CAPABILITY 0.6
// high in capability because most variations are supported
#define TEXT_OUT_QUALITY 0.4
// medium out quality because only most common features are supported
#define TEXT_OUT_CAPABILITY 0.6
// high out capability because most variations are supported
class STXTTranslator : public BTranslator {
public:
@@ -41,23 +41,15 @@
#include "TGATranslatorSettings.h"
#define TGA_TRANSLATOR_VERSION 0x100
#define TGA_IN_QUALITY 1.0
// high in quality becuase this code supports all TGA features
#define TGA_IN_CAPABILITY 0.6
// high in capability because this code opens most TGAs
#define TGA_OUT_QUALITY 1.0
// high out quality because this code outputs fully standard TGAs
#define TGA_OUT_CAPABILITY 0.7
// high out capability because many TGA features are supported
#define TGA_IN_QUALITY 0.7
#define TGA_IN_CAPABILITY 0.8
#define TGA_OUT_QUALITY 0.7
#define TGA_OUT_CAPABILITY 0.6
#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_IN_QUALITY 0.7
#define BBT_IN_CAPABILITY 0.6
#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
// TGA files are stored in the Intel byte order :)
struct TGAFileHeader {