From d5519029160550772d9b24695d94e6b5760f242e Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sun, 18 Jan 2004 02:56:04 +0000 Subject: [PATCH] Changed the quality/capability comments to more clearly explain what they are for git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6123 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/translation/TranslationDefs.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/headers/os/translation/TranslationDefs.h b/headers/os/translation/TranslationDefs.h index 56282c7765..6ae2e5f4ee 100644 --- a/headers/os/translation/TranslationDefs.h +++ b/headers/os/translation/TranslationDefs.h @@ -32,24 +32,24 @@ typedef unsigned long translator_id; extern const char * B_TRANSLATOR_MIME_TYPE; struct translation_format { - uint32 type; /* B_ASCII_TYPE, ...*/ - uint32 group; /* B_TRANSLATOR_BITMAP, B_TRANSLATOR_TEXT, ...*/ - float quality; /* format quality 0.0-1.0*/ - float capability; /* translator capability 0.0-1.0*/ - char MIME[251]; /* MIME string*/ - char name[251]; /* only descriptive */ + uint32 type; /* B_ASCII_TYPE, ...*/ + uint32 group; /* B_TRANSLATOR_BITMAP, B_TRANSLATOR_TEXT, ...*/ + float quality; /* ability of the format to retain the data of its group (0.0-1.0) */ + float capability; /* ability of the translator to decode the format (0.0-1.0) */ + char MIME[251]; /* MIME string*/ + char name[251]; /* only descriptive */ }; /* This struct is different from the format struct for a reason: */ /* to separate the notion of formats from the notion of translations */ -struct translator_info { /* Info about a specific translation*/ - uint32 type; /* B_ASCII_TYPE, ...*/ - translator_id translator; /* Filled in by BTranslationRoster*/ - uint32 group; /* B_TRANSLATOR_BITMAP, B_TRANSLATOR_TEXT, ...*/ - float quality; /* Quality of format in group 0.0-1.0*/ - float capability; /* How much of the format do we do? 0.0-1.0*/ +struct translator_info { /* Info about a specific translation*/ + uint32 type; /* B_ASCII_TYPE, ...*/ + translator_id translator; /* Filled in by BTranslationRoster*/ + uint32 group; /* B_TRANSLATOR_BITMAP, B_TRANSLATOR_TEXT, ...*/ + float quality; /* ability of the format to retain the data of its group (0.0-1.0) */ + float capability; /* ability of the translator to decode the format (0.0-1.0) */ char name[251]; char MIME[251]; };