uk.co.caprica.vlcj.player.direct
Class RenderCallbackAdapter

java.lang.Object
  extended by uk.co.caprica.vlcj.player.direct.RenderCallbackAdapter
All Implemented Interfaces:
RenderCallback

public abstract class RenderCallbackAdapter
extends java.lang.Object
implements RenderCallback

A render call-back adapter implementation that fills an array of rgb integer data for an entire video frame.


Constructor Summary
RenderCallbackAdapter(int[] rgbBuffer)
          Create a new render call-back.
 
Method Summary
 void display(com.sun.jna.Memory nativeBuffer)
          Call-back when ready to display a video frame.
protected abstract  void onDisplay(int[] rgbBuffer)
          Template method invoked when a new frame of video data is ready.
 int[] rgbBuffer()
          Get the video data buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderCallbackAdapter

public RenderCallbackAdapter(int[] rgbBuffer)
Create a new render call-back.

Parameters:
rgbBuffer - video data buffer
Method Detail

display

public final void display(com.sun.jna.Memory nativeBuffer)
Description copied from interface: RenderCallback
Call-back when ready to display a video frame.

Specified by:
display in interface RenderCallback
Parameters:
nativeBuffer - video data for one frame

rgbBuffer

public int[] rgbBuffer()
Get the video data buffer.

Returns:
video buffer

onDisplay

protected abstract void onDisplay(int[] rgbBuffer)
Template method invoked when a new frame of video data is ready.

Parameters:
rgbBuffer - video data buffer

(C)2010 Caprica Software Limited