|
||||||||||
| 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.DSCapture
public class DSCapture
DSCapture provides access to DirectShow audio and video capture devices.
This should get all devices in a particular system, including TV capture boards etc.
DSCapture uses the DSFilterInfo class to handle the separate devices, their downstream pins
(outputs) and the formats those can deliver.
| Nested Class Summary | |
|---|---|
class |
DSCapture.CaptureDevice
Nested class, extending DSFilter and wrapping a capture device, that has been added to the graph. |
| 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 |
ARMED
Software operation mode |
static int |
MAX_RESIZEABLE
DSCapture DD7 / D3D9 specific setup flag |
static int |
MST_AUDIO
Sync options |
static int |
MST_NONE
Sync options |
static int |
MST_VIDEO
Sync options |
static int |
PREVIEW
Software operation mode |
static int |
RECORDING
Software operation mode |
static int |
RESOLVE_INPUTS
|
static int |
RESOLVE_OUTPUTS
|
static int |
SKIP_AUDIO
Device groups for optional skiping on query |
static int |
SKIP_BDA
Device groups for optional skiping on query |
static int |
SKIP_VIDEO
Device groups for optional skiping on query |
static int |
SKIP_XBARS
Device groups for optional skiping on query |
static int |
STILL_ENABLED
|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DSCapture(int flags,
DSFilterInfo videoDeviceInfo,
boolean captureAudioFromVideoDevice,
DSFilterInfo audioDeviceInfo,
java.beans.PropertyChangeListener pcl)
Creates a DSCapture object that uses the video & audio devices described by the given DSFilterInfos. |
|
DSCapture(int flags,
java.beans.PropertyChangeListener pcl)
Creates a DSCapture object using the first (Windows default) video and audio capture devices. %flags - rendering mode and additional graph options, see DSFiltergraph. |
|
| Method Summary | |
|---|---|
DSCapture.CaptureDevice |
activateDevice(DSFilterInfo info)
|
void |
captureMPEG(java.lang.String fileName,
int mpegFlags,
boolean preview)
Captures from a devices MPEG pin or an eventual additional hardware or software MPEG Encoder "belonging" to the device. |
void |
changeCaptureFile(java.lang.String newPath,
boolean startRecording)
Once a capture file, compression etc. |
static DSCapture |
fromUserDialog(java.awt.Frame dialogParent,
int flags,
java.beans.PropertyChangeListener pcl)
Presents a dialog that users can select video and audio devices from and preconfigure those in terms of output formats. |
DSCapture.CaptureDevice |
getActiveAudioDevice()
|
int[] |
getActiveDeviceIndices()
Returns the index into video and audio devices for the currently active devices. |
DSCapture.CaptureDevice |
getActiveVideoDevice()
|
int[] |
getFrameDropInfo()
Returns the number of captured & dropped frames from a video device when recording. |
int |
getState()
Returns the current state of the class, i.e PREVIEW, ARMED or RECORDING |
void |
lockVolume(float volume)
Locks the audio volume over multiple state changes. |
static DSFilterInfo[][] |
queryDevices()
This no parameter device query version calls through to queryDevices(1) and returns resolved DSFilterInfos including pin and format information. |
static DSFilterInfo[][] |
queryDevices(int flags)
Static method to retrieve information about the system's capture capabilities without creating concrete device instances. |
void |
record()
Toggles recording when capture file has been set. |
void |
setCaptureFile(java.lang.String fileName,
DSFilterInfo videoEncoder,
DSFilterInfo audioEncoder,
boolean preview)
Sets the file captured data will be written to. When %preview is set to true dsj will allways try to keep preview going while waiting for the command that starts recording and during grabbing. |
void |
setMasterStream(int stream)
Sets the "master stream" used for synchronizing audio and video on capture. |
void |
setPreview()
Reset the graph into preview mode after a capture file had been set. |
| 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 PREVIEW
public static final int ARMED
public static final int RECORDING
public static final int MST_NONE
public static final int MST_VIDEO
public static final int MST_AUDIO
public static final int RESOLVE_OUTPUTS
public static final int RESOLVE_INPUTS
public static final int SKIP_VIDEO
public static final int SKIP_AUDIO
public static final int SKIP_XBARS
public static final int SKIP_BDA
public static final int MAX_RESIZEABLE
public static final int STILL_ENABLED
| Constructor Detail |
|---|
public DSCapture(int flags,
DSFilterInfo videoDeviceInfo,
boolean captureAudioFromVideoDevice,
DSFilterInfo audioDeviceInfo,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJException
public DSCapture(int flags,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJException| Method Detail |
|---|
public static DSCapture fromUserDialog(java.awt.Frame dialogParent,
int flags,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJExceptionpublic static DSFilterInfo[][] queryDevices()
public static DSFilterInfo[][] queryDevices(int flags)
public DSCapture.CaptureDevice getActiveVideoDevice()
public DSCapture.CaptureDevice getActiveAudioDevice()
public DSCapture.CaptureDevice activateDevice(DSFilterInfo info)
public void setPreview()
public int[] getActiveDeviceIndices()
public void setCaptureFile(java.lang.String fileName,
DSFilterInfo videoEncoder,
DSFilterInfo audioEncoder,
boolean preview)
public void changeCaptureFile(java.lang.String newPath,
boolean startRecording)
public void captureMPEG(java.lang.String fileName,
int mpegFlags,
boolean preview)
throws DSJException
DSJExceptionpublic void record()
public int getState()
public int[] getFrameDropInfo()
throws DSJException
DSJException
public void setMasterStream(int stream)
throws DSJException
DSJException
public void lockVolume(float volume)
throws DSJException
DSJException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||