jp.digitalmuseum.capture
クラス VideoCaptureDS

java.lang.Object
  上位を拡張 jp.digitalmuseum.capture.VideoCaptureAbstractImpl
      上位を拡張 jp.digitalmuseum.capture.VideoCaptureDS
すべての実装されたインタフェース:
VideoCapture

public class VideoCaptureDS
extends VideoCaptureAbstractImpl
Capture images using DirectShow of Windows Platform through dsj (DirectShow for Java).
作成者:
Jun KATO

フィールドの概要
 
インタフェース jp.digitalmuseum.capture.VideoCapture から継承されたフィールド
DEFAULT_FRAMERATE, DEFAULT_HEIGHT, DEFAULT_WIDTH
 
コンストラクタの概要
VideoCaptureDS()
          Constructor without options.
VideoCaptureDS(int width, int height)
          Constructor with size specification.
 
メソッドの概要
 de.humatic.dsj.DSMediaType[] getFormats()
          Get all formats supported by the device.
 java.lang.String getIdentifier()
          Get a String expression of the identifier for this instance, with which users can rebuild the instance over sessions.
 java.lang.String getName()
          Get a name for this instance.
 de.humatic.dsj.DSMediaType getPreferredFormat()
          Get current format preferred by the device.
 void pause()
          Pause capturing.
Capturing process must be started before calling this method.
static de.humatic.dsj.DSFilterInfo[] queryDevices()
           
static java.lang.String[] queryIdentifiers()
          Get a list of identifiers of available devices.
 void resume()
          Resume capturing.
Capturing process must be started before calling this method.
 boolean setFrameRate(float fps)
          Set frame rate (frame per second).
 boolean setSize(int width, int height)
          Set resolution.
 void setSource(java.lang.Object source)
          Specify a source for capturing images.
 void setSourceFilter(de.humatic.dsj.DSFilterInfo filter)
          Use a specified filter to capture images.
 void showDialog()
          Show dialog for setting parameters of the device (saturation etc.).
 void showFormatDialog()
          Show dialog for setting parameters of the device (resolution and frame-rate).
 void start()
          Start capturing images.
 void stop()
          Stop capturing.
 
クラス jp.digitalmuseum.capture.VideoCaptureAbstractImpl から継承されたメソッド
getFrameRate, getHeight, getWidth, grabFrame, grabFrameData, isGrayScale, isPaused, isReversedX, isReversedY, isStarted, reverse, reverseX, reverseY, setGrayScale
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
コンストラクタの詳細

VideoCaptureDS

public VideoCaptureDS()
Constructor without options.

VideoCaptureDS

public VideoCaptureDS(int width,
                      int height)
Constructor with size specification.
メソッドの詳細

getIdentifier

public java.lang.String getIdentifier()
インタフェース VideoCapture の記述:
Get a String expression of the identifier for this instance, with which users can rebuild the instance over sessions.
戻り値:
String identifier.
関連項目:
VideoCapture.getName()

getName

public java.lang.String getName()
インタフェース VideoCapture の記述:
Get a name for this instance. Compared to getIdentifier(), this method may return the same name with another instance.
関連項目:
VideoCapture.getIdentifier()

setSource

public void setSource(java.lang.Object source)
               throws java.lang.Exception
インタフェース VideoCapture の記述:
Specify a source for capturing images.
例外:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
インタフェース VideoCapture の記述:
Start capturing images.
例外:
java.lang.Exception

pause

public void pause()
インタフェース VideoCapture の記述:
Pause capturing.
Capturing process must be started before calling this method.

resume

public void resume()
インタフェース VideoCapture の記述:
Resume capturing.
Capturing process must be started before calling this method.

stop

public void stop()
インタフェース VideoCapture の記述:
Stop capturing.

setFrameRate

public boolean setFrameRate(float fps)
インタフェース VideoCapture の記述:
Set frame rate (frame per second).
戻り値:
Whether setting is succeeded or failed.

setSize

public boolean setSize(int width,
                       int height)
インタフェース VideoCapture の記述:
Set resolution.
戻り値:
Whether setting is succeeded or failed.

setSourceFilter

public void setSourceFilter(de.humatic.dsj.DSFilterInfo filter)
Use a specified filter to capture images.

getFormats

public de.humatic.dsj.DSMediaType[] getFormats()
Get all formats supported by the device.

getPreferredFormat

public de.humatic.dsj.DSMediaType getPreferredFormat()
Get current format preferred by the device.

showDialog

public void showDialog()
Show dialog for setting parameters of the device (saturation etc.).

showFormatDialog

public void showFormatDialog()
Show dialog for setting parameters of the device (resolution and frame-rate).

queryDevices

public static de.humatic.dsj.DSFilterInfo[] queryDevices()
戻り値:
Returns available filters (i.e. devices) for capturing.

queryIdentifiers

public static java.lang.String[] queryIdentifiers()
Get a list of identifiers of available devices.


Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/