@Namespace(value="cv::cudacodec") @Properties(inherit=opencv_cudacodec.class) public class EncoderCallback extends Pointer
User can implement own multiplexing by implementing this interface.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
EncoderCallback(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onEncoded(ByteVectorVector vPacket,
long[] pts) |
void |
onEncoded(ByteVectorVector vPacket,
LongBuffer pts) |
void |
onEncoded(ByteVectorVector vPacket,
LongPointer pts)
\brief Callback function to signal that the encoded bitstream for one or more frames is ready.
|
void |
onEncodingFinished()
\brief Callback function to that the encoding has finished.
|
boolean |
setFrameIntervalP(int frameIntervalP)
\brief Set the GOP pattern used by the encoder.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, trimMemory, withDeallocator, zeropublic EncoderCallback(Pointer p)
Pointer(Pointer).public void onEncoded(@Cast(value="const std::vector<std::vector<uint8_t> >*") @ByRef ByteVectorVector vPacket, @Cast(value="uint64_t*") @StdVector LongPointer pts)
vPacket - The raw bitstream for one or more frames.pts - Presentation timestamps for each frame in vPacket using the FPS time base. e.g. fps = 25, pts = 3, presentation time = 3/25 seconds.public void onEncoded(@Cast(value="const std::vector<std::vector<uint8_t> >*") @ByRef ByteVectorVector vPacket, @Cast(value="uint64_t*") @StdVector LongBuffer pts)
public void onEncoded(@Cast(value="const std::vector<std::vector<uint8_t> >*") @ByRef ByteVectorVector vPacket, @Cast(value="uint64_t*") @StdVector long[] pts)
@Cast(value="bool") public boolean setFrameIntervalP(int frameIntervalP)
frameIntervalP - Specify the GOP pattern as follows : \p frameIntervalP = 0: I, 1 : IPP, 2 : IBP, 3 : IBBP.public void onEncodingFinished()
Copyright © 2026. All rights reserved.