congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
VideoDataPlayer$HideableMediaFrame
Code IndexAdd Tabnine to your IDE (free)

How to use
VideoDataPlayer$HideableMediaFrame
in
us.ihmc.robotDataVisualizer.logger

Best Java code snippets using us.ihmc.robotDataVisualizer.logger.VideoDataPlayer$HideableMediaFrame (Showing top 11 results out of 315)

origin: us.ihmc/ihmc-robot-data-visualizer

public HideableMediaFrame(String name, int width, int height)
{
  super(name);
  label.setPreferredSize(new Dimension(width, height));
  getContentPane().add(label);
  this.width = width;
  this.height = height;
  pack();
}
origin: us.ihmc/ihmc-robot-data-visualizer

viewer.update(nextFrame);
origin: us.ihmc/ihmc-robot-data-visualizer

player.viewer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
player.setVisible(true);
origin: us.ihmc/IHMCRobotDataVisualizer

public synchronized void showVideoFrame(long timestamp)
{
 if (timestamp >= currentlyShowingRobottimestamp && timestamp < upcomingRobottimestamp)
 {
   return;
 }
 long videoTimestamp = getVideoTimestamp(timestamp);
 if (currentlyShowingIndex + 1 < robotTimestamps.length)
 {
   upcomingRobottimestamp = robotTimestamps[currentlyShowingIndex + 1];
 }
 else
 {
   upcomingRobottimestamp = currentlyShowingRobottimestamp;
 }
 try
 {
   demuxer.seekToPTS(videoTimestamp);
   YUVPicture nextFrame = demuxer.getNextFrame();
   viewer.update(nextFrame);
 }
 catch (IOException e)
 {
   // TODO Auto-generated catch block
   e.printStackTrace();
 }
}
origin: us.ihmc/ihmc-robot-data-visualizer

public VideoDataPlayer(Camera camera, File dataDirectory, boolean hasTimeBase) throws IOException
{
 this.name = camera.getNameAsString();
 this.interlaced = camera.getInterlaced();
 this.hasTimebase = hasTimeBase;
 if (!hasTimebase)
 {
   System.err.println("Video data is using timestamps instead of frame numbers. Falling back to seeking based on timestamp.");
 }
 videoFile = new File(dataDirectory, camera.getVideoFileAsString());
 if (!videoFile.exists())
 {
   throw new IOException("Cannot find video: " + videoFile);
 }
 File timestampFile = new File(dataDirectory, camera.getTimestampFileAsString());
 parseTimestampData(timestampFile);
 demuxer = new MP4VideoDemuxer(videoFile);
 viewer = new HideableMediaFrame(camera.getNameAsString(), demuxer.getWidth(), demuxer.getHeight());
}
origin: us.ihmc/IHMCRobotDataVisualizer

public VideoDataPlayer(String name, File dataDirectory, LogProperties logProperties) throws IOException
{
 this.name = name;
 this.interlaced = logProperties.getInterlaced(name);
 this.hasTimebase = logProperties.hasTimebase();
 if (!hasTimebase)
 {
   System.err.println("Video data is using timestamps instead of frame numbers. Falling back to seeking based on timestamp.");
 }
 videoFile = new File(dataDirectory, logProperties.getVideoFile(name));
 if (!videoFile.exists())
 {
   throw new IOException("Cannot find video: " + videoFile);
 }
 File timestampFile = new File(dataDirectory, logProperties.getTimestampFile(name));
 parseTimestampData(timestampFile);
 demuxer = new MP4VideoDemuxer(videoFile);
 viewer = new HideableMediaFrame(name, demuxer.getWidth(), demuxer.getHeight());
}
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/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/ihmc-robot-data-visualizer

public void setVisible(boolean visible)
{
 viewer.setVisible(visible);
}
origin: us.ihmc/IHMCRobotDataVisualizer

public HideableMediaFrame(String name, int width, int height)
{
  super(name);
  label.setPreferredSize(new Dimension(width, height));
  getContentPane().add(label);
  this.width = width;
  this.height = height;
  pack();
}
origin: us.ihmc/IHMCRobotDataVisualizer

public void setVisible(boolean visible)
{
 viewer.setVisible(visible);
}
us.ihmc.robotDataVisualizer.loggerVideoDataPlayer$HideableMediaFrame

Most used methods

  • <init>
  • getContentPane
  • pack
  • setVisible
  • update
  • setDefaultCloseOperation

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now