| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private NativeVideoBuffer | |
| private static final boolean | |
| private static final NativeVideoBuffer. | |
| private final AtomicInteger | |
| private long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public VideoDataBuffer | convertToFormat(VideoFormat newFormat)
Implements com. Converts the video image to the specified format. |
| public static NativeVideoBuffer | |
| public ByteBuffer | getBufferForPlane(int plane)
Implements com. Retrieve the data buffer for the specified plane. |
| public int | getEncodedHeight()
Implements com. Gets the height of the image as created by the decoder, this may be larger than the display height. |
| public int | getEncodedWidth()
Implements com. Gets the width of the image as created by the decoder, this may be larger than the display width. |
| public VideoFormat | |
| public int | getHeight()
Implements com. Gets the height of the VideoDataBuffer |
| public int | |
| public int[] | |
| public int | getStrideForPlane(int planeIndex)
Implements com. Returns the number of bytes in each row of pixels for the specified plane. |
| public double | getTimestamp()
Implements com. Retrieve the timestamp of the buffer. |
| public int | getWidth()
Implements com. Gets the width of the VideoDataBuffer |
| public boolean | hasAlpha()
Implements com. Determine if a video buffer has an alpha channel. |
| public void | holdFrame()
Implements com. Place a hold on a buffer so that it cannot be reused by the buffer pool from whence it came. |
| private native long | |
| private static native void | |
| private native ByteBuffer | |
| private native int | |
| private native int | |
| private native int | |
| private native int | |
| private native int | |
| private native int[] | |
| private native double | |
| private native int | |
| private native boolean | |
| private native void | |
| public void | releaseFrame()
Implements com. Releases a hold previously placed on this frame. |
| public void | setDirty()
Implements com. Flags a video buffer indicating the contents of the buffer have been updated and any cached representations need to be updated. |
| public String |
| cachedBGRARep | back to summary |
|---|---|
| private NativeVideoBuffer cachedBGRARep | |
| DEBUG_DISPOSED_BUFFERS | back to summary |
|---|---|
| private static final boolean DEBUG_DISPOSED_BUFFERS | |
| disposer | back to summary |
|---|---|
| private static final NativeVideoBuffer. | |
| holdCount | back to summary |
|---|---|
| private final AtomicInteger holdCount | |
| nativePeer | back to summary |
|---|---|
| private long nativePeer | |
| NativeVideoBuffer | back to summary |
|---|---|
| private NativeVideoBuffer(long nativePeer) | |
| convertToFormat | back to summary |
|---|---|
| public VideoDataBuffer convertToFormat(VideoFormat newFormat) Implements com. Doc from com. Converts the video image to the specified format. You can only convert TO
either
| |
| createVideoBuffer | back to summary |
|---|---|
| public static NativeVideoBuffer createVideoBuffer(long nativePeer) | |
| getBufferForPlane | back to summary |
|---|---|
| public ByteBuffer getBufferForPlane(int plane) Implements com. Doc from com. Retrieve the data buffer for the specified plane. For chunky formats,
pass
| |
| getEncodedHeight | back to summary |
|---|---|
| public int getEncodedHeight() Implements com. Doc from com. Gets the height of the image as created by the decoder, this may be larger than the display height.
| |
| getEncodedWidth | back to summary |
|---|---|
| public int getEncodedWidth() Implements com. Doc from com. Gets the width of the image as created by the decoder, this may be larger than the display width.
| |
| getFormat | back to summary |
|---|---|
| public VideoFormat getFormat() Implements com.
| |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements com. Doc from com. Gets the height of the VideoDataBuffer
| |
| getPlaneCount | back to summary |
|---|---|
| public int getPlaneCount() Implements com.
| |
| getPlaneStrides | back to summary |
|---|---|
| public int[] getPlaneStrides() Implements com.
| |
| getStrideForPlane | back to summary |
|---|---|
| public int getStrideForPlane(int planeIndex) Implements com. Doc from com. Returns the number of bytes in each row of pixels for the specified plane.
| |
| getTimestamp | back to summary |
|---|---|
| public double getTimestamp() Implements com. Doc from com. Retrieve the timestamp of the buffer.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements com. Doc from com. Gets the width of the VideoDataBuffer
| |
| hasAlpha | back to summary |
|---|---|
| public boolean hasAlpha() Implements com. Doc from com. Determine if a video buffer has an alpha channel. This merely determines if the buffer itself has an alpha channel, not if there is any transparency to the image.
| |
| holdFrame | back to summary |
|---|---|
| public void holdFrame() Implements com. Doc from com. Place a hold on a buffer so that it cannot be reused by the buffer pool from whence it came. Holding a buffer too long may cause additional buffers to be allocated which will increase memory usage, so one should take care to release a frame as soon as possible.
| |
| nativeConvertToFormat | back to summary |
|---|---|
| private native long nativeConvertToFormat(long handle, int formatType) | |
| nativeDisposeBuffer | back to summary |
|---|---|
| private static native void nativeDisposeBuffer(long handle) | |
| nativeGetBufferForPlane | back to summary |
|---|---|
| private native ByteBuffer nativeGetBufferForPlane(long handle, int plane) | |
| nativeGetEncodedHeight | back to summary |
|---|---|
| private native int nativeGetEncodedHeight(long handle) | |
| nativeGetEncodedWidth | back to summary |
|---|---|
| private native int nativeGetEncodedWidth(long handle) | |
| nativeGetFormat | back to summary |
|---|---|
| private native int nativeGetFormat(long handle) | |
| nativeGetHeight | back to summary |
|---|---|
| private native int nativeGetHeight(long handle) | |
| nativeGetPlaneCount | back to summary |
|---|---|
| private native int nativeGetPlaneCount(long handle) | |
| nativeGetPlaneStrides | back to summary |
|---|---|
| private native int[] nativeGetPlaneStrides(long handle) | |
| nativeGetTimestamp | back to summary |
|---|---|
| private native double nativeGetTimestamp(long handle) | |
| nativeGetWidth | back to summary |
|---|---|
| private native int nativeGetWidth(long handle) | |
| nativeHasAlpha | back to summary |
|---|---|
| private native boolean nativeHasAlpha(long handle) | |
| nativeSetDirty | back to summary |
|---|---|
| private native void nativeSetDirty(long handle) | |
| releaseFrame | back to summary |
|---|---|
| public void releaseFrame() Implements com. Doc from com. Releases a hold previously placed on this frame. When the hold count reaches zero then the frame will be disposed or reused, thus preventing memory allocation overhead.
| |
| setDirty | back to summary |
|---|---|
| public void setDirty() Implements com. Doc from com. Flags a video buffer indicating the contents of the buffer have been updated and any cached representations need to be updated.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | disposeResource(Object resource)
Implements com. Dispose the provided resource. |
| VideoBufferDisposer | back to summary |
|---|---|
| private VideoBufferDisposer() | |
| disposeResource | back to summary |
|---|---|
| public void disposeResource(Object resource) Implements com. Doc from com. Dispose the provided resource.
| |