|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.DSFilter
de.humatic.dsj.DSCapture.CaptureDevice
public class DSCapture.CaptureDevice
Nested class, extending DSFilter and wrapping a capture device, that has been added to the graph.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.humatic.dsj.DSFilter |
|---|
DSFilter.DSPin |
| Field Summary | |
|---|---|
static int |
AUDIO
Capture device types |
static int |
CAPTION
Capture device types |
static int |
CROSSBAR_1
Supported native control dialogs |
static int |
CROSSBAR_2
Supported native control dialogs |
static int |
DV
Capture device types |
static int |
MPEG
Capture device types |
static int |
PIN_CATEGORY_CAPTURE
Capture device output pin types |
static int |
PIN_CATEGORY_CC
Capture device output pin types |
static int |
PIN_CATEGORY_PREVIEW
Capture device output pin types |
static int |
PIN_CATEGORY_STILL
Capture device output pin types |
static int |
PIN_CATEGORY_VBI
Capture device output pin types |
static int |
TV_AUDIO
Supported native control dialogs |
static int |
TV_VIDEO
Supported native control dialogs |
static int |
VFW_FORMAT
Supported native control dialogs |
static int |
VFW_SOURCE
Supported native control dialogs |
static int |
VIDEO
Capture device types |
static int |
WDM_CAPTURE
Supported native control dialogs |
static int |
WDM_DEVICE
Supported native control dialogs |
static int |
WDM_PREVIEW
Supported native control dialogs |
| Fields inherited from class de.humatic.dsj.DSFilter |
|---|
PINDIR_INPUT, PINDIR_OUTPUT |
| Method Summary | |
|---|---|
boolean |
activate()
Activates this device and returns true on success. |
boolean |
canDoMPEG()
Returns true if the device can output MPEG on any pin directly on the filter or an additional custom - that is specifically belonging to this capture device - encoding filter (for example some Hauppauge WinTV cards come with either hardware or software MPEG encoders that are implemented as separate filters). Note: This method should work with devices that directly output MPEG2 (like those based on Cirrus Logic USB-DVR chips) and Hauppauge devices. |
void |
configureVDig(int TVFormat,
int flags)
Sets an analog video digitizer's TVFormat (see DSConstants ATV_...constants), vcr vertical locking behavior (bit 1 in % flags set for tape sources, not set for broadcasts) and video-port output enable (bit 2 set to enable). |
void |
connectCrossBarPins(int in,
int out,
boolean changeRelated)
Routes data in the crossbar filter from input %in to output %out, optionally also changing the routing for related audio pins. |
float |
getActualFramerate(DSFilter.DSPin outputPin)
Returns the actually delivered framerate, which may be under influence of available bus bandwidth etc., as reported by the IAMVideoControl interface (which will only be available with UVC capture devices). More IAMVideoControl methods are implemented in CaptureDeviceControls. |
CaptureDeviceControls |
getControls()
Returns a CaptureDeviceControls object that can be used for programatical control of device parameters (brightness, contrast, hue, audio levels and inputs etc.; pan & tilt for cameras that support it, Input source, level etc. |
DSFilterInfo.DSCrossBarInfo |
getCrossBar()
Returns the CrossbarInfo describing the crossbar filter that this device may be linked with. |
int |
getCrossBarConnection(int outputID)
Returns the id of the crossbar input that is currently routed to the given output. |
int[] |
getCurrentFrequencies()
Returns currently set video and audio frequencies. |
DSFilter.DSPin |
getDeviceOutput(int pinCategory)
Returns a device's output pin for the given category - use this to locate preview and capture pins. |
float |
getFrameRate(DSFilter.DSPin outputPin)
|
java.lang.String |
getName()
Returns the filter's "friendly name" |
int[] |
getOutputFrameRates(DSFilter.DSPin outputPin)
Returns the minimum and maximum framerates the given pin can deliver |
java.lang.String |
getPath()
|
int |
getSelectedFormat(DSFilter.DSPin outputPin)
Returns the index of the currently selected output format for the given pin. |
DSMediaType |
getSelectedMediaType(DSFilter.DSPin outputPin)
|
int |
getSupportedDialogs()
Returns an int with the bits representing supported dialogs (see constants) set. |
DSFilterInfo.DSTVTunerInfo |
getTVTuner()
|
int |
getType()
|
int[] |
getVDigSettings()
Returns and int[4] holding an analog video digitizer's current TVFormat (see DSConstants ATV_...constants), number of video scan lines, a bitwise combination of TVFormats supported by the device and a bit set containing information on vertical locking (bit 1 set for tape sources, not set for broadcasts), video-port output enable (bit 2 set if enabled) and horizontal sync lock (bit 3 set when locked). The native interface required to get this information will only be available with devices that capture analog video (but there is no guarantee, that all such devices will support it). |
boolean |
hasCrossBar()
Crossbars are special filters upstream from some capture device filters and are used for selecting between different physical input connections on the device (Video digitizers with composite and S-Video inputs for example will usually have an associated crossbar filter). |
boolean |
hasTVTuner()
|
boolean |
isActive()
|
int[] |
setBasicTVParameters(int tuningSpace,
int countryCode)
Sets TuningSpace and CountryCode. |
int |
setCropSize(DSFilter.DSPin outputPin,
int x,
int y,
int w,
int h)
Sets the video cropping rectangle on the given video output pin. |
float |
setFrameRate(DSFilter.DSPin outputPin,
float fps)
Sets a video capture device's framerate on the given output and returns the framerate in effect after this call. |
int |
setOutputFormat(DSFilter.DSPin outputPin,
int index)
Sets the output format on the specified pin after the graph has been built (in opposition to setting a preferred format on the device's FilterInfo and/or PinInfos prior to constructing the graph). This may act as a programmatical alternative to showing the format dialogs, although some devices may offer more formats via their properties dialogs. %index - index into the available formats, which can be read from the FilterInfo. The method does not work when the graph is record enabled or recording. |
int[] |
setTunerMode(int mode,
int input)
Sets Tuner mode (see http://msdn2.microsoft.com/en-us/library/ms778981(VS.85).aspx) and input (0 - cable, 1 - antenna). |
int |
setTVChannel(int channel,
boolean autoTune)
Sets TV Channel on analogue TV tuners and optionally performs autotuning Return value reflects signal quality (0 if no signal is present, negative if undetermined, positive if OK. |
int |
showDialog(int dialogType)
Brings up a native dialog (a filter, pin or filter interface PropertyPage) of the given type (see constants). |
| Methods inherited from class de.humatic.dsj.DSFilter |
|---|
applyPropPageSettings, closePropPage, connectDownstream, disconnect, dumpConnections, embedPropertiesPage, getCLSID, getFiltergraph, getFilterInfo, getFilterState, getID, getInputs, getOutputs, getPin, getPin, getPin, getPins, getPropPageCount, getPropPageSize, getPropPageTitles, loadFilterState, renderEx, renderPin, saveFilterState, setParameter, showPropertiesDialog, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int VIDEO
public static final int AUDIO
public static final int MPEG
public static final int DV
public static final int CAPTION
public static final int VFW_SOURCE
public static final int VFW_FORMAT
public static final int WDM_DEVICE
public static final int WDM_CAPTURE
public static final int WDM_PREVIEW
public static final int CROSSBAR_1
public static final int CROSSBAR_2
public static final int TV_VIDEO
public static final int TV_AUDIO
public static final int PIN_CATEGORY_CAPTURE
public static final int PIN_CATEGORY_PREVIEW
public static final int PIN_CATEGORY_STILL
public static final int PIN_CATEGORY_CC
public static final int PIN_CATEGORY_VBI
| Method Detail |
|---|
public boolean activate()
public boolean isActive()
public int getType()
public java.lang.String getName()
DSFilter
getName in class DSFilterpublic java.lang.String getPath()
public boolean canDoMPEG()
public boolean hasCrossBar()
public void connectCrossBarPins(int in,
int out,
boolean changeRelated)
public int getCrossBarConnection(int outputID)
public DSFilterInfo.DSCrossBarInfo getCrossBar()
public boolean hasTVTuner()
public DSFilterInfo.DSTVTunerInfo getTVTuner()
public int[] setBasicTVParameters(int tuningSpace,
int countryCode)
public int[] setTunerMode(int mode,
int input)
public int[] getCurrentFrequencies()
public int setTVChannel(int channel,
boolean autoTune)
public void configureVDig(int TVFormat,
int flags)
throws DSJException
DSJException
public int[] getVDigSettings()
throws DSJException
DSJExceptionpublic int getSupportedDialogs()
public int showDialog(int dialogType)
throws DSJException
DSJExceptionpublic CaptureDeviceControls getControls()
public DSFilter.DSPin getDeviceOutput(int pinCategory)
public int[] getOutputFrameRates(DSFilter.DSPin outputPin)
public float getFrameRate(DSFilter.DSPin outputPin)
throws DSJException
DSJException
public float setFrameRate(DSFilter.DSPin outputPin,
float fps)
throws DSJException
DSJException
public int setOutputFormat(DSFilter.DSPin outputPin,
int index)
public int setCropSize(DSFilter.DSPin outputPin,
int x,
int y,
int w,
int h)
throws DSJException
DSJExceptionpublic int getSelectedFormat(DSFilter.DSPin outputPin)
public DSMediaType getSelectedMediaType(DSFilter.DSPin outputPin)
public float getActualFramerate(DSFilter.DSPin outputPin)
throws DSJException
DSJException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||