@Namespace(value="cv::cudacodec") @Properties(inherit=opencv_cudacodec.class) public class RawVideoSource extends Pointer
User can implement own demultiplexing by implementing this interface.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RawVideoSource(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
FormatInfo |
format()
\brief Returns information about video file format.
|
boolean |
get(int propertyId,
double[] propertyVal) |
boolean |
get(int propertyId,
DoubleBuffer propertyVal) |
boolean |
get(int propertyId,
DoublePointer propertyVal)
\brief Retrieves the specified property used by the VideoSource.
|
void |
getExtraData(Mat extraData)
\brief Returns any extra data associated with the video source.
|
int |
getFirstFrameIdx()
\brief Retrieve the index of the first frame that will returned after construction.
|
boolean |
getNextPacket(byte[] data,
SizeTPointer size) |
boolean |
getNextPacket(ByteBuffer data,
SizeTPointer size) |
boolean |
getNextPacket(BytePointer data,
SizeTPointer size) |
boolean |
getNextPacket(PointerPointer data,
SizeTPointer size)
\brief Returns next packet with RAW video frame.
|
boolean |
lastPacketContainsKeyFrame()
\brief Returns true if the last packet contained a key frame.
|
void |
updateFormat(FormatInfo videoFormat)
\brief Updates the coded width and height inside format.
|
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, withDeallocator, zero
public RawVideoSource(Pointer p)
Pointer(Pointer)
.@Cast(value="bool") public boolean getNextPacket(@Cast(value="unsigned char**") PointerPointer data, @Cast(value="size_t*") SizeTPointer size)
data
- Pointer to frame data.size
- Size in bytes of current frame.@Cast(value="bool") public boolean getNextPacket(@Cast(value="unsigned char**") @ByPtrPtr BytePointer data, @Cast(value="size_t*") SizeTPointer size)
@Cast(value="bool") public boolean getNextPacket(@Cast(value="unsigned char**") @ByPtrPtr ByteBuffer data, @Cast(value="size_t*") SizeTPointer size)
@Cast(value="bool") public boolean getNextPacket(@Cast(value="unsigned char**") @ByPtrPtr byte[] data, @Cast(value="size_t*") SizeTPointer size)
@Cast(value="bool") public boolean lastPacketContainsKeyFrame()
@ByVal public FormatInfo format()
public void updateFormat(@Const @ByRef FormatInfo videoFormat)
public void getExtraData(@ByRef Mat extraData)
extraData
- 1D cv::Mat containing the extra data if it exists.@Cast(value="bool") public boolean get(int propertyId, @ByRef DoublePointer propertyVal)
propertyId
- Property identifier from cv::VideoCaptureProperties (eg. cv::CAP_PROP_POS_MSEC, cv::CAP_PROP_POS_FRAMES, ...)
or one from \ref videoio_flags_others.propertyVal
- Value for the specified property.
true
unless the property is unset set or not supported.@Cast(value="bool") public boolean get(int propertyId, @ByRef DoubleBuffer propertyVal)
public int getFirstFrameIdx()
\note To reduce the decoding overhead when initializing VideoReader to start its decoding from frame N, RawVideoSource should seek to the first valid key frame less than or equal to N and return that index here.
Copyright © 2024. All rights reserved.