|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.DSEnvironment
public class DSEnvironment
DSEnvironment manages general setup tasks.
| Constructor Summary | |
|---|---|
DSEnvironment()
|
|
| Method Summary | |
|---|---|
static DSFiltergraph[] |
getActiveGraphs()
Returns an array holding all currently active filtergraphs. |
static DSMediaType[] |
getAudioEncoderMediaTypes(DSFilterInfo encoder,
DSFiltergraph graph)
Returns the formats an AudioEncoder can produce from the given filtergraph's audio stream. |
static org.w3c.dom.Node |
getClassNode(java.lang.String className,
org.w3c.dom.Document d)
|
static int |
getDebugLevel()
|
static java.lang.String |
getDllVersion()
|
static DSFilterInfo[][] |
getEncoders()
Returns a 2 dimensional FilterInfo array holding the installed video and audio compressors. WindowsMedia encoders are no longer included here - see DSMovie.export(..) for information on how to write WindowsMedia. |
static java.lang.String[] |
getFilterCategories()
|
static DSFilterInfo[] |
getFilters(int category)
Returns a FilterInfo array for installed filters in the given category (see constants). |
static java.lang.String |
getJarVersion()
|
static int |
getOSVersion()
Returns an adapted Windows version number (XP - 5, Vista - 6, 7 on Windows7, despite the OS reporting 6.1) |
static int |
getProcessID()
Returns the Windows processID we're running unter |
static java.lang.String |
getProperty(int type)
|
static DSJService |
getService(DSFiltergraph onGraph,
java.lang.String guid,
int flags)
Creates a DSJService for the given GUID. |
static java.lang.String |
getSetupPath()
|
static java.lang.String |
getSystemInfo(boolean inclPaths)
|
static int |
getVersionCode()
Returns the dll and jar version strings encoded into a 32bit integer for quick methematical comparism. |
static java.lang.String |
getVersionInfo()
|
static java.lang.String |
getXMLPreference(java.lang.String prefName)
|
static org.w3c.dom.Document |
getXMLSetup()
|
static void |
handleUncaughtException(java.lang.Thread t,
java.lang.Throwable throwable)
There are situations where uncaught java exceptions may cause damage, that dsj's native part is not able to detect and recover from alone. |
static int |
persistCodecState(DSFilterInfo codecInfo,
java.io.File output)
Permanently saves the settings for the given codec into %output. |
static boolean |
registerFilter(java.lang.String pathToAX,
boolean unregister)
Utility to (un)register DirectShow filters. |
static void |
registerGraph(DSFiltergraph graph)
Registers an activated graph with the internal track keeping mechanisms. |
static void |
schedule(java.util.TimerTask tt,
int delay,
int interval)
|
static void |
setDebugLevel(int level)
Controls the amount of debug printed by the library. |
static void |
setDefaultGraphBackground(java.awt.Color bg)
Sets the default background color for all filtergraphs' visual components, that is: the java canvas that DSFiltergraph extends or the Swing component it renders to. |
static void |
setDLLPath(java.lang.String path)
Allows to load the native dll from some other than the default locations (i.e. |
static void |
setLogFile(java.io.File f)
dsj debug and log output by default goes to System.err, use this method to direct output to a file. |
static void |
setLogFlags(int flags)
Sets options for log output - currently defined flags are LF_TIMESTAMP (to prefix each new line with a Y/M/D;H:M:S:ms timestamp) and LF_APPEND (to append to previously written logfiles rather than overwrite them). |
static void |
setLogStream(java.io.PrintStream ps)
dsj debug and log output by default goes to System.err, use this method to set a different stream to write to. |
static void |
setProperty(int property,
int value,
java.lang.String strValue)
|
static void |
setSetupPath(java.lang.String path)
Overwrites the locations, that dsj will search for the xml setup file. |
static void |
storePreference(java.lang.String key,
java.lang.String value)
Stores a preference to the setup file, set %value to null to clear the given key. |
static boolean |
unlockDLL(java.lang.String str,
long code,
long code2,
long code3)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SP_CODEPAGE
public static final int SP_TMP_DIR
public static final int SP_FILTERSTATE_DIR
public static final int SP_PROCESS_DIR
public static final int LF_TIMESTAMP
public static final int LF_APPEND
public static final int CLSID_AudioInputDeviceCategory
public static final int CLSID_AudioCompressorCategory
public static final int CLSID_AudioRendererCategory
public static final int CLSID_DeviceControlCategory
public static final int CLSID_LegacyAmFilterCategory
public static final int CLSID_TransmitCategory
public static final int CLSID_MidiRendererCategory
public static final int CLSID_VideoInputDeviceCategory
public static final int CLSID_VideoCompressorCategory
public static final int CLSID_VideoEffects1Category
public static final int CLSID_VideoEffects2Category
public static final int AM_KSCATEGORY_CAPTURE
public static final int AM_KSCATEGORY_CROSSBAR
public static final int AM_KSCATEGORY_RENDER
public static final int AM_KSCATEGORY_SPLITTER
public static final int AM_KSCATEGORY_TVAUDIO
public static final int AM_KSCATEGORY_TVTUNER
public static final int AM_KSCATEGORY_VBICODEC
public static final int CLSID_ActiveMovieCategories
public static final int CLSID_CPCAFiltersCategory
public static final int KSCATEGORY_BDA_NETWORK_PROVIDER
public static final int KSCATEGORY_BDA_RECEIVER_COMPONENT
public static final int KSCATEGORY_IP_SINK
public static final int KSCATEGORY_BDA_NETWORK_TUNER
public static final int KSCATEGORY_BDA_TRANSPORT_INFORMATION
public static final int DMOCATEGORY_AUDIO_DECODER
public static final int DMOCATEGORY_AUDIO_EFFECT
public static final int DMOCATEGORY_AUDIO_ENCODER
public static final int DMOCATEGORY_VIDEO_DECODER
public static final int DMOCATEGORY_VIDEO_EFFECT
public static final int DMOCATEGORY_VIDEO_ENCODER
public static final int DMOCATEGORY_AUDIO_CAPTURE_EFFECT
public static final int CLSID_DXA
public static final int CLSID_MFX
public static final int PINDIR_OUTPUT
public static final int PINDIR_INPUT
| Constructor Detail |
|---|
public DSEnvironment()
| Method Detail |
|---|
public static void setSetupPath(java.lang.String path)
public static java.lang.String getSetupPath()
public static void setDLLPath(java.lang.String path)
public static org.w3c.dom.Document getXMLSetup()
public static org.w3c.dom.Node getClassNode(java.lang.String className,
org.w3c.dom.Document d)
public static int getDebugLevel()
public static void setDebugLevel(int level)
public static void setLogStream(java.io.PrintStream ps)
public static void setLogFile(java.io.File f)
public static void setLogFlags(int flags)
public static int getOSVersion()
public static void setProperty(int property,
int value,
java.lang.String strValue)
public static boolean registerFilter(java.lang.String pathToAX,
boolean unregister)
throws DSJException
DSJExceptionpublic static DSFilterInfo[] getFilters(int category)
public static java.lang.String[] getFilterCategories()
public static DSFilterInfo[][] getEncoders()
public static int persistCodecState(DSFilterInfo codecInfo,
java.io.File output)
throws java.io.IOException
java.io.IOException
public static DSMediaType[] getAudioEncoderMediaTypes(DSFilterInfo encoder,
DSFiltergraph graph)
public static boolean unlockDLL(java.lang.String str,
long code,
long code2,
long code3)
public static int getProcessID()
public static java.lang.String getProperty(int type)
public static void registerGraph(DSFiltergraph graph)
public static DSFiltergraph[] getActiveGraphs()
public static void handleUncaughtException(java.lang.Thread t,
java.lang.Throwable throwable)
public static java.lang.String getSystemInfo(boolean inclPaths)
public static java.lang.String getVersionInfo()
public static java.lang.String getDllVersion()
public static java.lang.String getJarVersion()
public static int getVersionCode()
public static java.lang.String getXMLPreference(java.lang.String prefName)
public static void storePreference(java.lang.String key,
java.lang.String value)
public static void schedule(java.util.TimerTask tt,
int delay,
int interval)
public static void setDefaultGraphBackground(java.awt.Color bg)
public static DSJService getService(DSFiltergraph onGraph,
java.lang.String guid,
int flags)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||