@Name(value="cv::cudacodec::VideoReader") @Properties(inherit=opencv_cudacodec.class) public class VideoReader extends Pointer
\note - An example on how to use the videoReader class can be found at opencv_source_code/samples/gpu/video_reader.cpp
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
VideoReader(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
FormatInfo |
format()
\brief Returns information about video file format.
|
boolean |
nextFrame(GpuMat frame) |
boolean |
nextFrame(GpuMat frame,
Stream stream)
\brief Grabs, decodes and returns the next video frame.
|
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 VideoReader(Pointer p)
Pointer.Pointer(Pointer)
.@Cast(value="bool") public boolean nextFrame(@ByRef GpuMat frame, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
If no frames has been grabbed (there are no more frames in video file), the methods return false . The method throws Exception if error occurs.
@ByVal public FormatInfo format()
Copyright © 2020. All rights reserved.