Module uk.co.caprica.vlcj
Class BufferFormatCallbackAdapter
java.lang.Object
uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallbackAdapter
- All Implemented Interfaces:
BufferFormatCallback
Default implementation for a
BufferFormatCallback
.
This component simply provides an empty implementation for allocatedBuffers(ByteBuffer[])
since it is not
required in all cases.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
allocatedBuffers
(ByteBuffer[] buffers) Invoked when new video buffers have been allocated.void
newFormatSize
(int bufferWidth, int bufferHeight, int displayWidth, int displayHeight) Invoked when a new buffer format is set.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback
getBufferFormat
-
Constructor Details
-
BufferFormatCallbackAdapter
public BufferFormatCallbackAdapter()
-
-
Method Details
-
newFormatSize
public void newFormatSize(int bufferWidth, int bufferHeight, int displayWidth, int displayHeight) Description copied from interface:BufferFormatCallback
Invoked when a new buffer format is set.The sizes have not necessarily changed, but they are "new".
The buffer size and the display size are not necessarily the same. For example with 1080P video, it is common for the video buffer height value to be 1090 with a display height value of 1080.
This will be invoked immediately prior to
BufferFormatCallback.allocatedBuffers(ByteBuffer[])
.This may be invoked multiple times by the native library.
- Specified by:
newFormatSize
in interfaceBufferFormatCallback
- Parameters:
bufferWidth
- video buffer widthbufferHeight
- video buffer widthdisplayWidth
- video display widthdisplayHeight
- video display height
-
allocatedBuffers
Description copied from interface:BufferFormatCallback
Invoked when new video buffers have been allocated.This may be invoked multiple times by the native library.
- Specified by:
allocatedBuffers
in interfaceBufferFormatCallback
- Parameters:
buffers
- buffers that were allocated
-