jdk/src/share/native/sun/awt/image/awt_parseImage.h

Print this page
rev 5699 : 8002325: Improve management of images
Reviewed-by: prr, ahgross


  78 
  79 #define BYTE_INTERLEAVED   (BYTE_COMPONENTS  | INTERLEAVED)
  80 #define SHORT_INTERLEAVED  (SHORT_COMPONENTS | INTERLEAVED)
  81 #define BYTE_SINGLE_BAND   (BYTE_COMPONENTS  | SINGLE_BAND)
  82 #define BYTE_PACKED_BAND   (BYTE_COMPONENTS  | PACKED_BAND)
  83 #define SHORT_SINGLE_BAND  (SHORT_COMPONENTS | SINGLE_BAND)
  84 #define BYTE_BANDED        (BYTE_COMPONENTS  | BANDED)
  85 #define SHORT_BANDED       (SHORT_COMPONENTS | BANDED)
  86 #define PACKED_BYTE_INTER  (PACKED_BYTE      | INTERLEAVED)
  87 #define PACKED_SHORT_INTER (PACKED_SHORT     | INTERLEAVED)
  88 #define PACKED_INT_INTER   (PACKED_INT       | INTERLEAVED)
  89 
  90 #define MAX_NUMBANDS 32
  91 
  92 /* Struct that holds information about a SinglePixelPackedModel object */
  93 typedef struct {
  94     jint maskArray[MAX_NUMBANDS];
  95     jint offsets[MAX_NUMBANDS];
  96     jint nBits[MAX_NUMBANDS];
  97     jint  maxBitSize;

  98 } SPPSampleModelS_t;
  99 
 100 /* Struct that holds information for the Raster object */
 101 typedef struct {
 102     jobject jraster;       /* The raster object */
 103     jobject jdata;         /* Data storage object */
 104     jobject jsampleModel;   /* The sample model */
 105     SPPSampleModelS_t sppsm; /* SinglePixelPackedSampleModel mask/offsets */
 106 
 107     jint *chanOffsets;      /* Array of channel offsets (or bit offsets) */
 108 
 109     int width;             /* Width of the raster */
 110     int height;            /* Height of the raster */
 111     int minX;              /* origin of this raster x */
 112     int minY;              /* origin of this raster x */
 113 
 114     int baseOriginX;       /* origin of base raster */
 115     int baseOriginY;       /* origin of base raster x */
 116     int baseRasterWidth;   /* size of baseRaster */
 117     int baseRasterHeight;  /* size of baseRaster */




  78 
  79 #define BYTE_INTERLEAVED   (BYTE_COMPONENTS  | INTERLEAVED)
  80 #define SHORT_INTERLEAVED  (SHORT_COMPONENTS | INTERLEAVED)
  81 #define BYTE_SINGLE_BAND   (BYTE_COMPONENTS  | SINGLE_BAND)
  82 #define BYTE_PACKED_BAND   (BYTE_COMPONENTS  | PACKED_BAND)
  83 #define SHORT_SINGLE_BAND  (SHORT_COMPONENTS | SINGLE_BAND)
  84 #define BYTE_BANDED        (BYTE_COMPONENTS  | BANDED)
  85 #define SHORT_BANDED       (SHORT_COMPONENTS | BANDED)
  86 #define PACKED_BYTE_INTER  (PACKED_BYTE      | INTERLEAVED)
  87 #define PACKED_SHORT_INTER (PACKED_SHORT     | INTERLEAVED)
  88 #define PACKED_INT_INTER   (PACKED_INT       | INTERLEAVED)
  89 
  90 #define MAX_NUMBANDS 32
  91 
  92 /* Struct that holds information about a SinglePixelPackedModel object */
  93 typedef struct {
  94     jint maskArray[MAX_NUMBANDS];
  95     jint offsets[MAX_NUMBANDS];
  96     jint nBits[MAX_NUMBANDS];
  97     jint  maxBitSize;
  98     jint isUsed; // flag to indicate whether the raster sample model is SPPSM
  99 } SPPSampleModelS_t;
 100 
 101 /* Struct that holds information for the Raster object */
 102 typedef struct {
 103     jobject jraster;       /* The raster object */
 104     jobject jdata;         /* Data storage object */
 105     jobject jsampleModel;   /* The sample model */
 106     SPPSampleModelS_t sppsm; /* SinglePixelPackedSampleModel mask/offsets */
 107 
 108     jint *chanOffsets;      /* Array of channel offsets (or bit offsets) */
 109 
 110     int width;             /* Width of the raster */
 111     int height;            /* Height of the raster */
 112     int minX;              /* origin of this raster x */
 113     int minY;              /* origin of this raster x */
 114 
 115     int baseOriginX;       /* origin of base raster */
 116     int baseOriginY;       /* origin of base raster x */
 117     int baseRasterWidth;   /* size of baseRaster */
 118     int baseRasterHeight;  /* size of baseRaster */