jp.digitalmuseum.capture
クラス VideoCaptureDummy

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

public class VideoCaptureDummy
extends VideoCaptureAbstractImpl
Dummy class providing a static image.
作成者:
Jun KATO

フィールドの概要
 
インタフェース jp.digitalmuseum.capture.VideoCapture から継承されたフィールド
DEFAULT_FRAMERATE, DEFAULT_HEIGHT, DEFAULT_WIDTH
 
コンストラクタの概要
VideoCaptureDummy()
          Constructor without options.
VideoCaptureDummy(int width, int height)
          Constructor with size specification.
 
メソッドの概要
 float getFrameRate()
          Get frame rate (frame per second).
 int getHeight()
          Get height of the resolution.
 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.
 int getWidth()
          Get width of the resolution.
 boolean isStarted()
          Get if capturing is started or not.
 void pause()
          Pause capturing.
Capturing process must be started before calling this method.
 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 start()
          Start capturing images.
 void stop()
          Stop capturing.
 byte[] tryGrabFrameData()
          Try capturing an image (grabbing frame data).
 
クラス jp.digitalmuseum.capture.VideoCaptureAbstractImpl から継承されたメソッド
grabFrame, grabFrameData, isGrayScale, isPaused, isReversedX, isReversedY, reverse, reverseX, reverseY, setGrayScale
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
コンストラクタの詳細

VideoCaptureDummy

public VideoCaptureDummy()
Constructor without options.

VideoCaptureDummy

public VideoCaptureDummy(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

isStarted

public boolean isStarted()
インタフェース VideoCapture の記述:
Get if capturing is started or not.
定義:
インタフェース VideoCapture 内の isStarted
オーバーライド:
クラス VideoCaptureAbstractImpl 内の isStarted
戻り値:
Whether capturing is started or not.

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.

tryGrabFrameData

public byte[] tryGrabFrameData()
クラス VideoCaptureAbstractImpl の記述:
Try capturing an image (grabbing frame data).

setFrameRate

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

getFrameRate

public float getFrameRate()
インタフェース VideoCapture の記述:
Get frame rate (frame per second).
定義:
インタフェース VideoCapture 内の getFrameRate
オーバーライド:
クラス VideoCaptureAbstractImpl 内の getFrameRate
戻り値:
Frame per second.

setSize

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

getWidth

public int getWidth()
インタフェース VideoCapture の記述:
Get width of the resolution.
定義:
インタフェース VideoCapture 内の getWidth
オーバーライド:
クラス VideoCaptureAbstractImpl 内の getWidth
戻り値:
Width of the resolution in pixels.

getHeight

public int getHeight()
インタフェース VideoCapture の記述:
Get height of the resolution.
定義:
インタフェース VideoCapture 内の getHeight
オーバーライド:
クラス VideoCaptureAbstractImpl 内の getHeight
戻り値:
Height of the resolution in pixels.


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