gpt4 book ai didi

com.twelvemonkeys.imageio.color.YCbCrConverter.convertYCbCr2RGB()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 05:06:49 26 4
gpt4 key购买 nike

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

YCbCrConverter.convertYCbCr2RGB介绍

暂无

代码示例

代码示例来源:origin: haraldk/TwelveMonkeys

private static void convertYCbCr2RGB(final Raster raster, final int numComponents) {
  final int height = raster.getHeight();
  final int width = raster.getWidth();
  final byte[] data = ((DataBufferByte) raster.getDataBuffer()).getData();
  for (int y = 0; y < height; y++) {
    for (int x = 0; x < width; x++) {
      YCbCrConverter.convertYCbCr2RGB(data, data, (x + y * width) * numComponents);
    }
  }
}

代码示例来源:origin: haraldk/TwelveMonkeys

private static void convertYCCK2CMYK(final Raster raster) {
  final int height = raster.getHeight();
  final int width = raster.getWidth();
  final byte[] data = ((DataBufferByte) raster.getDataBuffer()).getData();
  for (int y = 0; y < height; y++) {
    for (int x = 0; x < width; x++) {
      int offset = (x + y * width) * 4;
      // YCC -> CMY
      YCbCrConverter.convertYCbCr2RGB(data, data, offset);
      // Inverse K
      data[offset + 3] = (byte) (0xff - data[offset + 3] & 0xff);
    }
  }
}

代码示例来源:origin: haraldk/TwelveMonkeys

YCbCrConverter.convertYCbCr2RGB(data, data, i);
YCbCrConverter.convertYCbCr2RGB(data, data, coefficients, referenceBW, i);

代码示例来源:origin: haraldk/TwelveMonkeys

YCbCrConverter.convertYCbCr2RGB(thumbData, thumbData, i);

代码示例来源:origin: com.twelvemonkeys.imageio/imageio-jpeg

private static void convertYCbCr2RGB(final Raster raster, final int numComponents) {
  final int height = raster.getHeight();
  final int width = raster.getWidth();
  final byte[] data = ((DataBufferByte) raster.getDataBuffer()).getData();
  for (int y = 0; y < height; y++) {
    for (int x = 0; x < width; x++) {
      YCbCrConverter.convertYCbCr2RGB(data, data, (x + y * width) * numComponents);
    }
  }
}

代码示例来源:origin: com.twelvemonkeys.imageio/imageio-jpeg

private static void convertYCCK2CMYK(final Raster raster) {
  final int height = raster.getHeight();
  final int width = raster.getWidth();
  final byte[] data = ((DataBufferByte) raster.getDataBuffer()).getData();
  for (int y = 0; y < height; y++) {
    for (int x = 0; x < width; x++) {
      int offset = (x + y * width) * 4;
      // YCC -> CMY
      YCbCrConverter.convertYCbCr2RGB(data, data, offset);
      // Inverse K
      data[offset + 3] = (byte) (0xff - data[offset + 3] & 0xff);
    }
  }
}

代码示例来源:origin: com.github.lafa.twelvemonkeyspurejava.imageio/imageio-tiff

YCbCrConverter.convertYCbCr2RGB(data, data, i);
YCbCrConverter.convertYCbCr2RGB(data, data, coefficients, referenceBW, i);

代码示例来源:origin: com.twelvemonkeys.imageio/imageio-jpeg

YCbCrConverter.convertYCbCr2RGB(thumbData, thumbData, i);

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