65 class r_Tile_Compression
69 { INVALID=0, COMPRESSION, CONVERSION };
71 r_Tile_Compression(
const r_Minterval &dom,
const r_Base_Type *type );
72 r_Tile_Compression(
const r_Tile_Compression &src );
73 virtual ~r_Tile_Compression(
void );
75 static Support_Format check_data_format( r_Data_Format fmt );
76 static r_Tile_Compression *create( r_Data_Format fmt,
const r_Minterval &dom,
const r_Base_Type *type )
throw(r_Error);
77 static r_Tile_Compression *create(
const char *name,
const r_Minterval &dom,
const r_Base_Type *type )
throw(r_Error);
78 static r_Data_Format get_format_from_name(
const char *name )
throw(r_Error);
79 static const char *get_format_info(
unsigned int number, r_Data_Format &fmt );
80 virtual void *compress(
const void *data, r_ULong &size,
const char *options = NULL ) = 0;
81 virtual void *decompress(
const void *data, r_ULong size,
const char *options = NULL ) = 0;
82 virtual r_Data_Format get_decomp_format(
void )
const;
83 virtual bool converts_endianness(
void )
const;
84 virtual const char *get_name(
void )
const = 0;
85 virtual r_Data_Format get_data_format(
void )
const = 0;
86 virtual r_Tile_Compression *clone(
void )
const = 0;
87 r_Bytes get_type_size(
void )
const;
88 r_ULong get_tile_size(
void )
const;
89 const r_Minterval &get_domain(
void )
const;
90 const r_Base_Type *get_base_type(
void )
const;
91 void resume_timer(
void );
92 void pause_timer(
void );
93 virtual void set_storage_handler(
const r_Storage_Man &newStore );
94 static void write_short(
void *dest, r_Short val );
95 static void write_long(
void *dest, r_Long val );
96 static void read_short(
const void *src, r_Short &val );
97 static void read_long(
const void *src, r_Long &val );
98 typedef struct tile_comp_format_s
100 r_Data_Format format;
102 } tile_comp_format_t;
105 static unsigned int get_atom_info(
const r_Base_Type* baseType,
unsigned int* sizes=NULL,
106 unsigned int *idxptr=NULL );
107 void instantiate_timer(
const char *func,
int level=0 );
109 r_Minterval mydomain;
111 r_Parse_Params *compParams;
112 r_Parse_Params *decompParams;
114 static const tile_comp_format_t all_formats[];
Definition: storageman.hh:56
Module: { raslib}.
Definition: rmdebug.hh:298