- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.codecs.yuv.YUVPictureConverter.toBufferedImage()
方法的一些代码示例,展示了YUVPictureConverter.toBufferedImage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YUVPictureConverter.toBufferedImage()
方法的具体详情如下:
包路径:us.ihmc.codecs.yuv.YUVPictureConverter
类名称:YUVPictureConverter
方法名:toBufferedImage
[英]Convert YUVPicture to BufferedImage, minimizing object allocation
[中]将YUVPicture转换为BuffereImage,最小化对象分配
代码示例来源:origin: us.ihmc/IHMCVideoCodecs
/**
* Convert YUVPicture to BufferedImage, minimizing object allocation
*
* @param picture YUVPicture to convert
* @return new BufferedImage.
*/
public BufferedImage toBufferedImage(YUVPicture picture)
{
return toBufferedImage(picture, null);
}
代码示例来源:origin: us.ihmc/ihmc-video-codecs
/**
* Convert YUVPicture to BufferedImage, minimizing object allocation
*
* @param picture YUVPicture to convert
* @return new BufferedImage.
*/
public BufferedImage toBufferedImage(YUVPicture picture)
{
return toBufferedImage(picture, null);
}
代码示例来源:origin: us.ihmc/ihmc-video-codecs
@Override
public void run()
{
image.setIcon(new ImageIcon(converter.toBufferedImage(img)));
}
});
代码示例来源:origin: us.ihmc/IHMCVideoCodecs
@Override
public void run()
{
image.setIcon(new ImageIcon(converter.toBufferedImage(img)));
}
});
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
@Override
public void run()
{
img = converter.toBufferedImage(nextFrame, img);
nextFrame.delete();
ImageIcon icon = new ImageIcon(img);
label.setIcon(icon);
if (img.getWidth() != width || img.getHeight() != height)
{
width = img.getWidth();
height = img.getHeight();
label.setPreferredSize(new Dimension(width, height));
pack();
}
}
});
代码示例来源:origin: us.ihmc/RobotDataCommunication
@Override
public void run()
{
img = converter.toBufferedImage(nextFrame, img);
nextFrame.delete();
ImageIcon icon = new ImageIcon(img);
label.setIcon(icon);
if (img.getWidth() != width || img.getHeight() != height)
{
width = img.getWidth();
height = img.getHeight();
label.setPreferredSize(new Dimension(width, height));
pack();
}
}
});
代码示例来源:origin: us.ihmc/IHMCRobotDataVisualizer
@Override
public void run()
{
img = converter.toBufferedImage(nextFrame, img);
nextFrame.delete();
ImageIcon icon = new ImageIcon(img);
label.setIcon(icon);
if (img.getWidth() != width || img.getHeight() != height)
{
width = img.getWidth();
height = img.getHeight();
label.setPreferredSize(new Dimension(width, height));
pack();
}
}
});
代码示例来源:origin: us.ihmc/IHMCCommunication
@Override
public synchronized void consumeObject(byte[] data, Point3d position, Quat4d orientation, IntrinsicParameters intrinsicParameters)
{
nalBuffer.clear();
nalBuffer.put(data);
nalBuffer.clear();
YUVPicture frame = decoder.decodeFrame(nalBuffer);
if(frame != null)
{
image = converter.toBufferedImage(frame, image);
videoStreamer.updateImage(image, position, orientation, intrinsicParameters);
frame.delete();
}
}
代码示例来源:origin: us.ihmc/IHMCCommunication
public BufferedImage decompressJPEGDataToBufferedImage(byte[] jpegData)
{
ByteBuffer byteBuffer = byteBufferProvider.getOrCreateBuffer(jpegData.length);
byteBuffer.put(jpegData);
byteBuffer.flip();
YUVPicture yuvPicture = jpegDecoder.decode(byteBuffer);
BufferedImage bufferedImage = yuvPictureConverter.toBufferedImage(yuvPicture);
yuvPicture.delete();
return bufferedImage;
}
}
代码示例来源:origin: us.ihmc/IHMCCommunication
@Override
public void consumeObject(byte[] data, Point3d position, Quat4d orientation, IntrinsicParameters intrinsicParameters)
{
ByteBuffer buffer = byteBufferProvider.getOrCreateBuffer(data.length);
buffer.put(data);
buffer.flip();
YUVPicture pic = decoder.decode(buffer);
BufferedImage img = converter.toBufferedImage(pic);
pic.delete();
videoStreamer.updateImage(img, position, orientation, intrinsicParameters);
}
}
代码示例来源:origin: us.ihmc/ImageProcessing
private void streamBufferedImagesFromVideo()
{
YUVPicture frame;
try
{
while ((frame = demuxer.getNextFrame()) != null)
{
videoListener.updateImage(converter.toBufferedImage(frame));
frame.delete();
}
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}
代码示例来源:origin: us.ihmc/ImageProcessing
private void streamBufferedImagesFromVideo()
{
// Now, we start walking through the container looking at each packet.
YUVPicture leftEye;
YUVPicture rightEye;
try
{
while ((leftEye = leftEyeDemuxer.getNextFrame()) != null && (rightEye = rightEyeDemuxer.getNextFrame()) != null)
{
videoListener.updateImage(converter.toBufferedImage(leftEye), converter.toBufferedImage(rightEye));
leftEye.delete();
rightEye.delete();
//TODO: Insert eait loop
}
}
catch (IOException e)
{
e.printStackTrace();
}
}
代码示例来源:origin: us.ihmc/ihmc-video-codecs
while ((picture = demuxer.getNextFrame()) != null)
final BufferedImage img = converter.toBufferedImage(picture);
SwingUtilities.invokeLater(new Runnable()
代码示例来源:origin: us.ihmc/IHMCVideoCodecs
while ((picture = demuxer.getNextFrame()) != null)
final BufferedImage img = converter.toBufferedImage(picture);
SwingUtilities.invokeLater(new Runnable()
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private void doTheNextFrame(YUVPicture picture)
{
int width = jPanel.getWidth();
int height = jPanel.getHeight();
if (width < 1 || height < 1)
return;
picture.scale(width, height, FilterModeEnum.kFilterBilinear);
bufferedImage = converter.toBufferedImage(picture, bufferedImage);
SwingUtilities.invokeLater(new Runnable()
{
@Override
public void run()
{
imageIcon = new ImageIcon(bufferedImage);
jLabel.setIcon(imageIcon);
}
});
picture.delete();
}
代码示例来源:origin: us.ihmc/RobotDataCommunication
int newHeight = ((int) (scaleHeight * (double) img.getHeight()) >> 1) << 1;
img.scale(newWidth, newHeight, FilterModeEnum.kFilterBilinear);
image = converter.toBufferedImage(img, image);
ImageIcon icon = new ImageIcon(image);
label.setIcon(icon);
代码示例来源:origin: us.ihmc/IHMCRobotDataVisualizer
int newHeight = ((int) (scaleHeight * (double) img.getHeight()) >> 1) << 1;
img.scale(newWidth, newHeight, FilterModeEnum.kFilterBilinear);
image = converter.toBufferedImage(img, image);
ImageIcon icon = new ImageIcon(image);
label.setIcon(icon);
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
int newHeight = ((int) (scaleHeight * (double) img.getHeight()) >> 1) << 1;
img.scale(newWidth, newHeight, FilterModeEnum.kFilterBilinear);
image = converter.toBufferedImage(img, image);
ImageIcon icon = new ImageIcon(image);
label.setIcon(icon);
本文整理了Java中us.ihmc.robotDataLogger.YoVariableServer类的一些代码示例,展示了YoVariableServer类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中us.ihmc.robotDataLogger.YoVariableClient类的一些代码示例,展示了YoVariableClient类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中us.ihmc.kalman.YoKalmanFilter类的一些代码示例,展示了YoKalmanFilter类的具体用法。这些代码示例主要来源于Github/Stackoverf
本文整理了Java中us.ihmc.robotDataLogger.YoVariablesUpdatedListener类的一些代码示例,展示了YoVariablesUpdatedListener类的
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench类的一些代码示例,展示了Wrench类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了Java中us.ihmc.mecano.spatial.Wrench类的一些代码示例,展示了Wrench类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mave
本文整理了Java中us.ihmc.yoVariables.variable.YoVariable类的一些代码示例,展示了YoVariable类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中us.ihmc.yoVariables.variable.YoLong类的一些代码示例,展示了YoLong类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameVector3D类的一些代码示例,展示了YoFrameVector3D类的具体用法。这些代码示例主要来源于G
本文整理了Java中us.ihmc.yoVariables.variable.YoEnum类的一些代码示例,展示了YoEnum类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了Java中us.ihmc.yoVariables.variable.YoFramePoint3D类的一些代码示例,展示了YoFramePoint3D类的具体用法。这些代码示例主要来源于Git
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsList类的一些代码示例,展示了YoGraphicsList类的具体用法。这些代码
本文整理了Java中us.ihmc.yoVariables.variable.YoBoolean类的一些代码示例,展示了YoBoolean类的具体用法。这些代码示例主要来源于Github/Stacko
本文整理了Java中us.ihmc.yoVariables.variable.YoInteger类的一些代码示例,展示了YoInteger类的具体用法。这些代码示例主要来源于Github/Stacko
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition类的一些代码示例,展示了YoGraphicPosition类的具体用
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance类的一些代码示例,展示了YoAppearance类的具体用法。这些代码示例主要
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry类的一些代码示例,展示了YoGraphicsListReg
本文整理了Java中us.ihmc.yoVariables.variable.YoDouble类的一些代码示例,展示了YoDouble类的具体用法。这些代码示例主要来源于Github/Stackove
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameVector2D类的一些代码示例,展示了YoFrameVector2D类的具体用法。这些代码示例主要来源于G
本文整理了Java中us.ihmc.codecs.yuv.YUVPictureConverter类的一些代码示例,展示了YUVPictureConverter类的具体用法。这些代码示例主要来源于Git
我是一名优秀的程序员,十分优秀!