compressorRLEU.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef EQ_PLUGIN_COMPRESSORRLEU
00019 #define EQ_PLUGIN_COMPRESSORRLEU
00020
00021 #include "compressorRLE4B.h"
00022
00023 namespace eq
00024 {
00025 namespace plugin
00026 {
00027
00028
00029
00030
00031
00032 class CompressorRLEU : public CompressorRLE4B
00033 {
00034 public:
00035 CompressorRLEU() {}
00036 virtual ~CompressorRLEU() {}
00037
00038 static void* getNewCompressor( ){ return new eq::plugin::CompressorRLEU; }
00039
00040 static void getInfo( EqCompressorInfo* const info )
00041 {
00042 info->version = EQ_COMPRESSOR_VERSION;
00043 info->name = EQ_COMPRESSOR_RLE_UNSIGNED;
00044 info->capabilities = EQ_COMPRESSOR_DATA_1D | EQ_COMPRESSOR_DATA_2D |
00045 EQ_COMPRESSOR_IGNORE_MSE;
00046 info->tokenType = EQ_COMPRESSOR_DATATYPE_UNSIGNED;
00047
00048 info->quality = 1.0f;
00049 info->ratio = .59f;
00050 info->speed = 1.0f;
00051 }
00052
00053 static Functions getFunctions()
00054 {
00055 Functions functions( CompressorRLE4B::getFunctions( ));
00056 functions.name = EQ_COMPRESSOR_RLE_UNSIGNED;
00057 functions.getInfo = getInfo;
00058 return functions;
00059 }
00060 };
00061
00062 }
00063 }
00064 #endif // EQ_PLUGIN_COMPRESSORRLEU