jp.digitalmuseum.capture
クラス VideoCaptureAbstractImpl

java.lang.Object
  上位を拡張 jp.digitalmuseum.capture.VideoCaptureAbstractImpl
すべての実装されたインタフェース:
VideoCapture
直系の既知のサブクラス:
VideoCaptureDS, VideoCaptureDummy, VideoCaptureJMF, VideoCaptureQT

public abstract class VideoCaptureAbstractImpl
extends java.lang.Object
implements VideoCapture
Abstract class of VideoCapture.
VideoCapture implementation classes are recommended to extend this abstract class for convenience.
作成者:
Jun KATO

フィールドの概要
 
インタフェース jp.digitalmuseum.capture.VideoCapture から継承されたフィールド
DEFAULT_FRAMERATE, DEFAULT_HEIGHT, DEFAULT_WIDTH
 
コンストラクタの概要
VideoCaptureAbstractImpl()
          Constructor without options.
VideoCaptureAbstractImpl(int width, int height)
          Constructor with size specification.
 
メソッドの概要
 float getFrameRate()
          Get frame rate (frame per second).
 int getHeight()
          Get height of the resolution.
 int getWidth()
          Get width of the resolution.
 java.awt.image.BufferedImage grabFrame()
          Grab a frame in BufferedImage.
 byte[] grabFrameData()
          Grab a frame in a byte array.
 boolean isGrayScale()
          Get gray scale mode.
 boolean isPaused()
          Get if capturing is paused or not.
 boolean isReversedX()
          Get whether captured images are reversed by X-axis.
 boolean isReversedY()
          Get whether captured images are reversed by Y-axis.
 boolean isStarted()
          Get if capturing is started or not.
 void reverse(boolean reverseX, boolean reverseY)
          Reverse captured images by axis.
 void reverseX(boolean reverseX)
          Reverse captured images by X-axis.
 void reverseY(boolean reverseY)
          Reverse captured images by Y-axis.
 void setGrayScale(boolean isGrayScale)
          Set gray scale mode.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.digitalmuseum.capture.VideoCapture から継承されたメソッド
getIdentifier, getName, pause, resume, setFrameRate, setSize, setSource, start, stop
 
コンストラクタの詳細

VideoCaptureAbstractImpl

public VideoCaptureAbstractImpl()
Constructor without options.

VideoCaptureAbstractImpl

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

setGrayScale

public final void setGrayScale(boolean isGrayScale)
インタフェース VideoCapture の記述:
Set gray scale mode.
定義:
インタフェース VideoCapture 内の setGrayScale

reverseX

public final void reverseX(boolean reverseX)
インタフェース VideoCapture の記述:
Reverse captured images by X-axis.
定義:
インタフェース VideoCapture 内の reverseX

reverseY

public final void reverseY(boolean reverseY)
インタフェース VideoCapture の記述:
Reverse captured images by Y-axis.
定義:
インタフェース VideoCapture 内の reverseY

reverse

public final void reverse(boolean reverseX,
                          boolean reverseY)
インタフェース VideoCapture の記述:
Reverse captured images by axis.
定義:
インタフェース VideoCapture 内の reverse
パラメータ:
reverseX - Whether to reverse images by X-axis or not.
reverseY - Whether to reverse images by Y-axis or not.

isGrayScale

public final boolean isGrayScale()
インタフェース VideoCapture の記述:
Get gray scale mode.
定義:
インタフェース VideoCapture 内の isGrayScale
戻り値:
Whether capturing images in gray scale or not.

isReversedX

public final boolean isReversedX()
インタフェース VideoCapture の記述:
Get whether captured images are reversed by X-axis.
定義:
インタフェース VideoCapture 内の isReversedX

isReversedY

public final boolean isReversedY()
インタフェース VideoCapture の記述:
Get whether captured images are reversed by Y-axis.
定義:
インタフェース VideoCapture 内の isReversedY

grabFrame

public java.awt.image.BufferedImage grabFrame()
インタフェース VideoCapture の記述:
Grab a frame in BufferedImage.
定義:
インタフェース VideoCapture 内の grabFrame
戻り値:
Grabbed frame in BufferedImage.

grabFrameData

public final byte[] grabFrameData()
インタフェース VideoCapture の記述:
Grab a frame in a byte array.
定義:
インタフェース VideoCapture 内の grabFrameData
戻り値:
Grabbed frame in a byte array.

isStarted

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

isPaused

public boolean isPaused()
インタフェース VideoCapture の記述:
Get if capturing is paused or not.
定義:
インタフェース VideoCapture 内の isPaused
戻り値:
Whether capturing is paused or not.

getFrameRate

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

getWidth

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

getHeight

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


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