|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.rc.RendererControls
de.humatic.dsj.rc.DSRendererControls
de.humatic.dsj.rc.VMRControls
public class VMRControls
VMRControls provides access to application setable parameters of the VideoMixingRenderer9.
An application retrieves this object by calling getRendererControl() on a DSFiltergraph
object that has been set up with the VMR9 (or VMR_EMBED) flag.
Note that allthough the VMR has some outstanding capabilities, using it will take you as far
out of java context as can go. The preferred renderer for all use cases that do not explicitly
need VMR capabilities should be the JAWT / DirectDraw renderer as resulting from a setup with
DD7 (or RENDER_NATIVE) in the flags parameter.
By default the VMR9 offers four video channels plus static graphics overlay. You can extend the
number of video streams by setting a preference named "VMR_Inputs" using DSEnvironment.storePreference(...);
The video inputs should not be used for still images.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class de.humatic.dsj.rc.RendererControls |
|---|
BRIGHTNESS, CONTRAST, D3D9, DDR, EVR, HUE, IMG, J2D, NVR, SATURATION, VMR |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class de.humatic.dsj.rc.DSRendererControls |
|---|
getRendererStatistics |
| Methods inherited from class de.humatic.dsj.rc.RendererControls |
|---|
displayResized, getControls, getFlags, setFlags |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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
| Method Detail |
|---|
public boolean addFileSource(java.lang.String filePath,
int inputID,
int flags)
public boolean addFilterSource(DSFilterInfo info,
int inputID,
int flags)
throws DSJException
DSJException
public 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
DSJException
public void setZOrder(int streamID,
int layer)
throws DSJException
DSJException
public 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
DSJException
public float getContrast(int streamID)
throws DSJException
DSJException
public void setBrightness(int streamID,
float value)
throws DSJException
DSJException
public float getBrightness(int streamID)
throws DSJException
DSJException
public void setHue(int streamID,
float value)
throws DSJException
DSJException
public float getHue(int streamID)
throws DSJException
DSJException
public void setSaturation(int streamID,
float value)
throws DSJException
DSJException
public float getSaturation(int streamID)
throws DSJException
DSJException
public byte[] grabBitmap()
throws DSJException
DSJException
public void setMixingPrefs(int prefs)
throws DSJException
DSJExceptionpublic int getMixingPrefs()
public java.lang.String[] getAvailableDeinterlacers(int streamID)
throws DSJException
DSJException
public void setDeinterlacingMode(int streamID,
java.lang.String DeinterlacerGUID)
public java.lang.String getDeinterlacingMode(int streamID)
throws DSJException
DSJException
public boolean setOverlayImage(java.awt.image.BufferedImage image,
int[] dest,
java.awt.Color keyColor,
float alpha)
throws DSJException
setOverlayImage in class RendererControlsDSJException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||