Package javax.media.control

Examples of javax.media.control.FormatControl


    {
      CaptureDeviceInfo dev = CaptureDeviceManager.getDevice( device );
      p = Manager.createRealizedPlayer( dev.getLocator() );

      fg = (FrameGrabbingControl)p.getControl("javax.media.control.FrameGrabbingControl");
      FormatControl fc = (FormatControl)p.getControl("javax.media.control.FormatControl");
      Format[] devVec = dev.getFormats();
     
      for (int i=0 ; i<devVec.length; i++)
      {
        if ( devVec[i] instanceof VideoFormat && ((VideoFormat)devVec[i]).getSize().equals(imageResolution))
        {
          fc.setFormat(devVec[i]);
          break;
        }
      }
     
      p.start();
View Full Code Here

TOP

Related Classes of javax.media.control.FormatControl

Copyright © 2018 www.massapicom. 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.