gpt4 book ai didi

loci.formats.codec.ZlibCodec类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 10:16:33 30 4
gpt4 key购买 nike

本文整理了Java中loci.formats.codec.ZlibCodec类的一些代码示例,展示了ZlibCodec类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZlibCodec类的具体详情如下:
包路径:loci.formats.codec.ZlibCodec
类名称:ZlibCodec

ZlibCodec介绍

[英]This class implements ZLIB decompression.
[中]这个类实现了ZLIB解压。

代码示例

代码示例来源:origin: ome/formats-gpl

private RandomAccessInputStream getDecompressedStream(String filename)
 throws FormatException, IOException
{
 RandomAccessInputStream s = new RandomAccessInputStream(filename);
 if (checkSuffix(filename, "c01")) {
  LOGGER.info("Decompressing file");
  try {
   s.seek(4);
   ZlibCodec codec = new ZlibCodec();
   byte[] file = codec.decompress(s, null);
   return new RandomAccessInputStream(file);
  } finally {
   s.close();
  }
 }
 return s;
}

代码示例来源:origin: openmicroscopy/bioformats

b = new ZlibCodec().compress(b, options);

代码示例来源:origin: ome/formats-gpl

private Codec createCodec(boolean isJPEG) {
 return isJPEG ? new JPEG2000Codec() : new ZlibCodec();
}

代码示例来源:origin: ome/formats-bsd

b = new ZlibCodec().compress(b, options);

代码示例来源:origin: openmicroscopy/bioformats

private Codec createCodec(boolean isJPEG) {
 return isJPEG ? new JPEG2000Codec() : new ZlibCodec();
}

代码示例来源:origin: openmicroscopy/bioformats

private RandomAccessInputStream getDecompressedStream(String filename)
 throws FormatException, IOException
{
 RandomAccessInputStream s = new RandomAccessInputStream(filename);
 if (checkSuffix(filename, "c01")) {
  LOGGER.info("Decompressing file");
  try {
   s.seek(4);
   ZlibCodec codec = new ZlibCodec();
   byte[] file = codec.decompress(s, null);
   return new RandomAccessInputStream(file);
  } finally {
   s.close();
  }
 }
 return s;
}

代码示例来源:origin: openmicroscopy/bioformats

compression[getSeries() - 1] == ZIP)
Codec codec = compression[getSeries() - 1] == ZIP ? new ZlibCodec() :
 new PackbitsCodec();
CodecOptions options = new CodecOptions();

代码示例来源:origin: ome/formats-bsd

pixels = new ZlibCodec().decompress(pixels, options);

代码示例来源:origin: ome/formats-gpl

compression[getSeries() - 1] == ZIP)
Codec codec = compression[getSeries() - 1] == ZIP ? new ZlibCodec() :
 new PackbitsCodec();
CodecOptions options = new CodecOptions();

代码示例来源:origin: openmicroscopy/bioformats

pixels = new ZlibCodec().decompress(pixels, options);

代码示例来源:origin: openmicroscopy/bioformats

block = new ZlibCodec().decompress(block, options);

代码示例来源:origin: ome/formats-gpl

block = new ZlibCodec().decompress(block, options);

代码示例来源:origin: openmicroscopy/bioformats

byte[] t = new ZlibCodec().decompress(currentPlane, options);
for (int yy=0; yy<h; yy++) {
 int src = (yy + y) * row + x * pixel;

代码示例来源:origin: ome/formats-gpl

byte[] t = new ZlibCodec().decompress(currentPlane, options);
for (int yy=0; yy<h; yy++) {
 int src = (yy + y) * row + x * pixel;

代码示例来源:origin: ome/formats-bsd

in.read(b);
byte[] output = new ZlibCodec().decompress(b, null);

代码示例来源:origin: openmicroscopy/bioformats

in.read(b);
byte[] output = new ZlibCodec().decompress(b, null);

代码示例来源:origin: openmicroscopy/bioformats

if (compression[layer] == ZIP) {
 layerOffset[nextOffset] = tag.getFilePointer();
 ZlibCodec codec = new ZlibCodec();
 codec.decompress(tag, null);

代码示例来源:origin: ome/formats-gpl

if (compression[layer] == ZIP) {
 layerOffset[nextOffset] = tag.getFilePointer();
 ZlibCodec codec = new ZlibCodec();
 codec.decompress(tag, null);

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com