Annotation of /trunk/indra/llimage/llimagej2c.cpp
Parent Directory
|
Revision Log
Revision 138 - (view) (download)
| 1 : | mjm | 135 | /** |
| 2 : | * @file llimagej2c.cpp | ||
| 3 : | * | ||
| 4 : | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
| 5 : | * | ||
| 6 : | mjm | 137 | * Copyright (c) 2001-2010, Linden Research, Inc. |
| 7 : | mjm | 135 | * |
| 8 : | * Second Life Viewer Source Code | ||
| 9 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 10 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 11 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 12 : | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
| 13 : | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
| 14 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 15 : | * | ||
| 16 : | * There are special exceptions to the terms and conditions of the GPL as | ||
| 17 : | * it is applied to this Source Code. View the full text of the exception | ||
| 18 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 19 : | * online at | ||
| 20 : | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 21 : | * | ||
| 22 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 23 : | * that you have read and understood your obligations described above, | ||
| 24 : | * and agree to abide by those obligations. | ||
| 25 : | * | ||
| 26 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 27 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 28 : | * COMPLETENESS OR PERFORMANCE. | ||
| 29 : | * $/LicenseInfo$ | ||
| 30 : | */ | ||
| 31 : | #include "linden_common.h" | ||
| 32 : | |||
| 33 : | #include "apr_pools.h" | ||
| 34 : | #include "apr_dso.h" | ||
| 35 : | |||
| 36 : | #include "lldir.h" | ||
| 37 : | #include "llimagej2c.h" | ||
| 38 : | #include "llmemtype.h" | ||
| 39 : | |||
| 40 : | typedef LLImageJ2CImpl* (*CreateLLImageJ2CFunction)(); | ||
| 41 : | typedef void (*DestroyLLImageJ2CFunction)(LLImageJ2CImpl*); | ||
| 42 : | typedef const char* (*EngineInfoLLImageJ2CFunction)(); | ||
| 43 : | |||
| 44 : | //some "private static" variables so we only attempt to load | ||
| 45 : | //dynamic libaries once | ||
| 46 : | CreateLLImageJ2CFunction j2cimpl_create_func; | ||
| 47 : | DestroyLLImageJ2CFunction j2cimpl_destroy_func; | ||
| 48 : | EngineInfoLLImageJ2CFunction j2cimpl_engineinfo_func; | ||
| 49 : | apr_pool_t *j2cimpl_dso_memory_pool; | ||
| 50 : | apr_dso_handle_t *j2cimpl_dso_handle; | ||
| 51 : | |||
| 52 : | //Declare the prototype for theses functions here, their functionality | ||
| 53 : | //will be implemented in other files which define a derived LLImageJ2CImpl | ||
| 54 : | //but only ONE static library which has the implementation for this | ||
| 55 : | //function should ever be included | ||
| 56 : | LLImageJ2CImpl* fallbackCreateLLImageJ2CImpl(); | ||
| 57 : | void fallbackDestroyLLImageJ2CImpl(LLImageJ2CImpl* impl); | ||
| 58 : | const char* fallbackEngineInfoLLImageJ2CImpl(); | ||
| 59 : | |||
| 60 : | //static | ||
| 61 : | //Loads the required "create", "destroy" and "engineinfo" functions needed | ||
| 62 : | void LLImageJ2C::openDSO() | ||
| 63 : | { | ||
| 64 : | //attempt to load a DSO and get some functions from it | ||
| 65 : | std::string dso_name; | ||
| 66 : | std::string dso_path; | ||
| 67 : | |||
| 68 : | bool all_functions_loaded = false; | ||
| 69 : | apr_status_t rv; | ||
| 70 : | |||
| 71 : | #if LL_WINDOWS | ||
| 72 : | dso_name = "llkdu.dll"; | ||
| 73 : | #elif LL_DARWIN | ||
| 74 : | dso_name = "libllkdu.dylib"; | ||
| 75 : | #else | ||
| 76 : | dso_name = "libllkdu.so"; | ||
| 77 : | #endif | ||
| 78 : | |||
| 79 : | dso_path = gDirUtilp->findFile(dso_name, | ||
| 80 : | gDirUtilp->getAppRODataDir(), | ||
| 81 : | gDirUtilp->getExecutableDir()); | ||
| 82 : | |||
| 83 : | j2cimpl_dso_handle = NULL; | ||
| 84 : | j2cimpl_dso_memory_pool = NULL; | ||
| 85 : | |||
| 86 : | //attempt to load the shared library | ||
| 87 : | apr_pool_create(&j2cimpl_dso_memory_pool, NULL); | ||
| 88 : | rv = apr_dso_load(&j2cimpl_dso_handle, | ||
| 89 : | dso_path.c_str(), | ||
| 90 : | j2cimpl_dso_memory_pool); | ||
| 91 : | |||
| 92 : | //now, check for success | ||
| 93 : | if ( rv == APR_SUCCESS ) | ||
| 94 : | { | ||
| 95 : | //found the dynamic library | ||
| 96 : | //now we want to load the functions we're interested in | ||
| 97 : | CreateLLImageJ2CFunction create_func = NULL; | ||
| 98 : | DestroyLLImageJ2CFunction dest_func = NULL; | ||
| 99 : | EngineInfoLLImageJ2CFunction engineinfo_func = NULL; | ||
| 100 : | |||
| 101 : | rv = apr_dso_sym((apr_dso_handle_sym_t*)&create_func, | ||
| 102 : | j2cimpl_dso_handle, | ||
| 103 : | "createLLImageJ2CKDU"); | ||
| 104 : | if ( rv == APR_SUCCESS ) | ||
| 105 : | { | ||
| 106 : | //we've loaded the create function ok | ||
| 107 : | //we need to delete via the DSO too | ||
| 108 : | //so lets check for a destruction function | ||
| 109 : | rv = apr_dso_sym((apr_dso_handle_sym_t*)&dest_func, | ||
| 110 : | j2cimpl_dso_handle, | ||
| 111 : | "destroyLLImageJ2CKDU"); | ||
| 112 : | if ( rv == APR_SUCCESS ) | ||
| 113 : | { | ||
| 114 : | //we've loaded the destroy function ok | ||
| 115 : | rv = apr_dso_sym((apr_dso_handle_sym_t*)&engineinfo_func, | ||
| 116 : | j2cimpl_dso_handle, | ||
| 117 : | "engineInfoLLImageJ2CKDU"); | ||
| 118 : | if ( rv == APR_SUCCESS ) | ||
| 119 : | { | ||
| 120 : | //ok, everything is loaded alright | ||
| 121 : | j2cimpl_create_func = create_func; | ||
| 122 : | j2cimpl_destroy_func = dest_func; | ||
| 123 : | j2cimpl_engineinfo_func = engineinfo_func; | ||
| 124 : | all_functions_loaded = true; | ||
| 125 : | } | ||
| 126 : | } | ||
| 127 : | } | ||
| 128 : | } | ||
| 129 : | |||
| 130 : | if ( !all_functions_loaded ) | ||
| 131 : | { | ||
| 132 : | //something went wrong with the DSO or function loading.. | ||
| 133 : | //fall back onto our satefy impl creation function | ||
| 134 : | |||
| 135 : | #if 0 | ||
| 136 : | // precious verbose debugging, sadly we can't use our | ||
| 137 : | // 'llinfos' stream etc. this early in the initialisation seq. | ||
| 138 : | char errbuf[256]; | ||
| 139 : | mjm | 138 | FILE *f = fopen("loadkdu.log", "w"); |
| 140 : | if (f) { | ||
| 141 : | fprintf(f, "failed to load syms from DSO %s (%s)\n", | ||
| 142 : | dso_name.c_str(), dso_path.c_str()); | ||
| 143 : | apr_strerror(rv, errbuf, sizeof(errbuf)); | ||
| 144 : | fprintf(f, "error: %d, %s\n", rv, errbuf); | ||
| 145 : | apr_dso_error(j2cimpl_dso_handle, errbuf, sizeof(errbuf)); | ||
| 146 : | fprintf(f, "dso-error: %d, %s\n", rv, errbuf); | ||
| 147 : | fclose(f); | ||
| 148 : | } | ||
| 149 : | exit(55); | ||
| 150 : | mjm | 135 | #endif |
| 151 : | |||
| 152 : | if ( j2cimpl_dso_handle ) | ||
| 153 : | { | ||
| 154 : | apr_dso_unload(j2cimpl_dso_handle); | ||
| 155 : | j2cimpl_dso_handle = NULL; | ||
| 156 : | } | ||
| 157 : | |||
| 158 : | if ( j2cimpl_dso_memory_pool ) | ||
| 159 : | { | ||
| 160 : | apr_pool_destroy(j2cimpl_dso_memory_pool); | ||
| 161 : | j2cimpl_dso_memory_pool = NULL; | ||
| 162 : | } | ||
| 163 : | } | ||
| 164 : | } | ||
| 165 : | |||
| 166 : | //static | ||
| 167 : | void LLImageJ2C::closeDSO() | ||
| 168 : | { | ||
| 169 : | if ( j2cimpl_dso_handle ) apr_dso_unload(j2cimpl_dso_handle); | ||
| 170 : | if (j2cimpl_dso_memory_pool) apr_pool_destroy(j2cimpl_dso_memory_pool); | ||
| 171 : | } | ||
| 172 : | |||
| 173 : | //static | ||
| 174 : | std::string LLImageJ2C::getEngineInfo() | ||
| 175 : | { | ||
| 176 : | if (!j2cimpl_engineinfo_func) | ||
| 177 : | j2cimpl_engineinfo_func = fallbackEngineInfoLLImageJ2CImpl; | ||
| 178 : | |||
| 179 : | return j2cimpl_engineinfo_func(); | ||
| 180 : | } | ||
| 181 : | |||
| 182 : | LLImageJ2C::LLImageJ2C() : LLImageFormatted(IMG_CODEC_J2C), | ||
| 183 : | mMaxBytes(0), | ||
| 184 : | mRawDiscardLevel(-1), | ||
| 185 : | mRate(0.0f), | ||
| 186 : | mReversible(FALSE) | ||
| 187 : | |||
| 188 : | { | ||
| 189 : | //We assume here that if we wanted to create via | ||
| 190 : | //a dynamic library that the approriate open calls were made | ||
| 191 : | //before any calls to this constructor. | ||
| 192 : | |||
| 193 : | //Therefore, a NULL creation function pointer here means | ||
| 194 : | //we either did not want to create using functions from the dynamic | ||
| 195 : | //library or there were issues loading it, either way | ||
| 196 : | //use our fall back | ||
| 197 : | if ( !j2cimpl_create_func ) | ||
| 198 : | { | ||
| 199 : | j2cimpl_create_func = fallbackCreateLLImageJ2CImpl; | ||
| 200 : | } | ||
| 201 : | |||
| 202 : | mImpl = j2cimpl_create_func(); | ||
| 203 : | } | ||
| 204 : | |||
| 205 : | // virtual | ||
| 206 : | LLImageJ2C::~LLImageJ2C() | ||
| 207 : | { | ||
| 208 : | //We assume here that if we wanted to destroy via | ||
| 209 : | //a dynamic library that the approriate open calls were made | ||
| 210 : | //before any calls to this destructor. | ||
| 211 : | |||
| 212 : | //Therefore, a NULL creation function pointer here means | ||
| 213 : | //we either did not want to destroy using functions from the dynamic | ||
| 214 : | //library or there were issues loading it, either way | ||
| 215 : | //use our fall back | ||
| 216 : | if ( !j2cimpl_destroy_func ) | ||
| 217 : | { | ||
| 218 : | j2cimpl_destroy_func = fallbackDestroyLLImageJ2CImpl; | ||
| 219 : | } | ||
| 220 : | |||
| 221 : | if ( mImpl ) | ||
| 222 : | { | ||
| 223 : | j2cimpl_destroy_func(mImpl); | ||
| 224 : | } | ||
| 225 : | } | ||
| 226 : | |||
| 227 : | // virtual | ||
| 228 : | void LLImageJ2C::resetLastError() | ||
| 229 : | { | ||
| 230 : | mLastError.clear(); | ||
| 231 : | } | ||
| 232 : | |||
| 233 : | //virtual | ||
| 234 : | void LLImageJ2C::setLastError(const std::string& message, const std::string& filename) | ||
| 235 : | { | ||
| 236 : | mLastError = message; | ||
| 237 : | if (!filename.empty()) | ||
| 238 : | mLastError += std::string(" FILE: ") + filename; | ||
| 239 : | } | ||
| 240 : | |||
| 241 : | // virtual | ||
| 242 : | S8 LLImageJ2C::getRawDiscardLevel() | ||
| 243 : | { | ||
| 244 : | return mRawDiscardLevel; | ||
| 245 : | } | ||
| 246 : | |||
| 247 : | BOOL LLImageJ2C::updateData() | ||
| 248 : | { | ||
| 249 : | BOOL res = TRUE; | ||
| 250 : | resetLastError(); | ||
| 251 : | |||
| 252 : | // Check to make sure that this instance has been initialized with data | ||
| 253 : | if (!getData() || (getDataSize() < 16)) | ||
| 254 : | { | ||
| 255 : | setLastError("LLImageJ2C uninitialized"); | ||
| 256 : | res = FALSE; | ||
| 257 : | } | ||
| 258 : | else | ||
| 259 : | { | ||
| 260 : | res = mImpl->getMetadata(*this); | ||
| 261 : | } | ||
| 262 : | |||
| 263 : | if (res) | ||
| 264 : | { | ||
| 265 : | // SJB: override discard based on mMaxBytes elsewhere | ||
| 266 : | S32 max_bytes = getDataSize(); // mMaxBytes ? mMaxBytes : getDataSize(); | ||
| 267 : | S32 discard = calcDiscardLevelBytes(max_bytes); | ||
| 268 : | setDiscardLevel(discard); | ||
| 269 : | } | ||
| 270 : | |||
| 271 : | if (!mLastError.empty()) | ||
| 272 : | { | ||
| 273 : | LLImage::setLastError(mLastError); | ||
| 274 : | } | ||
| 275 : | return res; | ||
| 276 : | } | ||
| 277 : | |||
| 278 : | |||
| 279 : | BOOL LLImageJ2C::decode(LLImageRaw *raw_imagep, F32 decode_time) | ||
| 280 : | { | ||
| 281 : | return decodeChannels(raw_imagep, decode_time, 0, 4); | ||
| 282 : | } | ||
| 283 : | |||
| 284 : | |||
| 285 : | BOOL LLImageJ2C::decodeChannels(LLImageRaw *raw_imagep, F32 decode_time, S32 first_channel, S32 max_channel_count ) | ||
| 286 : | { | ||
| 287 : | LLMemType mt1((LLMemType::EMemType)mMemType); | ||
| 288 : | |||
| 289 : | BOOL res = TRUE; | ||
| 290 : | |||
| 291 : | resetLastError(); | ||
| 292 : | |||
| 293 : | // Check to make sure that this instance has been initialized with data | ||
| 294 : | if (!getData() || (getDataSize() < 16)) | ||
| 295 : | { | ||
| 296 : | setLastError("LLImageJ2C uninitialized"); | ||
| 297 : | res = FALSE; | ||
| 298 : | } | ||
| 299 : | else | ||
| 300 : | { | ||
| 301 : | // Update the raw discard level | ||
| 302 : | updateRawDiscardLevel(); | ||
| 303 : | mDecoding = TRUE; | ||
| 304 : | res = mImpl->decodeImpl(*this, *raw_imagep, decode_time, first_channel, max_channel_count); | ||
| 305 : | } | ||
| 306 : | |||
| 307 : | if (res) | ||
| 308 : | { | ||
| 309 : | if (!mDecoding) | ||
| 310 : | { | ||
| 311 : | // Failed | ||
| 312 : | raw_imagep->deleteData(); | ||
| 313 : | } | ||
| 314 : | else | ||
| 315 : | { | ||
| 316 : | mDecoding = FALSE; | ||
| 317 : | } | ||
| 318 : | } | ||
| 319 : | |||
| 320 : | if (!mLastError.empty()) | ||
| 321 : | { | ||
| 322 : | LLImage::setLastError(mLastError); | ||
| 323 : | } | ||
| 324 : | |||
| 325 : | return res; | ||
| 326 : | } | ||
| 327 : | |||
| 328 : | |||
| 329 : | BOOL LLImageJ2C::encode(const LLImageRaw *raw_imagep, F32 encode_time) | ||
| 330 : | { | ||
| 331 : | return encode(raw_imagep, NULL, encode_time); | ||
| 332 : | } | ||
| 333 : | |||
| 334 : | |||
| 335 : | BOOL LLImageJ2C::encode(const LLImageRaw *raw_imagep, const char* comment_text, F32 encode_time) | ||
| 336 : | { | ||
| 337 : | LLMemType mt1((LLMemType::EMemType)mMemType); | ||
| 338 : | resetLastError(); | ||
| 339 : | BOOL res = mImpl->encodeImpl(*this, *raw_imagep, comment_text, encode_time, mReversible); | ||
| 340 : | if (!mLastError.empty()) | ||
| 341 : | { | ||
| 342 : | LLImage::setLastError(mLastError); | ||
| 343 : | } | ||
| 344 : | return res; | ||
| 345 : | } | ||
| 346 : | |||
| 347 : | //static | ||
| 348 : | S32 LLImageJ2C::calcHeaderSizeJ2C() | ||
| 349 : | { | ||
| 350 : | return 600; //2048; // ??? hack... just needs to be >= actual header size... | ||
| 351 : | } | ||
| 352 : | |||
| 353 : | //static | ||
| 354 : | S32 LLImageJ2C::calcDataSizeJ2C(S32 w, S32 h, S32 comp, S32 discard_level, F32 rate) | ||
| 355 : | { | ||
| 356 : | if (rate <= 0.f) rate = .125f; | ||
| 357 : | while (discard_level > 0) | ||
| 358 : | { | ||
| 359 : | if (w < 1 || h < 1) | ||
| 360 : | break; | ||
| 361 : | w >>= 1; | ||
| 362 : | h >>= 1; | ||
| 363 : | discard_level--; | ||
| 364 : | } | ||
| 365 : | S32 bytes = (S32)((F32)(w*h*comp)*rate); | ||
| 366 : | bytes = llmax(bytes, calcHeaderSizeJ2C()); | ||
| 367 : | return bytes; | ||
| 368 : | } | ||
| 369 : | |||
| 370 : | S32 LLImageJ2C::calcHeaderSize() | ||
| 371 : | { | ||
| 372 : | return calcHeaderSizeJ2C(); | ||
| 373 : | } | ||
| 374 : | |||
| 375 : | S32 LLImageJ2C::calcDataSize(S32 discard_level) | ||
| 376 : | { | ||
| 377 : | return calcDataSizeJ2C(getWidth(), getHeight(), getComponents(), discard_level, mRate); | ||
| 378 : | } | ||
| 379 : | |||
| 380 : | S32 LLImageJ2C::calcDiscardLevelBytes(S32 bytes) | ||
| 381 : | { | ||
| 382 : | llassert(bytes >= 0); | ||
| 383 : | S32 discard_level = 0; | ||
| 384 : | if (bytes == 0) | ||
| 385 : | { | ||
| 386 : | return MAX_DISCARD_LEVEL; | ||
| 387 : | } | ||
| 388 : | while (1) | ||
| 389 : | { | ||
| 390 : | S32 bytes_needed = calcDataSize(discard_level); // virtual | ||
| 391 : | if (bytes >= bytes_needed - (bytes_needed>>2)) // For J2c, up the res at 75% of the optimal number of bytes | ||
| 392 : | { | ||
| 393 : | break; | ||
| 394 : | } | ||
| 395 : | discard_level++; | ||
| 396 : | if (discard_level >= MAX_DISCARD_LEVEL) | ||
| 397 : | { | ||
| 398 : | break; | ||
| 399 : | } | ||
| 400 : | } | ||
| 401 : | return discard_level; | ||
| 402 : | } | ||
| 403 : | |||
| 404 : | void LLImageJ2C::setRate(F32 rate) | ||
| 405 : | { | ||
| 406 : | mRate = rate; | ||
| 407 : | } | ||
| 408 : | |||
| 409 : | void LLImageJ2C::setMaxBytes(S32 max_bytes) | ||
| 410 : | { | ||
| 411 : | mMaxBytes = max_bytes; | ||
| 412 : | } | ||
| 413 : | |||
| 414 : | void LLImageJ2C::setReversible(const BOOL reversible) | ||
| 415 : | { | ||
| 416 : | mReversible = reversible; | ||
| 417 : | } | ||
| 418 : | |||
| 419 : | |||
| 420 : | BOOL LLImageJ2C::loadAndValidate(const std::string &filename) | ||
| 421 : | { | ||
| 422 : | BOOL res = TRUE; | ||
| 423 : | |||
| 424 : | resetLastError(); | ||
| 425 : | |||
| 426 : | S32 file_size = 0; | ||
| 427 : | LLAPRFile infile ; | ||
| 428 : | infile.open(filename, LL_APR_RB, NULL, &file_size); | ||
| 429 : | apr_file_t* apr_file = infile.getFileHandle() ; | ||
| 430 : | if (!apr_file) | ||
| 431 : | { | ||
| 432 : | setLastError("Unable to open file for reading", filename); | ||
| 433 : | res = FALSE; | ||
| 434 : | } | ||
| 435 : | else if (file_size == 0) | ||
| 436 : | { | ||
| 437 : | setLastError("File is empty",filename); | ||
| 438 : | res = FALSE; | ||
| 439 : | } | ||
| 440 : | else | ||
| 441 : | { | ||
| 442 : | U8 *data = new U8[file_size]; | ||
| 443 : | apr_size_t bytes_read = file_size; | ||
| 444 : | apr_status_t s = apr_file_read(apr_file, data, &bytes_read); // modifies bytes_read | ||
| 445 : | infile.close() ; | ||
| 446 : | |||
| 447 : | if (s != APR_SUCCESS || (S32)bytes_read != file_size) | ||
| 448 : | { | ||
| 449 : | delete[] data; | ||
| 450 : | setLastError("Unable to read entire file"); | ||
| 451 : | res = FALSE; | ||
| 452 : | } | ||
| 453 : | else | ||
| 454 : | { | ||
| 455 : | res = validate(data, file_size); | ||
| 456 : | } | ||
| 457 : | } | ||
| 458 : | |||
| 459 : | if (!mLastError.empty()) | ||
| 460 : | { | ||
| 461 : | LLImage::setLastError(mLastError); | ||
| 462 : | } | ||
| 463 : | |||
| 464 : | return res; | ||
| 465 : | } | ||
| 466 : | |||
| 467 : | |||
| 468 : | BOOL LLImageJ2C::validate(U8 *data, U32 file_size) | ||
| 469 : | { | ||
| 470 : | LLMemType mt1((LLMemType::EMemType)mMemType); | ||
| 471 : | |||
| 472 : | resetLastError(); | ||
| 473 : | |||
| 474 : | setData(data, file_size); | ||
| 475 : | |||
| 476 : | BOOL res = updateData(); | ||
| 477 : | if ( res ) | ||
| 478 : | { | ||
| 479 : | // Check to make sure that this instance has been initialized with data | ||
| 480 : | if (!getData() || (0 == getDataSize())) | ||
| 481 : | { | ||
| 482 : | setLastError("LLImageJ2C uninitialized"); | ||
| 483 : | res = FALSE; | ||
| 484 : | } | ||
| 485 : | else | ||
| 486 : | { | ||
| 487 : | res = mImpl->getMetadata(*this); | ||
| 488 : | } | ||
| 489 : | } | ||
| 490 : | |||
| 491 : | if (!mLastError.empty()) | ||
| 492 : | { | ||
| 493 : | LLImage::setLastError(mLastError); | ||
| 494 : | } | ||
| 495 : | return res; | ||
| 496 : | } | ||
| 497 : | |||
| 498 : | void LLImageJ2C::decodeFailed() | ||
| 499 : | { | ||
| 500 : | mDecoding = FALSE; | ||
| 501 : | } | ||
| 502 : | |||
| 503 : | void LLImageJ2C::updateRawDiscardLevel() | ||
| 504 : | { | ||
| 505 : | mRawDiscardLevel = mMaxBytes ? calcDiscardLevelBytes(mMaxBytes) : mDiscardLevel; | ||
| 506 : | } | ||
| 507 : | |||
| 508 : | LLImageJ2CImpl::~LLImageJ2CImpl() | ||
| 509 : | { | ||
| 510 : | } |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

