public class CVPixelBuffer extends CVImageBuffer
| Constructor and Description |
|---|
CVPixelBuffer(long ptr)
Initializes a new CVPixelBuffer instance which is to represent
a specific CoreVideo CVPixelBufferRef.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getByteCount()
Gets the number of bytes which represent the pixels of the associated
CoreVideo CVPixelBufferRef.
|
byte[] |
getBytes()
Gets a byte array which represents the pixels of the associated
CoreVideo CVPixelBufferRef.
|
int |
getBytes(long buf,
int bufLength)
Gets the bytes which represent the pixels of the associated
CVPixelBufferRef into a specific native byte buffer with a
specific capacity.
|
int |
getHeight()
Gets the height in pixels of this CVPixelBuffer.
|
int |
getWidth()
Gets the width in pixels of this CVPixelBuffer.
|
static void |
memcpy(byte[] dst,
int dstOffset,
int dstLength,
long src)
Native copy from native pointer src to byte array dst.
|
getPtr, setPtrpublic CVPixelBuffer(long ptr)
ptr - the CoreVideo CVPixelBufferRef to be represented by
the new instancepublic int getByteCount()
public byte[] getBytes()
public int getBytes(long buf,
int bufLength)
buf - the native byte buffer to return the bytes intobufLength - the capacity in bytes of bufpublic int getHeight()
public int getWidth()
public static void memcpy(byte[] dst,
int dstOffset,
int dstLength,
long src)
dst - destination arraydstOffset - offset of dst to copy data todstLength - length of dstsrc - native pointer sourceCopyright © 2021 jitsi.org. All rights reserved.