OpenCV  4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
cv::cudacodec Namespace Reference

Classes

struct  EncodeQp
 
class  EncoderCallback
 Interface for encoder callbacks. 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, see createVideoReader(). More...
 
struct  VideoReaderInitParams
 VideoReader initialization parameters. More...
 
class  VideoWriter
 Video writer interface, see createVideoWriter(). 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 and cudacodec::VideoWriter. More...
 
enum class  ColorFormat {
  ColorFormat::UNDEFINED = 0 ,
  ColorFormat::BGRA = 1 ,
  ColorFormat::BGR = 2 ,
  ColorFormat::GRAY = 3 ,
  ColorFormat::NV_NV12 = 4 ,
  ColorFormat::RGB = 5 ,
  ColorFormat::RGBA = 6 ,
  ColorFormat::NV_YV12 = 8 ,
  ColorFormat::NV_IYUV = 9 ,
  ColorFormat::NV_YUV444 = 10 ,
  ColorFormat::NV_AYUV = 11
}
 ColorFormat for the frame returned by VideoReader::nextFrame() and VideoReader::retrieve() or used to initialize a VideoWriter. More...
 
enum  DeinterlaceMode {
  Weave = 0 ,
  Bob = 1 ,
  Adaptive = 2
}
 Deinterlacing mode used by decoder. More...
 
enum  EncodeMultiPass {
  ENC_MULTI_PASS_DISABLED = 0x0 ,
  ENC_TWO_PASS_QUARTER_RESOLUTION = 0x1 ,
  ENC_TWO_PASS_FULL_RESOLUTION = 0x2
}
 Multi Pass Encoding. More...
 
enum  EncodeParamsRcMode {
  ENC_PARAMS_RC_CONSTQP = 0x0 ,
  ENC_PARAMS_RC_VBR = 0x1 ,
  ENC_PARAMS_RC_CBR = 0x2
}
 Rate Control Modes. More...
 
enum  EncodePreset {
  ENC_PRESET_P1 = 1 ,
  ENC_PRESET_P2 = 2 ,
  ENC_PRESET_P3 = 3 ,
  ENC_PRESET_P4 = 4 ,
  ENC_PRESET_P5 = 5 ,
  ENC_PRESET_P6 = 6 ,
  ENC_PRESET_P7 = 7
}
 Nvidia Encoding Presets. Performance degrades and quality improves as we move from P1 to P7. More...
 
enum  EncodeProfile {
  ENC_CODEC_PROFILE_AUTOSELECT = 0 ,
  ENC_H264_PROFILE_BASELINE = 1 ,
  ENC_H264_PROFILE_MAIN = 2 ,
  ENC_H264_PROFILE_HIGH = 3 ,
  ENC_H264_PROFILE_HIGH_444 = 4 ,
  ENC_H264_PROFILE_STEREO = 5 ,
  ENC_H264_PROFILE_PROGRESSIVE_HIGH = 6 ,
  ENC_H264_PROFILE_CONSTRAINED_HIGH = 7 ,
  ENC_HEVC_PROFILE_MAIN = 8 ,
  ENC_HEVC_PROFILE_MAIN10 = 9 ,
  ENC_HEVC_PROFILE_FREXT = 10
}
 Supported Encoder Profiles. More...
 
enum  EncodeTuningInfo {
  ENC_TUNING_INFO_UNDEFINED = 0 ,
  ENC_TUNING_INFO_HIGH_QUALITY = 1 ,
  ENC_TUNING_INFO_LOW_LATENCY = 2 ,
  ENC_TUNING_INFO_ULTRA_LOW_LATENCY = 3 ,
  ENC_TUNING_INFO_LOSSLESS = 4 ,
  ENC_TUNING_INFO_COUNT
}
 Tuning information. More...
 
enum class  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 ,
  VideoReaderProps::PROP_COLOR_FORMAT = 6 ,
  VideoReaderProps::PROP_UDP_SOURCE = 7 ,
  VideoReaderProps::PROP_ALLOW_FRAME_DROP = 8
}
 cv::cudacodec::VideoReader generic properties identifier. More...
 

Functions

Ptr< VideoReadercreateVideoReader (const Ptr< RawVideoSource > &source, const VideoReaderInitParams params=VideoReaderInitParams())
 
Ptr< VideoReadercreateVideoReader (const String &filename, const std::vector< int > &sourceParams={}, const VideoReaderInitParams params=VideoReaderInitParams())
 Creates video reader.
 
Ptr< cudacodec::VideoWritercreateVideoWriter (const String &fileName, const Size frameSize, const Codec codec, const double fps, const ColorFormat colorFormat, const EncoderParams &params, Ptr< EncoderCallback > encoderCallback=0, const cuda::Stream &stream=cuda::Stream::Null())
 Creates video writer.
 
Ptr< cudacodec::VideoWritercreateVideoWriter (const String &fileName, const Size frameSize, const Codec codec=Codec::H264, const double fps=25.0, const ColorFormat colorFormat=ColorFormat::BGR, Ptr< EncoderCallback > encoderCallback=0, const cuda::Stream &stream=cuda::Stream::Null())
 Creates video writer.
 
void MapHist (const cuda::GpuMat &hist, Mat &histFull)
 Utility function demonstrating how to map the luma histogram when FormatInfo::videoFullRangeFlag == false.
 
bool operator== (const EncoderParams &lhs, const EncoderParams &rhs)