opencv2/cudacodec.hpp#

Include dependency graph for cudacodec.hpp:

opencv2/cudacodec.hpp Node1 opencv2/cudacodec.hpp Node2 opencv2/core/cuda.hpp Node1->Node2 Node3 opencv2/core.hpp Node2->Node3 Node53 opencv2/core/cuda_types.hpp Node2->Node53 Node54 opencv2/core/cuda.inl.hpp Node2->Node54 Node4 opencv2/core/cvdef.h Node3->Node4 Node11 opencv2/core/base.hpp Node3->Node11 Node15 opencv2/core/cvstd.hpp Node3->Node15 Node31 opencv2/core/traits.hpp Node3->Node31 Node32 opencv2/core/matx.hpp Node3->Node32 Node37 opencv2/core/types.hpp Node3->Node37 Node40 opencv2/core/mat.hpp Node3->Node40 Node44 opencv2/core/persistence.hpp Node3->Node44 Node45 opencv2/core/operations.hpp Node3->Node45 Node48 opencv2/core/cvstd.inl.hpp Node3->Node48 Node49 opencv2/core/utility.hpp Node3->Node49 Node52 opencv2/core/optim.hpp Node3->Node52 Node5 opencv2/core/version.hpp Node4->Node5 Node6 limits Node4->Node6 Node7 opencv2/core/hal/interface.h Node4->Node7 Node9 cstdint Node4->Node9 Node10 cv_cpu_dispatch.h Node4->Node10 Node8 cstddef Node7->Node8 Node7->Node9 Node11->Node4 Node12 opencv2/opencv_modules.hpp Node11->Node12 Node13 climits Node11->Node13 Node14 algorithm Node11->Node14 Node11->Node15 Node25 opencv2/core/fwddecl.hpp Node11->Node25 Node26 opencv2/core/neon_utils.hpp Node11->Node26 Node27 opencv2/core/vsx_utils.hpp Node11->Node27 Node29 opencv2/core/exception.hpp Node11->Node29 Node30 opencv2/core/check.hpp Node11->Node30 Node15->Node4 Node15->Node8 Node15->Node14 Node16 cstring Node15->Node16 Node17 cctype Node15->Node17 Node18 string Node15->Node18 Node19 utility Node15->Node19 Node20 cstdlib Node15->Node20 Node21 cmath Node15->Node21 Node22 cvstd_wrapper.hpp Node15->Node22 Node22->Node4 Node22->Node18 Node23 memory Node22->Node23 Node24 type_traits Node22->Node24 Node25->Node4 Node26->Node4 Node27->Node4 Node28 assert.h Node27->Node28 Node29->Node4 Node29->Node15 Node30->Node4 Node30->Node15 Node30->Node25 Node31->Node4 Node32->Node4 Node32->Node11 Node32->Node31 Node33 opencv2/core/saturate.hpp Node32->Node33 Node35 initializer_list Node32->Node35 Node36 opencv2/core/matx.inl.hpp Node32->Node36 Node33->Node4 Node33->Node13 Node34 opencv2/core/fast_math.hpp Node33->Node34 Node34->Node4 Node34->Node21 Node37->Node4 Node37->Node6 Node37->Node13 Node37->Node15 Node37->Node32 Node38 cfloat Node37->Node38 Node39 vector Node37->Node39 Node40->Node24 Node40->Node32 Node40->Node37 Node41 opencv2/core/bufferpool.hpp Node40->Node41 Node42 array Node40->Node42 Node43 opencv2/core/mat.inl.hpp Node40->Node43 Node44->Node37 Node44->Node40 Node46 cstdio Node45->Node46 Node47 ostream Node45->Node47 Node49->Node3 Node49->Node47 Node50 functional Node49->Node50 Node51 mutex Node49->Node51 Node52->Node3

opencv2/cudacodec.hpp Node1 opencv2/cudacodec.hpp Node2 opencv2/core/cuda.hpp Node1->Node2 Node3 opencv2/core.hpp Node2->Node3 Node53 opencv2/core/cuda_types.hpp Node2->Node53 Node54 opencv2/core/cuda.inl.hpp Node2->Node54 Node4 opencv2/core/cvdef.h Node3->Node4 Node11 opencv2/core/base.hpp Node3->Node11 Node15 opencv2/core/cvstd.hpp Node3->Node15 Node31 opencv2/core/traits.hpp Node3->Node31 Node32 opencv2/core/matx.hpp Node3->Node32 Node37 opencv2/core/types.hpp Node3->Node37 Node40 opencv2/core/mat.hpp Node3->Node40 Node44 opencv2/core/persistence.hpp Node3->Node44 Node45 opencv2/core/operations.hpp Node3->Node45 Node48 opencv2/core/cvstd.inl.hpp Node3->Node48 Node49 opencv2/core/utility.hpp Node3->Node49 Node52 opencv2/core/optim.hpp Node3->Node52 Node5 opencv2/core/version.hpp Node4->Node5 Node6 limits Node4->Node6 Node7 opencv2/core/hal/interface.h Node4->Node7 Node9 cstdint Node4->Node9 Node10 cv_cpu_dispatch.h Node4->Node10 Node8 cstddef Node7->Node8 Node7->Node9 Node11->Node4 Node12 opencv2/opencv_modules.hpp Node11->Node12 Node13 climits Node11->Node13 Node14 algorithm Node11->Node14 Node11->Node15 Node25 opencv2/core/fwddecl.hpp Node11->Node25 Node26 opencv2/core/neon_utils.hpp Node11->Node26 Node27 opencv2/core/vsx_utils.hpp Node11->Node27 Node29 opencv2/core/exception.hpp Node11->Node29 Node30 opencv2/core/check.hpp Node11->Node30 Node15->Node4 Node15->Node8 Node15->Node14 Node16 cstring Node15->Node16 Node17 cctype Node15->Node17 Node18 string Node15->Node18 Node19 utility Node15->Node19 Node20 cstdlib Node15->Node20 Node21 cmath Node15->Node21 Node22 cvstd_wrapper.hpp Node15->Node22 Node22->Node4 Node22->Node18 Node23 memory Node22->Node23 Node24 type_traits Node22->Node24 Node25->Node4 Node26->Node4 Node27->Node4 Node28 assert.h Node27->Node28 Node29->Node4 Node29->Node15 Node30->Node4 Node30->Node15 Node30->Node25 Node31->Node4 Node32->Node4 Node32->Node11 Node32->Node31 Node33 opencv2/core/saturate.hpp Node32->Node33 Node35 initializer_list Node32->Node35 Node36 opencv2/core/matx.inl.hpp Node32->Node36 Node33->Node4 Node33->Node13 Node34 opencv2/core/fast_math.hpp Node33->Node34 Node34->Node4 Node34->Node21 Node37->Node4 Node37->Node6 Node37->Node13 Node37->Node15 Node37->Node32 Node38 cfloat Node37->Node38 Node39 vector Node37->Node39 Node40->Node24 Node40->Node32 Node40->Node37 Node41 opencv2/core/bufferpool.hpp Node40->Node41 Node42 array Node40->Node42 Node43 opencv2/core/mat.inl.hpp Node40->Node43 Node44->Node37 Node44->Node40 Node46 cstdio Node45->Node46 Node47 ostream Node45->Node47 Node49->Node3 Node49->Node47 Node50 functional Node49->Node50 Node51 mutex Node49->Node51 Node52->Node3

Classes#

struct cv::cudacodec::EncodeQp
class cv::cudacodec::EncoderCallback

Interface for encoder callbacks. 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::NVSurfaceToColorConverter

Class for converting the raw YUV Surface output from VideoReader if output color format is set to ColorFormat::NV_YUV_SURFACE_FORMAT (VideoReader::set(ColorFormat::NV_YUV_SURFACE_FORMAT)) to the requested ColorFormat. More…

class cv::cudacodec::RawVideoSource

Interface for video demultiplexing. : More…

class cv::cudacodec::VideoReader

Video reader interface, see createVideoReader(). More…

struct cv::cudacodec::VideoReaderInitParams

VideoReader initialization parameters. More…

class cv::cudacodec::VideoWriter

Video writer interface, see createVideoWriter(). More…

Namespaces#

namespace cv
namespace cv::cudacodec

Enumerations#

enum cv::cudacodec::BitDepth {
EIGHT = 0,
SIXTEEN = 1,
UNCHANGED = 2
}

Bit depth of the frame returned by VideoReader::nextFrame() and VideoReader::retrieve() More…

enum cv::cudacodec::ChromaFormat {
Monochrome = 0,
YUV420,
YUV422,
YUV444,
NumFormats
}

Chroma formats supported by cudacodec::VideoReader. More…

enum cv::cudacodec::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 cv::cudacodec::ColorFormat {
UNDEFINED = 0,
BGRA = 1,
BGR = 2,
GRAY = 3,
RGB = 5,
RGBA = 6,
NV_YUV_SURFACE_FORMAT = 7,
NV_NV12 = 4,
NV_YV12 = 8,
NV_IYUV = 9,
NV_YUV444 = 10,
NV_AYUV = 11,
NV_YUV420_10BIT = 12,
NV_YUV444_10BIT = 13
}

ColorFormat for the frame returned by VideoReader::nextFrame() and VideoReader::retrieve() or used to initialize a VideoWriter. More…

enum cv::cudacodec::ColorSpaceStandard {
BT709 = 1,
Unspecified = 2,
Reserved = 3,
FCC = 4,
BT470 = 5,
BT601 = 6,
SMPTE240M = 7,
YCgCo = 8,
BT2020 = 9,
BT2020C = 10
}

Video Signal Description Color Primaries of the VideoReader source (section E.2.1 VUI parameters semantics of H265 spec file) More…

enum cv::cudacodec::DeinterlaceMode {
Weave = 0,
Bob = 1,
Adaptive = 2
}

Deinterlacing mode used by decoder. More…

enum cv::cudacodec::EncodeMultiPass {
ENC_MULTI_PASS_DISABLED = 0x0,
ENC_TWO_PASS_QUARTER_RESOLUTION = 0x1,
ENC_TWO_PASS_FULL_RESOLUTION = 0x2
}

Multi Pass Encoding. More…

enum cv::cudacodec::EncodeParamsRcMode {
ENC_PARAMS_RC_CONSTQP = 0x0,
ENC_PARAMS_RC_VBR = 0x1,
ENC_PARAMS_RC_CBR = 0x2
}

Rate Control Modes. More…

enum cv::cudacodec::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 cv::cudacodec::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 cv::cudacodec::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 cv::cudacodec::SurfaceFormat {
SF_NV12 = 0,
SF_P016 = 1,
SF_YUV444 = 2,
SF_YUV444_16Bit = 3
}

Video surface formats output by the decoder. More…

enum cv::cudacodec::VideoReaderProps {
PROP_DECODED_FRAME_IDX = 0,
PROP_EXTRA_DATA_INDEX = 1,
PROP_RAW_PACKAGES_BASE_INDEX = 2,
PROP_NUMBER_OF_RAW_PACKAGES_SINCE_LAST_GRAB = 3,
PROP_RAW_MODE = 4,
PROP_LRF_HAS_KEY_FRAME = 5,
PROP_COLOR_FORMAT = 6,
PROP_UDP_SOURCE = 7,
PROP_ALLOW_FRAME_DROP = 8,
PROP_BIT_DEPTH = 9,
PROP_PLANAR = 10
}

cv::cudacodec::VideoReader generic properties identifier. More…

Functions#

Ptr< NVSurfaceToColorConverter > cv::cudacodec::createNVSurfaceToColorConverter (const ColorSpaceStandard colorSpace, const bool videoFullRangeFlag=false)

Creates a NVSurfaceToColorConverter.

Ptr< VideoReader > cv::cudacodec::createVideoReader (const Ptr< RawVideoSource > &source, const VideoReaderInitParams params=VideoReaderInitParams())
Ptr< VideoReader > cv::cudacodec::createVideoReader (const String &filename, const std::vector< int > &sourceParams={}, const VideoReaderInitParams params=VideoReaderInitParams())

Creates video reader.

Ptr< cudacodec::VideoWriter > cv::cudacodec::createVideoWriter (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::VideoWriter > cv::cudacodec::createVideoWriter (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 cv::cudacodec::MapHist (const cuda::GpuMat &hist, Mat &histFull)

Utility function demonstrating how to map the luma histogram when FormatInfo::videoFullRangeFlag == false.

bool cv::cudacodec::operator== (const EncoderParams &lhs, const EncoderParams &rhs)