public class DSFiltergraph
extends java.awt.Canvas
| Modifier and Type | Class and Description |
|---|---|
class |
DSFiltergraph.DSAudioStream
Nested class that wraps the stream of audio bytes dsj
delivers when the DELIVER_AUDIO bit is set on construction.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVATING
DSFiltergraph events
|
static int |
ANAMORPHIC
DSFiltergraph rendering & setup flags
|
static int |
ASYNC_BUFFER_GET
DSFiltergraph events
|
static int |
ASYNC_BUFFER_REQ
DSFiltergraph events
|
static int |
AUDIO_BUFFER_REQUEST
DSFiltergraph events
|
static int |
BDA
DSFiltergraph types
|
static int |
BDA_PRG_CHANGED
DSFiltergraph events
|
static int |
BDA_SCAN_PROGRESS
DSFiltergraph events
|
static int |
BDA_SCANNED_FREQ
DSFiltergraph events
|
static int |
BDA_SIG_REC
DSFiltergraph events
|
static int |
BUFFER_COMPLETE
DSFiltergraph events
|
static int |
BUFFERING
DSFiltergraph events
|
static int |
CALLER
Event delivery thread constants
|
static int |
CAP_STATE_CHANGED
DSFiltergraph events
|
static int |
CAPTURE
DSFiltergraph types
|
static int |
CLOSED
DSFiltergraph events
|
static int |
CLOSING
DSFiltergraph events
|
static int |
COMP_AUDIO_BUFFER_REQ
DSFiltergraph events
|
static int |
COMP_BUFFER_FILLED
DSFiltergraph events
|
static int |
COMP_VIDEO_BUFFER_REQ
DSFiltergraph events
|
static int |
D3D9
DSFiltergraph rendering & setup flags
|
static int |
DD7
DSFiltergraph rendering & setup flags
|
static int |
DECKLINK
Extension API identifiers
|
static int |
DELIVER_AUDIO
DSFiltergraph rendering & setup flags
|
static int |
DES_ERROR
DSFiltergraph events
|
static int |
DONE
DSFiltergraph events
|
static int |
DV
DSFiltergraph types
|
static int |
DV_STATE_CHANGED
DSFiltergraph events
|
static int |
DVD
DSFiltergraph types
|
static int |
DVD_FORMAT_CHANGED
DSFiltergraph events
|
static int |
DVD_MENU_ENABLED
DSFiltergraph rendering & setup flags
|
static int |
E_CANT_PUMP_AUDIO
DSFiltergraph errors
|
static int |
E_INIT_HEADLESS
DSFiltergraph errors
|
static int |
EDITABLE
DSFiltergraph types
|
static int |
ENTER_FS
DSFiltergraph events
|
static int |
EPG
DSFiltergraph events
|
static int |
EVR
DSFiltergraph rendering & setup flags
|
static int |
EXIT_FS
DSFiltergraph events
|
static int |
EXPORT_DONE
DSFiltergraph events
|
static int |
EXPORT_FINISHING
DSFiltergraph events
|
static int |
EXPORT_PROGRESS
DSFiltergraph events
|
static int |
EXPORT_STARTED
DSFiltergraph events
|
static int |
EXT_API_EVENT
DSFiltergraph events
|
static int |
FILTER_CHANGED
DSFiltergraph events
|
static int |
FORMAT_CHANGED
DSFiltergraph events
|
static int |
FRAME_CALLBACK
DSFiltergraph rendering & setup flags
|
static int |
FRAME_LOCKED
DSFiltergraph rendering & setup flags
|
static int |
FRAME_NOTIFY
DSFiltergraph events
|
static int |
GD
Event delivery thread constants
|
static int |
GE_DEVICE_CONNECTED
Graph events
|
static int |
GE_DEVICE_LOST
Graph events
|
static int |
GE_REF_REC_STOPPED
Graph events
|
static int |
GRAPH
DSFiltergraph types
|
static int |
GRAPH_CHANGED
DSFiltergraph events
|
static int |
GRAPH_ERROR
DSFiltergraph events
|
static int |
GRAPH_EVENT
DSFiltergraph events
|
static int |
HDV
DSFiltergraph types
|
static int |
HDV_STATE_CHANGED
DSFiltergraph events
|
static int |
HEADLESS
DSFiltergraph rendering & setup flags
|
static int |
INDEXER_DONE
DSFiltergraph events
|
static int |
INDEXER_STARTED
DSFiltergraph events
|
static int |
INIT_MUTED
DSFiltergraph rendering & setup flags
|
static int |
INIT_PAUSED
DSFiltergraph rendering & setup flags
|
static int |
INITIALIZED
DSFiltergraph events
|
static int |
IP_READY
DSFiltergraph events
|
static int |
J2D
DSFiltergraph rendering & setup flags
|
static int |
JAVA_AUTODRAW
DSFiltergraph rendering & setup flags
|
static int |
JAVA_POLL
DSFiltergraph rendering & setup flags
|
static int |
JAVA_POLL_RGB
DSFiltergraph rendering & setup flags
|
static int |
JAVASOUND
DSFiltergraph rendering & setup flags
|
static int |
KEY_EVENT
DSFiltergraph events
|
static int |
KF_NOTIFY
DSFiltergraph events
|
static int |
LOCK_BUFFER
DSFiltergraph events
|
static int |
LOOP
DSFiltergraph events
|
static int |
MGD
Extension API identifiers
|
static int |
MOUSE_ENABLED
DSFiltergraph rendering & setup flags
|
static int |
MOUSE_EVENT
DSFiltergraph events
|
static int |
MOVIE
DSFiltergraph types
|
static int |
NATIVE_FORCE_GDI
DSFiltergraph rendering & setup flags
|
static int |
NIO_UPDATE
DSFiltergraph events
|
static int |
NO_AMW
DSFiltergraph rendering & setup flags
|
static int |
NO_SYNC
DSFiltergraph rendering & setup flags
|
static int |
NULL
DSFiltergraph rendering & setup flags
|
static int |
ONESHOT
Event delivery thread constants
|
static int |
OVERLAY
DSFiltergraph rendering & setup flags
|
static int |
OVERLAY_BUFFER_REQUEST
DSFiltergraph events
|
static int |
PLAYLIST_PARSED
DSFiltergraph events
|
static int |
PREVIEW
Common flag values
|
static int |
RENDER_NATIVE
DSFiltergraph rendering & setup flags
|
static int |
RESTART_REQ
DSFiltergraph events
|
static int |
RGB32
DSFiltergraph rendering & setup flags
|
static int |
RTCP_EVENT
DSFiltergraph events
|
static int |
RTMP_EVENT
DSFiltergraph events
|
static int |
RTMP_SO_CHANGED
DSFiltergraph events
|
static int |
RTMP_STATE_CHANGED
DSFiltergraph events
|
static int |
SAMPLE_BUFFER_FILLED
DSFiltergraph events
|
static int |
SAVE_DONE
DSFiltergraph events
|
static int |
SAVE_STARTED
DSFiltergraph events
|
static int |
SBE
DSFiltergraph types
|
static int |
SBE_REC_STATE_CHANGED
DSFiltergraph events
|
static int |
SERVICE_ERROR
DSFiltergraph events
|
static int |
SERVICE_EVENT
DSFiltergraph events
|
static int |
SINK_ERROR
DSFiltergraph events
|
static int |
SINK_STATE_CHANGED
DSFiltergraph events
|
static int |
SIZE_CHANGED
DSFiltergraph events
|
static int |
SOURCE_ERROR
DSFiltergraph events
|
static int |
SOURCE_STATE_CHANGED
DSFiltergraph events
|
static int |
SOURCE_STATE_NOTIFY
DSFiltergraph events
|
static int |
SOURCE_USER_DATA
DSFiltergraph events
|
static int |
STILL_IMG_RECEIVED
DSFiltergraph events
|
static int |
STREAM_SEEK
DSFiltergraph events
|
static int |
SUBCLASS_EVENT
DSFiltergraph events
|
static int |
SUBSTREAM_INFO
DSFiltergraph events
|
static int |
SWING
Event delivery thread constants
|
static int |
SYNC_BUFFER_REQ
DSFiltergraph events
|
static int |
TABLE_RECEIVED
DSFiltergraph events
|
static int |
TIME_FORMAT_CHANGED
DSFiltergraph events
|
static int |
TRANS_IN_PLACE
DSFiltergraph events
|
static int |
TRANSPORT
DSFiltergraph events
|
static int |
TS_BUFFER_FILLED
DSFiltergraph events
|
int |
type |
static int |
URL_CHANGED
DSFiltergraph events
|
static int |
VIDEO_BUFFER_REQUEST
DSFiltergraph events
|
static int |
VMR_EMBED
DSFiltergraph rendering & setup flags
|
static int |
VMR7
DSFiltergraph rendering & setup flags
|
static int |
VMR9
DSFiltergraph rendering & setup flags
|
static int |
VPJ
Extension API identifiers
|
static int |
YUV
DSFiltergraph rendering & setup flags
|
static int |
YUV_ORG
DSFiltergraph rendering & setup flags
|
| Constructor and Description |
|---|
DSFiltergraph() |
| Modifier and Type | Method and Description |
|---|---|
DSFilter |
addColorSpaceConverter(int mode,
int reserved) |
DSFilter |
addFilterToGraph(DSFilterInfo info)
Adds a filter to the native filtergraph and creates a DSFilter object representing it.
|
void |
addNotify() |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Instead of defining another interface
DSFiltergraph uses existing java api and fires PropertyChangeEvents
when properties change.
|
java.awt.Component |
asComponent()
Depending on rendering mode,
returns either the canvas DSFiltergraph extends or
a JPanel it renders into
|
DSFilter |
connectDump(DSFilter.DSPin toPin,
java.lang.String outputFilePath)
Connects a filter that will write raw data of any type - as received from the given pin - to a file at %outputFilePath.
|
int |
connectSink(Sink sink)
Connects the given Sink object to the graph.
|
static DSFiltergraph |
createDSFiltergraph(java.lang.String path,
int flags,
java.beans.PropertyChangeListener pcl)
"Factory" method.
|
void |
dispose()
Disposes off all native & java structures and is to be seen as a mandatory call when you are done with a Filtergraph.
|
void |
dumpGraph(boolean dc)
Prints a listing of filters in the graph (& evtl.
|
DSFilter |
findFilterByName(java.lang.String name)
Tries to find a filter of the given name in the graph.
|
DSFilter |
findRenderer(int majorType)
Tries to find the renderer for the given major media type (DSMediaType.MT_..).
|
int |
flipImage(int flip)
Flips the display and eventually the return of getImage().
|
boolean |
getActive()
Returns the internal state of the graph.
|
boolean |
getAspectLocked() |
int[] |
getAspectRatio() |
int[] |
getAudioProperties()
Returns sample rate, samplesize and number of channels of a graph's audio stream if any.
|
DSFiltergraph.DSAudioStream |
getAudioStream()
Returns the constructed DSAudioStream when set up with DELIVER_AUDIO bit set.
|
int |
getBitDepth()
Returns bitDepth of uncompressed data.
|
byte[] |
getData()
Returns native uncompressed BGR or RGB image data in a byte array (YUV when YUV flags - YUV, YUV_ORG - have been set).
|
int |
getDataSize() |
java.awt.Dimension |
getDisplaySize()
Returns rendering component's boundary in a java.awt.Dimension object.
|
int |
getDuration()
Returns graph duration if known, expressed in milliseconds
|
float |
getEffectiveFrameRate()
Returns the effective framerate when the Filtergraph is running
|
float |
getFrameRate()
Returns media, capture device or DV tape derived framerate.
|
java.awt.Frame |
getFullScreenWindow() |
long |
getID()
Returns the native memory pointer.
|
java.awt.image.BufferedImage |
getImage()
Returns native uncompressed BGR or RGB (ARGB in VMR9 and EVR modes) data in
a BufferedImage object backed by a DataBufferByte.
|
java.lang.String |
getInfo() |
boolean |
getLoop() |
java.awt.Dimension |
getMediaDimension()
Returns original media dimension.
|
java.awt.Dimension |
getMinimumSize() |
int |
getOutFlags()
Returns the flag int passed on construction, with some bits possibly changed.
|
float |
getPan() |
java.awt.Dimension |
getPreferredSize() |
float |
getRate()
Returns current playback rate.
|
RendererControls |
getRendererControls()
Gets the RendererControls object for the renderer this Filtergraph has been constructed with.
|
int |
getTime()
Returns current playback position in milliseconds.
|
float |
getVolume() |
int |
getYUVType()
Returns the YUV type of image data as a packed FCC when set up with YUV flag, -1 otherwise.
|
void |
goFullScreen(java.awt.GraphicsDevice device,
int flags)
Displays graph in fullscreen mode.
|
void |
graphChanged() |
boolean |
hasMediaOfType(int majorType)
Returns true if the filtergraph has streams of the given major media type (DSMediaType.MT_AUDIO / MT_VIDEO)
|
DSFilter |
insertFilter(DSFilter before,
DSFilter after,
DSFilterInfo toInsert)
Tries to insert a filter described by the FilterInfo argument between the two given filters and returns it
If the method fails, dsj tries to restore the graph to its previous state. |
JavaOverlayFilter |
insertOverlayFilter(int flags)
Inserts the dsj_JavaOverlayFilter and establishes communication with it.
|
DSSampleBuffer |
insertSampleAccessFilter(DSFilter before,
DSFilter.DSPin srcPin,
DSFilter after,
int flags)
Installs an nio.ByteBuffer between the two specified filters from which the application can read - depending on the
insertion point - compressed or uncompressed data.
|
DSFilter |
insertTransInPlaceFilter(DSFilter before,
DSFilter.DSPin srcPin,
DSFilter after,
JTransInPlaceFilter jtip,
int flags)
Inserts the native part of dsj's TransInPlace filter between the two given filters and establishes communication with
the supplied extension of JTransInPlaceFilter whose transform method will then be called from the filtergraph.
|
boolean |
isFullScreen() |
boolean |
isSubGraph() |
void |
leaveFullScreen()
Closes the fullscreen window.
|
DSFilter[] |
listFilters()
Returns all the filters in the filtergraph as DSFilter objects.
|
void |
lockAspectRatio(boolean locked)
Enables or disables fixed ratio resize behavior.
|
void |
paint(java.awt.Graphics g) |
void |
pause()
Temporarily pauses the graph
|
void |
play()
Runs the graph
|
boolean |
queryCapability(int c)
Queries for some IAMSeeking capabilities.
|
void |
redraw()
Do not call paint() or repaint() on a natively rendering DSFiltergraph
directly.
|
void |
register(COMObject co)
Used with COM queries, do not use in application code!
|
void |
reloadFilter(DSFilter filter)
Disconnects and removes a filter then reinserts and reconnects
it.
|
void |
removeFilter(DSFilter filter,
boolean restart)
Removes the given filter from the graph.
|
void |
removeNotify() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl) |
boolean |
removeSink()
Removes a connected sink and puts the graph back into its "normal" initial display state.
|
void |
setAudioRenderer(DSFilterInfo ar)
Directs audio output from this filtergraph to the given sound device.
|
void |
setAviExportOptions(int interleavingMode,
int interleavingFreq,
int audioPreroll,
boolean synced,
int flags)
Sets some (avi) exporting parameters.
|
void |
setBounds(int jx,
int jy,
int jw,
int jh) |
boolean |
setClockSource(DSFilter refClock)
Sets the filter to provide the reference clock for the filtergraph (by default this usually is set to the audio
renderer).
|
void |
setEvent(java.beans.PropertyChangeEvent event,
int th)
Called by some lower level classes to get events posted to listeners.
|
void |
setLoop(boolean looping) |
void |
setPan(float pan)
Set audio balance (-1.0 left, 1.0 right)
|
void |
setPreferredSize(java.awt.Dimension dim) |
void |
setRate(float rate)
Set the playback rate (-1.0 to 2.0).
|
void |
setTimeValue(int time)
Set (movie) position to %time (milliseconds)
|
void |
setVolume(float vol)
(1.0 - full volume, 0 silence).
|
void |
step(int dir)
Step fwd or bwd (set %dir to 1 or -1).
|
void |
stop()
Stops the graph.
|
void |
tearDown(DSFilter fromFilter,
boolean removeThatFilter)
Disconnects and removes all filters downstream from %fromFilter, optionally also removing that filter.
|
void |
unsync()
Turns off the graph clock and makes the filtergraph run fast as it possibly can.
|
void |
update(java.awt.Graphics g) |
createBufferStrategy, 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 static final int CLOSED
public static final int ACTIVATING
public static final int INITIALIZED
public static final int IP_READY
public static final int TRANSPORT
public static final int DV_STATE_CHANGED
public static final int FORMAT_CHANGED
public static final int CAP_STATE_CHANGED
public static final int EXPORT_PROGRESS
public static final int LOOP
public static final int DONE
public static final int FRAME_NOTIFY
public static final int GRAPH_EVENT
public static final int GRAPH_ERROR
public static final int BDA_SCAN_PROGRESS
public static final int BDA_SCANNED_FREQ
public static final int BDA_SIG_REC
public static final int PLAYLIST_PARSED
public static final int BUFFERING
public static final int BUFFER_COMPLETE
public static final int KF_NOTIFY
public static final int MOUSE_EVENT
public static final int KEY_EVENT
public static final int CLOSING
public static final int HDV_STATE_CHANGED
public static final int SBE_REC_STATE_CHANGED
public static final int ENTER_FS
public static final int EXIT_FS
public static final int NIO_UPDATE
public static final int GRAPH_CHANGED
public static final int FILTER_CHANGED
public static final int SIZE_CHANGED
public static final int DVD_FORMAT_CHANGED
public static final int TIME_FORMAT_CHANGED
public static final int URL_CHANGED
public static final int TS_BUFFER_FILLED
public static final int EPG
public static final int BDA_PRG_CHANGED
public static final int SUBCLASS_EVENT
public static final int EXT_API_EVENT
public static final int EXPORT_STARTED
public static final int EXPORT_FINISHING
public static final int EXPORT_DONE
public static final int SAVE_STARTED
public static final int SAVE_DONE
public static final int INDEXER_STARTED
public static final int INDEXER_DONE
public static final int DES_ERROR
public static final int SUBSTREAM_INFO
public static final int SOURCE_STATE_CHANGED
public static final int SOURCE_USER_DATA
public static final int SOURCE_ERROR
public static final int SOURCE_STATE_NOTIFY
public static final int SINK_STATE_CHANGED
public static final int SINK_ERROR
public static final int RTMP_EVENT
public static final int RTMP_STATE_CHANGED
public static final int RTMP_SO_CHANGED
public static final int RTCP_EVENT
public static final int SERVICE_EVENT
public static final int SERVICE_ERROR
public static final int VIDEO_BUFFER_REQUEST
public static final int OVERLAY_BUFFER_REQUEST
public static final int AUDIO_BUFFER_REQUEST
public static final int COMP_BUFFER_FILLED
public static final int SAMPLE_BUFFER_FILLED
public static final int COMP_VIDEO_BUFFER_REQ
public static final int COMP_AUDIO_BUFFER_REQ
public static final int SYNC_BUFFER_REQ
public static final int ASYNC_BUFFER_REQ
public static final int ASYNC_BUFFER_GET
public static final int STREAM_SEEK
public static final int RESTART_REQ
public static final int TRANS_IN_PLACE
public static final int LOCK_BUFFER
public static final int TABLE_RECEIVED
public static final int STILL_IMG_RECEIVED
public static final int GE_DEVICE_LOST
public static final int GE_DEVICE_CONNECTED
public static final int GE_REF_REC_STOPPED
public static final int MOVIE
public static final int DVD
public static final int GRAPH
public static final int DV
public static final int CAPTURE
public static final int SBE
public static final int BDA
public static final int EDITABLE
public static final int HDV
public static final int RENDER_NATIVE
public static final int DD7
public static final int D3D9
public static final int JAVA_AUTODRAW
public static final int J2D
public static final int JAVA_POLL
public static final int JAVA_POLL_RGB
public static final int HEADLESS
public static final int VMR_EMBED
public static final int VMR9
public static final int OVERLAY
public static final int VMR7
public static final int NATIVE_FORCE_GDI
public static final int NULL
public static final int EVR
public static final int DELIVER_AUDIO
public static final int JAVASOUND
public static final int INIT_PAUSED
public static final int DVD_MENU_ENABLED
public static final int MOUSE_ENABLED
public static final int NO_AMW
public static final int INIT_MUTED
public static final int NO_SYNC
public static final int FRAME_CALLBACK
public static final int YUV
public static final int YUV_ORG
public static final int RGB32
public static final int ANAMORPHIC
public static final int FRAME_LOCKED
public static final int E_INIT_HEADLESS
public static final int E_CANT_PUMP_AUDIO
public static final int PREVIEW
public static final int MGD
public static final int DECKLINK
public static final int VPJ
public static final int GD
public static final int CALLER
public static final int SWING
public static final int ONESHOT
public int type
public static DSFiltergraph createDSFiltergraph(java.lang.String path, int flags, java.beans.PropertyChangeListener pcl) throws DSJException
DSJExceptionpublic long getID()
public java.awt.image.BufferedImage getImage()
throws DSJException
DSJExceptionpublic byte[] getData()
public void play()
public void stop()
throws DSJException
DSJExceptionpublic void pause()
public void setRate(float rate)
throws DSJException
DSJExceptionpublic void setTimeValue(int time)
throws DSJException
DSJExceptionpublic int getTime()
throws DSJException
DSJExceptionpublic float getRate()
throws DSJException
DSJExceptionpublic void step(int dir)
throws DSJException
DSJExceptionpublic void setLoop(boolean looping)
throws DSJException
DSJExceptionpublic boolean getLoop()
public java.awt.Dimension getMediaDimension()
public java.awt.Dimension getDisplaySize()
public void setBounds(int jx,
int jy,
int jw,
int jh)
throws DSJException
setBounds in class java.awt.ComponentDSJExceptionpublic void addNotify()
throws DSJException
addNotify in class java.awt.CanvasDSJExceptionpublic void removeNotify()
removeNotify in class java.awt.Componentpublic int getYUVType()
public java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Componentpublic void setPreferredSize(java.awt.Dimension dim)
setPreferredSize in class java.awt.Componentpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Componentpublic int getBitDepth()
public int getDataSize()
public int getDuration()
public float getFrameRate()
throws DSJException
DSJExceptionpublic float getEffectiveFrameRate()
throws DSJException
DSJExceptionpublic void setVolume(float vol)
throws DSJException
DSJExceptionpublic float getVolume()
throws DSJException
DSJExceptionpublic void setPan(float pan)
throws DSJException
DSJExceptionpublic float getPan()
throws DSJException
DSJExceptionpublic boolean queryCapability(int c)
public void dispose()
public void register(COMObject co)
public void goFullScreen(java.awt.GraphicsDevice device,
int flags)
public void leaveFullScreen()
public java.awt.Frame getFullScreenWindow()
public void dumpGraph(boolean dc)
public DSFilter[] listFilters() throws DSJException
DSJExceptionpublic DSFilter addFilterToGraph(DSFilterInfo info) throws DSJException
DSJExceptionpublic DSFilter findFilterByName(java.lang.String name) throws DSJException
DSJExceptionpublic DSFilter findRenderer(int majorType)
public void tearDown(DSFilter fromFilter, boolean removeThatFilter) throws DSJException
DSJExceptionpublic void removeFilter(DSFilter filter, boolean restart) throws DSJException
DSJExceptionpublic void reloadFilter(DSFilter filter) throws DSJException
DSJExceptionpublic DSFilter insertFilter(DSFilter before, DSFilter after, DSFilterInfo toInsert) throws java.lang.IllegalArgumentException, DSJException
java.lang.IllegalArgumentExceptionDSJExceptionpublic void setAudioRenderer(DSFilterInfo ar) throws DSJException
DSJExceptionpublic JavaOverlayFilter insertOverlayFilter(int flags) throws DSJException
DSJExceptionpublic boolean setClockSource(DSFilter refClock) throws DSJException
DSJExceptionpublic void unsync()
throws DSJException
DSJExceptionpublic DSSampleBuffer insertSampleAccessFilter(DSFilter before, DSFilter.DSPin srcPin, DSFilter after, int flags)
public DSFilter insertTransInPlaceFilter(DSFilter before, DSFilter.DSPin srcPin, DSFilter after, JTransInPlaceFilter jtip, int flags) throws DSJException
DSJExceptionpublic DSFilter connectDump(DSFilter.DSPin toPin, java.lang.String outputFilePath) throws DSJException
DSJExceptionpublic DSFilter addColorSpaceConverter(int mode, int reserved)
public int getOutFlags()
public java.lang.String getInfo()
public java.awt.Component asComponent()
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
addPropertyChangeListener in class java.awt.Componentpublic void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
removePropertyChangeListener in class java.awt.Componentpublic void lockAspectRatio(boolean locked)
public boolean getAspectLocked()
public int[] getAspectRatio()
public int flipImage(int flip)
public void graphChanged()
public DSFiltergraph.DSAudioStream getAudioStream()
public boolean getActive()
public RendererControls getRendererControls() throws DSJException
DSJExceptionpublic int connectSink(Sink sink) throws DSJException
DSJExceptionpublic boolean removeSink()
throws DSJException
DSJExceptionpublic void setAviExportOptions(int interleavingMode,
int interleavingFreq,
int audioPreroll,
boolean synced,
int flags)
public boolean isSubGraph()
public boolean hasMediaOfType(int majorType)
public boolean isFullScreen()
public int[] getAudioProperties()
public void setEvent(java.beans.PropertyChangeEvent event,
int th)
public void update(java.awt.Graphics g)
update in class java.awt.Canvaspublic void redraw()
public void paint(java.awt.Graphics g)
paint in class java.awt.Canvas