Package uk.co.caprica.vlcj.factory
Class VideoSurfaceApi
- java.lang.Object
-
- uk.co.caprica.vlcj.factory.VideoSurfaceApi
-
public final class VideoSurfaceApi extends Object
Behaviour pertaining to the creation of video surfaces.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentIdVideoSurface
newVideoSurface(long componentId)
Create a new video surface for a native component id.ComponentVideoSurface
newVideoSurface(Component component)
Create a new video surface for a Component.CallbackVideoSurface
newVideoSurface(BufferFormatCallback bufferFormatCallback, RenderCallback renderCallback, boolean lockBuffers)
Create a new video surface for "direct" rendering via callbacks.
-
-
-
Method Detail
-
newVideoSurface
public ComponentVideoSurface newVideoSurface(Component component)
Create a new video surface for a Component.The optimal component in a
Canvas
,Window
can be used, as can any other AWTComponent
, at least in principle.- Parameters:
component
- component- Returns:
- video surface
-
newVideoSurface
public ComponentIdVideoSurface newVideoSurface(long componentId)
Create a new video surface for a native component id.- Parameters:
componentId
- native component id- Returns:
- video surface
-
newVideoSurface
public CallbackVideoSurface newVideoSurface(BufferFormatCallback bufferFormatCallback, RenderCallback renderCallback, boolean lockBuffers)
Create a new video surface for "direct" rendering via callbacks.- Parameters:
bufferFormatCallback
- buffer format callbackrenderCallback
- render callbacklockBuffers
-true
if the video buffer should be locked;false
if it should not- Returns:
- video surface
-
-