@Namespace(value="cv::cudacodec") @Properties(inherit=opencv_cudacodec.class) public class EncoderCallBack extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
BFRAME
enum cv::cudacodec::EncoderCallBack::PicType
|
static int |
IFRAME
enum cv::cudacodec::EncoderCallBack::PicType
|
static int |
PFRAME
enum cv::cudacodec::EncoderCallBack::PicType
|
Constructor and Description |
---|
EncoderCallBack(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
acquireBitStream(int[] bufferSize) |
ByteBuffer |
acquireBitStream(IntBuffer bufferSize) |
BytePointer |
acquireBitStream(IntPointer bufferSize)
\brief Callback function to signal the start of bitstream that is to be encoded.
|
void |
onBeginFrame(int frameNumber,
int picType)
\brief Callback function to signal that the encoding operation on the frame has started.
|
void |
onEndFrame(int frameNumber,
int picType)
\brief Callback function signals that the encoding operation on the frame has finished.
|
void |
releaseBitStream(byte[] data,
int size) |
void |
releaseBitStream(ByteBuffer data,
int size) |
void |
releaseBitStream(BytePointer data,
int size)
\brief Callback function to signal that the encoded bitstream is ready to be written to file.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final int IFRAME
public static final int PFRAME
public static final int BFRAME
public EncoderCallBack(Pointer p)
Pointer.Pointer(Pointer)
.@Cast(value="uchar*") public BytePointer acquireBitStream(IntPointer bufferSize)
Callback must allocate buffer for CUDA encoder and return pointer to it and it's size.
@Cast(value="uchar*") public ByteBuffer acquireBitStream(IntBuffer bufferSize)
public void releaseBitStream(@Cast(value="unsigned char*") BytePointer data, int size)
public void releaseBitStream(@Cast(value="unsigned char*") ByteBuffer data, int size)
public void onBeginFrame(int frameNumber, @Cast(value="cv::cudacodec::EncoderCallBack::PicType") int picType)
frameNumber
- picType
- Specify frame type (I-Frame, P-Frame or B-Frame).Copyright © 2020. All rights reserved.