/** Return CodecOptions with reasonable default values. */ public static CodecOptions getDefaultOptions() { CodecOptions options = new CodecOptions(); options.littleEndian = false; options.interleaved = false; options.lossless = true; options.ycbcr = false; return options; }
/** * Creates a set of codec options for compression. * @param ifd The IFD to create codec options for. * @return A new codec options instance populated using metadata from * <code>ifd</code>. * @param opt The codec options to copy. */ public CodecOptions getCompressionCodecOptions(IFD ifd, CodecOptions opt) throws FormatException{ if (ifd == null) throw new IllegalArgumentException("No IFD specified."); if (opt == null) opt = CodecOptions.getDefaultOptions(); CodecOptions options = new CodecOptions(opt); options.width = (int) ifd.getImageWidth(); options.height = (int) ifd.getImageLength(); options.bitsPerSample = ifd.getBitsPerSample()[0]; options.channels = ifd.getSamplesPerPixel(); options.littleEndian = ifd.isLittleEndian(); options.interleaved = true; options.signed = false; return options; }
/** Return JPEG2000CodecOptions with reasonable default values. */ public static JPEG2000CodecOptions getDefaultOptions() { CodecOptions options = CodecOptions.getDefaultOptions(); return getDefaultOptions(options); }
/** Return JPEG2000CodecOptions with reasonable default values. */ public static JPEG2000CodecOptions getDefaultOptions() { CodecOptions options = CodecOptions.getDefaultOptions(); return getDefaultOptions(options); }
/** Return CodecOptions with reasonable default values. */ public static CodecOptions getDefaultOptions() { CodecOptions options = new CodecOptions(); options.littleEndian = false; options.interleaved = false; options.lossless = true; options.ycbcr = false; return options; }
/** * Creates a set of codec options for compression. * @param ifd The IFD to create codec options for. * @return A new codec options instance populated using metadata from * <code>ifd</code>. * @param opt The codec options to copy. */ public CodecOptions getCompressionCodecOptions(IFD ifd, CodecOptions opt) throws FormatException{ if (ifd == null) throw new IllegalArgumentException("No IFD specified."); if (opt == null) opt = CodecOptions.getDefaultOptions(); CodecOptions options = new CodecOptions(opt); options.width = (int) ifd.getImageWidth(); options.height = (int) ifd.getImageLength(); options.bitsPerSample = ifd.getBitsPerSample()[0]; options.channels = ifd.getSamplesPerPixel(); options.littleEndian = ifd.isLittleEndian(); options.interleaved = true; options.signed = false; return options; }
if (options == null) options = CodecOptions.getDefaultOptions(); long fp = in.getFilePointer(); ByteArrayOutputStream output = new ByteArrayOutputStream(options.maxBytes);
int planeSize = getSizeX() * getSizeY() * depth; CodecOptions options = new CodecOptions(); options.width = getSizeX(); options.height = getSizeY();
if (options == null) options = CodecOptions.getDefaultOptions(); long fp = in.getFilePointer(); ByteArrayOutputStream output = new ByteArrayOutputStream(options.maxBytes);
int planeSize = getSizeX() * getSizeY() * depth; CodecOptions options = new CodecOptions(); options.width = getSizeX(); options.height = getSizeY();
CodecOptions options = new CodecOptions(); block = new ZlibCodec().decompress(block, options);
CodecOptions options = new CodecOptions(); block = new ZlibCodec().decompress(block, options);
s.seek(jpegOffset - jpegOffsets.get(0)); CodecOptions options = new CodecOptions(); options.interleaved = isInterleaved(); options.littleEndian = isLittleEndian();
return buf; CodecOptions options = new CodecOptions(); options.width = getSizeX(); options.height = getSizeY();
return buf; CodecOptions options = new CodecOptions(); options.width = getSizeX(); options.height = getSizeY();
s.seek(jpegOffset - jpegOffsets.get(0)); CodecOptions options = new CodecOptions(); options.interleaved = isInterleaved(); options.littleEndian = isLittleEndian();
int bytes = FormatTools.getBytesPerPixel(pixelType); CodecOptions options = new CodecOptions(); options.width = r.getPixelsSizeX(series).getValue().intValue(); options.height = r.getPixelsSizeY(series).getValue().intValue();
CodecOptions options = new CodecOptions(); options.maxBytes = getSizeX() * 4; uBuf = c.decompress(buf, options);
CodecOptions options = new CodecOptions(); options.maxBytes = getSizeX() * 4; uBuf = c.decompress(buf, options);
int bytes = FormatTools.getBytesPerPixel(pixelType); CodecOptions options = new CodecOptions(); options.width = r.getPixelsSizeX(series).getValue().intValue(); options.height = r.getPixelsSizeY(series).getValue().intValue();