|
||||||||||
| 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.DSHDVTape
public class DSHDVTape
DSHDVTape wraps DirectShow functionality for IEEE 1394 (aka Firewire, iLink) HDV camcorders and
D-VHS decks working with MPEG compression.
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 |
AVC
Device type |
static int |
C2F
Software operation mode |
static int |
C2TS
Software operation mode |
static int |
CAMERA
Hardware operation mode |
static int |
PREVIEW
Software operation mode |
static int |
T2F
Software operation mode |
static int |
T2TS
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 de.humatic.dsj.util.MPEGSource |
|---|
NO_AUDIO, RESOLVE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DSHDVTape(int flags,
DSFilterInfo deviceInfo,
DSFilterInfo videoDecoderInfo,
DSFilterInfo audioDecoderInfo,
java.beans.PropertyChangeListener pcl)
Use this constructor with a DSFilterInfo for a HDV device as returned by DSHDVTape.getHDVDevices(...) when you need to work with (one out of) multiple HDV devices. If %deviceInfo is null or DSFilterInfo.doNotRender(), this will use the first device found. You can also specify mepeg decoders with this constructor. |
|
DSHDVTape(int flags,
java.beans.PropertyChangeListener pcl)
This constructor creates a HDV graph from the first HDV Device found. |
|
| Method Summary | |
|---|---|
void |
captureElementaryStreams(java.lang.String path,
boolean preview)
Captures video and audio elementary streams after the transport stream has been demultiplexed. |
void |
captureTransportStream(java.lang.String path,
boolean preview,
int flags)
Captures the entire transport stream from the device into a file at %path. |
void |
extRecord()
Toggles recording on the device (remote control function) |
void |
fastFwd()
VCR transport |
java.lang.String |
getDeviceDescription()
Returns a string containing device manufacturer and model |
int |
getDeviceMode()
Returns the current hardware operation mode, i.e. |
int |
getExtTransportState()
|
static DSFilterInfo[] |
getHDVDevices()
Returns DSFilterInfos for all HDV devices currently connected |
int |
getOperationMode()
Returns the current software operation mode |
int |
getPMT_PID()
Returns the PMT PID of the currently playing program. |
int[] |
getProgramPIDs()
Returns the elementary stream PIDs of the currently playing program. |
MPEGProgram[] |
getPrograms()
Returns an array of all programs seen in a stream. |
int[] |
getStreamTypes()
Returns the elementary streamtypes of the currently playing program. |
void |
pause()
Toggles VCR playback |
void |
record()
Toggles recording when HDVDevice 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()
Resets a graph that has been used to capture back into its normal preview state. |
void |
stepBwd()
VCR transport |
void |
stepFwd()
VCR transport |
void |
stop()
Stops the graph. |
| 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 T2TS
public static final int T2F
public static final int C2TS
public static final int C2F
public static final int AVC
public static final int UVC
| Constructor Detail |
|---|
public DSHDVTape(int flags,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJException
public DSHDVTape(int flags,
DSFilterInfo deviceInfo,
DSFilterInfo videoDecoderInfo,
DSFilterInfo audioDecoderInfo,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJException| Method Detail |
|---|
public int getDeviceMode()
getDeviceMode in interface AVCDevicepublic int getOperationMode()
public java.lang.String getDeviceDescription()
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 extRecord()
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 int getExtTransportState()
getExtTransportState in interface AVCDevice
public void captureTransportStream(java.lang.String path,
boolean preview,
int flags)
throws DSJException
DSJException
public void captureElementaryStreams(java.lang.String path,
boolean preview)
throws DSJException
DSJExceptionpublic void setPreview()
public static DSFilterInfo[] getHDVDevices()
public int getPMT_PID()
MPEGSource
getPMT_PID in interface MPEGSourcepublic int[] getProgramPIDs()
MPEGSource
getProgramPIDs in interface MPEGSourcepublic int[] getStreamTypes()
MPEGSource
getStreamTypes in interface MPEGSourcepublic MPEGProgram[] getPrograms()
MPEGSource
getPrograms in interface MPEGSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||