Examples of RGBDataSink


Examples of org.gstreamer.elements.RGBDataSink

    }
   
   
    /** Creates a new instance of GstVideoComponent */
    public VideoComponent() {
        videosink = new RGBDataSink("GstVideoComponent", new RGBListener());
        videosink.setPassDirectBuffer(true);
        // Limit the lateness of frames to no more than 20ms (half a frame at 25fps)
        videosink.getSinkElement().setMaximumLateness(20, TimeUnit.MILLISECONDS);
        videosink.getSinkElement().setQOSEnabled(true);
       
View Full Code Here

Examples of org.gstreamer.elements.RGBDataSink

  private Color bgColor;

  public VideoComponent(final Composite parent, int style) {
    super(parent, style | SWT.DOUBLE_BUFFERED);

    videosink = new RGBDataSink("GstVideoComponent", new RGBListener());
    videosink.setPassDirectBuffer(true);

    final Font font = new Font(getDisplay(), "Arial", 13, SWT.NORMAL);

    this.addPaintListener(new PaintListener() {
View Full Code Here

Examples of org.gstreamer.elements.RGBDataSink

    oglGraphicsConfigClass = cls;
  }

  /** Creates a new instance of GstVideoComponent */
  public GstSwingVideoComponent() {
    videosink = new RGBDataSink("GstVideoComponent", new RGBListener());
    videosink.setPassDirectBuffer(true);
   
    // Limit the lateness of frames to no more than 20ms (half a frame at
    // 25fps)
    videosink.getSinkElement()
View Full Code Here

Examples of org.gstreamer.elements.RGBDataSink

            throw new Exception(
                    NbBundle.getMessage(this.getClass(), "GstVideoPanel.exception.problemFile.msg", file.getName()));
        }

        // set up a PlayBin2 object
        RGBDataSink videoSink = new RGBDataSink("rgb", rgbListener); //NON-NLS
        PlayBin2 playbin = new PlayBin2("VideoFrameCapture"); //NON-NLS
        playbin.setInputFile(file);
        playbin.setVideoSink(videoSink);

        // this is necessary to get a valid duration value
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.