Class CudaVideoReader
Cuda video reader
public class CudaVideoReader : SharedPtrObject, IDisposable
- Inheritance
-
CudaVideoReader
- Implements
- Inherited Members
Constructors
CudaVideoReader(string)
Creates video reader.
public CudaVideoReader(string fileName)
Parameters
fileName
stringName of the input video file.
Properties
Format
Get the information about video file format.
public CudaVideoReader.FormatInfo Format { get; }
Property Value
Methods
DisposeObject()
Release the unmanaged memory associated with this VideoReader
protected override void DisposeObject()
NextFrame(GpuMat, Stream)
Grabs, decodes and returns the next video frame.
public bool NextFrame(GpuMat frame, Stream stream = null)
Parameters
frame
GpuMatThe frame
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
Returns
- bool
If no frames has been grabbed (there are no more frames in video file), the methods return false .