de.humatic.dsj.rc
Class J2DControls

java.lang.Object
  extended by de.humatic.dsj.rc.RendererControls
      extended by de.humatic.dsj.rc.J2DControls

public class J2DControls
extends RendererControls

J2DControls provides access to application setable parameters of the Java Renderer. An application retrieves this object by calling getRendererControl() on a DSFiltergraph object that has been set up with the JAVA_AUTODRAW flag.


Field Summary
 int orgHeight
           
 int orgWidth
           
 int type
           
 
Fields inherited from class de.humatic.dsj.rc.RendererControls
BRIGHTNESS, CONTRAST, D3D9, DDR, EVR, HUE, IMG, J2D, NVR, SATURATION, VMR
 
Method Summary
 void composite(java.awt.Graphics g)
          Called internally by the rendering engine.
 void setOutputRect(int stream, int oX, int oY, int oW, int oH)
          Provides scaling functionality for the videostream (stream 0) and an eventual overlay image (stream 1 or RendererControls.IMG).
 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.
 void setRenderingHint(java.awt.RenderingHints.Key key, java.lang.Object value)
          Calls through to the Renderer's Graphics2D setRenderingHint method
 
Methods inherited from class de.humatic.dsj.rc.RendererControls
displayResized, getControls, getFlags, getRendererStatistics, setFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public int type

orgWidth

public int orgWidth

orgHeight

public int orgHeight
Method Detail

composite

public void composite(java.awt.Graphics g)
Called internally by the rendering engine. This method is public for package design reasons. It should not be called by application code.


setRenderingHint

public void setRenderingHint(java.awt.RenderingHints.Key key,
                             java.lang.Object value)
Calls through to the Renderer's Graphics2D setRenderingHint method


setOutputRect

public void setOutputRect(int stream,
                          int oX,
                          int oY,
                          int oW,
                          int oH)
                   throws DSJException
Provides scaling functionality for the videostream (stream 0) and an eventual overlay image (stream 1 or RendererControls.IMG).

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. Once set, an application can use Graphics2D methods to do any kind of drawing into the image. The java renderer does not require to repeatedly call this method.
. To remove the overlay, call this method with %image set to null. This method is overridden from the superclass, J2DControls do not support alpha.

Overrides:
setOverlayImage in class RendererControls
Throws:
DSJException