comparison tools/lib64fmts.c @ 1724:12504f179749

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 06 Jun 2018 15:41:00 +0300
parents 13fe4010623f
children 474055f25ab0
comparison
equal deleted inserted replaced
1723:13fe4010623f 1724:12504f179749
441 const Uint8 *codeBook1, *codeBook2; 441 const Uint8 *codeBook1, *codeBook2;
442 DMGrowBuf dst, src; 442 DMGrowBuf dst, src;
443 DMCompParams cfg; 443 DMCompParams cfg;
444 Uint8 data; 444 Uint8 data;
445 445
446 // 1b7e-67e8 decoded by original depacker
447 // 1c00-67e8 is the actual area used tho
446 cfg.func = fmt->name; 448 cfg.func = fmt->name;
447 cfg.type = DM_COMP_RLE_MARKER; 449 cfg.type = DM_COMP_RLE_MARKER;
448 cfg.flags = DM_RLE_BACKWARDS_OUTPUT | DM_RLE_BACKWARDS_INPUT; 450 cfg.flags = DM_RLE_BACKWARDS_OUTPUT | DM_RLE_BACKWARDS_INPUT | DM_OUT_CROP_END;
449 cfg.rleMarkerB = 0xfe; 451 cfg.rleMarkerB = 0xfe;
450
451 // 1b7e-67e8 decoded by original depacker
452 // 1c00-67e8 is the actual area used tho
453 cfg.flags |= DM_OUT_CROP_END;
454 cfg.cropOutLen = 0x67e8 - 0x1c00; 452 cfg.cropOutLen = 0x67e8 - 0x1c00;
455 453
456 // Codebooks: #1 is trampoline table markers, #2 is RLE data table 454 // Codebooks: #1 is trampoline table markers, #2 is RLE data table
457 codeBook1 = psrc->data + 0x81 - 2; 455 codeBook1 = psrc->data + 0x81 - 2;
458 codeBook2 = psrc->data + 0x85 - 2; 456 codeBook2 = psrc->data + 0x85 - 2;