public class EVRControls extends DSRendererControls
| Modifier and Type | Field and Description |
|---|---|
static int |
AR_None
EVR aspect ratio modes.
|
static int |
AR_NonLinearStretch
EVR aspect ratio modes.
|
static int |
AR_PreservePicture
EVR aspect ratio modes.
|
static int |
AR_PreservePixel
EVR aspect ratio modes.
|
static int |
RP_AllowBatching
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_AllowOutputThrottling
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_AllowScaling
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_DoNotClipToDevice
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_DoNotRenderBorder
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_DoNotRepaintOnStop
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_ForceBatching
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_ForceOutputThrottling
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
static int |
RP_ForceScaling
EVR rendering preference flags, see msdn docs for MFVideoRenderPrefs.
|
int |
type |
BRIGHTNESS, CONTRAST, D3D9, DDR, EVR, HUE, IMG, J2D, NVR, SATURATION, VMR| Modifier and Type | Method and Description |
|---|---|
int |
getAspectRatioMode()
Returns currently set aspect ratio handling.
|
float |
getBrightness(int streamID) |
float |
getContrast(int streamID) |
float |
getHue(int streamID) |
int |
getRenderingPrefs()
Returns current mixing preferences (bitwise combination of MixerPref9 flags)
|
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.
|
void |
setAlpha(int streamID,
float alpha)
Sets the alpha blending level (0 - fully transparent, 1.0 - fully opaque) for an eventual image overlay.
|
void |
setAspectRatioMode(int mode)
Sets EVR aspect ratio handling.
|
void |
setBrightness(int streamID,
float value)
VProcAmp control.
|
void |
setContrast(int streamID,
float value)
VProcAmp control.
|
void |
setHue(int streamID,
float value)
VProcAmp control.
|
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 video.
The supplied image MUST be a 32 bit image with alpha channel (use BufferedImage.TYPE_4BYTE_ABGR when constructing the image in code (preferred) or .png when reading from image file,). |
void |
setRenderingPrefs(int prefs)
Sets EVR rendering preferences.
|
void |
setSaturation(int streamID,
float value)
VProcAmp control.
|
getRendererStatisticsdisplayResized, getControls, getFlags, setFlagspublic int type
public static final int RP_DoNotRenderBorder
public static final int RP_DoNotClipToDevice
public static final int RP_AllowOutputThrottling
public static final int RP_ForceOutputThrottling
public static final int RP_ForceBatching
public static final int RP_AllowBatching
public static final int RP_ForceScaling
public static final int RP_AllowScaling
public static final int RP_DoNotRepaintOnStop
public static final int AR_None
public static final int AR_PreservePicture
public static final int AR_PreservePixel
public static final int AR_NonLinearStretch
public 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 void setAlpha(int streamID,
float alpha)
throws DSJException
DSJExceptionpublic void setOutputRect(int streamID,
int oX,
int oY,
int oW,
int oH)
throws DSJException
setOutputRect in class RendererControlsDSJExceptionpublic void setRenderingPrefs(int prefs)
throws DSJException
DSJExceptionpublic int getRenderingPrefs()
public void setAspectRatioMode(int mode)
throws DSJException
DSJExceptionpublic int getAspectRatioMode()
public boolean setOverlayImage(java.awt.image.BufferedImage image,
int[] dest,
java.awt.Color keyColor,
float alpha)
throws DSJException
setOverlayImage in class RendererControlsDSJException