public class DSStreamBufferGraph extends DSFiltergraph
DSFiltergraph.DSAudioStreamACTIVATING, ANAMORPHIC, ASYNC_BUFFER_GET, ASYNC_BUFFER_REQ, AUDIO_BUFFER_REQUEST, BDA, BDA_PRG_CHANGED, BDA_SCAN_PROGRESS, BDA_SCANNED_FREQ, BDA_SIG_REC, BUFFER_COMPLETE, BUFFERING, CALLER, CAP_STATE_CHANGED, CAPTURE, CLOSED, CLOSING, COMP_AUDIO_BUFFER_REQ, COMP_BUFFER_FILLED, COMP_VIDEO_BUFFER_REQ, D3D9, DD7, DECKLINK, DELIVER_AUDIO, DES_ERROR, DONE, DV, DV_STATE_CHANGED, DVD, DVD_FORMAT_CHANGED, DVD_MENU_ENABLED, E_CANT_PUMP_AUDIO, E_INIT_HEADLESS, EDITABLE, ENTER_FS, EPG, EVR, EXIT_FS, EXPORT_DONE, EXPORT_FINISHING, EXPORT_PROGRESS, EXPORT_STARTED, EXT_API_EVENT, FILTER_CHANGED, FORMAT_CHANGED, FRAME_CALLBACK, FRAME_LOCKED, FRAME_NOTIFY, GD, GE_DEVICE_CONNECTED, GE_DEVICE_LOST, GE_REF_REC_STOPPED, GRAPH, GRAPH_CHANGED, GRAPH_ERROR, GRAPH_EVENT, HDV, HDV_STATE_CHANGED, HEADLESS, INDEXER_DONE, INDEXER_STARTED, INIT_MUTED, INIT_PAUSED, INITIALIZED, IP_READY, J2D, JAVA_AUTODRAW, JAVA_POLL, JAVA_POLL_RGB, JAVASOUND, KEY_EVENT, KF_NOTIFY, LOCK_BUFFER, LOOP, MGD, MOUSE_ENABLED, MOUSE_EVENT, MOVIE, NATIVE_FORCE_GDI, NIO_UPDATE, NO_AMW, NO_SYNC, NULL, ONESHOT, OVERLAY, OVERLAY_BUFFER_REQUEST, PLAYLIST_PARSED, PREVIEW, RENDER_NATIVE, RESTART_REQ, RGB32, RTCP_EVENT, RTMP_EVENT, RTMP_SO_CHANGED, RTMP_STATE_CHANGED, SAMPLE_BUFFER_FILLED, SAVE_DONE, SAVE_STARTED, SBE, SBE_REC_STATE_CHANGED, SERVICE_ERROR, SERVICE_EVENT, SINK_ERROR, SINK_STATE_CHANGED, SIZE_CHANGED, SOURCE_ERROR, SOURCE_STATE_CHANGED, SOURCE_STATE_NOTIFY, SOURCE_USER_DATA, STILL_IMG_RECEIVED, STREAM_SEEK, SUBCLASS_EVENT, SUBSTREAM_INFO, SWING, SYNC_BUFFER_REQ, TABLE_RECEIVED, TIME_FORMAT_CHANGED, TRANS_IN_PLACE, TRANSPORT, TS_BUFFER_FILLED, type, URL_CHANGED, VIDEO_BUFFER_REQUEST, VMR_EMBED, VMR7, VMR9, VPJ, YUV, YUV_ORG| Constructor and Description |
|---|
DSStreamBufferGraph(int flags,
StreamBufferSource sbs,
DSFilterInfo mpegDecoder,
DSFilterInfo audioDecoder,
java.beans.PropertyChangeListener pcl) |
DSStreamBufferGraph(int flags,
StreamBufferSource sbs,
java.beans.PropertyChangeListener pcl) |
| Modifier and Type | Method and Description |
|---|---|
void |
controlSourceGraph(int[] params)
Called from StreamBufferSource subclasses, not to be used by application code, which should instead use
StreamBufferSource.controlSource with the parameters supported by the subclass.
|
static StreamBufferSource |
createNonStandardSource(int type,
DSFilterInfo info,
DSFilterInfo audioInfo,
int dvFlags) |
static StreamBufferSource |
createSource(int type,
DSFilterInfo info,
int flags) |
java.lang.String |
getCaptureFile() |
int |
getContentDuration()
Returns total available content time in ringbuffer, that is: content end - content start.
|
int |
getContentEnd()
Returns time of the latest available content in the ringbuffer.
|
int |
getContentStart()
Returns time of the earliest available content in the ringbuffer.
|
int |
getContentTime() |
int |
getState() |
static DSFilterInfo[][] |
getStreamBufferSourceDevices(int type,
boolean mpeg_dv)
Performs a capture device query and optionally returns only devices that are directly
compliant with the StreamBufferEngine, i.e.
|
void |
record()
Toggles recording when capture file has been set
This overridden DSFiltergraph method will create content recordings.
|
void |
referenceRecord(int msecIn,
int msecOut)
This method will create reference recordings.
|
void |
setCaptureFile(java.lang.String filePath)
Sets the file both record() and referenceRecord() will write to.
|
void |
setTimeValue(int time)
Set (movie) position to %time (milliseconds)
|
static void |
setupEnvironment(java.lang.String tempDir,
int fileCount,
int fileDurationInSeconds)
Sets up the backing files for the StreamBuffer engine.
|
addColorSpaceConverter, addFilterToGraph, addNotify, addPropertyChangeListener, asComponent, connectDump, connectSink, createDSFiltergraph, dispose, dumpGraph, findFilterByName, findRenderer, flipImage, getActive, getAspectLocked, getAspectRatio, getAudioProperties, getAudioStream, getBitDepth, getData, getDataSize, getDisplaySize, getDuration, getEffectiveFrameRate, getFrameRate, getFullScreenWindow, getID, getImage, getInfo, getLoop, getMediaDimension, getMinimumSize, getOutFlags, getPan, getPreferredSize, getRate, getRendererControls, getTime, getVolume, getYUVType, goFullScreen, graphChanged, hasMediaOfType, insertFilter, insertOverlayFilter, insertSampleAccessFilter, insertTransInPlaceFilter, isFullScreen, isSubGraph, leaveFullScreen, listFilters, lockAspectRatio, paint, pause, play, queryCapability, redraw, register, reloadFilter, removeFilter, removeNotify, removePropertyChangeListener, removeSink, setAudioRenderer, setAviExportOptions, setBounds, setClockSource, setEvent, setLoop, setPan, setPreferredSize, setRate, setVolume, step, stop, tearDown, unsync, updatecreateBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategyaction, 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, revalidate, 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, validatepublic DSStreamBufferGraph(int flags,
StreamBufferSource sbs,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJExceptionpublic DSStreamBufferGraph(int flags,
StreamBufferSource sbs,
DSFilterInfo mpegDecoder,
DSFilterInfo audioDecoder,
java.beans.PropertyChangeListener pcl)
throws DSJException
DSJExceptionpublic int getContentStart()
public int getContentEnd()
public int getContentDuration()
public int getContentTime()
public void setTimeValue(int time)
throws DSJException
DSFiltergraphsetTimeValue in class DSFiltergraphDSJExceptionpublic void setCaptureFile(java.lang.String filePath)
throws DSJException
DSJExceptionpublic java.lang.String getCaptureFile()
public void record()
throws DSJException
DSJExceptionpublic void referenceRecord(int msecIn,
int msecOut)
throws DSJException
DSJExceptionpublic int getState()
public static DSFilterInfo[][] getStreamBufferSourceDevices(int type, boolean mpeg_dv)
public static StreamBufferSource createSource(int type, DSFilterInfo info, int flags)
public static StreamBufferSource createNonStandardSource(int type, DSFilterInfo info, DSFilterInfo audioInfo, int dvFlags)
public void controlSourceGraph(int[] params)
public static void setupEnvironment(java.lang.String tempDir,
int fileCount,
int fileDurationInSeconds)