From 9f92d9c62b76b8d74914be890d2b60d1dfa88b2d Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sun, 18 Jan 2004 04:26:25 +0000 Subject: [PATCH] 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 --- .../translators/bmptranslator/BMPTranslator.h | 22 ++++++------------- .../libtifftranslator/TIFFTranslator.h | 12 +++++----- .../translators/pngtranslator/PNGTranslator.h | 14 ++++++------ .../stxttranslator/STXTTranslator.h | 8 ------- .../translators/tgatranslator/TGATranslator.h | 20 +++++------------ 5 files changed, 25 insertions(+), 51 deletions(-) diff --git a/src/add-ons/translators/bmptranslator/BMPTranslator.h b/src/add-ons/translators/bmptranslator/BMPTranslator.h index 512e7a2d63..f3a2ff928f 100644 --- a/src/add-ons/translators/bmptranslator/BMPTranslator.h +++ b/src/add-ons/translators/bmptranslator/BMPTranslator.h @@ -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 { diff --git a/src/add-ons/translators/libtifftranslator/TIFFTranslator.h b/src/add-ons/translators/libtifftranslator/TIFFTranslator.h index 79449812b8..7956b58350 100644 --- a/src/add-ons/translators/libtifftranslator/TIFFTranslator.h +++ b/src/add-ons/translators/libtifftranslator/TIFFTranslator.h @@ -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; diff --git a/src/add-ons/translators/pngtranslator/PNGTranslator.h b/src/add-ons/translators/pngtranslator/PNGTranslator.h index b4621bac93..49daf6188c 100644 --- a/src/add-ons/translators/pngtranslator/PNGTranslator.h +++ b/src/add-ons/translators/pngtranslator/PNGTranslator.h @@ -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 { diff --git a/src/add-ons/translators/stxttranslator/STXTTranslator.h b/src/add-ons/translators/stxttranslator/STXTTranslator.h index 1a2e99aebd..2fad56afcc 100644 --- a/src/add-ons/translators/stxttranslator/STXTTranslator.h +++ b/src/add-ons/translators/stxttranslator/STXTTranslator.h @@ -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: diff --git a/src/add-ons/translators/tgatranslator/TGATranslator.h b/src/add-ons/translators/tgatranslator/TGATranslator.h index e477856b88..0c49fe2655 100644 --- a/src/add-ons/translators/tgatranslator/TGATranslator.h +++ b/src/add-ons/translators/tgatranslator/TGATranslator.h @@ -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 {