OpenCV  4.5.5-dev
Open Source Computer Vision
Classes | Namespaces | Enumerations | Functions
cudacodec.hpp File Reference
#include "opencv2/core/cuda.hpp"

Classes

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

Namespaces

 cv
 "black box" representation of the file storage associated with a file on disk.
 
 cv::cudacodec
 

Enumerations

enum  cv::cudacodec::ChromaFormat {
  cv::cudacodec::Monochrome = 0,
  cv::cudacodec::YUV420,
  cv::cudacodec::YUV422,
  cv::cudacodec::YUV444,
  cv::cudacodec::NumFormats
}
 Chroma formats supported by cudacodec::VideoReader. More...
 
enum  cv::cudacodec::Codec {
  cv::cudacodec::MPEG1 = 0,
  cv::cudacodec::MPEG2,
  cv::cudacodec::MPEG4,
  cv::cudacodec::VC1,
  cv::cudacodec::H264,
  cv::cudacodec::JPEG,
  cv::cudacodec::H264_SVC,
  cv::cudacodec::H264_MVC,
  cv::cudacodec::HEVC,
  cv::cudacodec::VP8,
  cv::cudacodec::VP9,
  cv::cudacodec::AV1,
  cv::cudacodec::NumCodecs,
  cv::cudacodec::Uncompressed_YUV420 = (('I'<<24)|('Y'<<16)|('U'<<8)|('V')),
  cv::cudacodec::Uncompressed_YV12 = (('Y'<<24)|('V'<<16)|('1'<<8)|('2')),
  cv::cudacodec::Uncompressed_NV12 = (('N'<<24)|('V'<<16)|('1'<<8)|('2')),
  cv::cudacodec::Uncompressed_YUYV = (('Y'<<24)|('U'<<16)|('Y'<<8)|('V')),
  cv::cudacodec::Uncompressed_UYVY = (('U'<<24)|('Y'<<16)|('V'<<8)|('Y'))
}
 Video codecs supported by cudacodec::VideoReader . More...
 
enum  cv::cudacodec::ColorFormat {
  cv::cudacodec::ColorFormat::BGRA = 1,
  cv::cudacodec::ColorFormat::BGR = 2,
  cv::cudacodec::ColorFormat::GRAY = 3
}
 ColorFormat for the frame returned by the decoder. More...
 
enum  cv::cudacodec::DeinterlaceMode {
  cv::cudacodec::Weave = 0,
  cv::cudacodec::Bob = 1,
  cv::cudacodec::Adaptive = 2
}
 Deinterlacing mode used by decoder. More...
 
enum  cv::cudacodec::SurfaceFormat {
  cv::cudacodec::SF_UYVY = 0,
  cv::cudacodec::SF_YUY2,
  cv::cudacodec::SF_YV12,
  cv::cudacodec::SF_NV12,
  cv::cudacodec::SF_IYUV,
  cv::cudacodec::SF_BGR,
  cv::cudacodec::SF_GRAY = SF_BGR
}
 
enum  cv::cudacodec::VideoReaderProps {
  cv::cudacodec::VideoReaderProps::PROP_DECODED_FRAME_IDX = 0,
  cv::cudacodec::VideoReaderProps::PROP_EXTRA_DATA_INDEX = 1,
  cv::cudacodec::VideoReaderProps::PROP_RAW_PACKAGES_BASE_INDEX = 2,
  cv::cudacodec::VideoReaderProps::PROP_NUMBER_OF_RAW_PACKAGES_SINCE_LAST_GRAB = 3,
  cv::cudacodec::VideoReaderProps::PROP_RAW_MODE = 4,
  cv::cudacodec::VideoReaderProps::PROP_LRF_HAS_KEY_FRAME = 5,
  cv::cudacodec::VideoReaderProps::PROP_COLOR_FORMAT = 6
}
 cv::cudacodec::VideoReader generic properties identifier. More...
 

Functions

Ptr< VideoReader > cv::cudacodec::createVideoReader (const String &filename, const std::vector< int > &params={}, const bool rawMode=false, const int minNumDecodeSurfaces=0)
 Creates video reader. More...
 
Ptr< VideoReader > cv::cudacodec::createVideoReader (const Ptr< RawVideoSource > &source, const bool rawMode=false, const int minNumDecodeSurfaces=0)
 
Ptr< cudacodec::VideoWriter > cv::cudacodec::createVideoWriter (const String &fileName, Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 Creates video writer. More...
 
Ptr< cudacodec::VideoWriter > cv::cudacodec::createVideoWriter (const String &fileName, Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)
 
Ptr< cudacodec::VideoWriter > cv::cudacodec::createVideoWriter (const Ptr< EncoderCallBack > &encoderCallback, Size frameSize, double fps, SurfaceFormat format=SF_BGR)
 
Ptr< cudacodec::VideoWriter > cv::cudacodec::createVideoWriter (const Ptr< EncoderCallBack > &encoderCallback, Size frameSize, double fps, const EncoderParams &params, SurfaceFormat format=SF_BGR)