public class VMRControls extends DSRendererControls
| Modifier and Type | Field and Description |
|---|---|
static int[] |
MixerPref9
Contains all valid VMR mixing preference flags to make them selectable by index.
|
static int |
MixerPref9_AnisotropicFiltering
VMR mixing preference flags
|
static int |
MixerPref9_BiLinearFiltering
VMR mixing preference flags
|
static int |
MixerPref9_DynamicDecimateBy2
VMR mixing preference flags
|
static int |
MixerPref9_DynamicSwitchToBOB
VMR mixing preference flags
|
static int |
MixerPref9_GaussianQuadFiltering
VMR mixing preference flags
|
static int |
MixerPref9_PointFiltering
VMR mixing preference flags
|
static int |
MixerPref9_PyramidalQuadFiltering
VMR mixing preference flags
|
static int |
MixerPref9_RenderTargetRGB
VMR mixing preference flags
|
static int |
MixerPref9_RenderTargetYUV
VMR mixing preference flags
|
int |
type |
BRIGHTNESS, CONTRAST, D3D9, DDR, EVR, HUE, IMG, J2D, NVR, SATURATION, VMR| Modifier and Type | Method and Description |
|---|---|
boolean |
addFileSource(java.lang.String filePath,
int inputID,
int flags)
Renders another movie file or stream to input number %inputID on the VMR.
Any stream that was previously connected to that pin will be removed. |
boolean |
addFilterSource(DSFilterInfo info,
int inputID,
int flags)
Connects output from a source filter to input number %inputID on the VMR.
This is mainly thought to mix live captured data. Any stream that was previously connected to that pin will be removed. |
boolean |
addGraphSource(DSFiltergraph srcGraph,
int inputID,
int flags) |
void |
forceRedraw()
Enforces a redraw, which may for example be needed when showing menus over a paused filtergraph.
|
boolean |
getAutoRefresh() |
java.lang.String[] |
getAvailableDeinterlacers(int streamID)
Returns GUIDs for deinterlacers reported to be available for the given stream, ordered by quality (best first).
|
float |
getBrightness(int streamID) |
float |
getContrast(int streamID) |
java.lang.String |
getDeinterlacingMode(int streamID)
Returns the deinterlacing technique currently in use for the given stream.
|
float |
getHue(int streamID) |
int |
getMixingPrefs()
Returns current mixing preferences (bitwise combination of MixerPref9 flags)
|
int |
getNumberOfInputs()
Returns 4 if not a preference named "VMR_Inputs" has been set in the XML Setup file.
|
float |
getSaturation(int streamID) |
float[] |
getVProcAmpRanges(int property)
Returns the minimum, maximum, default and step size values for
VProcAmp related parameters (Contrast, Brightness, Hue & Saturation)
in a float[] of length 4.
|
byte[] |
grabBitmap()
Returns raw bitmap data of the the VMR's composited output.
|
boolean |
removeSource(int inputID,
int flags) |
void |
setAlpha(int streamID,
float alpha)
Sets the alpha blending level for videostreams (streamID 0 - maxInputs) or an eventual overlay image (RenderControls.IMG).
|
void |
setAutoRefresh(boolean refresh)
The VMR9 will by default only update changes to a bitmap overlay, alpha, size etc.
|
void |
setBrightness(int streamID,
float value)
VMR input VProcAmp control.
|
void |
setContrast(int streamID,
float value)
VMR input VProcAmp control.
|
void |
setDeinterlacingMode(int streamID,
java.lang.String DeinterlacerGUID)
Set the deinterlacing technique for the given stream.
|
void |
setHue(int streamID,
float value)
VMR input VProcAmp control.
|
void |
setMixingPrefs(int prefs)
Sets VMR9 mixing preferences.
|
void |
setOutputRect(int streamID,
int oX,
int oY,
int oW,
int oH)
Provides scaling functionality for videostreams (streamID 0 - maxInputs) and an eventual overlay image (RenderControls.IMG).
|
boolean |
setOverlayImage(java.awt.image.BufferedImage image,
int[] dest,
java.awt.Color keyColor,
float alpha)
Renders a static image overlay on top of all mixed video streams.
Note that this image is not controlable by most of this class's functions except from setOutputRect(...) & setAlpha(...) where the IMG constant should be used for the streamID parameter. |
void |
setSaturation(int streamID,
float value)
VMR input VProcAmp control.
|
void |
setZOrder(int streamID,
int layer)
Sets vertical stacking order of additonal videostreams (streamID 1 - maxInputs).
|
void |
showVMRPropertyPage()
Shows the VMR9's native properties dialog.
|
getRendererStatisticsdisplayResized, getControls, getFlags, setFlagspublic int type
public static final int MixerPref9_BiLinearFiltering
public static final int MixerPref9_PointFiltering
public static final int MixerPref9_AnisotropicFiltering
public static final int MixerPref9_PyramidalQuadFiltering
public static final int MixerPref9_GaussianQuadFiltering
public static final int MixerPref9_RenderTargetRGB
public static final int MixerPref9_RenderTargetYUV
public static final int MixerPref9_DynamicSwitchToBOB
public static final int MixerPref9_DynamicDecimateBy2
public static final int[] MixerPref9
public boolean addFileSource(java.lang.String filePath,
int inputID,
int flags)
public boolean addFilterSource(DSFilterInfo info, int inputID, int flags) throws DSJException
DSJExceptionpublic boolean addGraphSource(DSFiltergraph srcGraph, int inputID, int flags)
public boolean removeSource(int inputID,
int flags)
throws DSJException
DSJExceptionpublic void showVMRPropertyPage()
public int getNumberOfInputs()
public void setAutoRefresh(boolean refresh)
public boolean getAutoRefresh()
public void forceRedraw()
public void setAlpha(int streamID,
float alpha)
throws DSJException
DSJExceptionpublic void setZOrder(int streamID,
int layer)
throws DSJException
DSJExceptionpublic void setOutputRect(int streamID,
int oX,
int oY,
int oW,
int oH)
throws DSJException
setOutputRect in class RendererControlsDSJExceptionpublic float[] getVProcAmpRanges(int property)
public void setContrast(int streamID,
float value)
throws DSJException
DSJExceptionpublic float getContrast(int streamID)
throws DSJException
DSJExceptionpublic void setBrightness(int streamID,
float value)
throws DSJException
DSJExceptionpublic float getBrightness(int streamID)
throws DSJException
DSJExceptionpublic void setHue(int streamID,
float value)
throws DSJException
DSJExceptionpublic float getHue(int streamID)
throws DSJException
DSJExceptionpublic void setSaturation(int streamID,
float value)
throws DSJException
DSJExceptionpublic float getSaturation(int streamID)
throws DSJException
DSJExceptionpublic byte[] grabBitmap()
throws DSJException
DSJExceptionpublic void setMixingPrefs(int prefs)
throws DSJException
DSJExceptionpublic int getMixingPrefs()
public java.lang.String[] getAvailableDeinterlacers(int streamID)
throws DSJException
DSJExceptionpublic void setDeinterlacingMode(int streamID,
java.lang.String DeinterlacerGUID)
public java.lang.String getDeinterlacingMode(int streamID)
throws DSJException
DSJExceptionpublic boolean setOverlayImage(java.awt.image.BufferedImage image,
int[] dest,
java.awt.Color keyColor,
float alpha)
throws DSJException
setOverlayImage in class RendererControlsDSJException