public void open ( int width , int height , double frameRate ) throws JavaAVException { if ( ! open . get ( ) ) { String input = "video=" + device ; demuxer = new Demuxer ( ) ; demuxer . setInputFormat ( format ) ; demuxer . setImageWidth ( width ) ; demuxer . setImageHeight ( height ) ; demuxer . setFramerate ( frameRate ) ; demuxer . open ( input ) ; open . set ( true ) ; } }
Open the camera with specified image size and capture frame rate .