java.lang.Object
uk.co.caprica.vlcj.factory.VideoSurfaceApi
Behaviour pertaining to the creation of video surfaces.
-
Method Summary
Modifier and TypeMethodDescriptionnewVideoSurface(long componentId) Create a new video surface for a native component id.newVideoSurface(Component component) Create a new video surface for a Component.newVideoSurface(BufferFormatCallback bufferFormatCallback, RenderCallback renderCallback, boolean lockBuffers) Create a new video surface for "direct" rendering via callbacks.
-
Method Details
-
newVideoSurface
Create a new video surface for a Component.The optimal component in a
Canvas,Windowcan be used, as can any other AWTComponent, at least in principle.- Parameters:
component- component- Returns:
- video surface
-
newVideoSurface
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-trueif the video buffer should be locked;falseif it should not- Returns:
- video surface
-