Changeset 13651

Show
Ignore:
Timestamp:
02/01/08 10:54:37 (6 months ago)
Author:
retsios
Message:

Properly handle the new #define corresponding to the J2K_SUBFILE-capable JPEG2000 drivers. I will not implement the encoding at this time, as currently it is not used in the GDAL-GRIB driver anyway.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spike/grib/degrib18/g2clib-1.0.4/enc_jpeg2000.c

    r12097 r13651  
    88#include <stdio.h> 
    99#include <stdlib.h> 
     10 
     11#ifdef USE_JPEG2000_J2KSUBFILE 
     12// J2KSUBFILE includes .. TODO!! 
     13#else 
    1014#include <jasper/jasper.h> 
    1115#define JAS_1_700_2 
    12  
     16#endif /* USE_JPEG2000_J2KSUBFILE */ 
    1317 
    1418int enc_jpeg2000(unsigned char *cin,g2int width,g2int height,g2int nbits, 
     
    7276*$$$*/ 
    7377{ 
     78 
     79#ifdef USE_JPEG2000_J2KSUBFILE 
     80      
     81    // J2KSUBFILE method ... TODO!! 
     82    return 0; 
     83 
     84#else /* USE_JPEG2000_J2KSUBFILE */ 
     85 
     86    // JasPer method 
     87 
    7488    int ier,rwcnt; 
    7589    jas_image_t image; 
     
    177191    return (rwcnt); 
    178192 
     193#endif /* USE_JPEG2000_J2KSUBFILE */ 
     194 
    179195} 
    180196