OpenCV  4.5.5
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,
  NumFormats
}
 Chroma formats supported by cudacodec::VideoReader. More...
 
enum  Codec {
  MPEG1 = 0,
  MPEG2,
  MPEG4,
  VC1,
  H264,
  JPEG,
  H264_SVC,
  H264_MVC,
  HEVC,
  VP8,
  VP9,
  AV1,
  NumCodecs,
  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  DeinterlaceMode {
  Weave = 0,
  Bob = 1,
  Adaptive = 2
}
 Deinterlacing mode used by decoder. More...
 
enum  SurfaceFormat {
  SF_UYVY = 0,
  SF_YUY2,
  SF_YV12,
  SF_NV12,
  SF_IYUV,
  SF_BGR,
  SF_GRAY = SF_BGR
}
 
enum  VideoReaderProps {
  VideoReaderProps::PROP_DECODED_FRAME_IDX = 0,
  VideoReaderProps::PROP_EXTRA_DATA_INDEX = 1,
  VideoReaderProps::PROP_RAW_PACKAGES_BASE_INDEX = 2,
  VideoReaderProps::PROP_NUMBER_OF_RAW_PACKAGES_SINCE_LAST_GRAB = 3,
  VideoReaderProps::PROP_RAW_MODE = 4,
  VideoReaderProps::PROP_LRF_HAS_KEY_FRAME = 5
}
 cv::cudacodec::VideoReader generic properties identifier. More...
 

Functions

Ptr< VideoReadercreateVideoReader (const String &filename, const bool rawMode=false)
 Creates video reader. More...
 
Ptr< VideoReadercreateVideoReader (const Ptr< RawVideoSource > &source, const bool rawMode=false)
 
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)