|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
de.humatic.dsj.DSFiltergraph
de.humatic.dsj.DSDVCam
public class DSDVCam
DSDVCam wraps DirectShow functionality for IEEE 1394 (aka Firewire, iLink) DV camcorders and
- as of dsj 0_8_4 - also for USB 2.0 ones.
Both camera and VCR mode are supported.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.humatic.dsj.DSFiltergraph |
|---|
DSFiltergraph.DSAudioStream |
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
AUDIO_BITS_16
|
static int |
AVC
Device type |
static int |
C2F
Software operation mode |
static int |
CAMERA
Hardware operation mode |
static int |
F2T
Software operation mode |
static int |
NO_AUDIO
|
static int |
PREVIEW
Software operation mode |
static int |
RECORDING
Software operation mode |
static int |
T2F
Software operation mode |
static int |
UVC
Device type |
static int |
VCR
Hardware operation mode |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface de.humatic.dsj.AVCDevice |
|---|
ED_MODE_FF, ED_MODE_FREEZE, ED_MODE_PLAY, ED_MODE_REW, ED_MODE_STEP_FW, ED_MODE_STEP_REV, ED_MODE_STOP |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DSDVCam(int flags,
DSFilterInfo deviceInfo,
java.beans.PropertyChangeListener pcl)
Use this constructor with a DSFilterInfo for a DV device as returned by DSCapture.queryDevices(...) when you need to work with (one out of) multiple DV Cameras. See first constructor for DV specific flags. |
|
DSDVCam(int flags,
java.beans.PropertyChangeListener pcl)
This constructor creates a DSDVCam from the first DV Device found. |
|
| Method Summary | |
|---|---|
void |
cameraToFile(java.lang.String fileName,
DSFilterInfo videoEncoder,
boolean preview,
boolean grabAudio)
Sets up Direct Show for direct to disc grabbing. %videoEncoder: DSFilterInfo object as retrieved by DSEnvironment.getEncoders() or DSFilterInfo.doNotRender(). |
void |
changeCaptureFile(java.lang.String newPath,
boolean startRecording)
Once a capture file, compression etc. |
void |
fastFwd()
VCR transport |
int |
getDeviceMode()
Returns the current hardware operation mode, i.e. |
int |
getDeviceType()
Returns AVC (0) for IEEE 1394 / Firewire devices, UVC (1) for USB 2.0 ones |
int |
getExtTransportState()
|
int |
getOperationMode()
Returns the current software operation mode |
void |
grabTapeToFile(java.lang.String fileName,
DSFilterInfo videoEncoder,
boolean preview,
boolean grabAudio,
int fileType)
Sets up Direct Show to write DV tape to file. fileType 1 - muxed avi DV Stream, containing video and audio. fileType 2 - avi with separate video and audio streams. (both fileType 1 & 2 will capture the original DV stream into an avi container when no encoders are specified) fileType 3 - raw DV (Encoder and audio grabbing parameters will be ignored, file should have a .dv suffix). %videoEncoder DSFilterInfo object as retrieved by DSEnvironment.getEncoders(). |
void |
grabToDisc()
Toggles recording when in direct to disc mode |
void |
pause()
Toggles VCR playback |
void |
record()
Toggles recording when DVDevice is in camera mode or grabbing tape to file |
void |
rewind()
VCR transport |
void |
scanBwd()
VCR transport |
void |
scanFwd()
VCR transport |
void |
seekToTime(int msec)
|
void |
seekToTime(int h,
int m,
int s,
int fr)
Winds tape to seekTime when in VCR mode |
int |
sendRawAVC(byte[] cmd)
|
void |
setPreview()
Sets up Direct Show for preview and camera operation. This is also the default state after construction. |
java.awt.Dimension |
setResolution()
Resets DV device's resolution. |
void |
stepBwd()
VCR transport |
void |
stepFwd()
VCR transport |
void |
stop()
Stops the graph. |
void |
writeFileToTape(java.lang.String fileName,
int fileType)
Sets up Direct Show to write a DV avi file to tape. |
| Methods inherited from class java.awt.Canvas |
|---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CAMERA
public static final int VCR
public static final int PREVIEW
public static final int T2F
public static final int F2T
public static final int C2F
public static final int RECORDING
public static final int NO_AUDIO
public static final int AUDIO_BITS_16
public static final int AVC
public static final int UVC
| Constructor Detail |
|---|
public DSDVCam(int flags,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJException
public DSDVCam(int flags,
DSFilterInfo deviceInfo,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJException| Method Detail |
|---|
public int getDeviceMode()
getDeviceMode in interface AVCDevicepublic int getOperationMode()
public int getDeviceType()
public void rewind()
throws DSJException
rewind in interface AVCDeviceDSJException
public void scanBwd()
throws DSJException
scanBwd in interface AVCDeviceDSJException
public void stepBwd()
throws DSJException
stepBwd in interface AVCDeviceDSJException
public void fastFwd()
throws DSJException
fastFwd in interface AVCDeviceDSJException
public void scanFwd()
throws DSJException
scanFwd in interface AVCDeviceDSJException
public void stepFwd()
throws DSJException
stepFwd in interface AVCDeviceDSJExceptionpublic void pause()
pause in class DSFiltergraphpublic void stop()
DSFiltergraph
stop in class DSFiltergraph
public void record()
throws DSJException
DSJException
public void grabToDisc()
throws DSJException
DSJException
public void seekToTime(int h,
int m,
int s,
int fr)
throws DSJException
seekToTime in interface AVCDeviceDSJExceptionpublic void seekToTime(int msec)
public int sendRawAVC(byte[] cmd)
sendRawAVC in interface AVCDevicepublic java.awt.Dimension setResolution()
public void writeFileToTape(java.lang.String fileName,
int fileType)
public void grabTapeToFile(java.lang.String fileName,
DSFilterInfo videoEncoder,
boolean preview,
boolean grabAudio,
int fileType)
public void cameraToFile(java.lang.String fileName,
DSFilterInfo videoEncoder,
boolean preview,
boolean grabAudio)
public void changeCaptureFile(java.lang.String newPath,
boolean startRecording)
public void setPreview()
public int getExtTransportState()
getExtTransportState in interface AVCDevice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||