1 7 8 17 18 package com.sun.image.codec.jpeg; 19 20 21 91 92 public interface JPEGDecodeParam extends Cloneable { 93 94 public final static int COLOR_ID_UNKNOWN = 0; 95 96 97 public final static int COLOR_ID_GRAY = 1; 98 99 100 public final static int COLOR_ID_RGB = 2; 101 102 103 public final static int COLOR_ID_YCbCr = 3; 104 105 106 public final static int COLOR_ID_CMYK = 4; 107 108 109 public final static int COLOR_ID_PYCC = 5; 110 111 112 public final static int COLOR_ID_RGBA = 6; 113 114 115 public final static int COLOR_ID_YCbCrA = 7; 116 117 118 public final static int COLOR_ID_RGBA_INVERTED = 8; 119 120 121 public final static int COLOR_ID_YCbCrA_INVERTED = 9; 122 123 124 public final static int COLOR_ID_PYCCA = 10; 125 126 127 public final static int COLOR_ID_YCCK = 11; 128 129 130 final static int NUM_COLOR_ID = 12; 131 132 133 final static int NUM_TABLES = 4; 134 135 136 public final static int DENSITY_UNIT_ASPECT_RATIO = 0; 137 138 public final static int DENSITY_UNIT_DOTS_INCH = 1; 139 140 public final static int DENSITY_UNIT_DOTS_CM = 2; 141 142 final static int NUM_DENSITY_UNIT = 3; 143 144 145 public final static int APP0_MARKER = 0xE0; 146 147 public final static int APP1_MARKER = 0xE1; 148 149 public final static int APP2_MARKER = 0xE2; 150 151 public final static int APP3_MARKER = 0xE3; 152 153 public final static int APP4_MARKER = 0xE4; 154 155 public final static int APP5_MARKER = 0xE5; 156 157 public final static int APP6_MARKER = 0xE6; 158 159 public final static int APP7_MARKER = 0xE7; 160 161 public final static int APP8_MARKER = 0xE8; 162 163 public final static int APP9_MARKER = 0xE9; 164 165 public final static int APPA_MARKER = 0xEA; 166 167 public final static int APPB_MARKER = 0xEB; 168 169 public final static int APPC_MARKER = 0xEC; 170 171 public final static int APPD_MARKER = 0xED; 172 173 public final static int APPE_MARKER = 0xEE; 174 175 public final static int APPF_MARKER = 0xEF; 176 177 178 public final static int COMMENT_MARKER = 0XFE; 179 180 public Object clone(); 181 182 186 public int getWidth(); 187 190 public int getHeight(); 191 192 203 public int getHorizontalSubsampling(int component); 204 205 216 public int getVerticalSubsampling(int component); 217 218 219 225 public JPEGQTable getQTable(int tableNum ); 226 227 232 public JPEGQTable getQTableForComponent(int component); 233 234 240 public JPEGHuffmanTable getDCHuffmanTable( int tableNum ); 241 246 public JPEGHuffmanTable getDCHuffmanTableForComponent(int component); 247 248 249 255 public JPEGHuffmanTable getACHuffmanTable( int tableNum ); 256 261 public JPEGHuffmanTable getACHuffmanTableForComponent(int component); 262 263 264 265 271 public int getDCHuffmanComponentMapping(int component); 272 278 public int getACHuffmanComponentMapping(int component); 279 285 public int getQTableComponentMapping(int component); 286 287 293 public boolean isImageInfoValid(); 294 295 301 public boolean isTableInfoValid(); 302 303 309 public boolean getMarker(int marker); 310 311 320 public byte[][] getMarkerData(int marker); 321 322 329 public int getEncodedColorID(); 330 331 336 public int getNumComponents(); 337 338 342 public int getRestartInterval(); 343 344 351 public int getDensityUnit(); 352 353 360 public int getXDensity(); 361 368 public int getYDensity(); 369 370 371 } 372 | Popular Tags |