~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to frmts/ingr/JpegHelper.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        *( pabNext++ )  = 0xDB;         // DQT
203
203
        *( pabNext++ )  = 0;            // Segment Length (msb)
204
204
        *( pabNext++ )  = 67;           // Length (msb)
205
 
        *( pabNext++ )  = i;            // Table ID
 
205
        *( pabNext++ )  = (GByte) i;    // Table ID
206
206
        memcpy( pabNext, abQuantTables[i], 64 );
207
207
        pabNext += 64;
208
208
    }
219
219
    else
220
220
        *( pabNext++ )  = 11;           // Segment Length (lsb)
221
221
    *( pabNext++ )      = 8;            // 8-bit Precision 
222
 
    *( pabNext++ )      = nRows >> 8;   // Height in rows (msb) 
223
 
    *( pabNext++ )      = nRows;        // Height in rows (lsb) 
224
 
    *( pabNext++ )      = nCols >> 8;   // Width in columns (msb)
225
 
    *( pabNext++ )      = nCols;        // Width in columns (lsb)
226
 
    *( pabNext++ )      = nComponents;  // Number of components 
 
222
    *( pabNext++ )      = (GByte) (nRows >> 8); // Height in rows (msb) 
 
223
    *( pabNext++ )      = (GByte) nRows;// Height in rows (lsb) 
 
224
    *( pabNext++ )      = (GByte) (nCols >> 8); // Width in columns (msb)
 
225
    *( pabNext++ )      = (GByte) nCols;// Width in columns (lsb)
 
226
    *( pabNext++ )      = (GByte) nComponents;// Number of components 
227
227
    *( pabNext++ )      = 0;            // Component ID
228
228
    *( pabNext++ )      = 0x21;         // Hozontal/Vertical Sampling
229
229
    *( pabNext++ )      = 0;            // Quantization table ID 
274
274
            *( pabNext++ ) = 0xFF;                  // Tag Mark
275
275
            *( pabNext++ ) = 0xc4;                  // DHT 
276
276
            *( pabNext++ ) = 0;                     // Segment Length (msb)
277
 
            *( pabNext++ ) = 3 + nCodes + nSymbols; // Segment Length (lsb)
278
 
            *( pabNext++ ) = (j << 4) | i;          // Table ID
 
277
            *( pabNext++ ) = (GByte) (3 + nCodes + nSymbols); // Segment Length (lsb)
 
278
            *( pabNext++ ) = (GByte) ((j << 4) | i);          // Table ID
279
279
            memcpy( pabNext, pabHuffTab[i][j], nCodes );
280
280
            pabNext += nCodes;
281
281
            memcpy( pabNext, pabHuffTab[i][k], nSymbols );