de.humatic.dsj.rc
Class D3D9Controls
java.lang.Object
de.humatic.dsj.rc.RendererControls
de.humatic.dsj.rc.D3D9Controls
public class D3D9Controls
- extends RendererControls
D3D9Controls provides "draw over video" functionality for dsj's D3D9 based JAWT renderer in RGB mode (default).
To get hold of this object call getRendererControl() on a DSFiltergraph that has been set up with the D3D9 flag.
D3D9Controls are new in dsj 0_8_62 and still lack some of the functionality available with other renderers.
| Fields inherited from class de.humatic.dsj.rc.RendererControls |
BRIGHTNESS, CONTRAST, D3D9, DDR, EVR, HUE, IMG, J2D, NVR, SATURATION, VMR |
|
Method Summary |
void |
setOutputRect(int streamID,
int oX,
int oY,
int oW,
int oH)
Provides scaling functionality for the videostream (streamID 0). |
boolean |
setOverlayImage(java.awt.image.BufferedImage image,
int[] dest,
java.awt.Color keyColor,
float alpha)
Installs a BufferedImage object to be rendered over the running video. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
public int type
setOutputRect
public void setOutputRect(int streamID,
int oX,
int oY,
int oW,
int oH)
throws DSJException
- Provides scaling functionality for the videostream (streamID 0).
- Overrides:
setOutputRect in class RendererControls
- Throws:
DSJException
setOverlayImage
public boolean setOverlayImage(java.awt.image.BufferedImage image,
int[] dest,
java.awt.Color keyColor,
float alpha)
throws DSJException
- Installs a BufferedImage object to be rendered over the running video. %dest is ignored by this object and can
be null. To change the overlayed image on the DirectDraw renderer, do your drawing
into the Graphics2D created from the image and call this method again.
To remove the overlay, call this method with %image set to null.
D3D9Controls support both colorkeying and (overall, that is: not per pixel) alpha. The alpha implementation is not most
efficient and will need some more work.
- Overrides:
setOverlayImage in class RendererControls
- Throws:
DSJException