OpenCV  4.1.0
Open Source Computer Vision
Classes | Enumerations | Functions
cv::cudacodec Namespace Reference

Classes

class  EncoderCallBack
 Callbacks for CUDA video encoder. More...
 
struct  EncoderParams
 Different parameters for CUDA video encoder. More...
 
struct  FormatInfo
 Struct providing information about video file format. : More...
 
class  RawVideoSource
 Interface for video demultiplexing. : More...
 
class  VideoReader
 Video reader interface. More...
 
class  VideoWriter
 Video writer interface. More...
 

Enumerations

enum  ChromaFormat {
  Monochrome = 0,
  YUV420,
  YUV422,
  YUV444
}
 Chroma formats supported by cudacodec::VideoReader . More...
 
enum  Codec {
  MPEG1 = 0,
  MPEG2,
  MPEG4,
  VC1,
  H264,
  JPEG,
  H264_SVC,
  H264_MVC,
  Uncompressed_YUV420 = (('I'<<24)|('Y'<<16)|('U'<<8)|('V')),
  Uncompressed_YV12 = (('Y'<<24)|('V'<<16)|('1'<<8)|('2')),
  Uncompressed_NV12 = (('N'<<24)|('V'<<16)|('1'<<8)|('2')),
  Uncompressed_YUYV = (('Y'<<24)|('U'<<16)|('Y'<<8)|('V')),
  Uncompressed_UYVY = (('U'<<24)|('Y'<<16)|('V'<<8)|('Y'))
}
 Video codecs supported by cudacodec::VideoReader . More...
 
enum  SurfaceFormat {
  SF_UYVY = 0,
  SF_YUY2,
  SF_YV12,
  SF_NV12,
  SF_IYUV,
  SF_BGR,
  SF_GRAY = SF_BGR
}
 

Functions

Ptr< VideoReadercreateVideoReader (const String &filename)
 Creates video reader. More...
 
Ptr< VideoReadercreateVideoReader (const Ptr< RawVideoSource > &source)
 
Ptr< cudacodec::VideoWritercreateVideoWriter (const String &fileName, Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 Creates video writer. More...
 
Ptr< cudacodec::VideoWritercreateVideoWriter (const String &fileName, Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)
 
Ptr< cudacodec::VideoWritercreateVideoWriter (const Ptr< EncoderCallBack > &encoderCallback, Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 
Ptr< cudacodec::VideoWritercreateVideoWriter (const Ptr< EncoderCallBack > &encoderCallback, Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)