gpt4 book ai didi

javax.media.format.YUVFormat.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 14:57:31 26 4
gpt4 key购买 nike

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

YUVFormat.<init>介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

CaptureDeviceManager.getDeviceList(new YUVFormat());

代码示例来源:origin: jitsi/libjitsi

/**
 * Initializes a new <tt>JNIEncoder</tt> instance.
 */
public JNIEncoder()
{
  inputFormats
    = new Format[]
    {
      new YUVFormat(
          /* size */ null,
          /* maxDataLength */ Format.NOT_SPECIFIED,
          Format.byteArray,
          /* frameRate */ Format.NOT_SPECIFIED,
          YUVFormat.YUV_420,
          /* strideY */ Format.NOT_SPECIFIED,
          /* strideUV */ Format.NOT_SPECIFIED,
          /* offsetY */ Format.NOT_SPECIFIED,
          /* offsetU */ Format.NOT_SPECIFIED,
          /* offsetV */ Format.NOT_SPECIFIED)
    };
  inputFormat = null;
  outputFormat = null;
}

代码示例来源:origin: jitsi/libjitsi

/**
 * Initializes a new <tt>JNIEncoder</tt> instance.
 */
public JNIEncoder()
{
  inputFormats
    = new Format[]
    {
      new YUVFormat(
          /* size */ null,
          /* maxDataLength */ Format.NOT_SPECIFIED,
          Format.byteArray,
          /* frameRate */ Format.NOT_SPECIFIED,
          YUVFormat.YUV_420,
          /* strideY */ Format.NOT_SPECIFIED,
          /* strideUV */ Format.NOT_SPECIFIED,
          /* offsetY */ Format.NOT_SPECIFIED,
          /* offsetU */ Format.NOT_SPECIFIED,
          /* offsetV */ Format.NOT_SPECIFIED)
    };
  inputFormat = null;
  outputFormat = null;
}

代码示例来源:origin: jitsi/libjitsi

/**
 * Initializes a new <tt>VPXEncoder</tt> instance.
 */
public VPXEncoder()
{
  super("VP8 Encoder", VideoFormat.class, SUPPORTED_OUTPUT_FORMATS);
  inputFormats
    = new VideoFormat[]
    {
      new YUVFormat(
          /* size */ null,
          /* maxDataLength */ Format.NOT_SPECIFIED,
          Format.byteArray,
          /* frameRate */ Format.NOT_SPECIFIED,
          YUVFormat.YUV_420,
          /* strideY */ Format.NOT_SPECIFIED,
          /* strideUV */ Format.NOT_SPECIFIED,
          /* offsetY */ Format.NOT_SPECIFIED,
          /* offsetU */ Format.NOT_SPECIFIED,
          /* offsetV */ Format.NOT_SPECIFIED)
    };
  inputFormat = null;
  outputFormat = null;
}

代码示例来源:origin: jitsi/libjitsi

/**
 * Initializes a new <tt>SwScale</tt> instance which can optionally attempt
 * to keep the width and height of YUV 420 output even and to preserve the
 * aspect ratio of the video frames provided to the instance as input to be
 * processed.
 *
 * @param fixOddYuv420Size <tt>true</tt> to have the new instance keep the
 * width and height of YUV 420 output even; otherwise, <tt>false</tt>
 * @param preserveAspectRatio <tt>true</tt> to have the new instance
 * preserve the aspect ratio of the video frames provided to it as input to
 * be processed; otherwise, <tt>false</tt>
 */
public SwScale(boolean fixOddYuv420Size, boolean preserveAspectRatio)
{
  this.fixOddYuv420Size = fixOddYuv420Size;
  this.preserveAspectRatio = preserveAspectRatio;
  inputFormats
    = new Format[]
        {
          new AVFrameFormat(),
          new RGBFormat(),
          new YUVFormat(YUVFormat.YUV_420)
        };
  addControl(frameProcessingControl);
}

代码示例来源:origin: jitsi/libjitsi

return new YUVFormat(YUVFormat.YUV_420);
new YUVFormat(
    new Dimension(width, height),

代码示例来源:origin: jitsi/libjitsi

= new YUVFormat(
    new Dimension(width, height),

代码示例来源:origin: stackoverflow.com

VideoFormat[] desiredFormats = new VideoFormat[] {new H263Format(), new JPEGFormat(), new RGBFormat(), new YUVFormat()};
for (VideoFormat checkFormat : desiredFormats) {

代码示例来源:origin: jitsi/libjitsi

? new YUVFormat(

代码示例来源:origin: jitsi/libjitsi

= new YUVFormat(
    size,

代码示例来源:origin: jitsi/libjitsi

new YUVFormat(
    size,
    maxDataLength,

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