de.humatic.jdl
Class DecklinkCaptureBanner

java.lang.Object
  extended by de.humatic.jdl.DecklinkInterface
      extended by de.humatic.jdl.DecklinkCaptureBanner

public class DecklinkCaptureBanner
extends DecklinkInterface

IDecklinkCaptureBanner implementation - this interface is exposed by the Decklink Video Capture filter and can be used to write to the "no input" framebuffer, whose contents will be routed to the filter's output when no video signal is present on the card's selected capture input.


Method Summary
 void setCaptureBanner(byte[] yuvData)
          Sets the content of the Decklink Video Capture filter's "no input" framebuffer.
 byte[] toYUV(java.awt.image.BufferedImage img, de.humatic.dsj.DSMediaType mt)
          Converts 3BYTE_BGR, 4BYTE_ABGR, INT_RGB & INT_ARGB type BufferedImages into raw yuv (UYVY or HDYV) data of the type read from the DSMediaType argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setCaptureBanner

public void setCaptureBanner(byte[] yuvData)
Sets the content of the Decklink Video Capture filter's "no input" framebuffer. Incoming data must match the card's mediatype.


toYUV

public byte[] toYUV(java.awt.image.BufferedImage img,
                    de.humatic.dsj.DSMediaType mt)
             throws de.humatic.dsj.DSJException
Converts 3BYTE_BGR, 4BYTE_ABGR, INT_RGB & INT_ARGB type BufferedImages into raw yuv (UYVY or HDYV) data of the type read from the DSMediaType argument. Throws DSJException for unsupported RGB or YUV types.
This can be used to create YUV data for the setCaptureBanner(..) method. However the conversion logic is relatively basic, you may rather want to generate the data yourself or use some dedicated color space conversion library.

Throws:
de.humatic.dsj.DSJException