CaptureDeviceManager.getDeviceList(new YUVFormat());
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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); }
= new YUVFormat( new Dimension(width, height),
VideoFormat[] desiredFormats = new VideoFormat[] {new H263Format(), new JPEGFormat(), new RGBFormat(), new YUVFormat()}; for (VideoFormat checkFormat : desiredFormats) {
= new YUVFormat( size,
new YUVFormat( size, maxDataLength,