Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 673454
Collapse All | Expand All

(-)splix-2.0.0_p20130826/src/algo0x11.cpp.orig (-3 / +7 lines)
Lines 89-95 Link Here
89
89
90
    // Print the table
90
    // Print the table
91
    for (unsigned long i=0; i < TABLE_PTR_SIZE; i++, w += 2) {
91
    for (unsigned long i=0; i < TABLE_PTR_SIZE; i++, w += 2) {
92
        *(uint16_t *)(out + w) = (uint16_t)_ptrArray[i];
92
        out[w + 0] = (uint8_t)_ptrArray[i];
93
        out[w + 1] = (uint8_t)(_ptrArray[i] >> 8);
93
        if (_ptrArray[i] > uncompSize)
94
        if (_ptrArray[i] > uncompSize)
94
            uncompSize = _ptrArray[i];
95
            uncompSize = _ptrArray[i];
95
    }
96
    }
Lines 97-103 Link Here
97
    // Print the first uncompressed bytes
98
    // Print the first uncompressed bytes
98
    if (uncompSize > MAX_UNCOMPRESSED_BYTES)
99
    if (uncompSize > MAX_UNCOMPRESSED_BYTES)
99
        uncompSize = MAX_UNCOMPRESSED_BYTES;
100
        uncompSize = MAX_UNCOMPRESSED_BYTES;
100
    *(uint32_t *)out = (uint32_t)uncompSize;
101
    out[0] = (uint8_t)uncompSize;
102
    out[1] = (uint8_t)(uncompSize >> 8);
103
    out[2] = (uint8_t)(uncompSize >> 16);
104
    out[3] = (uint8_t)(uncompSize >> 24);
101
    for (r=0; r < uncompSize; r++, w++)
105
    for (r=0; r < uncompSize; r++, w++)
102
        out[w] = data[r];
106
        out[w] = data[r];
103
107
Lines 234-240 Link Here
234
    // Register the result into a band plane
238
    // Register the result into a band plane
235
    plane = new BandPlane();
239
    plane = new BandPlane();
236
    plane->setData(output, outputSize);
240
    plane->setData(output, outputSize);
237
    plane->setEndian(BandPlane::Dependant);
241
    plane->setEndian(BandPlane::LittleEndian);
238
    plane->setCompression(0x11);
242
    plane->setCompression(0x11);
239
243
240
    return plane;
244
    return plane;

Return to bug 673454